Have answered this here - Introducing: Custom Timeframes on TradingView charts for Dhan - #8 by PravinJ