Test Functions

Top  Previous  Next

The Test functions control test level behavior.

 

 

 

 

AddStatistic

 

adds a new custom statistic which will show up on the summary list

AbortTest

 

stops the current parameter test only. The simulation will continue with the next parameter test

AbortSimulation( "message" )

 

aborts the simulation

UpdateOtherExpenses

 

adds or subtracts other expenses

SetAutoPriming( true/false )

 

use in Before Simulation Script to disable auto priming.

SetGeneratingOrders( true/false )

 

use in Before Test script to set whether a test run is going to generate orders, or just run a normal backtest.

SetDisplayOrderReport( true/false )

 

Sets whether the order report will display at the end of the order generation run. Defaults to true at the beginning of each test run.

GetSteppedParameter( paramIndex, paramValueIndex )

 

Returns the attributes of each stepped parameter.

SetStartingEquity( equityValue )

 

Dynamically sets the starting equity of the test. Use in the Before Test script.

 

SetStartEndDates( startDate, endDate )

 

Dynamically sets the start and end dates of the test. Use in the Before Test script. Must be between the original user set start end dates because that controls how much data was loaded.

SetSilentTestRun( true/false )

 

Used in the Before Test Script to suppress any output from the test run.

SetGoodnessToChart( listofstats)

 

Creates multi parameter charts (contour and 3D) for all status in the list, such as ( "Mar, Sharpe" )

SetListNonTradedInstruments( true/false )

 

Sets the preference to list all the instruments in the portfolio that did not trade. If set to true, then all non traded instruments will be listed in the trade chart with a zero entry. If set to false, then only the instruments with trades will be listed in the trade chart. This

SetTimeIncrement( HHMM )

 

Used in the Before Simulation script to set the time increment for the test. Defaults to the smallest time increment for all data in all instruments in the test.

SetEarliestTime( HHMM )

 

Used in the Before Simulation script to set the earliest time each day on which the test loop will start. Defaults to the earlist time for any bar of data for all instruments in the test.

SetLatestTime( HHMM )

 

Used in the Before Simulation script to set the latest time each day on which the test loop will end. Defaults to the latest time for any bar of data for all instruments in the test.