/*backtest start: 2021-05-08 00:00:00 end: 2022-05-07 23:59:00 period: 4h basePeriod: 15m exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=4 study("Smooth HA Candles MTF v1",overlay=true) higherTf = input("D", "TF", type = input.resolution)