EMA Channel High Low For ThinkOrSwim
This will plot the high and low values for the Exponential Moving Average. I figured i would post it just in case someone needs it in the future.
This will plot the high and low values for the Exponential Moving Average. I figured i would post it just in case someone needs it in the future.
Ruby:
#EMA CHANNEL
input price = low;
input length = 50;
input displace = 0;
input showBreakoutSignals = no;
plot AvgExp = ExpAverage(price[-displace], length);
plot UpSignal = price crosses above AvgExp;
plot DownSignal = price crosses below AvgExp;
input price2 = high;
input length2 = 50;
input displace2 = 0;
input showBreakoutSignals2 = no;
plot AvgExp2 = ExpAverage(price2[-displace2], length2);
plot UpSignal2 = price2 crosses above AvgExp2;
plot DownSignal2 = price2 crosses below AvgExp2;
Last edited: