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 woulnd`t know how to code such return, promise to get on it tho! thanks
It so simple:
Keep in mind that OrdersTotal() return total of orders (both market and pending on your account). Using this variable can be right only in backtest.
Always better to create a custom function checking if there are opened orders with Magic Number.
So yourWill become
Anyway, as I already suggested, you can learn by the infinite amount of free code found on Codebase, instead of opening thread related only to your bad coding skills.It so simple:
Keep in mind that OrdersTotal() return total of orders (both market and pending on your account). Using this variable can be right only in backtest.
Always better to create a custom function checking if there are opened orders with Magic Number.
So yourWill become
Anyway, as I already suggested, you can learn by the infinite amount of free code found on Codebase, instead of opening thread related only to your bad coding skills.Thanks man!!