Auto-PnL Capture for Future and CFD Trades
The system is attempting to capture PnL when a new or existing future trade is saved. Here are the details:
- This feature is called "Auto-PnL Capture".
- The system captures the PnL automatically only on actions of type "Future Trade". This means other actions such as Inflow/Outflow, Transfer, Net-Out do not trigger the PnL capture.
- FIFO methodology is used to calculate the PnL. This means the system calculates the PnL based on the first-in-first-out principle.
- The "Auto-PnL Capture" is applied on the FIFO stream constructed for all the trades of the same future contract within the same account.
- The "Auto-PnL Capture" is applied on the trade both when it is created for the first time AND it is updated (re-saved) after it is once created with the exception that the cash currency and cash quantity should be deleted while re-saving (see below).
If you are wondering why it does not capture the trade, here are the possible reasons:
- The trade is not a "Future Trade" action.
- The trade is not fully or partially closing a previous trade.
- There is no previous trade to consider for the PnL calculation at the time of the trade creation or update.
There are some other requirements for the system to attend to the "Auto-PnL Capture" feature:
- The cash currency and cash quantity fields must be empty: If one or both of these fields are provided, the system will automatically skip "Auto-PnL Capture" step.
- The instrument must have "currency" information: The system needs to know the currency of the instrument to calculate the PnL in the correct currency. If the instrument does not have a currency, the system will not calculate the PnL.
If problems: We suggest to test the system with a dummy trade to see if the system captures the PnL automatically.
- Make sure that the instrument has currency information.
- Make sure that the trade is partially or fully closing a previous trade.
- Make sure that the new trade you are creating does NOT have cash currency and cash quantity fields filled in. Otherwise, the system will not calculate the PnL.
Finally, all explained above for "Futures" apply to "CFDs", too, ie. the same feature and restrictions apply to CFD trades over CFD instruments.