get the bar number (using barindex) when condition A “True” ……. then store the “High” of that bar ……now check after condition B “true” when it cross/close above store value ........
Condition A is . Buy = Close > Ema(C,50) and Condition B
Can u help me how to code this?