Data function can be used to round, format, and find instruments during a test.

 

When using any of the instrument Functions or Properties, the Object name: instrument. must be appened ahead of the Function or Property name: i.e. instrument.SetRoundLot(1)

 

Function Name:

Description:

AddCommission

Adds the specified amount to the commission to the specified unit of the current position for the instrument.

DisableTrading

Disables symbol in the portfolio the user does not want the system to use for a specific test.

Extract()

Extracts all indicators and IPV Series variable by day and by instrument to a file.

GetDateTimeIndex()

Returns the time index within a date.

GetDayIndex()

Returns the day index for a date

PriceFormat()

Returns the price as a string formatted for printing. For example, a price for Soybeans of 6.25 will return "6 1/4". Does not round to tick.

RealPrice()

Returns the real price, converted back from being negative adjusted.

RoundTick()

Rounded_Price = ( price + minimumTick / 2 )

RoundTickDown()

Returns the price rounded down to the next tick

RoundTickUp()

Returns the price rounded up to the next tick

SetMinimumTick()

This function takes two parameters, tick-size and the decimals that are optional decimals for whole integer numbers.

See the description instrument.MinimumTick value above.

SetRoundLot()

Changes the value of the instrument.RoundLot property value.

SetSeriesAutoIndex()

This function, instrument.SetSeriesAutoIndex(series-name,True/False) can change a series instrument from its Auto-Index to Manual Index.  To change the series indexing, this function requires two parameters.  In the first parameter  enter the name of the series.  In the second parameter, enter True/False.

 

This function will work with IPV and BPV and Numeric and String series.

SetSeriesEnable()

This series function, instrument.SetSeriesEnable(series-name,True/False) can Disabled or Enable an instrument's indicator series.   To change the series operating state, enter the IPV series-name in the first parameter, and enter True or False as the second parameter, enter.  

 

This function will work with IPV series or regular indicators.  It cannot be used with the built-in calculated indicators that are created in the Instrument section that are initialized at the start of a System-Test.

SetSeriesValueType()

This series Data Function SetSeriesValueType() can only be used in Set Parameters script.  

 

 

 

Links:

Data Properties

See Also:

Data Properties

 


Edit Time: 9/21/2020 2:30:27 PM


Topic ID#: 252

 

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