invalid parameters because u use Close[0] in the order send function where you should use Ask or Bid respectively.
when Close[0] does not match actual market prices your order get's rejected.
i have tried ask and bid in the replace of close but still does not work at all and this is for binary options ea
thanks marco but do you have any other ideas or can you maybe show me some code?
really appreciate ur help
u could try
tic=OrderSend (Symbol(),OP_SELL,ordersize,Close[0],3,0,0,"BO exp:"+string(ExpireSeconds),MagicNumber,0,Red);
Invalid parameter usually refers to prices not matching or slippage and since yours is set to 0 it will reject a lot of orders.
I have to say i am coding forex so i am not all that familiar with binary options.
its hard to understand the logic without knowing what it suppose to do for example why are you pulling orders from historic pool ?
And you are selling and buying both at Close[0] how is that suppose to work?
its hard to understand the logic without knowing what it suppose to do for example why are you pulling orders from historic pool ?
And you are selling and buying both at Close[0] how is that suppose to work?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
2015.05.07 11:06:32.484 '610589287': order buy 14.00 AUDCAD.bo opening at market sl: 0.00000 tp: 0.00000 failed [Invalid parameters]
thats the error i get but it does open orders sometimes but alot of times it shows that error above
i have even tried if(arrowup!=2147483647) but that does not work at all because then it takes trades but no arrow at all.
Please can some one help me