I'm looking for a way to compare the highest high of a current event to the highest high to the previous event but i can't figure out how to look for this since i can only find ways to use bars as a lookback period instead of the previous event.
this is as far as i could get.
var float HH = 0.00
var float LL = 0.00
var float HHprevious = 0.00
var float LLprevious = 0.00
if signalLong or signalShort
HHprevious := HH
LLprevious := LL
HH := ta.highest(high, ta.barssince(signalLong[1]) + 1)
LL := ta.lowest(low, ta.barssince(signalLong[1]) + 1)