Signal on the wrong candle
Guilherme Guimaraes:
could someone help me with this code, because i want the sign to appear on candle 1 + i when closing, and my sign only appears on i.
Buffer2[i] = Close[1+i]; //Set indicator value at Candlestick Close
if(i == 0 && Time[0] != time_alert) { myAlert("indicator", "Sell"); time_alert = Time[0]; } //Instant alert, only once per bar
Yes
Buffer2[i+1] = Close[i+1]; //Set indicator value at Candlestick Close if(i == 0 && Time[0] != time_alert) { myAlert("indicator", "Sell"); time_alert = Time[0]; } //Instant alert, only once per bar
Lorentzos Roussos:
Yes
TH!
could someone help me with this code, because i want the sign to appear on candle 1 + i when closing, and my sign only appears on i.
Buffer2[i] = Close[1+i]; //Set indicator value at Candlestick Close
if(i == 0 && Time[0] != time_alert) { myAlert("indicator", "Sell"); time_alert = Time[0]; } //Instant alert, only once per bar