RealTest User Guide
RealTest User Guide

 

 

Navigation: RealTest Script Language > Script Sections > Strategy Section >

Strategy Element Value Types and Defaults

 

 

 

 

The following table lists each of the above strategy elements along with its value type and default (what happens if this element is not included in a strategy):

Element Name

Element Type

Value Type

Default Value

Allocation

formula

dollars

full account size

AllowMissingBar

constant

True or False

True

AllowNoVolume

constant

True or False

False

Ambiguity

constant

Default,Stop,Target,Neither

Default

ApplyInterest

constant

True or False (Benchmark only)

False

BarSize

constant

Daily,Weekly,Monthly,Quarterly,Yearly

the Settings bar size

CalendarSym

constant

symbol (no leading $)

none

CashInOut

formula

dollars

0

CashList

file

file path

none

Category

formula

number

0 (none)

CloseSlip

formula

dollars per share

0 (use slippage)

Collateral / FuturesMargin

formula

dollars

InfoMargin

Commission

formula

dollars

0 (none)

Compounded

constant

True or False

inferred from Quantity

DebugEntry

formula

string or number

none

DebugExit

formula

string or number

none

DebugTargetStop

formula

string or number

none

DynamicSizing

constant

True or False

False

EntryLimit

formula

price

0 (none)

EntryPhase

formula

number (constant; lower phases first)

benchmarks first, then all strategies

EntryScore

formula

number (highest first)

alphabetical by symbol

EntrySetup

formula

condition

0 (false)

EntrySkip

formula

condition

0 (false)

EntryStop

formula

price

0 (none)

EntryTime

constant

logical time of day*

NextOpen

EntryTradeValue

formula

number

0

Exit1 - Exit9

formula

Limit(price) or Stop(price), with an optional exit time and quantity (a tranche)

none

ExitLimit

formula

price

0 (none)

ExitLimitQty

formula

shares

entire position

ExitLimitTime

constant

logical time of day*

Intraday

ExitQty

formula

shares

entire position

ExitRule

formula

condition

0 (false)

ExitScore

formula

number (ranks open positions for ExitRank)

none (no ranking)

ExitStop

formula

price

0 (none)

ExitStopQty

formula

shares

entire position

ExitStopTime

constant

logical time of day*

Intraday

ExitTime

constant

logical time of day*

NextOpen

ExitTradeValue

formula

number

0

FeesInOut

formula

dollars

0

FeesList

file

file path

none

GreedyScoring

constant

True or False

False

HolidayList

file

file path

none

IgnoreDividends

constant

True or False

False

InitialRisk

formula

price distance per share or contract

0 (none)

LimitExtra

formula

dollars per share

0 (none)

LimitSlip

formula

dollars per share

0 (use Slippage)

MarkToMarket

constant

True or False

True

MaxCatExp

formula

percent

unlimited

MaxCatInv

formula

dollars

unlimited

MaxEntries

formula

count

unlimited

MaxExposure

formula

percent

unlimited

MaxInvested

formula

dollars

unlimited

MaxLongExp

formula

percent

unlimited

MaxLongInv

formula

dollars

unlimited

MaxNetExp

formula

percent

unlimited

MaxNetInv

formula

dollars

unlimited

MaxNewExp

formula

percent

unlimited

MaxNewInv

formula

dollars

unlimited

MaxNewPos

formula

count

unlimited

MaxPerTurn

formula

count

1

MaxPositions

formula

count

unlimited

MaxSameCat

formula

count

unlimited

MaxSameSym

formula

count

1 for strategy, unlimited for statsgroup or combined

MaxSetups

formula

count

unlimited

MaxShortExp

formula

percent

unlimited

MaxShortInv

formula

dollars

unlimited

MaxSymExp

formula

percent

unlimited

MaxSymInv

formula

dollars

unlimited

MinFreeCash

formula

dollars

unlimited

MinNetExp

formula

percent

unlimited

MinNetInv

formula

dollars

unlimited

OpenSlip

formula

dollars per share

0 (use slippage)

OrderExtra1..9

formula

number or string

none

OrderNote

formula

number or string

none

OrdersFile

constant

file path

none

OrdersFreeCash

file

file path

the Settings value, if any

OrdersIgnoreSplits

constant

True or False

False

OrdersMktAsLmtPct

formula

number

0

OrdersNetLiq

file

file path

the Settings value, if any

OrdersTemplate

file

file path

the Settings value, if any

OrdersUseTLEndDate

constant

True or False

False

PriceRound

formula

number

tick size

QtyFinal

formula

shares or contracts

Quantity formula value

QtyPrice

constant

OrderPrice or FillPrice

OrderPrice in default mode

QtyRound

formula

number

1

QtyType

constant

Shares, Value, Percent

Shares

Quantity

formula

shares or contracts

account size / entry price

Reduce

constant

True or False

False

RollCost

formula

dollars

0

SetupScore

formula

number (highest first)

alphabetical by symbol

SetupSkip

formula

condition

0 (false)

Side

constant

Long,Short,Both

Both

Slippage

formula

dollars per share

0 (none)

StartPercent

formula

percent

100

StopSlip

formula

dollars per share

0 (use Slippage)

StrategyScore

formula

number (highest first)

script sequence

TLAdjusted

constant

True or False

False

TLAdoptPos

constant

True or False

False

TLCalcZPrices

constant

True or False

False

TLDateFmt

constant

MDY or DMY

program options setting

TLDelim

constant

Comma, Semicolon, Tab

Comma (Semicolon when TLNumFmt is Comma)

TLEndDate

constant or date

0, Latest, or a date

0 (play back the entire trade list)

TLFields

constant

ordered list of field names

none

TLNumFmt

constant

Point or Comma

Point

TLStratName

constant

string

current strategy name

TLTimeShift

constant

number of hours

0

Tracker

constant

None, Hidden, Visible

None

TradeList

file

file path

no trade list

Using

special

strategy name(s)

not using anything

* For the above elements that specify "logical time of day" as their Value Type, available constant values are ThisClose, Intraday, NextOpen, or NextClose. Use the links to the corresponding Element Name topics for further information.

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC