• Contents
  • Search
  • Welcome!
  • Computer Requirements
  • File Types
  • File Paths
  • 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
      • 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
      • List Windows
    • Graphical Windows
      • Daily Stats Graphs
      • Optimization Results Graphs
      • Candlestick/Bar Charts
      • Trade Plots and Analysis
    • Optimization Dialog
    • Walk-Forward Tests
    • Program Options Dialog
    • RealTest Function Key Reference
  • Importing Bar Data
    • Norgate Data Import
    • Yahoo Import
    • CSV Import
    • MetaStock Import
    • Multi-Source Import
    • The Symbol Information File
    • Futures Symbol Information
    • The Event List File
  • Running Scans
  • Running Tests
  • Using Command Line Mode
  • Analyzing Test Results
    • Test Summary Report
    • Test Details Log
  • Trading Your System
    • Tomorrow's Orders
    • CSV Order Baskets
    • Daily Setups Scan
    • Multi-Row Scan
    • Test Output Scan
  • Backtest Engine Details
    • Asset Allocation and Position Sizing
    • 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
  • Using an Imported Trade List
    • Importing AmiBroker Trades
    • Importing IB Flex Query Output
  • Realtest Script Language
    • Bar Offsets
    • Column and Format Specifiers
    • Date Constants
    • String Values
    • Script Comments
    • Script Sections
      • Import Section
      • Data Section
        • One-Pass Exponential Series
        • Self-Referential Items
        • Bar-Size-Specific Items
      • Scan and TestScan Sections
      • ScanSettings and TestSettings 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
      • Scan Settings
      • Test 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
      • Daily Test Statistics
      • Trade Record Values
    • Syntax Element Details
      • #Avg
      • #Count
      • #Highest
      • #Lowest
      • #Median
      • #Percentile
      • #Rank
      • #StdDev
      • #Sum
      • ?CII
      • ?Currency
      • ?Domicile
      • ?Exchange
      • ?Industry
      • ?Name
      • ?Sector
      • ?Symbol
      • ?Type
      • Abs
      • AccountSize
      • Adjustment
      • ADX
      • Allocation
      • Ambiguity
      • ATR
      • Avg or MA
      • BarDate
      • BarNum
      • BarsHeld
      • BarSize
      • BarsLeft
      • BarStart
      • BBBOT
      • BBTOP
      • Benchmark
      • Bound
      • CashInOut
      • Category
      • Category
      • CCI
      • Charts
      • CIIFamily
      • CIILevel
      • Close or C
      • Combined
      • Commission
      • Compounded
      • Constituency
      • Correl
      • CountTrue
      • Cross
      • CSVFields
      • Data
      • DataFile
      • DataPath
      • DataSource
      • Date
      • DateBars
      • Day
      • DayOfWeek
      • DayOfYear
      • DebugEntry
      • DebugExit
      • DebugTargetStop
      • Dividend
      • EndDate
      • EndDate
      • EndOfMonth
      • EndOfWeek
      • EntryLimit
      • EntryScore
      • EntrySetup
      • EntrySkip
      • EntryStop
      • EntryTime
      • Event
      • EventListFile
      • ExcludeIf
      • ExcludeList
      • ExitLimit
      • ExitLimitTime
      • ExitRule
      • ExitStop
      • ExitStopTime
      • ExitTime
      • Exp
      • Extern
      • Extra
      • FillPrice
      • FillPriceAvg
      • FillPriceMax
      • FillPriceMin
      • FillValue
      • FilterNum
      • Format
      • Graphs
      • HAvg or HMA
      • High or H
      • Highest or HHV
      • HolidayList
      • HVOL
      • IF
      • Import
      • Include
      • IncludeList
      • InXXX
      • InfoFloat
      • InfoGICS
      • InfoShares
      • InfoTRBC
      • IsNan
      • Item
      • KeepTrades
      • KBBOT
      • KBTOP
      • Left
      • Length
      • Library
      • LimitExtra
      • LimitSlip
      • LinReg
      • ListNum
      • Log
      • LogFile
      • Low or L
      • Lowest or LLV
      • MACD
      • MACDH
      • MACDS
      • Match
      • Max
      • MaxEntries
      • MaxInvested
      • MaxPositions
      • MaxSameCat
      • MaxSetups
      • MDI
      • Median
      • Mid
      • Min
      • Month
      • NextOpen
      • NoDefaultCols
      • Not
      • NumDays
      • OBV
      • Open or O
      • OrdersTemplate
      • Padding
      • Parameters
      • PctChg or ROC
      • PDI
      • Percentile
      • PercentileN
      • PointValue
      • PrevExitLimit
      • PrevExitStop
      • Pyramid
      • Quantity
      • Random
      • Range or R
      • Rank
      • RankN
      • Reduce
      • Replace
      • Results
      • Right
      • Round
      • RSI
      • RRSI
      • RsiF
      • S.Alloc
      • S.BPY
      • S.Comms
      • S.Compounded
      • S.Date
      • S.DDBars
      • S.DDDlr
      • S.DDPct
      • S.Divs
      • S.Entries
      • S.Equity
      • S.Exits
      • S.Exposure
      • S.First
      • S.LossBars
      • S.LossDlr
      • S.Losses
      • S.LossPct
      • S.M2M
      • S.M2MA
      • S.M2MF
      • S.MaxAlloc
      • S.MaxDDBars
      • S.MaxDDDlr
      • S.MaxDDPct
      • S.MaxEquity
      • S.MinAlloc
      • S.MinEquity
      • S.NetBars
      • S.NetDlr
      • S.NetPct
      • S.Number
      • S.Positions
      • S.Setups
      • S.Slips
      • S.StartEquity
      • S.Stops
      • S.Targets
      • S.Usage
      • S.WinBars
      • S.WinDlr
      • S.WinPct
      • S.Wins
      • SAR
      • SaveAs
      • SaveScanAs
      • SaveStatsAs
      • SaveTradesAs
      • SaveTradesType
      • Scan
      • ScanSettings
      • Select
      • SetupScore
      • Shares or Contracts
      • Side
      • Sign
      • SinceHigh
      • SinceLow
      • SinceTrue
      • Slippage
      • Slope
      • Split
      • Sqr
      • SS
      • StartDate
      • StartDate
      • StdDev
      • STOC
      • Strategy
      • StopSlip
      • Sum
      • SumSQ
      • Symbol
      • SymInfoFile
      • T.Bars
      • T.CommIn
      • T.CommOut
      • T.DateIn
      • T.DateOut
      • T.Div
      • T.Fraction
      • T.Highest
      • T.Lowest
      • 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
      • Template
      • TestName
      • TestOutput
      • TestScan
      • TestSettings
      • This
      • TickSize
      • ToDate
      • ToLower
      • ToNum
      • ToUpper
      • Top
      • TradeList
      • Trades
      • TrueInRow
      • TrueRange or TR
      • UntilTrue
      • Update
      • UseAvailableBars
      • Using
      • Volume or V
      • WalkForward
      • WAvg or WMA
      • Week
      • WhenTrue
      • XAvg or EMA
      • Year
      • YInt
Match: