Support Board
Date/Time: Thu, 23 Jan 2025 14:42:31 +0000
[Programming Help] - ACSIL: Color Background by Bar and Price
View Count: 2169
[2018-08-31 15:07:22] |
BlakJak - Posts: 108 |
Is there any ACSIL function to color the background of the chart by individual price and bar like the "Market Depth Historical Graph" study does, or must it be done in the GDIFunction if the user wants to customise this?
|
[2018-09-01 20:41:35] |
Sierra Chart Engineering - Posts: 104368 |
We cannot see a Subgraph Draw Style that does exactly this. So we need to see about adding a new Draw Style for this. Something like this: "Color Background at Price". It would color the background using the full width of the chart column and color from half the tick size above the center point of the price to half the tick size below. 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 Date Time Of Last Edit: 2018-09-01 20:43:34
|
[2018-09-12 20:51:21] |
BlakJak - Posts: 108 |
That definitely sounds useful. Is that something you are planning to work on for a coming release?
|
[2018-09-13 04:59:07] |
Sierra Chart Engineering - Posts: 104368 |
Yes we can add this. We will try to get it done soon.
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 |
[2018-11-13 14:25:48] |
BlakJak - Posts: 108 |
Could you please advise if this has been implemented in recent releases?
|
[2018-11-13 18:35:30] |
Sierra Chart Engineering - Posts: 104368 |
Yes. It is called: Color Background at Price We see a problem with it though and we are looking into this. 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 |
[2018-11-13 19:00:53] |
Sierra Chart Engineering - Posts: 104368 |
In most cases there is not a problem. We just see an issue where sometimes it does not appear based on the scaling if the height of a tick size is too small. This will be resolved in the next release.
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 |
[2018-11-26 09:13:14] |
BlakJak - Posts: 108 |
I have been searching for this function but cannot find it. Could you please share with me the function call or the link to the documentation.
|
[2018-11-26 18:42:26] |
John - SC Support - Posts: 37420 |
It is a new subgraph Draw Style. You will find the information for it here: Chart Studies: Color Background At Price (ACSIL: DRAWSTYLE_COLOR_BACKGROUND_AT_PRICE) For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2018-11-27 04:15:33] |
BlakJak - Posts: 108 |
I am not clear how to use this. If I set: sc.Subgraph[0].DrawStyle = DRAWSTYLE_COLOR_BACKGROUND_AT_PRICE; How do I set individual colors at each price? I was looking for a function to draw the color at a given price and index. e.g. sc.SetBackgroundColor(price, idx, color); or similar. |
[2018-12-01 09:58:56] |
BlakJak - Posts: 108 |
Any feedback on this? I need to set a different colour at every price level on the same bar.
|
[2018-12-01 10:08:54] |
Sierra Chart Engineering - Posts: 104368 |
How do I set individual colors at each price? 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 |
[2018-12-01 10:10:18] |
Cavalry3162 - Posts: 523 |
SC, how do you do it in your market depth history? any chance we could use that and just alter colors?
|
[2018-12-01 10:17:46] |
BlakJak - Posts: 108 |
Could you please allow a separate GDI_Function call in the WM_ERASEBKGND message which would allow us to draw in the background of the chart (i.e. underneath the bars). GDI_Function is basically called from WM_PAINT in Sierra's chart drawing code. If we could set up a separate function called GDI_Bkgnd_Function which was called at the end of WM_ERASEBKGND it would give the user control over the background of the chart as well as the foreground. |
[2018-12-01 11:01:43] |
Sierra Chart Engineering - Posts: 104368 |
Sierra Chart never uses WM_ERASEBKGND. The background is always drawn on the standard paint message. You need to enable this option for the study to do what you want: Chart Studies: Settings and Inputs Tab >> Draw Study Underneath Main Price Graph (in the same Chart Region) 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 |
To post a message in this thread, you need to log in with your Sierra Chart account: