Determine the last Close[0] of the current candle.
The candle that is closed is the previous candle ( Close[1] ). The current close of the current candle is the Bid or Ask, meaning the candle is not closed until you are on the next candle.
Hi All,
How I can determine the last Close[0] of the current candle. When the current candle is closed completely.
In my programm, i use the following code:
Start_Time = Time[0]+Period()*60 - TimeCurrent();
if (Start_Time == 0) {
Last_Close = Close[0];
}
if (Last_Close < Close[1]){
Close_Position();
}
It works, but not always.
Can somebody help me? Please
Thanks