![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
hello there i have this 2 moving average cross over Robot .
first cross is sl and 2 cross over will be trade.
how ever i want when the trade open and market move 100 pip the sl should be modify to break even
but when i used orderselect outside the if statement it print the value of OrderOpenPrice() to zero which should be the value of open priced of order .
and 2nd after break even i want to trail the sl according the price of moving average 21.
any suggestion ???