• Contents
  • Search
  • Welcome!
  • Computer Requirements
  • File Types
  • File Paths
  • Backups
  • Examples and Tutorials
    • Tutorial 1 - SPY Crossover
    • Tutorial 2 - Simple Optimization
    • Tutorial 3 - Simple Scan
    • Tutorial 4 - ETF Rotation
  • Software User Interface
    • Common Menus
      • File Menu
      • Edit Menu
      • View Menu
      • Data Menu
      • Run Menu
      • Window Menu
      • Help Menu
    • Child Window Menus
      • Chart Menu
      • Graph Menu
      • List Menu
      • Log Menu
      • Plot Menu
      • ResGraph Menu
      • Results Menu
      • Scan Menu
      • Script Menu
      • Compare Menu
      • Trades Menu
    • Bars and Panels
      • Tool Bar
      • Status Bar
      • Settings Panel
      • Debug Panel
    • Text Editor Windows
      • Script Windows
      • Log Windows
    • List Windows
      • Results Windows
      • Trade List Windows
      • Scan Windows
      • Trade Comparison Windows
      • Other List Windows
    • Graphical Windows
      • Daily Stats Graphs
      • Optimization Results Graphs
      • Candlestick/Bar Charts
      • Trade Plots and Analysis
    • Program Options Dialog
    • Report Options Dialog
    • RealTest Function Key Reference
  • Importing Bar Data
    • Norgate Data Import
    • Yahoo Import
    • Tiingo Import
    • CSV Import
    • MetaStock Import
    • Multi-Source Import
    • The Symbol Information File
    • Futures Symbol Information
    • The Event List File
  • Running Scans
  • Running Tests
    • Multiple Tests and Optimization
    • Walk-Forward Tests
  • Using an Imported Trade List
  • Using Command Line Mode
  • Using Multiple Instances
  • Analyzing Test Results
    • Test Summary Report
    • Test Details Log
  • Trading Your System
    • Tomorrow's Orders
    • OrderClerk
    • CSV Order Baskets
    • IB Rebalance Tool
    • Alera Signal Files
    • Daily Setups Scan
    • Multi-Row Scan
    • Test Output Scan
  • Backtest Engine Details
    • Asset Allocation and Position Sizing
    • Capacity Constraints
    • Compounding
    • Split Handling
    • Dividend Handling
    • Intraday Fills With Daily Bars
    • Intraday Fill Sequence Assumptions
    • Bar Sizes and Multiple Timeframes
    • Calculation of Trade Excursions
    • The Current Bar in Formula Evaluation
    • Specifying a Time Stop
    • Number of Bars Required for Functions and Indicators
    • Scaling In or Out of Positions
    • Referring to Past Trades in Strategy Formulas
    • Testing Multi-Currency Strategies
  • Realtest Script Language
    • Bar Offsets
    • Column and Format Specifiers
    • Date Constants
    • Other Constants
    • Symbol Constants
    • String Values
    • Script Comments
    • File Path Specification
    • Script Sections
      • Import Section
      • Data Section
        • One-Pass Data Formulas
        • Self-Referential Items
        • Bar-Size-Specific Items
      • TestData Section
      • Scan and TestScan Sections
      • Settings Sections
      • Library Section
      • Strategy Section
        • Strategy Names
        • Special Strategy Types
        • Strategy Elements
        • Strategy Element Value Types and Defaults
      • Parameters Section
      • Results Section
      • Graphs Section
      • Trades Section
      • Charts Section
      • Include Section
    • Formula Syntax
      • Operators
      • Formula Evaluation
      • Breadth Tags / Cross-Sectional Functions
      • External Symbol or Strategy Reference
      • Special Syntax for Individual Futures Contract Testing
      • Statistics Values in Formulas
    • Syntax Element Categories
      • Script Sections
      • Settings
      • Import Specification
      • Strategy Elements
      • Bar Data Values
      • Indicator Functions
      • Multi-Bar Functions
      • Cross-Sectional Functions
      • General-Purpose Functions
      • String Functions
      • Stock/Contract Information
      • Current Position Information
      • Test Statistics Arrays
      • Trade Record Values
      • Trade Statistics Functions
    • Syntax Element Details
      • #Avg
      • #ByMkt
      • #ByCII
      • #ByIndu
      • #BySect
      • #Count
      • #Highest
      • #Lowest
      • #Median
      • #OnePerDate
      • #OnePerSym
      • #PercentRank
      • #Rank
      • #StdDev
      • #Sum
      • ?CII
      • ?Currency
      • ?Domicile
      • ?Exchange
      • ?Industry
      • ?Name
      • ?Sector
      • ?Strategy
      • ?Symbol
      • ?Type
      • Abs
      • AccountSize
      • Adjustment
      • ADX
      • Allocation
      • Ambiguity
      • Arg1-Arg9
      • ATR
      • Avg or MA
      • BarDate
      • BarNum
      • BarsHeld
      • BarSize
      • BarsLeft
      • BarStart
      • BBBOT
      • BBTOP
      • Benchmark
      • Bound
      • CashInOut
      • CashList
      • Category (reference)
      • Category (definition)
      • CCI
      • Charts
      • CIIFamily
      • CIILevel
      • Close or C
      • Combined (function)
      • Combined (section)
      • Commission
      • Compounded
      • Constituency
      • Correl
      • Cosine
      • Cross
      • CountTrue
      • CRSI
      • CSVDateFmt
      • CSVFields
      • CSVFile
      • CSVNumFmt
      • Currency
      • Data
      • DataFile
      • DataPath
      • DataSource
      • DataType
      • Date
      • DateBars
      • Day
      • DayOfWeek
      • DayOfYear
      • Days
      • DebugEntry
      • DebugExit
      • DebugTargetStop
      • Dividend
      • DllDataCalc
      • EndDate (Import)
      • EndDate (Setting)
      • EndOfMonth
      • EndOfWeek
      • EntryDate
      • EntryLimit
      • EntryRank
      • EntryScore
      • EntrySetup
      • EntrySkip
      • EntryStop
      • EntryTime
      • EntryTradeValue
      • Event
      • EventListFile
      • ExchangeMap
      • ExcludeIf
      • ExcludeList
      • ExitLimit
      • ExitLimitTime
      • ExitRank
      • ExitRule
      • ExitScore
      • ExitStop
      • ExitStopTime
      • ExitTime
      • ExitTradeValue
      • Exp
      • Extern
      • Extra
      • F.xxx / F.xxx.Date
      • FillFraction
      • FillPrice
      • FillPriceAvg
      • FillPriceMax
      • FillPriceMin
      • FillValue
      • FilterNum
      • Format
      • Fundamentals
      • FunBar
      • Graphs
      • HAvg or HMA
      • High or H
      • Highest or HHV
      • HolidayList
      • HVOL
      • IF
      • Import
      • Include
      • IncludeList
      • InXXX
      • InfoID
      • InfoDelist / InfoExpiry
      • InfoFloat
      • InfoGICS
      • InfoMargin
      • InfoShares
      • InfoTRBC
      • InList
      • IsNan
      • IsOrder
      • IsSetup
      • Item
      • KAMA
      • KBBOT
      • KBTOP
      • KeepAdjusted
      • KeepRedundant
      • KeepTrades
      • Kurtosis
      • Left
      • Length
      • Library
      • LimitExtra
      • LimitSlip
      • LinReg
      • ListNum
      • Log
      • LogFile
      • Low or L
      • Lowest or LLV
      • MACD
      • MACDH
      • MACDS
      • MarkToMarket
      • Match
      • Max
      • MaxN
      • MaxEntries
      • MaxExposure
      • MaxInvested
      • MaxOrders
      • MaxPositions
      • MaxSameCat
      • MaxSameSym
      • MaxSetups
      • MDI
      • Median
      • Mid
      • Min
      • MinN
      • Month
      • NextOpen
      • NoDefaultCols
      • NoHeader
      • NoNan
      • Notes
      • NoWeekends
      • NumBars
      • OBV
      • Open or O
      • OrderClerkFolder
      • OrderNote
      • OrderPrice
      • OrderRank
      • OrderSettings
      • OrdersFile
      • OrdersInclude
      • OrdersLiveData
      • OrdersMktAsLmtPct
      • OrdersMode
      • OrdersNetLiq
      • OrdersTemplate
      • OrderSum
      • PadAlignSym
      • Padding
      • Parameters
      • PctChg or ROC
      • PDI
      • Peak
      • PeakBars
      • PercentRank
      • PercentRankN
      • PointValue
      • PrevExitLimit
      • PrevExitStop
      • Product
      • PositionSum
      • PriceRound
      • QtyFinal
      • QtyRound
      • QtyType
      • Quantity
      • Random
      • RandomSeed
      • Range or R
      • Rank
      • RankN
      • Reduce
      • Replace
      • Results
      • ResultsFile
      • Right
      • RiskFreeRateSym
      • Round
      • RSI
      • RRSI
      • RsiF
      • S.Alloc
      • S.BPx
      • S.CashInOut
      • S.Comms
      • S.Compounded
      • S.Date
      • S.DDBars
      • S.DDDlr
      • S.DDPct
      • S.Divs
      • S.Entries
      • S.EntryOrders
      • S.Equity
      • S.Exits
      • S.Exposure
      • S.First
      • S.Invested
      • S.LossBars
      • S.LossDlr
      • S.Losses
      • S.LossPct
      • S.LossPctAlloc
      • S.M2M
      • S.MAE
      • S.MFE
      • S.MaxAlloc
      • S.MaxDDBars
      • S.MaxDDDlr
      • S.MaxDDPct
      • S.MaxEquity
      • S.MinAlloc
      • S.MinEquity
      • S.NetDlr
      • S.NetFx
      • S.NetPct
      • S.Number
      • S.Positions
      • S.RiskFreeRate
      • S.Setups
      • S.Slips
      • S.StartEquity
      • S.Stops
      • S.Targets
      • S.TradeBars
      • S.TradeDlr
      • S.TradePct
      • S.TradePctAlloc
      • S.TWEQ
      • S.Usage
      • S.WinBars
      • S.WinDlr
      • S.WinPct
      • S.WinPctAlloc
      • S.Wins
      • SAR
      • SarF
      • SaveAs
      • SaveChartsTo
      • SavePositionsAs
      • SaveScanAs
      • SaveStatsAs
      • SaveTestListAs
      • SaveTradesAs
      • SaveTradesType
      • Scan
      • ScanInclude
      • ScanSettings
      • Select
      • Sequence
      • Settings
      • SetupRank
      • SetupScore
      • SetupSum
      • Shares or Contracts
      • Side (position)
      • Side (strategy)
      • Sign
      • SinceHigh
      • SinceLow
      • SinceTrue
      • Sine
      • Skewness
      • SkipTestIf
      • Slippage
      • Slope
      • Spearman
      • Split
      • Sqr
      • SS
      • StartDate
      • StartDate
      • StatsGroup
      • StdDev
      • STOC
      • Strategy
      • StrategyScore
      • StratNum
      • StopSlip
      • Sum
      • SumSince
      • SumSQ
      • Symbol
      • SymChangeList
      • SymInfoFile
      • SymNum
      • T.Bars
      • T.CommIn
      • T.CommOut
      • T.DateIn
      • T.DateOut
      • T.Div
      • T.Fraction
      • T.FxIn
      • T.FxOut
      • T.Highest
      • T.Lowest
      • T.NetFx
      • T.NetPct
      • T.Points
      • T.PriceIn
      • T.PriceOut
      • T.Profit
      • T.PtVal
      • T.QtyIn
      • T.QtyOut
      • T.Reason
      • T.Side
      • T.SlipIn
      • T.SlipOut
      • T.SplitIn
      • T.SplitOut
      • T.Strat
      • T.TimeIn
      • T.TimeOut
      • T.ValueIn
      • T.ValueOut
      • Tangent
      • Template
      • TargetPrice
      • TestInclude
      • TestData
      • TestName
      • TestOutput
      • TestScan
      • TestScanAllDates
      • TestSettings
      • This
      • TickSize
      • TLAdjusted
      • TLDateFmt
      • TLFields
      • TLStratName
      • TLTimeShift
      • ToDate
      • ToLower
      • ToNum
      • ToUpper
      • Top
      • TopDownMode
      • TradeList
      • Trades
      • TradeStatAvg
      • TradeStatMax
      • TradeStatMin
      • TradeStatStdDev
      • TradeStatSum
      • Trough
      • TroughBars
      • TrueInRow
      • TrueRange or TR
      • UntilTrue
      • Update
      • UseAvailableBars
      • Using
      • Volume or V
      • WalkForward
      • WAvg or WMA
      • Week
      • WhenTrue
      • XAvg or EMA
      • Year
      • YInt
Match: