SYSPARAM

Top  Previous  Next

Keyword Description

System parameter management

Class

Function

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

 

 

 

l

l

 

Syntax

SYSPARAM[n]  

Where n is an integer 1-15

Return Value

Returns the number previously stored in the specified field by user in his System Parameter Manager.

Example

Sample code

MEMORY[1] = (.01 * TOTALEQUITY) / NEWRISK)

NEWCONTRACTS = MEMORY[1] * SYSPARAM[1]

 

Explanation

Mechanica internally tracks and associates which SYSPARAM[n] value(s) is/are associated with the currently processing system.

ThumbTack white

SYSPARAM[n] associates a specific value with a specific system number; it is a function that returns values entered in the System Parameters table (available under both the Signals menu and the Position Sizing menu by choosing the Sysparam Manager option).

The value for each SYSPARAM[n] variable is assigned in the System Parameters dialog box under the System Manager option (Signals menu).

Each system can have up to 15 different SYSPARAM[n] variables, each with different values.

The System Parameters dialog box will accommodate multiple SYSPARAM[n] values for a single system. For example, your entries might look something like this.

System Parameters

System  Parameter  Value     Description

   5        1       .0050      <text>

   6        1       .0075

   7        1       .0050

   7        2       .0055

   7        3       .0060

   7        4       .0065

   8        1       .3000

In this example, systems 5 and 6 have only one value each, for SYPARAM[1]. System 7, on the other hand, defines discrete values for SYPARAM[1 - 4].  This keyword might be used on the Initial Size page for weighting different systems (as shown in the example below), or on the Resize page to resize some systems more aggressively than others.