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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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