I have a suspicion that my code is not executing when my market position is long. Which is my criteria for the code to execute. Is it the case that simply checking my current market position is not enough to trigger the code? If that is the case is there another way to only execute the code once my market position is no longer flat?
I also have it set to calculate on each tick
Any help is much appreciated!!

Comment