Test level properties and functions  provide access to paths, and can control how test are executed or terminated.  They can also report features that are changed or added.

 

Test Function Name:

Description:

AbortSimulation("message")

Aborts the simulation

AbortTest

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

AddStatistic

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

GetSteppedParameter(paramIndex, paramValueIndex)

Returns the attributes of each stepped parameter.

SetAutoPriming(True/False)

Use in Before Simulation Script to disable auto priming.

SetAlternateSystem( sysIndex )

AlternateSystem object is a test function that provides access to any of the multiple systems that are executing in the current simulation test.

SetChartSimulationHtml

Function creates end of test tasks to automatically display a custom chart images in the area below the Stepped Parameter Summary Performance Table.

SetChartTestHtml

Function creates end of test tasks to automatically display a custom chart images in the area below the BPV Custom Graphs are displayed.

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.

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 earliest time for any bar of data for all instruments in the test.

SetGeneratingOrders(True/False)

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

SetGoodnessForWalkForward

Use this in the Before Test script to set the Goodness value used in Large Scale Optimization test.

SetGoodnessToChart( listofstats )

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

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.

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

SetSilentTestRun(True/False)

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

SetSmartFillExit(True/False)

Script control to sets or change the Global Smart Fill Exit parameter to True or False.

 

Useful when the system has multiple exits order placed for the same price bar.  Functionality , and requires this functionality.

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.

SetStartingEquity(equityValue)

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

 

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.

SortInstruments

Sorts the test level instrument list. The test level instrument list is all the instruments required for all systems in the test. See test.instrumentCount and test.instrumentList properties.

UpdateCapital()

Use to add/draw from test capital.

UpdateOtherExpenses

Adds or subtracts other expenses

 


Edit Time: 9/25/2017 09:09:54 AM


Topic ID#: 422

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software