Property:
|
Description:
|
activeStatus
|
optional value for stocks, A for active and I for inactive
|
averageVolume
|
Current 5 day EMA of the unAdjustedVolume. Used internally by Trading Blox for volume filters such as max volume per trade and minimum volume.
This property is computed dynamically during the simulation run and can be used in scripting as needed. This property cannot be used in Calculated Indicators because all values for all calculated indicators are computed before the simulation starts running, and this property has not been computed yet.
Test computed indicators do not support look-back references. However, their calculated result from each instrument bar can be stored in an IPV series that will support look-back referencing if that process is coded into the blox.
|
bar
|
the bar number for the current date. Bar 1 is the first bar of data loaded. The start of the test is likely not Bar 1.
|
brokerBigPointValue
|
Value is entered into the Futures Dictionary in the Futures Dictionary column Broker BPV. This column is used by the brokerage when their value for their symbol is different than what is used by the data service being used (See bigPointValue for how it is applied.)
|
bigPointValue
|
usually 1.00 for Stocks, unless the Convert Profit by Stock Splits global is on. In that case the big point value is the unadjusted close divided by the adjusted close for any given day ( see .conversionRate )
For Futures it is the value set in the Futures Dictionary in the Big Point column. When it is applied it is adjusted by the currency conversion rate, if there is one. Does not change for futures.
For Forex, the current value in dollars for the pair its value can change each day.
|
brokerSymbol
|
the broker symbol as defined in the dictionary
|
close[ ]
|
the close for the specified bar
|
conversionRate
|
The conversion rate of foreign denominated futures and stocks. This property respects the "reverse conversion" check-box option in the Forex Dictionary.
conversionRate is not a series, but a property that is computed on the fly during the test based on the instrument date and the value it calculates from the instrument's date matching Forex currency data.
If the Forex conversion file is not current to the latest date the instrument, this property will use the last available record in the Forex file to calculate the conversion rate in all instances after the Forex file's data ends. In most cases the last date won’t give an accurate local price so be sure to keep the Forex files current.
Note:
instrument.conversionRate replaces instrument.forexRate and will be removed in a later version of Trading Blox.
|
currency
|
The currency in which the future is denominated. Set in the Futures or Stock Dictionary.
|
currencyBorrowRate
|
The borrow rate of the currency.
|
currencyDate
|
The current date of the currency converter, if present.
|
currencyLendRate
|
The lending rate of the currency.
|
currencyTime
|
The current time of the currency converter, if present.
|
currentBar
|
the bar number minus the startBar plus one.
|
currentWeek
|
the weekIndex minus the startWeek plus one.
|
custom1
|
Blank column cell for each symbol.
|
custom2
|
Blank column cell for each symbol.
|
customSortValue
|
This property contains the value assigned by the instrument.SetCustomSortValue().
|
dataLoadedBars
|
total number of bars of data loaded and cached.
|
dataVendorID
|
optional value for stocks, the data vendor id
|
date[ ]
|
the date value for the specified bar. In YYYYMMDD format.
|
dayClose[ dayIndex ]
|
the close of the current day as of the current time
|
dayHigh[ dayIndex ]
|
the high of the current day as of the current time.
|
dayIndex
|
the current day index for use with the day series which is derived from intraday data
|
dayLow[ dayIndex ]
|
the low of the current day as of the current time
|
dayOpen[ dayIndex ]
|
the open of the current day
|
dayVolume[ dayIndex ]
|
the volume of the current day as of the current time
|
defaultAverageTrueRange
|
Current internal computation of the 39 day average true range. Used internally for slippage calculations.
This property is computed dynamically during the simulation run and can be used in scripting as needed. This property cannot be used in Calculated Indicators because all values for all calculated indicators are computed before the simulation starts running, and this property has not been computed yet.
Test computed indicators do not support look-back references. However, their calculated result from each instrument bar can be stored in an IPV series that will support look-back referencing if that process is coded into the blox.
|
deliveryMonth
|
the delivery month of the contract represented by the data -- format: YYYYMM (futures only)
|
deliveryMonthLetter
|
the delivery month letter (Z for December, etc)
|
description
|
the description from the appropriate dictionary for this symbol
|
displayDigits
|
the number of digits to the right of the decimal, as set in the dictionary.
|
dividend
|
the dividend for the current bar
|
endBar
|
the bar number for the last day of testing for this instrument. Not system specific.
|
endDate
|
the end date of testing for this instrument. Not system specific. Can be different than the lastDataLoadedDate if the end testing date changes to an earlier date after the data is loaded and cached.
|
exchange
|
the instrument's exchange
|
extraData1[ ] ... extraData8[ ]
|
the value of any optional extra data appended to the data file for the specified bar. There are up to 8 extra data fields you can use with this format.
|
fileName
|
the filename of the instrument
|
firstDataLoadedDate
|
The first date of the data loaded and cached for this instrument. Not system specific.
|
folder
|
the folder location of the file
|
forexBaseBorrowRate
|
the borrow interest rate of the Base side of the forex pair
|
forexBaseLendRate
|
the lending interest rate of the Base side of the forex pair
|
forexPipSize
|
the pip size of the forex market as set in the forex dictionary with 7-decimal maximum size
|
forexPipSpread
|
the pip spread as set in the forex dictionary
|
forexQuoteBorrowRate
|
the borrow interest rate of the Quote side of the forex pair
|
forexQuoteLendRate
|
the lend interest rate of the Quote side of the forex pair
|
high[ ]
|
the high for the specified bar
|
inPortfolio
|
returns TRUE if the instrument is in the system's portfolio. returns FALSE if the instrument is a supporting forex file or loaded using LoadSymbol and not in the portfolio.
|
intradayData
|
returns TRUE if the instrument is using intraday data
|
isForex
|
returns TRUE if the instrument is a forex
|
isFuture
|
returns TRUE if the instrument is a future
|
isPrimed
|
returns TRUE if the instrument is primed
|
isStock
|
returns TRUE if the instrument is a stock
|
julianDate[ ]
|
the number of days since 1900 for the current bar
|
lastBarOfDay
|
returns TRUE if the bar is the last bar in the day
|
lastDataLoadedDate
|
The last date of the data loaded and cached for this instrument. Not system specific.
|
lastDayOfMonth
|
returns TRUE if the bar is the last bar in the month
|
lastDayOfWeek
|
returns TRUE if the bar is the last day in the week
|
lastDayOfYear
|
returns TRUE if the bar is the last bar in the year
|
lastTradingInstrument
|
returns TRUE if the instrument is the last trading instrument for the trading day.
|
low[ ]
|
the low for the specified bar
|
margin
|
the margin requirement for a futures instrument as set in the Futures Dictionary. Not used for stocks or forex.
|
minimumTick
|
the amount of the minimum tick in points. For futures this is set in the Futures Dictionary. For stocks this is .01 divided by the stock split adjustment, which is calculated as the unadjusted close divided by the adjusted close. In this way, the actual minimum tick for the time period can be determined.
|
minimumVolume
|
the minimum volume setting from global parameters. Uses the stock minimum value for stocks, and the futures minimum volume for futures. Forex returns minimum volume of zero.
|
monthClose[ monthIndex ]
|
the close of the current calendar month, as of the current day
|
monthHigh[ monthIndex ]
|
the high of the current calendar month, as of the current day
|
monthIndex
|
the current month index for use with the month series
|
monthLow[ monthIndex ]
|
the low of the current calendar month, as of the current day
|
monthOpen[ monthIndex ]
|
the open of the current calendar month
|
monthVolume[ monthIndex ]
|
Available Monthly volume known for the specified bar.
Note:
Future contract volume reported on the last bar of the month might not be the exchanges settled volume for that month. Historically Future contract settled volume is reported one trade-day after the reported price record date.
|
nativeBPV
|
the native currency big point value, as set in the dictionary
|
negativeAdjustment
|
for back-adjusted data that goes below zero (eg CL) all prices are raised so that no price will be negative. This is the amount by which the prices are raised. Normally you don't need this since the debugger prices, trade prices, and order generation prices are all converted back to normal prices. But if you need the actual price for calculations in the script, or to print the value, then you would subtract this amount.
|
open[ ]
|
the open for the specified bar
|
openInterest[ ]
|
the open interest for the specified bar (if available)
|
orderSortValue
|
the order sort value as entered in the Futures Dictionary
|
referenceID
|
This property is a special object pointer that is used by custom DLL extension functions to access instrument object information.
|
priorityIndex
|
the numerical order of the instruments used in a system. For futures, the order is based on the order ranking in the futures dictionary. For stocks and Forex, the order is alphabetical. Each system will have its own ranking of instruments. All scripts that loop over instruments will do so in this order.
|
roundLot
|
returns the round lot of the instrument, as set in the dictionary
|
savedWFProfit
|
The Walk Forward process saves open positions from one OOS test to the next. For Forex, the profit is saved as well to help compute the overall profit of the combined OOS tests. This value is available in the After Test script for debugging purposes.
|
startBar
|
the bar number of the first day of testing for this instrument taking into consideration the priming required for this instrument for this system.
|
startDate
|
the start date of testing for this instrument and system taking into consideration priming. Is usually different than the firstDataLoadedDate.
|
startWeek
|
the weekIndex of the startBar
|
stockSplitRatio
|
The ratio of the unadjusted close to the adjusted close. When Convert Profit by Stock Splits global is on, then the profit is multiplied using this ratio on trade entry date vs. trade exit date, to account for the increase in shares due to the splits during the course of the trade.
|
symbol
|
the instrument's trading symbol, e.g. S, IBM, CL
|
systemClosedEquity
|
the current system closed equity for the instrument
|
systemOpenEquity
|
the current system open equity for the instrument
|
systemTotalEquity
|
the current total system profit/loss for the instrument
|
testClosedEquity
|
the current test closed equity for the instrument
|
testOpenEquity
|
the current total test open equity for the instrument
|
testTotalEquity
|
the current total test profit/loss for the instrument
|
time[ ]
|
the time value for the specified bar. 0 if daily data. In HHMM format.
|
tradeDayOpen
|
the open for tomorrow. Useful in the Entry script to know the open for the trade day.
|
tradesOnTradeBar (New)
tradesOnTradeDate (Obsolete)
|
returns TRUE if the instrument trades on the current trading date/time. Works for intra day as well as daily systems to confirm if there is a bar of data for the current test date/time. Important to use when excluding holidays from a computation.
|
tradingMonths
|
the trading months list defined in the Futures Dictionary. Used only for accounting for contract rolls estimation, when the data does not have the delivery month.
|
unadjustedClose
|
the actual close price unadjusted for contract merging (futures), splits, or dividends (stocks)
|
unAdjustedVolume
|
the volume for stocks, unadjusted by stock splits. Typically the the raw OHLC and V in the data series are all adjusted for stock splits.
|
usedMargin
|
the total margin used for the current open position. This is purchase equity for stocks and total margin for futures.
|
volume[ ]
|
Available volume known for the specified bar.
Note:
Future contract volume reported on the last bar of the day, week or month might not be the exchanges settled volume for that day, week or month. Historically Future contract settled volume is reported one trade-day after the reported price record date.
|
weekClose[ weekIndex ]
|
the close of the current calendar week, as of the current day
|
weekHigh[ weekIndex ]
|
the high of the current calendar week, as of the current day
|
weekIndex
|
the current weekIndex used for the week series.
|
weekLow[ weekIndex ]
|
the low of the current calendar week, as of the current day
|
weekOpen[ weekIndex ]
|
the open of the current calendar week
|
weekVolume[ weekIndex ]
|
Available Weekly volume known for the specified bar.
Note:
Future contract volume reported on the last bar of the week might not be the exchanges settled volume for that week. Historically Future contract settled volume is reported one trade-day after the reported price record date.
|