Optuma Forums › Optuma Scripting › Coloring the plot of a tool › Reply To: Coloring the plot of a tool
September 16, 2021 at 10:35 am
#66053
- Topics: 5
- Replies: 616
- Posts: 621
Hi,
In the script setting the rules for colour you need to use a GETDATA() function to reference the breadth codes value, then set the rules around that.
Here’s an example using a custom breadth code on my own system:
1 2 3 |
GETDATA(CODE=ADRATIO:Market Breadth) > 10 |
If I were to use Close() the parent charts data is referenced, that’s why the GETDATA() is required.