STORE[n]

Top  Previous  Next

Keyword Description

Symbol specific storage

Class

Expression

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

 

 

 

Syntax

STORE[n] 

Where n is an integer 1-8

Return Value

Returns the symbol specific user input value previously input in Symbol Properties

Example

Sample code

' Resources 

SLIPPAGE = STORE[1]  ' saved slip

SIZING[2] = STORE[2] ' saved max size 

 

' Initial size code

IF MEMORY[1] > SIZING[2] THEN NEWCONTRACTS =_

SIZING[2] ELSE NEWCONTRACTS = MEMORY[1]

 

ThumbTack white

Accesses the STORE[n] values that you have saved for each market.  STORE[n] values can be assigned under the Edit Symbol Properties tab in the Symbol Manager (Data menu).

You can have up to eight STORE[n] variables for each instrument, and assign different variables for each market. In STORE[1], you might specify that slippage equals 4 ticks in the Deutschemark, and 20 ticks in Cotton. Then, in SIG code use the above sample. You could also save Optimal f numbers or the maximum number of contracts to trade for each market, etc.

STORE[n] can also be assigned programatically