Joost1978:
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?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?