Supertrend Trailing Stop Expert Advisor for Metatrader 5

Discussion in 'Automated Trading' started by rotu, Aug 31, 2015.

  1. rotu

    rotu

    Hello,

    I am looking for an EA for Metatrader 5 that sets a trailing stop based on the indicator "Supertrend" (https://www.mql5.com/en/code/576). The stop should be a little higher (when selling) or lower (when buying) than the supertrend line and move with that supertrend line of course (because it should be a trailing stop). The space between the supertrend line and the actual trailing stop should be adjustable in pips. The parameters of the supertrend indicator should also be adjustable within the EA. If the supertrend line switches its color during an open position this position should be closed.

    Could someone program such an EA?

    Thanks in advance,

    All the best.
     
  2. rotu

    rotu

    I have found an article describing how to program Trailing Stop EAs based on indicators here: https://www.mql5.com/en/articles/134

    A lot of code plus a downloadable sample is already included in the article. It only needs to be based on the Supertrend indicator instead of the SAR or NRTR indicator which is used in the article.

    Could someone change the sample that is provided by the article so it works based on Supertrend?

    Thanks.