TradingView
Duyck
25 mai 2020 18:00

ATR Based Trendlines - JD 

Bitcoin / TetherUSBinance

Description

This script draws trendlines from the pivot points in the price chart.

The angle of the trendlines is determined by (a percentage of) the atr.

The angle follows the change in price, dictated by the atr at the moment where the pivot point is detected.

The atr percentage determines if the trendline follows the rate of change of the atr or a fraction ( value < 100) or a multiple ( value > 100) of that




JD.

#NotTradingAdvice #DYOR

Disclaimer.
I AM NOT A FINANCIAL ADVISOR.
THESE IDEAS ARE NOT ADVICE AND ARE FOR EDUCATION PURPOSES ONLY.
ALWAYS DO YOUR OWN RESEARCH!
Commentaires
PineCoders
Duyck
@PineCoders, Thank you for 5he support!
Gr, JD.
petteuk
Hi there JD, first of thanks for this amazing script helps a lot with my backtesting, just one thing, any way you could add the option to limit the EXTEND.RIGHT to a custom(input) number so the chart dont look like a toddler drawing when multiple lines are in place.

I tried to alter the values in the code but Im no expert and failed miserably.

Many thanks
Duyck
@petteuk, thx for the suggestion, yes I could maybe add it in a future update.

Gr, JD.
sal157011
Thank you. Is it possible to plot the lines not beginning from the pivot point bar but only beginning on the bar where the detection of the pivot point was completed? The issue is, sometimes historically you see a break of a virtual trendline because in realtime the pivot point it wasn't formed yet. Another possibility would be plot to lines of different colors or style one from the pivot point bar to the detection pivot bar and another from the detection pivot bar on.
Duyck
@sal157011, hi, yes it is, i'll see if I can maybe find some time to add the feature.
Gr, JD.
berke_gorgun
Best indicator so far ! If you only add a option that how much last trendlines number as we want to see,it will be perfect...
CryptoCintron
This indicator is priceless! I find the green ATR Trendlines indicate rejection or continuation on the TF (time frame) selected or lower TF's (i.e. H1 TF shows rejection or continuation for H1, 45 min, 30 min TF's). If price closes the H1 TF above ATR Trendline, it tends to continue up until hitting the H4 TF ATR Trendline. This is especially true if using the PVTL (Pivotal - Multi Pivot Selector indicator). If price closes above the ATR Trendline for that TF + above the Pivot Point (indicator shows Daily, Weekly, Monthly Pivot Points), it tends continue up. If price breaks through green ATR Trendline, but rejects at Pivot Point (white line on the PVTL indicator) it tends to fail and continue down to next Support or Pivot Point. I've performed back testing and it's extremely accurate! Especially for Bitcoin.
KiriakosAnastasiadis
Hi great work, i wonder if you can add alert options. I think it will be useful. Thanks
jer8877
@KiriakosAnastasiadis, if you draw a regular trendline+alert on top of one of the ATR trendlines shown by the indicator it seems to work ok
Plus