MarcoValente

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
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Comments

Repaints like a bugger. Can you fix it, please?
What's the added value of a repainting tool?
+24 Reply
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 Reply
whitedevil ragamufin
@ragamufin, It’s repainting hell sky level
+1 Reply
@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?
+6 Reply
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 ?
+1 Reply
Chundelac hadi_saadat
@hadi_saadat, you can first migrate to version 3 using the "Pine version 3 migration guide": https://www.tradingview.com/pine-script-docs/en/v4/appendix/Pine_version_3_migration_guide.html.
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:
https://www.tradingview.com/support/solutions/43000530720-how-can-i-convert-v3-scripts-to-v4/
Reply
this is repeat ?
+1 Reply
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
Reply
gucluoguz4 MarcoValente
@MarcoValente, thanks
+1 Reply
Neufert gucluoguz4
@gucluoguz4, of course repaints.
Reply