Login Page - Create Account

Support Board


Date/Time: Tue, 11 Feb 2025 08:37:34 +0000



sc.HeikinAshi code in SCStudyFunctions.cpp Seems Incomplete

View Count: 492

[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?
[2020-09-02 08:00:12]
Sierra Chart Engineering - Posts: 104368
Yes we will update this in the next release.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account