NEWSHARES

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

NEWSHARES

 

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 shares 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.

Suppose you are already holding 2 different stocks in the automotive sector when a new GM trade is presented by your system.  Accepting the GM trade would put the number of open positions in the automotive sector over 2 so this statement evaluates to false or zero.  As such, the trade will be rejected and NEWSHARES 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.