Support Board
Date/Time: Fri, 14 Mar 2025 18:35:02 +0000
Post From: must recalculate the study to see correct values?
[2022-06-25 08:02:57] |
User431178 - Posts: 614 |
The fact that your data appears when you 'recalculate' means it is a calculation precendce problem. 1) Look at calculation precedence information here - Chart Studies: Study Calculation Precedence And Related Issues Might be beneficial to set below in the sc.SetDefaults block (ACSIL Interface Members - Variables and Arrays: sc.CalculationPrecedence) sc.CalculationPrecedence = LOW_PREC_LEVEL
2) Suggest looking at the - ACSIL Interface Members - Functions: sc.GetStudyArrayUsingID() There is information relating to point 1, but also example of using the function, particularly checking to see the the array has data (GetArraySize) before processing it. Regarding NaN, it only takes one NaN value in view to cause the scale to mess up. Date Time Of Last Edit: 2022-06-26 10:25:13
|