Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Trade fee formulas use a simple language (a modified version of the PHP programming language) to specify how fees should be assessed in PropReports.  

A "Per Order" formula runs once for every order (ticket) and the result is saved as the fee on the last fill of each.  PropReports groups executions into orders based on the Order Id. 

The formula will NOT run for any orders that contain an execution with fees manually set.  Canceled executions or those with a status that is not regular are disregarded.

(warning) Important: Make sure the Formula Type is set to "Per Order" when creating a plan.

The following variables are available when creating a Per Order formula:

Variable Name

Description

$date

The trade date in YYYY-MM-DD format (e.g. 2011-08-15).

$type

B = Buy, S = Sell, T = Short, C = Cover. See side and intention codes for more information.

$quantity

Number of shares or contracts traded.

$symbolTicker symbol of the instrument being traded.
$multiplierThe multiplier (can be called "contract size" for options and "value multiplier" for futures) used when computing profit and loss.
$spotRateThe conversion rate from the trade currency to the account currency.
$pricePrice of the trade.
$originalCommissionCommission as received from the data source.
$originalExchangeFeeExchange/ECN fee as received from the data source.
$originalSecFeeSEC transaction fee as received from the data source.
$originalTafTrade activity fee as received from the data source.
$originalNsccFee

National Securities Clearing Corporation fee as received from the data source.

$originalMiscellaneousFeeMiscellaneous fee as received from the data source. 
$originalClearingFeeOther clearing fee as received from the data source.
$fillCountNumber of regular executions comprising this order (not counting any canceled or non-regular fills).
$monthlyVolumeTotal cumulative quantity traded during the trade date month up to and including the order being processed. Note that currently this lumps together volume across all instrument types.
  • No labels