Identify specific volume bar and mark it as a reference bar

I am trying to mark a specific volume bar that is greater than the previous volume bar. I want to be able to mark this bar as a reference bar within strategy builder so if there is a subsequent bar that is less than or greater than the marked bar, the strategy builder will act on it.

In the image provided, the red bar under the red arrow exceeded the green bar just before it. I want to mark this red arrow bar and its statistics so the strategy can reference this bar later. I want the strategy to know the next 2 red volume bars are (1) red and (2) less than the first reference bar. Then I need it to know that the 3rd bar under the green arrow is greater than the referenced bar (under the red arrow).

So, I’m not understanding how to mark a specific bar after a condition is met.

Thanks for any help!

here are 2 more visualizations of what I’m trying to achieve. In each of these, I want bar under the red arrow to be the reference bar, then be able to program a strategy to us that bar to make a decision. Step one is the bar under the red arrow must happen, then it is marked. After that, step 2 would have to be above that referenced bar to have its condition met. Like sequential conditions.