OPEN-SOURCE SCRIPT

length time trend

6 338
So this is simple way to make trend by function of length that is based on min time (in this case 1440)
so i take the close'open' high and low and convert them by this function
then similar to how we build MTF candles I just make this one
you can change the tf to anything you like/ no repaint here as no security
i hope you like it
red is bearish
lime is bullish

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.