~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
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%.
|