Need help with array variables

VladMad

VladMad

New member
Hi, guys.
Please tell me how to make a variable without binding to a timeframe?
Example: the array is filled with data for each bar depending on the conditions [0,1,0,0,0,0,0,1].
I want to get rid of the zeros so that I can use the data for analysis without them.
Need a variable that will only store numeric values greater than 0 without nan.
How can this be done?
 
rad14733

rad14733

Active member
VIP
To the best of my knowledge, it cannot be done as you describe... In TOS we cannot have an array or object that is independent of the instrument data, meaning that we can only compile data associated with each bar of data... Yes, it causes frustration for those of us used to different programming languages but we have to abide by the limitations inherent within the TOS system...
 

Similar threads

Top