What I'm looking to generate is this:
1. the 5sma of (Open-CLose)*Volume
2. then to get the 5sma of number (1) ...(the 5sma of the 5sma)
3. then to get the 13 period sum of number (1) ....(summation of the last 13 bars of number 1).
I'm trying to get an efs to generate and return all three of those values which would then be used (called) by another efs to analyze the three pieces of data.
I've spent about three weeks trying to code this, and the recursive nature of it has turned my brain inside out. While I believe I may have it right, I'm very sure that it is extremely inefficient since I'm manually shifting all the data in the arrays back 1 by 1 as I generate a new bar of data.
Any help would be appreciated.
1. the 5sma of (Open-CLose)*Volume
2. then to get the 5sma of number (1) ...(the 5sma of the 5sma)
3. then to get the 13 period sum of number (1) ....(summation of the last 13 bars of number 1).
I'm trying to get an efs to generate and return all three of those values which would then be used (called) by another efs to analyze the three pieces of data.
I've spent about three weeks trying to code this, and the recursive nature of it has turned my brain inside out. While I believe I may have it right, I'm very sure that it is extremely inefficient since I'm manually shifting all the data in the arrays back 1 by 1 as I generate a new bar of data.
Any help would be appreciated.
Comment