@forexhero You use logic, generally if x happens do this, if y happens do this, The blocks under buy/sell won't work and should be in a separate tree, to use a flag it needs to be checked above where it's used. Put a shared project here rather than a picture, can see more of whats happening.
F