Why does the trailing stop function not work properly in the following MQL4 CODE? Can anyone please help me to fix it?
When I want the effect: It starts when the profit reaches an increase of 300 points. If you hold a BUY order now, and every time the price rises by 100 points compared to the entry price, adjust the position of SL to SL+100 points. If you hold a SELL order now, and every time the price drops by 100 points compared to the entry price, adjust the SL position to SL-100 points.
- MQL4 trailing stop loss
- OrderClose
- [Archive!] I will write any expert or indicator for free.
hahago:
OrderProfit() is a currency(e.g. USD) value... Not point value.
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