Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 08:35:44 +0000



Post From: Demand Index study not displaying

[2021-09-29 14:37:36]
SC Support Tom - Posts: 450
I believe that I have found the error.

In the code we see the following line.


if (Array_RangeMA[0] > SmallValue && Array_HL2C[sc.Index] > SmallValue)

Later we see the following lines.


else

{

Array_BuyPower[sc.Index] = 0.0f;

Array_SellPower[sc.Index] = 0.0f;

}

Whenever H[0] and L[0] are equal, Array_RangeMA[0] = 0, thus forcing the Buy Power and Sell Power Arrays to be zero for all chart bars. It is not that the Subgraphs are not being displayed; they are. I verified this by changing the colors. It is just that their values are zero. I have recommended a fix to Sierra Chart Engineering, which they will review.
Date Time Of Last Edit: 2021-09-29 16:12:13