Login Page - Create Account

Support Board


Date/Time: Fri, 07 Feb 2025 03:11:41 +0000



Post From: Calculation Precedence And Auto looping

[2020-05-16 02:57:47]
Flipper - Posts: 65
Why then when you reference the array in the first "Manual Loop Study ONE" which is initiated with this simple code and this code only,


for (int Index = sc.UpdateStartIndex; Index < sc.ArraySize; Index++)
  {
firstSubgraph[Index] = 999.0;
}

In the study "Auto Loop Study TWO" with this code,

sc.GetStudyArrayUsingID(Input_StudySubgraphReference.GetStudyID(), Input_StudySubgraphReference.GetSubgraphIndex(), ReferenceSubgraph);


does is give a values of 0.0 as per the highlighted and attached picture?????????

from this code,
MessageText.Format("STUDY-2 Index: %d, ReferenceSubgraph value: %.2f --- %.2f ",sc.Index, ReferenceSubgraph[sc.Index], ReferenceSubgraph[sc.Index-1]);
sc.AddMessageToLog(MessageText, 0);

Clearly the array 1 bar back and further is referenced correctly but on initial call for each new bar it has yet to be set.


I will do you a deal. I will pay you to test it at your standard rate. If you are correct.

If I am correct You will pay me at my standard rate of a whole day that I have wasted just to get you to see that its not populating on first call. as per this picture, this code and all the previous post!
image2020-05-16 12_33_31-Message Log.png / V - Attached On 2020-05-16 02:41:55 UTC - Size: 34.98 KB - 243 views
attachmentCalcOrderTEST.cpp - Attached On 2020-05-16 02:57:08 UTC - Size: 1.92 KB - 355 views