Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 02:50:39 +0000



Color Last Bar on Chart

View Count: 1245

[2018-10-04 12:08:24]
User194713 - Posts: 27
Hi
I use a candlestick chart and want to change the color of the last bar i.e. the bar which is in the process of being built but has yet to close. Can you please advise how to do this please? Many thanks
[2018-10-05 17:59:55]
Sierra Chart Engineering - Posts: 104368
The easiest way to do this is to use the Color Bar Based on Alert Condition and change the following inputs from their defaults:
- Number of Bars to Calculate: 1
- Automatically Clear from Before 'Number of Bars to Calculate': Yes

Then just set the Alert condition to be: =1

The current bar will then be colored the color of the Subgraph in the Color Bar Based on Alert Condition.



Documentation:
Color Bar Based on Alert Condition
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
[2021-09-09 19:44:48]
User238799 - Posts: 15
Hello
I would also like to have an other color for the last element, the one in process of being built. But in my case i would like to have that on the ‚On Balance Volume‘ Indicator.

I have also checked the following link, but sadly i did not get how i can set that.
Color Bar Based on Alert Condition: Coloring Subgraphs of Other Studies

Can you please tell me how to set that?
Thanks very much!!
[2021-09-09 23:18:07]
John - SC Support - Posts: 31293
Here is a Study Collection that does what you want. Note that you need to have 2 bars calculated for the Color Bar Based on Alert Condition in order to get the line colored in a way that you can see it. Otherwise, if you just used 1 bar, then it would just be a point and it would not be visible.

Refer to the following for how to use a Study Collection provided by Support:
Study Collections: Using a Study Collection Provided by Sierra Chart Support
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2021-09-10 06:29:46]
User238799 - Posts: 15
Thanks very much for the Respose!
But i can not see the study collection, only the link on how to use a study collection.
I guess the attachment has not been posted..
Can you please check and provide to me the study collection?
Thanks very much!
[2021-09-10 13:56:40]
John - SC Support - Posts: 31293
Sorry, we did neglect to add the actual study collection. It is attached to this post.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
attachmentOnBalanceVolumeColorLastLine.StdyCollct - Attached On 2021-09-10 13:56:36 UTC - Size: 31.42 KB - 156 views

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

Login

Login Page - Create Account