I'm working on some logic in a custom strategy and need some help converting it to code. The basic flow is as follows: ConditionA = if ConditionB is true trigger a check to see if ConditionC is greater than ConditionC from 1 bar ago and if this is true iterate the loop, if it is not true or when it stops being true stop the loop and ConditionA is false. I want ConditionA to stay true even if ConditionB stops being so. ConditionB is just meant to trigger the check for ConditionC as I only care about that particular behavior if it began when ConditionB was true. I believe this logic of using a trigger condition to search for behaviors in indicators under specific circumstances could be a powerful tool. Any help or a general template would be greatly appreciated. Thank you.