The following code snippet can be used to close short positions:
complete = OrdersTotal();
for(I=0;ilt;complete;I )
if(OrderSelect(I,SELECT_BY_POS,MODE_TRADES))
...
Type: Posts; User: elenacm8
The following code snippet can be used to close short positions:
complete = OrdersTotal();
for(I=0;ilt;complete;I )
if(OrderSelect(I,SELECT_BY_POS,MODE_TRADES))
...
I'm developing a statistical indior that collects information about how many up/down pubs in a particular stage, etc. but I've run into a strange problem with arrays.
Bascally, I've arrays...
I've programmed an EA to test a trading system with 3 yrs 5min information (from 2003.12.28 to 2007.1.6) in MT4. It worked fine and before. I then updated to build202, things began to go haywire. ...