1. I created a new supertrend indicator that plots the line in different colors based on the CCI level. If CCI is greater than zero, color is set to green; if less than zero, color is red; if zero, color is yellow However, when I displayed the indicator line on the chart, it always shows green color. Any idea? See attached code.
2. Separately, I created a strategy that added the above custom indicator. When I run the strategy in the chart, the indicator line is not shown at all.
Please advise.
Comment