For trading operations use predefined variables Bid and Ask

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'm trying to test a simple system historically using strategy tester.
I would like to know if it is possible to open an order using the Open price of the current bar. Reason I want to do it this way is because I don't know where the Bid and Ask price come from historically and since my signal is generated on the previous bar, I'm assuming in most live situations I should be able to buy at the open of the current bar.
so how would I do this in my EA?