[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 61
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
How many orders can you have open?
I trade in one order (e.g. buy) and one more is possible as a counter position (safe) for a lock.
The situation is such that when this very lock occurs, the EA must be prohibited from trading (to monitor the occurrence of other conditions)
Thank you, not a programmer myself - it took me 24 hours of digging. Thank you.
If it didn't, it would swear that it doesn't, but it does.
check the MAIN name - maybe Russian A stands...
Thanks for the reply!
Checked everything, it's all written in English, and there's no error when transferring the declarations of these variables to the main file...
Bigot! I don't know how it worked, I moved the files from the include folder to libariries and back and everything worked...
sergeev, what could be the problem here?
This code counts both market and pending orders and therefore automatically prohibits taking a profit on a market (open) order. Can we make it so that the pending order is not taken into account, and only those orders that have already become market orders are counted?
I am sorry if I have misled you.
This code counts both market and pending orders and therefore automatically prohibits taking a profit on a market (open) order. Can we make it so that the pending order is not taken into account, and only those orders that have already become market orders are counted?
Sorry, if I misled you.
Then instead of OrdersTotal(), make your own counter for market orders only.
then instead of OrdersTotal(), make your counter a market oreder only.