Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 02:52:06 +0000



Post From: Williams AD

[2015-01-22 08:50:08]
Sierra Chart Engineering - Posts: 104368
The easiest thing for us to do at the moment is to provide you the source code:
SCFloatArrayRef WilliamsAD_S(SCBaseDataRef BaseDataIn, SCFloatArrayRef Out, int Index)
{
  if(Index > 0)
  {
    if (BaseDataIn[SC_LAST][Index] > BaseDataIn[SC_LAST][Index - 1])
      Out[Index] = Out[Index - 1] + (BaseDataIn[SC_LAST][Index] - min(BaseDataIn[SC_LOW][Index], BaseDataIn[SC_LAST][Index - 1]));

    else if (BaseDataIn[SC_LAST][Index] == BaseDataIn[SC_LAST][Index - 1])
      Out[Index] = Out[Index - 1];

    else if (BaseDataIn[SC_LAST][Index] < BaseDataIn[SC_LAST][Index - 1])
      Out[Index] = Out[Index - 1] +
      ( BaseDataIn[SC_LAST][Index] - max(BaseDataIn[SC_HIGH][Index], BaseDataIn[SC_LAST][Index - 1]) );
  }
  else
    Out[Index] = 0;
  
  return Out;
}

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
Date Time Of Last Edit: 2015-01-22 08:50:55