Pete
Could you help me with a grab candle alert. I would like an alert when the candle closes above or below the grab candles..Could the alert happen after the candle closes..Long call when it crosses above EMA1 and short when it crosses below EMA3…Thanks
declare upper;
declare once_per_bar;
input Author = “www.simplertrading.com”;
plot ema1 = ExpAverage (high, 34);
plot ema2 = ExpAverage (close, 34);
plot ema3 = ExpAverage (low, 34);
ema1.SetDefaultColor(Color.GREEN);
ema1.SetLineWeight(2);
ema2.SetDefaultColor(Color.BLUE);
ema2.SetLineWeight(2);
ema3.SetDefaultColor(Color.RED);
ema3.SetLineWeight(2);
ema1.hideBubble();
ema2.hideBubble();
ema3.hideBubble();
AssignPriceColor(if close > ema1 and open < close then Color.GREEN
else if close > ema1 and open >= close then Color.DARK_GREEN
else if close < ema3 and open < close then Color.RED
else if close < ema3 and open >= close then Color.DARK_RED
else if open < close then Color.CYAN
else if open >= close then Color.BLUE
else Color.BLUE);
Like this:
Like Loading...
There seems to be an error with the code..Its highlighted re in a few places
The errors clear up when you ADD the code provided my Forex Trader to the bottom of your code.