Login Page - Create Account

Support Board


Date/Time: Tue, 30 Apr 2024 14:43:10 +0000



[User Discussion] - How to create vertical line or color background for the last close?

View Count: 1482

[2016-01-08 17:33:09]
User380760 - Posts: 88
I want to show the last close location (one bar/line before the current one). Either vertical line or color background (basically just one column) should do it. I don't want horizontal line. Can someone help? Thanks!
[2016-01-08 18:41:36]
Sierra Chart Engineering - Posts: 104368
We do not understand this. Does not make sense to us.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-01-08 18:49:47]
User380760 - Posts: 88
Basically, I want to time point that the last bar close to be marked vertically. For example, for a five minute chart, say current time is 11:04:00 am, I want a line to be at the line or bar that close on 10:59:59 am close. This is helpful for when I line line on close type of chart, or line style indicator to see where is the last close is. It's kind of the current study "Current Price line", but that the line is vertical, and the "price" is the last close.

I tried to create a color background to do that, but it highlighted every bar. If when time move on, I can erase/cancel the old color background, and only keep the one corresponding to the last price, would be great.
[2016-01-08 19:48:50]
Sawtooth - Posts: 3985
Take a look at the Time Line study.
[2016-01-08 19:53:59]
User380760 - Posts: 88
The vertical line in the "Time Line" study is good, it's the style that I want for. However, it's for a fixed/predefined time. I need the last bar close time though.
[2016-01-09 04:17:30]
Sawtooth - Posts: 3985
On a 5 min chart, it's not possible to paint a background in time increments less than 5 min.

With the Spreadsheet Study, it would be possible to paint the background of only the previous bar, and it would advance with each new bar. Is this what you want to do?
[2016-01-09 11:21:02]
User380760 - Posts: 88
Yes, that's exactly what I want, only the previous bar. Thanks!
[2016-01-09 14:11:35]
Sawtooth - Posts: 3985
Try this:

Add the Spreadsheet Study study
-Set the Chart Region to 1
-Set the Number of Rows to 10
-Give it a name in the Spreadsheet Name field
-Set the Draw Style of K(SG1) to Background and the Width/Size to 2
-Click OK and OK
-Put this formula in cell K3: =ROW()=4
-Minimize the spreadsheet.
[2016-01-10 18:03:49]
User380760 - Posts: 88
It doesn't appear the background showed up in the chart. I will check again after the market open tonight.
[2016-01-10 18:12:00]
User380760 - Posts: 88
Sorry, take my word back. It does work! After I applied another indicator, for whatever reason, the background was highlighted! Thanks a lot!

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account