OmniTrader Professional Forum - Omni Pilot Discussion
How to Limit number of Positions

^ Top
rkmtrader

Posts: 2

Joined: 3/29/2013

User Profile
 
Subject : How to Limit number of Positions
Posted : 5/20/2015 11:25 AM
Post #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.


https://www.omnitrader.com/currentclients/proforum/thread-view.asp?threadid=4272&posts=1