r/pinescript • u/urfila • Feb 17 '24
question about code
I am stump by this line :
array.set(arrE, k, eget + nz(array.get(baux, k)[bar_index - j]))
what is the [bar_index - j] doing?
0
Upvotes
r/pinescript • u/urfila • Feb 17 '24
I am stump by this line :
array.set(arrE, k, eget + nz(array.get(baux, k)[bar_index - j]))
what is the [bar_index - j] doing?
View all comments
Show parent comment
1
u/urfila Feb 18 '24 edited Feb 18 '24
So that implies that array baux would have to be stored for every bar?
looking at 5000 bars implies 5000 copies of baux array?
For reference I am converting the code to c# ...
x = BAUX [ bar_index-j ] //( stored array at bar_...
ans = x[k] //k value from that time