General Properties

Top  Previous  Next

The following properties refer to the test. These properties will be the same regardless from what system they are accessed.

 


 


name

 

the name of the current test suite.

testStart

 

the start date of the test. The first trading day equal to or after the user entered start date, or the start of data, which ever is later.

testEnd

 

the end date of the test. The user entered end date, or the end of data, which ever comes first.

primeStart

 

Earliest date for all loaded data for any instrument

currentDay

 

the number of the current day starting from one on the day of the test start. Also used as the test bar when using intraday data, so this can be the "test bar number" when using date and time.

currentDate

 

the current simulation date. In YYYYMMDD format.

currentTime

 

the current simulation time.  In HHMM format.

instrumentCount

 

the total number of instruments being tested across all systems. This includes forex conversion files as and if systems are using different portfolio types, could include stocks, futures, and forex markets. Does not include markets loaded using the LoadSymbol function.

instrumentList[]

 

a list of all the instruments in all system portfolios, including the forex conversion files. Indexed from 1 to instrumentCount. Returns the full symbol, such as F:CL or S:IBM.

totalParameterTests

 

the total number of distinct parameter tests

currentParameterTest

 

the number of the current parameter test

orderGenerationTest


returns true if the test is generating orders, rather than just running a test.

orderGenerationBar


returns true if the current bar is after the test end, and therefore the order generation bar.

systemCount


the number of systems to be tested.

orderReportPath


the full path of the current order report

leverage


the leverage as set in global parameters

timeIncrement


returns the timeIncrement used for the test loop when using intraday data.  In HHMM format.

baseCurrency


returns the ISO code of the system wide base currency

baseCurrencyLendRate


The lend rate of the system wide base currency

baseCurrencyBorrowRate


The borrow rate of the system wide base currency

resultsReportPath


The path of the results folder for this test. Used to access charts and graphs in the test results folder for display.

timeStamp


The time stamp of this test. Used to access charts, graphs, and other results for the test run.

abortTestPending


returns true when the abort test or abort simulation functions have been used




Global Parameter Access



earnInterest



slippagePercent



minimumSlippage



maxVolumePerTrade



maxMarginEquityPercent



tradeOnTick



entrydayRetracement



useStartDateStepping



incrementTestStart



setTestDuration



useBrokerPositions



ignoreTestPositions



minimumFuturesVolume



commissionPerContract



tradeLockLimit



accountForContractRolls



rollSlippageATR



minimumStockVolume



commissionPerTrade



commissionPerShare



commissionPercentValue



convertStockSplit



earnDividends



payMargin



forexTradeSize



accountForForexCarry



usePipBasedSlippage



 

 

At the beginning of each trading simulation day, the test's date is set to the current trading day while the instrument date is set to the previous trading day. This prevents the creation of postdictive errors or errors where trading system logic is allowed to access information that is not available in actual trading. In effect, postdictive errors are errors which rely on seeing the future.