Download MetaTrader 5

Do you fell "Trailing SL or TP" should be an official function from MetaTrader?

To add comments, please log in or register
Share your programs. That will improve your rating.
Rizal Dwi Satria
331
Rizal Dwi Satria 2016.05.30 15:18 
  • 51%
    (20)
  • 26%
    (10)
  • 23%
    (9)
Total voters: 36
Frederic Metraux
511
Frederic Metraux 2016.05.30 16:28  

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
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
Stanislav Korotky
17883
Stanislav Korotky 2016.05.31 13:20  
Trailing stop is already available from UI both for MT4 and MT5.
Trailing Stop - Trading - MetaTrader 4 Help
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
331
Rizal Dwi Satria 2016.05.31 13:44  
Stanislav Korotky:
Trailing stop is already available from UI both for MT4 and MT5.

sorry the question is about EA coding, using trailing function.


not manual by hand

Stanislav Korotky
17883
Stanislav Korotky 2016.06.01 11:06  
Rizal Dwi Satria:

sorry the question is about EA coding, using trailing function.

not manual by hand

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.
To add comments, please log in or register