Plot indicator against another indicator

L

lance

New member
Hi -is there way to plot an indicator against another indicator? E.g. plot a moving average of ATR? It's a standard setting in Ninjatrader (as an example) but didn't know if it was standard in TOS. If not a standard feature, can someone provide a code template to use to get the desired result?
 
T

TrueDepth

Member
VIP
Yeah, you have to do with code.
--------------------------------------------------------------

Code:
declare lower;
input length = 14;
input averageType = AverageType.WILDERS;
plot ATR = MovingAverage(averageType, TrueRange(high, close, low), length);
input AvgLength = 9;
plot MA = Average(atr, AvgLength);
 

Similar threads

Top