OPEN-SOURCE SCRIPT

Heikin Ashi Strategy Example

15 172
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

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.