Forum

OrderSend Error 131 - how to change offline parameters?

I am getting these parameters when trying to do offline backtest: - MarketInfo(Symbol(), MODE_LOTSIZE): 100.000 - MarketInfo(Symbol(), MODE_MINLOT): 0.1 - MarketInfo(Symbol(), MODE_LOTSTEP): 0.1 - MarketInfo(Symbol(), MODE_MAXLOT): 100 After I login to an account it goes to 100.000, 0.01, 0.01

How to code array to control opened orders?

Hello, I am willing to open an opposite order (hedge) when some opened order hits some condition, but I am in trouble getting to do it with array. What i got so far is: int order[]; int i; for ( int b = OrdersTotal ()- 1 ; b>= 0 ; b--) // check for the opened orders {