Login Page - Create Account

Support Board


Date/Time: Tue, 15 Apr 2025 14:27:26 +0000



[Programming Help] - Change of colour of study, depending on integer value of the study.

View Count: 84

[2025-03-29 05:00:33]
User169391 - Posts: 64
HI,
Is it possible to have the colour of the study change depending on the integer value of the study at the present time? eg. An ADX study with a range of 0 to 100 with a colour of red for values less than say 20, a colour of green for values greater than 20 and to be orange for values greater than 35 (this is just an example and the numbers could be dynamic in as to what the user would prefer as his settings). I don't see a way of doing this through the settings of the study. Is it possible through ACSIL?(may have a crack myself of programming it.)

Regards and Cheers.
[2025-03-29 13:03:25]
cmet - Posts: 687
Take a look at this code, should help you see how to do that.
imageCustom_ADX.jpg / V - Attached On 2025-03-29 13:02:58 UTC - Size: 56.87 KB - 26 views
attachmentCustomADX.cpp - Attached On 2025-03-29 13:03:08 UTC - Size: 2.8 KB - 23 views
attachmentCustomADX_64.dll - Attached On 2025-03-29 13:03:15 UTC - Size: 108 KB - 25 views
[2025-03-29 21:18:04]
User169391 - Posts: 64
Hi,
Wow!! that was quick. Thank you cmet. Exactly what I wanted and thanks for the code to give some insight as to how it is done. Be really helpfull.

Cheers and Regards.

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

Login

Login Page - Create Account