I have created the following entry logic. The variable "ONHigh" is above the market and the variable "ONLow2" is below the market. My problem is that the strategy now only trades short, although it should trade long when the market goes to "ONLow2". I can't figure out why it doesn't trade long and short, depending on where the market goes. The code seems correct, because, when I delete the short limit entry shown here, then it takes all the long trades. Am I missing some restrictions that might cause this phenomenon?

Comment