Navigation: Realtest Script Language > Script Sections >

Settings Sections

 

 

 

 

RealTest provides many settings which can be optionally specified in your scripts.

The Settings section is the place to specify settings that will apply in every run mode.

Only use the following run-mode-specific sections when you need different settings for different modes.

Use ScanSettings for settings to apply only apply when running a Scan.

Use TestSettings  for settings to apply when running a Test, TestScan, or Optimization.

Use OrderSettings for settings to apply only when generating orders.

Run-mode-specific settings sections must appear after the general Settings section in a script if both are present.

Any setting in a run-mode-specific settings section will override the same setting in the general settings section when the script is being run in that particular mode.

Any setting in a run-mode-specific settings section that is not also in the general settings section will get its default value when the script is not run in that mode.

A few of these script-specifiable settings can also be specified interactively using the Settings Panel.

For those settings that appear on that panel, if the setting is not specified in the script then the value currently showing on the panel will be used.

When a script is running, the settings panel will temporarily display any settings that the script has specified that also appear on the panel.

When the run is finished, most settings panel settings are restored to their prior values. In other words, most script-specified settings do not persist in the user interface.

Exceptions to the above are: DataFile, BarSize, and UseAvailableBars. Those persist on the settings panel because Data Section arrays that persist in memory are dependent on those settings and would need to be recalculated if they were changed.

The following is a table of all available settings with their types and defaults:

Setting

Type

Default

AccountSize

dollars

settings panel

BarSize

Daily, Weekly, Monthly

settings panel

Currency

USD,EUR,GBP,CAD,AUD,etc.

none

DataFile

folder path and file name

settings panel

EndDate

date

settings panel

ExchangeMap

folder path and file name

none

HolidayList

folder path and file name

none

KeepTrades

see topic for choices

settings panel

LegacyMode

True or False

False

NoDefaultCols

True or False

False

NoHeader

True or False

False

NumBars

number

settings panel

OrderClerkFolder

folder path

none

OrdersFile

folder path and file name

none

OrdersLiveData

True or False

False

OrdersMktAsLmtPct

number

none

OrdersMode

see topic for choices

Text

OrdersNetLiq

folder path and file name

none

OrdersTemplate

folder path and file name

none

RandomSeed

number

none

ResultsFile

folder path and file name

none

RiskFreeRateSym

symbol (no leading $)

none

SaveChartsTo

folder path

none

SavePositionsAs

folder path and file name

none

SaveScanAs

folder path and file name

none

SaveStatsAs

folder path and file name

none

SaveTestListAs

folder path and file name

none

SaveTradesAs

folder path and file name

none

SaveTradesType

Compact or Full

Full

SkipTestIf

formula (references parameters)

none

StartDate

date

settings panel

StatsIncludeCash

True or False

False

SymChangeList

folder path and file name

none

TestName

string

settings panel / script name

TestOutput

see topic for choices

settings panel

TestScanAllDates

True or False

False

UseAvailableBars

True or False

settings panel

 

 

 

 

 

Copyright © 2020-2024 Systematic Solutions, LLC