Welcome to the BEST forum for traders

Did you know we're sharing tons of exclusive content here?
Our community is growing quickly. Take a look around and say "Hello".

Automatic Trendlines by BacktestRookies

Apr 6, 2020 - 1:53 PM

Viewed 2771 times

https://best-trading-indicator.com/community/bti/forums/4180/topics/16288 COPY
  • Description

    This indicator will plot two trend lines at any given time. A resistance trend line and a support trend line . The resistance trend is shown with red circles and is created by joining swing highs together. The second is a support trend which is created by joining swing lows.

    Since we need swings to make the trend, the trend line code contains code for the swing detection. You can play around with the swing detection to alter how frequently new trend lines are detected. Relying on swings also means that there will be some delay in trend detection depending on how you configure the swing detection. The higher you set rightbars, the more lag you will have before a trend is detected. However, at the same time the quality of the pivots found will increase. So it is a trade-off you need to come to terms with and decide what the best settings are for you.

    Script URL

    Script URL

    2020-04-06_13h53_06.jpg

    0

    Dave - Helping traders becoming the best version of themselves
  • How would I implement this to draw trendlines from a plotted series, as opposed to a bar_index?

    0
CONTENTS