How to create an IDataHolder array


Category:
0
0

Hi,

I understand that IDataHolder / array is perhaps the most common data type used in thinkScript.
Also I am reading that recursion is a commonly used technique. I know there is support for building functions and loops (fold). With all these, I thought it could be possible to build an IDataHolder / array from scratch, perhaps using recursion. But I cannot even find a way to combine two values into an array that holds them. Assigning a value to a variable with a subscript is illegal. Would you know how to do something like this? I could use this to experiment with sliding windows of configurable length. It is not the common thing where one value is stored per bar with history, counter etc..
Any help would be greatly appreciated.

RESOLVED
Marked as spam
Posted by (Questions: 3, Answers: 7)
Asked on April 9, 2019 1:35 pm
1376 views
0

Thanks for your comment. Asking the question here has also helped me to understand the problem more clearly.

( at April 9, 2019 5:29 pm)
0
Private answer

I would never try to do this with such a rudimentary language as Thinkscript. If such a thing were required for one of my projects I would build the project in TradeStation or Sierra Chart.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on April 9, 2019 3:32 pm