Support

Equilla Formula Language

About TradeProps

TradeProps provides a namespace for accessing the trading properties in read only format.

Syntax

TradeProps::TradingPropertyVariableName

Remarks

Trading Properties

TradeProps::StartDate Returns the date from which the trading engine started trading.
TradeProps::EndDate Returns the date at which the trading engine should stop trading.
TradeProps::InitialCapital Returns the specific percentage of the bar range used to create an artificial tick when a stop or limit order has been filled.
TradeProps::TickSimulationPercent Returns the specific percentage of the bar range used to create an artificial tick when a stop or limit order has been filled.
TradeProps::OrderGenerationMode Returns the mode which specifies when the strategies should generate new orders.
TradeProps::FieldsForRealTimeFillPriceGeneration Returns the fields from which prices are used to fill orders in realtime mode.
TradeProps::SlippagePerTradeMode Returns whether the specified slippage per trade is in percentage value or in absolute value.
TradeProps::SlippagePerTradeValue Returns What per trade slippage is be applied to each order when calculating profit.
TradeProps::SlippagePerUnitMode Returns whether the specified slippage per traded unit is in percentage value or in absolute value.
TradeProps::SlippagePerUnitValue Returns What per trade slippage is be applied to each traded unit when calculating profit.
TradeProps::CommissionPerTradeMode Returns whether the specified Commission per trade is in percentage value or in absolute value.
TradeProps::CommissionPerTradeValue Returns What per trade Commission is be applied to each order when calculating profit.
TradeProps::CommissionPerUnitMode Returns whether the specified Commission per traded unit is in percentage value or in absolute value.
TradeProps::CommissionPerUnitValue Returns What per trade Commission is be applied to each traded unit when calculating profit.]
TradeProps::CommissionMin Returns the minimum commission that can be applied to a single order.
TradeProps::CommissionMax Returns the Maximum commission that can be applied to a single order.
TradeProps::DefaultTradeQuantity Returns the default number of shares/contracts that will be traded with each order.
TradeProps::MaxTotalPositionSize Returns What the maximum position size should be. Orders that take the position beyond the specified size will not get placed.
TradeProps::PyramidingMode Returns whether orders are allowed to increase the current position without closing or reversing it.
TradeProps::MaxOpenEntries Returns maximum number of trades per order that can be opened at the same time.
TradeProps::DefaultStopMode Returns whether profit calculations for automatic exits should be based on the position profit or the per contract/share profit.
TradeProps::DefaultProfitTarget Returns the open profit that needs to be reached before the current position is exited.
TradeProps::DefaultStopLoss Returns what loss (calculated with the current open profit and the entry price) must be reached to automatically exit the position.
TradeProps::DefaultBreakEvenStop Returns value for open profit, which a stoploss is set to ensure that the trade breaks even.
TradeProps::DefaultProfitTrailingStop Returns what loss should occur from the current open profit before the position is exited.
TradeProps::DefaultPercentTrailingFloor Returns What open profit target needs to be reached before the percent trailiing stop is activated.
TradeProps::DefaultPercentTrailingPercentage Returns what percentage of the current open profit needs to be lost before the current position is exited.
TradeProps::UseCommissionAndSlippageInAutomatedStops Returns whether the commission and slippage values are to be taken into account when setting the prices and activation of stops and profit targets.

Examples

Print the initial capital available for trading
print(TradeProps::InitialCapital);

See also:

About Trading;