Rahul Shaji Parmeshwar: is the Close[0] considered as the ask/bid? O
- Charts are bid prices.
- Close[0] is the last received bid price and is the close price if no more ticks are received during that bar.
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
I am creating an EA where it checks the Close[0] to either buy/close/sell. My question is because bar 0 is not fully formed yet, is the Close[0] considered as the ask/bid? Or is it only considered a Close once the bar has completed. I need to know because if it is only considered a close once the bar is complete will my ea work properly?
I have checked the documentation but it does not answer my question.
Any clarity will be greatly appreciated.
https://book.mql4.com/variables/arrays
An example of the code is below.