1. I'm trying to build my own heiken ashi calculations inside of my strategy
2. I have this line, which wants to reference a calculated value "ha_ThisOpen" from the previous bar, inside of its calculation.
ha_ThisOpen = (ha_ThisOpen[1] + ha_ThisClose[1]) / 2;
How do I properly "look back" to the value of a variable for previous X bars?
Thank you.
Comment