I'm attempting to code in EL how to check that I haven't exited a position in the prior period/bar/interval. If marketposition = 1 or 0, or -1 tells me if I have a long, no or short position respectively for the current bar, then marketposition(1) tells me if I have a position for the prior bar. BUT, would I simply check marketposition(1) = 0 to see if I exited the prior period, thinking that if marketposition(1) = 0 I have no position therefore I didn't exit a position? Thanks to all my readers.