I am working on a script that produces a value of the highest ATR(15) ever in the history of a particular instrument. I am working through the scripting courses for the 2nd time, so I am less than proficient. I think nesting it within the HIGHESTHIGH function will get me there, but I have no way to verify if the value the script produces is correct. I can place the history data in Excel and calculate the ATR(15) for everyday then look for the highest value ever but that would be a nightmare for a watchlist of any length. I suppose I could do that to get the highest ever, then just script that value in and compare to all future bars but again very consuming.
I was working with
HIGHESTHIGH(ATR(BARS=15),RANGE=All Time, INCBAR=True)
Highesthigh gives the highest price in a defined history, is there a HIGHESTHIGH function that will use a variable? Highest high average; highesthigh volume, etc?