i am new in coding, i would like to store the result of an if condition, and when another if condition will occur do smthing.
Ex: if SMA cross MA put a value to 1.(condition 1)
then when DC12 cross Linreg do smth (condition2)
i can do it it it is at the same OnBarUpdate.
But give me the way for put a flag on 1 and with condition2 do smthing.
Thanks
Comment