Login Page - Create Account

Support Board


Date/Time: Fri, 27 Dec 2024 06:34:57 +0000



[User Discussion] - Enhanced Candlestick Coloring?

View Count: 2058

[2014-02-15 23:36:19]
drywater0 - Posts: 85
SC Support,

Is it possible to implement coloring for the Candlestick graph draw type which takes into account both the Open and Previous Close? What I'm trying to accomplish is best illustrated by example:

(1) Candlestick outline color is determined by comparing Close vs. PrevClose: green for up, red for down, and grey for unchanged.
(2) If Close > Open then body is transparent with no fill color.
(3) If Close < Open then body is filled using the color scheme set in (1).

The result is that the typical Up bar will be a hollow green candlestick and the typical Down bar will be have a red fill for the body. The atypical scenarios are:
(a) Close > PrevClose but Close < Open produce a green bar with the body filled green.
(b) Close < PrevClose but Close > Open produce a red bar with a transparent body.
(c) Close = PrevClose produces a grey bar with transparent body if Close > Open and a grey filled body if Close < Open.

I attach a screenshot for further illustration with the exceptional / atypical days highlighted with a yellow arrow. Many thanks in advance for your help.

imageCandlestick Coloring Example.JPG / V - Attached On 2014-02-15 23:35:33 UTC - Size: 169.32 KB - 589 views
[2014-02-17 06:04:00]
Sierra Chart Engineering - Posts: 104368
You need to create a custom study which does custom bar coloring:

https://www.sierrachart.com/index.php?l=doc/doc_CreatingDLLs.html
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
[2020-04-23 18:20:20]
aabbcc - Posts: 2
Hello. This request is a typical candlestick option and it is curious that SC does not offer it out of the box. Usually color is based on the net change from previous bar and the fill is based on open versus close. Has this been solved yet as a custom implementation, update or 3rd party add-on?
[2020-04-23 18:25:51]
Ackin - Posts: 1865
Hello. This request is a typical candlestick option and it is curious that SC does not offer it out of the box. Usually color is based on the net change from previous bar and the fill is based on open versus close. Has this been solved yet as a custom implementation, update or 3rd party add-on?

You can use "Color Bar Based"(default Sierrachart study):
Color Bar Based on Alert Condition
[2020-04-23 18:43:45]
aabbcc - Posts: 2
Thanks but color is already given; what's missing is the fill and this could be either red or green...
[2020-04-23 19:44:29]
Ackin - Posts: 1865
Easy, I'll create it....
[2020-04-23 21:09:54]
Ackin - Posts: 1865
Hi, You can download

Study: Candlestick Enhanced Coloring
from the library Free1 (2020)


contact link:
https://www.sierrachart.com/UserControlPanel.php?page=StudyStore&SCDLLName=zyp_download_free
imageCandlestick Enhanced Coloring.png / V - Attached On 2020-04-23 21:09:51 UTC - Size: 22.46 KB - 412 views

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

Login

Login Page - Create Account