Trailing Entry Expert

This is a simple expert advisor from one of our requests. There are no indicator inputs, trades are entered based on trailing the entry price from the current price.

In the same way that you would use a trailing stop to move the closing price for a trade as market price changes this expert will trail the entry price.

The example here uses a fixed take profit as exit from the trade.

If you have a suggestion or request for a future tutorial you can leave details in our Topic Requests forum or vote for existing requests. Make sure the requests are clear and if you refer to a strategy somewhere leave a link to the strategy

https://orchardforex.com/requests

The code is available on GitHub:
Expert: https://github.com/OrchardForexTutorials/220417_trailing_entry_robot
Framework: https://github.com/OrchardForexTutorials/framework_3

4 Comments

  1. Hi,
    I tired to add another condition to BUY entry here (as you suggested in YT comment):

    line127 if ( mBuyPrice > 0 && mBuyTicket == 0 &&
    ask >= mBuyPrice && condition )

    but it doesn’t work.
    Any hint please ?
    Regards
    Kris

Leave a Reply