What type of code can I include to be sure as a extra redundancy to be sure only x positions only are entered at a time without making the strategy disable if and when it every tries to happen?
I do already use the NT parameters that are built in along with good logic in the code...just looking for (if possible) further redundancy to ensure that I am always only 1 contract in and if it tries to go 2 or more it simply disallows it BUT also keep the strategy running.
For example, if I only want to be in 1 contract (futures) at a time, I want to be sure I am never in more than that at a time. For the most part the code does great in that regard already. However, some circumstances like major news or some other anomaly may make the strategy go in for 2 and then continue with the strategy enabled or sometime detect the overfill and disable.
I would like to include some simple code to ensure...
Any ideas?

Comment