OPEN-SOURCE SCRIPT
Heikin Ashi Strategy Example

A strategy which calculates it's entry/exit conditions using HeikinAshi prices and executes orders using real prices (usual candles). NOTE that strategy should be added on a usual candles chart. Heikin Ashi prices are requested in the Pine code using 'security' function.
This is a possible solution to a question getsatisfaction.com/tradingview/topics/strategy-tester-places-incorrect-orders-in-backtesting-when-using-heikin-ashi-candles?reply[id]=19502808#reply_19502808
This is a possible solution to a question getsatisfaction.com/tradingview/topics/strategy-tester-places-incorrect-orders-in-backtesting-when-using-heikin-ashi-candles?reply[id]=19502808#reply_19502808
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.