Kozlod - Heikin-Ashi Bar Color Change Strategy

You can use this script to backtest Heikin-Ashi bar color change strategy.
You have to apply this script to usual candles and not Heikin-Ashi!!!

Background color indicates HA bar color. On change you'll see green/red arrows and alert will be fired.

Also you can find in the code calculations of all HA OHLC values.
版本注释: Cleaning the code

本着真正的TradingView精神,该脚本的作者将其开源发布,因此交易者可以理解和验证它。为作者加油! 您可以免费使用它,但是在发布中重复使用此代码受网站规则的约束。您可以收藏它以在图表上使用。

Pine Programming: https://qntly.com/pineprog
Advanc. Pine Use-Cases: https://qntly.com/advpine

Access to Pro Indic.: https://qntly.com/proind

YouTube: https://qntly.com/youtube
Discord: https://qntly.com/discord
Telegram: https://qntly.com/tel


Thanks bro ... interesting code .
+1 回复
Why to use this only on normal candles?
QuantNomad dpanday
@dpanday, Because if you'll apply strategy on Heikin Ashi candles your backtesting won't be valid. Your orders will be calculated based on HA OHLC but it's not real OHLC and often these levels are not reachable in reality.
Here I try to explain: https://www.youtube.com/watch?v=oTSW0-opte8
+1 回复
dpanday QuantNomad
@QuantNomad, So how to get this script profitable on regular candles?