MT4 invalid double number as parameter 6 for ordersend
Hi Experts in EA's!
I got the following error in my EA and therefore I think it's not putting in SL and TP after I try to modify the order so that my EA works for an ECN broker.
MT4 invalid double number as parameter 6 for ordersend
THIS IS PART OF THE CODE
if (UseStopLoss) StopLossLevel = Ask - StopLoss * Point; else StopLossLevel = 0.0;
if (UseTakeProfit) TakeProfitLevel = Ask + TakeProfit * Point; else TakeProfitLevel = 0.0;
Ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue);
if(Ticket > 0) {
Can an expert help me please?
I also get an Ordermodify error 130
Hopefully somebody can help me with this?
Hi Experts in EA's!
I got the following error in my EA and therefore I think it's not putting in SL and TP after I try to modify the order so that my EA works for an ECN broker.
MT4 invalid double number as parameter 6 for ordersend
THIS IS PART OF THE CODE
if (UseStopLoss) StopLossLevel = Ask - StopLoss * Point; else StopLossLevel = 0.0;
if (UseTakeProfit) TakeProfitLevel = Ask + TakeProfit * Point; else TakeProfitLevel = 0.0;
Ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue);
if(Ticket > 0) {
Can an expert help me please?