If I wanted to back test the Heiken Ashi, how can I translate into code "if Heiken Ashi is trending up"?
I see in the code
Color barColor = (Values[3][0] > Values[0][0] ? BarColorUp : BarColorDown);
Values[3].Set((Open[0] + High[0] + Low[0] + Close[0]) / 4); // Calculate the close
Values[0].Set((Values[0][1] + Values[3][1]) / 2); // Calculate the open
If I use the condition HeikenAshi().HAClose[0] > HeikenAshi().HAOpen[0] I get no trades.
Thank you
Comment