I am looking for a way to code my strategies in Ninja so that I can control the number of entries per instrument in a single direction. For example I have algos that trade both CL and NG, and I don't want to be in more than let's say 3 lots for either instrument, in the same direction. So if I'm running 20 CL algos, I want to code them so that they can judge how many contracts are already in play, and then not enter any new trades if the max limit is reached. So let's say I am already long 3 CL, and another long CL algo gets a signal to enter, it will not do so because the maximum limit of 3 positions are already in the market. Ideally however, if it was a SHORT algo that wanted to execute, it would still be able to do so.