I am a new user working on developing custom indicators
using Wealthlab Pro V5.3. Currently having difficulty
coding different colored fill areas for Overbought and
Oversold areas in a manner similar to that displayed
by the Drag and Drop Indicators. Does anybody know
the best approach or have a coding example for creating
colored fill for Indicator Overbought/Oversold areas?
One reason for coding a custom CCI indicator pane is
with the Drag and Drop Indicators you can not create
separate Panes for the same Indicator with different
parameter values (e.g. CCI(14) and CCI(70)). A second
reason is if possible it would be nice to have different
shades of colors in the Indicator Overbought/Oversold areas.
(e.g. light red = -100 < CCI < -200; dark red CCI < -200)
To implement Overbought/Oversold colored fill areas I have
tried using the PlotSeriesFillBand and PlotSeriesDualFillband
commands with no success. The best I have been able to do
so far is change the color of the plotted Indicator Line
for the Overbought/Oversold levels (see Strategy Code below).
Would appreciate any suggestions or example code segments.
CODE:
Please log in to see this code.