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.

 

All Test Object properties are used with the "test." object prefix.

 

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

GetStatisticValue(statisticName)

This function to return the value of any statistic available in the search "SetTotalParameterRuns" (1 hit in 1 file)

GetSteppedParameter(paramIndex, paramValueIndex)

Returns the attributes of each stepped parameter.

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.

SetAutoPriming(True/False)

Use in Before Simulation Script to disable auto priming.

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.

SetExitOpenSimulationPositions

This function will adjust and keep all the selected positions open for a simulation, just like what happens in order generation.

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(StatList)

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

SetIBPositionSynchOrderType

This function sets the order type used for an IB position synch process.

SetIBTransmit(true/false)

Use this function to globally set the transmit flag for all IB orders, including synch and roll orders.   Can be overridden by the order.transmit flag.

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

SetMarginEquity()

This function sets the “Max Margin/Equity to trade (%)” suite parameter.

SetMaxUnits()

Use this function to set the max units allowed in a normal parameter test.

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.

 

SetTotalParameterRuns()

This function is for use in the Before Simulation script.  When it is executed, it will override the total parameter runs for the simulation.  It Established the max number of parameter runs (steps) for the simulation.

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.

SetTotalParameterRuns()

This function for use generally in the Before Simulation script.  When it is used and has a value that is less than the number of test the stepped parameters would generate to achieve all the stepped values, the number of total parameter runs for the simulation would be limited to the number used with this function.

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.  Use a " + " sign to add expenses, use a " - " sign to remove expenses.

UpdateOtherExpenses()

Adds or subtracts other expenses.  Use a " + " sign to add expenses, use a " - " sign to remove expenses.

 


Edit Time: 11/7/2020 4:30:39 PM


Topic ID#: 422

 

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