~POSITION

Top  Previous  Next

Keyword Description

Category initialization.

~POSITION initializes, or defines the POSITION category on the Resize page.

Categories are a type of shorthand; When any of the Category-legal keywords listed at the bottom of this topic are placed underneath a Category keyword such as ~POSITION, they behave as if "POSITION" was their keyword prefix.

Class

Category

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

 

 

 

 

 

l

Syntax

~POSITION

 

Example

Sample code

~POSITION                                ' initializes POSITION category

IF RISK > TOTALEQUITY * .2 THEN _

MULTIPLIER = .9                ' resize statement

 

Pseudo-code

IF  PositionRISK > Total Equity * .2  MULTIPLIER = .9

 

Explanation

If the current open risk in this Position is greater than 20% of total equity, then reduce the risk in this Position by 10%.

ThumbTack white

Under the ~POSITION Category:

Each open position forms a unique set, thus, each set has one, and only one element. An open Wheat position in System 1 forms a set. An open Wheat position in System 2 forms another set. If five (5) different systems each have open positions in Wheat, then there will be five unique Wheat sets in the Position category.