Atttached file uses the parameters 6-16-6 EMA vs the code parameters below.
# Waylock on [email protected]
# created 11/5/12
input fastLength = 12;
input slowLength = 26;
input MACDLength = 9;
input AverageType = {SMA, default EMA};
def Value = MACD(fastLength, slowLength, MACDLength, AverageType).Value;
def Avg = MACD(fastLength, slowLength, MACDLength, AverageType).Avg;
# Changes color of bars
AssignPriceColor(if Value > Avg then Color.LIME else if Value < Avg then
color.MAGENTA else color.current);
Category ThinkOrSwim
|
|
|