ICON:
I am trying to make a function to keep track of open trades
I am trying to make a function to keep track of open trades
for(pos = OrdersTotal()-1; pos >= 0 ; pos--) if ( OrderSelect(pos, SELECT_BY_POS) // Only my orders w/ && OrderMagicNumber() == magic.number // my magic number && OrderSymbol() == Symbol() ){ // and my pair. Print(OrderOpenPrice()); ...

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
Hello,
I am trying to make a function to keep track of open trades so as to avoid place pending orders on the zone around those open trades, the zone can be defined by the spread and the stoplevel.
so if I have an open buy or sell, I don't want to place a pending order around these open trades, and i can have up to 20 buy and sell at a time .
any ideas or suggestions on how to approach this problem?
Thanks,
ICON