Support Board
Date/Time: Wed, 27 Nov 2024 15:48:46 +0000
Post From: ACSIL Evaluation function
[2023-08-06 17:55:47] |
JohnR - User831573 - Posts: 306 |
Could it be that you are trying to use the SET outside of the sc.SetDefaults section of code? ACSIL Interface Members - sc.Input Array: sc.Input[].GetYesNo() in Intro section near bottom of desc ------- Use the Set* functions in the sc.SetDefaults code block to add an Input to a Study and set its initial value. Use the Get* member functions outside of the sc.SetDefaults code block to get the current Input setting. ------- Also, once you have the Input 'set' within the SetDefaults section of code, then within your 'Do Data Processing' section you would use the 'get' like this. // Calculate a simple moving average from the base data sc.SimpleMovAvg(sc.Close,Average,Length.GetInt()); I prefer not to use the Get over and over, and usually on Bar 0 or Full Recalc, I will set the input to a persistent var. Hope this helps JohnR Date Time Of Last Edit: 2023-08-06 18:08:38
|