Open positions window

Inner table presentation

Presents the table of orders.

The row of table are picked out by the color:

- Background color:

1. White - odd row
2. Light Gray - even row
3. Rose - position account is under margin call

- Foreground color:

1. Gray - position has not tradable currency
2. Black - position has tradable currency

The table has columns with titles:

3. Ticket - order admitting ticket ID
4. Account
5. Currency - position's currency pair
6. Amount (K) - amount of CCY1 has been bought or sold
7. B/S - the side of operation (BUY or SELL)
8. Open - price of currency, the position was opened with
9. Close - current price of opposite operation
10. Stop - the price, has been specified to stop possible lost
11. Limit - the price, has been specified to limit possible profit
12. Gross P/L - Current profit or lost including commission
13. Comm - commission
14. Roll - interest for roll over
15. Net P/L - Current profit or lost without commission
16. Time - Date and Time of position opening

The mouse clicking reaction

The Close column.

The mouse click doesn't has reaction in next cases:

17. In reconnection state.
18. If account of position is under margin call
19. If currency of position is not tradable

In all other cases the

Market Order dialog is shown for selected position.

The Stop column.

The mouse click doesn't has reaction in next cases:

- In reconnection state.
- If account of position is under margin call
- If currency of position is not tradable

In all other cases the

Market Order dialog is shown for selected position, and initiated by the Stop type.

The Limit column.

The mouse click doesn't has reaction in next cases:

- In reconnection state.
- If account of position is under margin call
- If currency of position is not tradable

In all other cases the

Set StopLimit dialog.htm is shown for selected position, and initiated by the Limit type.

The mouse right button popup menu.

Contains two item:

- Stop/Limit
- Close

Stop/Limit item functionalities

The item functionalities and conditions to be enabled are the same as in

Stop/Limit item of application window menu.

Close item functionalities

The item functionalities and conditions to be enabled are the same as in

Close item of application window menu.

The calculating columns values

Gross P/L column value

Gross P/L column value is calculated by formulas:

- If CCY2 is USD

- If CCY1 is USD

- If there's no USD in both CCY1, CCY2 and CCY2 is from list: GBR, AUD, NZD

, where

is SELL price of CCY2/USD if >= 0, and

it is BUY price of CCY2/USD if < 0

- If there's no USD in both CCY1, CCY2 and CCY2 is not from list: GBR, AUD, NZD

, where

is BUY price of USD/CCY2 if >= 0 and

it is SELL price of USD/CCY2 if < 0

Where:

- Value is being found

- Open position price

- Close position price

- Amount of Position

- Coefficient equals 1 for SELL position and -1 for BUY position

For example lets calculate third positions from:

There's no USD in both EUR, GBR and GBR is from list: GBR, AUD, NZD

The position is sell and < 0 so is BUY price of GBR/USD and equals 1.6649

So: = -166.49 (2 cents mismatch)

For next example lets calculate fourth position from:

There's no USD in both EUR, CHF and CHF is not from list: GBR, AUD, NZD

The position is sell and < 0 so is SELL price of USD/CHF and equals 1.3184

So: = --22.75485437

Net P/L column value:

NetPL = GrossPL - Comm + Inter

This is the subtraction of Gross P/L column value and Comm column value

NOTE for TESTING:

Shown above formulas were produced from algorithm, which one was used for writing program source code.

But there may be mismatches with server side calculation algorithm. That should be tested at the moment of closing position by comparing Profit/Lost calculated by client and change of account after closing.

The new balance of account of closed position should be the sum old balance and NetPL. If mismatch appear, that is a bug.