NEWCONTRACTS

Top  Previous  Next

Keyword Description

Sizes positions

Class

Expression

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

 

 

 

l

 

 

Syntax

NEWCONTRACTS

 

Example

Sample code

My_Position_Size = (TOTALEQUITY * .005) / NEWRISK ' risk half a percent

IF SECTORPOSITIONS < 2 THEN NEWCONTRACTS = My_Position_Size 

 

ThumbTack white

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.