Forum

OrderSend error 130 on BuyStop

Dear All, it happens that executing the EA in backtest inside MT4 build 1320 on Mex MB brocker the following order, with a ask=1.18401 is execute without error: OrderSend ( Symbol (),OP_BUYSTOP, 0.01 , 1.17983 ,Slippage, 0 , 1.18183 ,YourOrderComment,MagicNumber, 0 ,Green) The same above order with

MT4 not printing inside OnInit()

Dear All, it happens that executing the EA in backtest inside MT4 build 1320 on Mex MB brocker the Print statement doesn't work inside OnInit(). By the way I tried to modify a global variabile inside the OnInit() and I can see the modification inside the OnTick() event, so I suppose the the OnInit()