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
Result
I changed Point to Tick Size. So instead of using PriceToInteger I'll have to use ceil()
Updated script attached
I changed Point to Tick Size. So instead of using PriceToInteger I'll have to use ceil()
I know the OrderCloseBy() function which close pairs of orders. But it cannot close all orders at once.
Is there any function which closes all trades at once?
Maybe this can help.
The following example does the job recursively..
TODO:
You can pass the OrderType() you like to the CMD param.. The OrderType() can be: OP_BUY, OP_SELL, or any etc..
You can pass SameLot as true/false..
You can add extra lines for GetInfoInteger to calc pendings, if that to be in use..
You can, too, adjust what TM or TradeMode is required to be checked..
You can pass Pair and ID as paramz to all functions, if leaving them fixed ain't enough..
Finally, call functions the way you like..
Change example:
instead of:
and so on for the rest of functions to let them work for many pairs the way you like the iteration..
Main Example:
Thanks :)
Have a nice day!