Announcement

Collapse
No announcement yet.

Trailing Stop Based On Trendlines

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trailing Stop Based On Trendlines

    Hi,
    I am studying a trading system reverse type with a trailing stop based on trendlines. Something different than usual SAR or ATR or Medium Crossing.
    In this example, on every new bar I draw an array of "n" trendlines.
    I compare the trend lines with high or low of the previous bar and if the trendline has been broken I reset the starting point and counter of that specific trendline.
    The trailing stop moves based on the conditions set on the trend lines, based on their slope and the counter of bars they last.
    This code was created to trade Italian equities, so you have to change the part about the value of the tick, and perhaps the trading hours to suit your purposes.
    The rest should be fine.
    This is only a rough initial idea, not even winning backtesting phase, to develop and improve.
    In particular we need to work on the part of the conditions that move the trailing stop.
    If you want to collaborate with your ideas on the forum, every contribution is welcome.
    For non-programmers just ideas in words, not necessarily code.
    Regards
    Massimo
    Attached Files

  • #2
    A snapshot.
    Regards
    Massimo

    Attached Files
    Last edited by maxmax68; 06-27-2011, 06:41 AM.

    Comment

    Working...
    X