Login Page - Create Account

Support Board


Date/Time: Wed, 15 May 2024 14:09:37 +0000



Post From: Array of persist var

[2017-09-08 17:57:04]
User53601 - Posts: 105
Hello,

I want to use the sc.Subgraph[x].Arrays[y] as an array of persist var.

I want to set the values for sc.Subgraph[x].Arrays[y] only once, at the beginning of trading,
It means: if ( sc.Index==0 ).

My question is whether there is a limit, how many bars forward ( how far the y can be higher then sc.Index ? )
I can set the value of sc.Subgraph[x].Arrays[y], for example is this a valid code?:

if ( sc.Index==0 ) { sc.Subgraph[1].Arrays[2000] = 1 ; }


thank you