Heikin/Kaufman Strategy

This strategy combine Heikin Aishi candle with a modificated Kaufman MA. Using heikin candle and 1 hr timeframe for best performance. Use some trend/ volatility indicator can help to avoid to enter in the market when high volatility
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?


Repaints like a bugger. Can you fix it, please?
What's the added value of a repainting tool?
+24 Rispondi
@MarcoValente Can you fix this please to prevent repainting. This is very close to being a superb strategy, but the repainting means the backtest is inaccurate. Can you fix this please, so there is no repainting in any time period?
+7 Rispondi
Hi, thanks for this indicator. Can anyone confirm if this indicator does indeed repaint. I set test to 1 and am watching it on different timeframes, how can I be sure it's repainting or not? Do I really need to set test to 1?
+6 Rispondi
whitedevil ragamufin
@ragamufin, It’s repainting hell sky level
+1 Rispondi
Does anyone know how to reversion this following line in the @verison 4 ?

nAMA = nz(nAMA) + nsmooth * (xPrice - nz(nAMA))

Where is the initialization for nAMA ?
+2 Rispondi
Chundelac hadi_saadat
@hadi_saadat, you can first migrate to version 3 using the "Pine version 3 migration guide":
You'll want to check the chapters "Self-referenced variables are removed" and "Resolving a problem with a mutable variable in a security expression".

Afterwards you can automatically migrate version 3 to version 4:
this is repeat ?
+1 Rispondi
MarcoValente gucluoguz4
@gucluoguz4, Repaint?? It is use 2 time frame ( 1 hr and a daily) so it maybe repaint , but if you set "test" = 1 the program will use the last bar (with no repaint). try to swich between 1 and 0
gucluoguz4 MarcoValente
@MarcoValente, thanks
+1 Rispondi
Neufert gucluoguz4
@gucluoguz4, of course repaints.