Try OrderSend() without SL and TP followed by OderModify() with SL and TP
Matutin:
Try OrderSend() without SL and TP followed by OderModify() with SL and TP
Yes it is works, but i've understood the problem isn't in my expert,it is in the broker.
I've opend new account in a different broker, and everything works exactly I want.
Thank you for help. And sorry for aspam :)
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
I try to open order but EA returns error code 130(wrong StopLoss). I tryed everythig but the situtiation is the same.
The most interesting is that when i strat EA on simaltion it works OK. But in real trading function falls.
I can't uderstand where is a problem. I've paste the part of my code, and hope that anyone will help me.:)
double MyPoint = 0.0001;
OrderSend(Symbol(),OP_SELL,Lots,Bid,10,Bid+MyPoint*TrailingStop,0,"",MAGICMA,0,Red);
This is very simple and it is used all example i've ever read.
Thank you a lot :)