I have a List which correctly populates data after some operations.
I also take these values at a double value which I see is correct...
The usual C# commands for passing these correctly ordered and correctly calcuated values aren't working for me??? IDK what the best practices are?
Only by printing to NinjaScript Output can I verify from indpendent test calculations that this list holds the correct values...
for (int i = 0; i < 256; i++)
{
barArrayList.Add(historicalPriceDensity[i]);
}
[double CorrectLIST =0;
for (int i = 0; i < barArrayList.Count; i++)
{
if (barArrayList[i] < bottomValue)
barArrayList[i] = bottomValue;
else if (barArrayList[i] > topValue)
barArrayList[i] = topValue;
CorrectLIST = barArrayList[i];
}
Print("Correct List Values from the Double : " + CorrectLIST);
Print("Correct List Values from the List :");
foreach (double value in barArrayList)
{
Print(value.ToString("F3")); // Print each value with 3 decimal places
}
So I am able to see that the list barArrayList and the double CorrectLIST are holding the values I expect from my other calculators...
However whenever I try to record these CORRECTLIST values into a series the typical C# functions like .Add or .Set even .Insert do not work for me...
What is the best practice for populating a series with these Correct values I have ???

I would not bother the experts here save for the unexpected errors caused me to doubt the best practice for the latest version... Thank You
Comment