It has nothing to do with the order count limitation. This is a normal behavior, because you set a pending buy stop order at a price under the actual market price, so this pending order is automatically converted into a market one.
If you want to prevent this to happen, just add a condition to test if the market price is under your long order threshold price: (and vice-versa for the short order)
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue