- Do you use the OnTick function for making EA?
- We have Seconds,Minute,Hour,Day,Month,Year function. Will you try to use Week function if MetaTrader provide it?
- What's the optimum number of exits a trading system should have?
It is the case already. If you use the CExpert object from standard library, there are trailing stop management functions.
https://www.mql5.com/en/docs/standardlibrary/expertclasses/expertbaseclasses/cexpert
Documentation on MQL5: Standard Library / Trading Strategy Classes / Base classes for Expert Advisors / CExpert
- www.mql5.com
Standard Library / Trading Strategy Classes / Base classes for Expert Advisors / CExpert - Reference on algorithmic/automated trading language for MetaTrader 5
Trailing Stop - Trading - MetaTrader 4 Help
- www.metatrader4.com
Stop Loss is intended for reducing of losses where the symbol price moves in an unprofitable direction. If the position becomes profitable, Stop...
Rizal Dwi Satria:
That was no specified in the question. While coding you are free to implement any trailing you like (using constant distance, zigzag, important levels, parabolic SAR or other algorithm). This is why it will not most likely be ever available as a built-in function. I'd say that trailing is already supported for a coder. Your requirement is not clear.
sorry the question is about EA coding, using trailing function.
not manual by hand
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