el3reef:
you mean that i must check the date of every order ?
you mean that i must check the date of every order ?
- Yes, you must check the OrderOpenTime() so as to find the correct order. Just keep a running status and by the end of the loop you will have the data for the order in question.
- When using OrderType(), don't compare to fixed values, instead use the build in constants, such as OP_BUY and OP_SELL.
- Always check the boolean results of the OrderSelect() before using the Order data. There is no guarantee that it will ALWAYS select the order, so always check. If you compile with the "#property strict" this will be one of the warnings, so try to use that.
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
for sharing and improving
Waiting for comments and developing