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 or TestScan.
Use OptimizeSettings for settings to apply specifically when running an 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 and BarSize. 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
|
AccountType
|
CashNextDay, CashSameDay, Margin
|
Margin
|
AllowSameName
|
True or False
|
False
|
AlwaysImport
|
True or False
|
False
|
BarSize
|
Daily, Weekly, Monthly, Quarterly, Yearly
|
settings panel
|
CashIntPct
|
number
|
0
|
CommCurrency
|
USD,EUR,GBP,CAD,AUD,etc.
|
none
|
Currency
|
USD,EUR,GBP,CAD,AUD,etc.
|
none
|
DataFile
|
folder path and file name
|
settings panel
|
DateDisplay
|
Excel-style date definition string
|
M/d/yy
|
DateInput
|
DMY or MDY
|
MDY
|
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
|
MarginIntPct
|
number
|
none
|
NumBars
|
number
|
settings panel
|
OptimizeSettings
|
various
|
various
|
OrderClerkFolder
|
folder path
|
none
|
OrdersFile
|
folder path and file name
|
none
|
OrdersFreeCash
|
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
|
OrdersUseQtyIn
|
True or False
|
False
|
RandomSeed
|
number
|
none
|
ReportsFolder
|
folder path
|
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
|
ScanNoDefCols
|
True or False
|
False
|
ScanNoHeader
|
True or False
|
False
|
ScanNoWindow
|
True or False
|
False
|
ShortLoanIntPct
|
number
|
0
|
ShortPrcdsIntPct
|
number
|
0
|
SkipTestIf
|
formula (references parameters)
|
none
|
StartDate
|
date
|
settings panel
|
SymChangeList
|
folder path and file name
|
none
|
TestName
|
string
|
settings panel or script name
|
TestOutput
|
see topic for choices
|
settings panel
|
TestScanAllDates
|
True or False
|
False
|
UseAvailableBars
|
True or False
|
False
|
|