RafaelZioni

HL avg MTF

RafaelZioni Updated   
This indicator try to find trends more accurate
So first step is to make candle MTF and to find the average of high and low of the MTF candle. I think a ratio of 4/1 is good .
so this seen in the lime /red line
after we take this line and transform it to linear regression type . I use here 50 candle size seen in blue line
if close are above the blue line then we are above the avg of the high and low of the mtf candle .. this indicate a positive trend. if we close is bellow the blue line then it a negative trend and it good time to short it .
also very important is the direction of the blue line as it give us the direction of the trend


Release Notes:
add trend color instead the blue line using the code that fikira posted
I think now it better
thanks for fikira for this improvment
Release Notes:
change the way the XY which is the mean line of high and low +add signal to it
This is a modified script based on Alex grover trend detection method for link to original study for this method 'scroll down in script for lik
Release Notes:
try to fix issue of repaint
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?