I am going around in circles on a piece of coding that I think should be quite easy. I have a plot, and I want to look back 20 bars at the changes in value from bar 1 to bar 0 and if the current change is higher, take some action. I am not sure about the Input part of the MAX coding.
if (Values[1][0]-Values[1][1] > MAX(?, 20)[0])
Any help would be appreciated.
Thanks!
Comment