@jstap awesome, thanks for your help.
does anyone have a clue on how to make the formula do the math the previous 100 bars, instead of just the previous one? i also have no clue how to make it print in percentage values how many times price goes past certain pip increments