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
After two days of testing around and reading all the tutorials and forum threads there are out there concerning this topic I still haven't found the solution for this problem (the problem being no error msg when compiling or backtesting, breakeven function works but the second SL adjustment doesn't) . I have a few hunches though as to why the second SL modification won't work as I'd like to:
1) the breakeven OrderModify has the same condition as the second SL adjustment (=if (Bid-OrderOpenPrice() > Point*whatever-as-long-as-greater-than-zero)) which means I would have to establish some sort of boolean true-false command that causes the breakeven OrderModify part to be ignored so the second SL adjustment can take place.
2) or it's just a formal thing and I have to add a line that makes sure the new SL is better than the old SL (like here https://www.mql5.com/en/forum/126304) in order to make things work
3) or it's something completely different... and I'm at a loss.
In any case, help would be greately appreciated.