In my strategy code, I am trying to display ADX(18) and It's own SMA on the same plot.... How can I achieve this?
Adding the first line to the code below correctly displays the 18-Day ADX...as a separate plot under the Price plot.
However, when I add the second line from below Add(SMA(ADX(18), 18)); the ADX SMA is displayed on the Price Section of the chart rather on the Indicator Plot itself...
Add(ADX(18));
Add(SMA(ADX(18), 18));
I am obviously missing something....
Do I need to make a copy of the ADX indicator code and add the SMA to the indicator code itself to achieve this?
Thanks.
Comment