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
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
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.