Invokes money management by allowing you to specify the number of contracts or lots to trade.
Trades from all data items that are run in the same SIG process are put into a trade "bucket". To build a Portfolio Summary Report we take each trade from the bucket, in order, and examine it to see if it can be accepted based on position sizing rules, or if not, simply rejected.
Say a Soybean trade is presented by your system. And you already have open positions (either long or short) in Wheat and Oats on this day. Accepting the Soybean trade would put the number of open positions in the grain Group over 2 so this statement evaluates to false or zero. As such, the trade will be rejected and NEWCONTRACTS remains equal to zero. When we go to the Portfolio Summary Report Detail to evaluate the system we will see that the trade was rejected. No other information regarding it will be present in the Detail since for the purposes of the Portfolio Summary Report, it was never executed.
|