Subject : How to Limit number of PositionsPosted : 5/20/2015 11:25 AMPost #23439

How to limit number of trades placed by OMNIPILOT say to 10.
There is some object that says
BROKER.POSITIONS.COUNT
what I want is
if BROKER.POSITIONS.COUNT>10 then {stop trades, even if OT is keep giving signals}.

Where do I insert this code in OmniPilot. Any help in this regard is appreciated, or guide me to correct thread.