TradingView
RafaelZioni
8 Ogs 2019 pukul 07.12

Supertrend MTF LAG ISSUE 

Bitcoin / US Dollar IndexBitMEX

Huraian

This script based on tradingview.com/script/38nC12rD-Supertrend-Heatmap-Multi-timeframes/
we all use Super trend but it main issue is the lag as it buy too late or sell too late
using Deavaet study of Heat map MTF we can do a little trick
if you look on his study you can see that major signal for example will happen in the time frame before it happen at larger time frame
so in this example if signal at MTF 30 min and signal at MTF 60 min happen at the same time at 2 hours or 4 hours candles then this signal are more likely to be true then random signal at each time frame specific.
since we use shorter time frame on larger time frame we can remove the lag issue that make supertrend not so effective

In this example I set the signal to be MTF 30 +60 om 2 hour TF , can be good also for 4 hour candles..
So you get the signal to close inside the larger candle

now if you want to make on even shorter TF then change the code to 15 and 30 MTF on candles on 1 hour
or 1 and 5 min on 30 min or 15 min

Nota Keluaran

By suggestion of original author of heatmap (our one and only Daveat :) ) I try to put his suggestion to avoid repaint issue
let me know if it work or not..
Komen
Daveatt
As the original author, I approve this update of my script :) !! well done
zhenSignal
Im wondering whether turning lookahead on would be a mistake of using future data?
Carl2021111
Does this work on daily TF?
Cali0407
Hi im impress with your ideas how can i use this?
pale81
"we all use Super trend but it main issue is the lag as it buy too late or sell too late"

Main Issue is Re-Painting, like the most scripts. What about this one?
RafaelZioni
@pale81, yep you are correct, the main script done by deaveat so I did not change it , I need to figure away to solve it
Daveatt
@RafaelZioni, I'm being good sport here
The "repaint" issue comes from the security function security(syminfo.tickerid, "30", Trend). You need to add the lookhead=on field to remove the repainting issue
RafaelZioni
@Daveatt, ok thanks
dos32101
Lo he probado y no me funciona, puedo hacer alguna cosa
Gracias
Saludos Cordiales
RafaelZioni
@dos32101, ? what does not work?
Lebih