Login Page - Create Account

Support Board


Date/Time: Tue, 11 Feb 2025 13:51:59 +0000



Post From: sc.HeikinAshi code in SCStudyFunctions.cpp Seems Incomplete

[2020-09-02 04:50:37]
BlakJak - Posts: 108
I was looking at the sc.HeikinAshi intermediate function code in SCStudyFunctions.cpp and it appears not to set the "HighOut" and "LowOut" arrays.

As per the "Studies.cpp" scsf_HeikinAshi(SCStudyInterfaceRef sc) study the logic should be:

  Heikin Ashi high: haHigh = the higher of High and today's haOpen
  Heikin Ashi low: haLow = the lower of Low and today's haOpen


so it looks like the sc.HeikinAshi function is missing some code like:

  HighOut[Index] = max(HighVal, OpenOut[Index]);
  LowOut[Index] = min(LowVal, OpenOut[Index]);

could you please fix that so I do not have to add the code manually myself to my strategy?