I cannot for the life of me figure out how to recreate this one line of Thinkscript in Pinescript. I have tried using valuewhen, highest, highestall, highestbars, and pivothigh, but none of them end up achieving the same results as tested in thinkorswim. (Image is Tesla daily since April) Image of thinkorswim results
GetValue(highest, 5), -4)