Can someone help me finish this? I would like it to show me when there is 3 candles in a row that are green above the 20 sma. Here is what I have so far...
input price = close;
input length = 20;
input displace = 0;
input showBreakoutSignals = no;
plot Avgexp = simpleMovingAvg(price[-displace], length);
def condition = close[3] > AvgExp and close > AvgExp;
plot UpSignal = condition;
#AvgExp.SetDefaultColor(GetColor(1));
#UpSignal.SetDefaultColor(Color.UPTICK);
UpSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW#_UP);
Alert(UpSignal, " ", Alert.Bar, Sound.Chimes);
input price = close;
input length = 20;
input displace = 0;
input showBreakoutSignals = no;
plot Avgexp = simpleMovingAvg(price[-displace], length);
def condition = close[3] > AvgExp and close > AvgExp;
plot UpSignal = condition;
#AvgExp.SetDefaultColor(GetColor(1));
#UpSignal.SetDefaultColor(Color.UPTICK);
UpSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW#_UP);
Alert(UpSignal, " ", Alert.Bar, Sound.Chimes);