Iterating Candles On Each Bar Close In MQL4

 

At the outset, I am new to MQL4. I want to create an indicator in MQL4 . What I want is that at each bar close it will calculate the not calculated bar/s and see if the indicator condition is met. If it meets the condition then it will plot an arrow above the candle and send an alert. This should repeat at each bar close.

Need help to get this iteration loop for MQL4. Any code sample will help.

 
Dhabaleswar Jena: Any code sample will help.

Look in the code base.

Most don't process at bar code, they process bar zero each tick.

Send the alert when you process bar one.