NEWRISK

Top  Previous  Next

Keyword Description

Risk in a new trade

Class

Function

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

 

 

 

l

 

 

Syntax

NEWRISK

 

Return Value

Returns the dollar amount of RISK for a new trade being presented for Initital Sizing.

Example

Sample code

NEWCONTRACTS = (.01 * TOTALEQUITY) / NEWRISK 

 

ThumbTack white

Risk is per contract or share. The default value of NEWRISK in Mechanica is the (dollar value of the) difference between the closing price yesterday, and the exit price today.  If no exit stop is specified in the SIG code all trades will be rejected.  Why? Because with the use of an exit stop or USERDEFINEDRISK Mechanica can't calculate risk.

 

See also:

TOTALRISK, USERDEFINEDRISK