Script for a colored band

Hi,

I want create a script for a colored band on a chart and on an indicator. I have attached a screen shot of a chart so you can better see what I mean. In the chart I have used the “Rectangle” tool to create the colored band but if possible I want do it with a script.

Colored Band

Thanks,
Thomas

Hi Thomas

You can use the Shade command for that.

plot1 = RSI(); 
l1 = 30; 
l2 = 70; 
SHADE(l1, l2)

See https://help.optuma.com/kb/faq.php?id=901 for more information

All the best

Mathew