Login Page - Create Account

DTC Protocol Discussion Forum


Date/Time: Fri, 29 Nov 2024 16:42:28 +0000



Two positione, same symbol, opposite direction (hedging)

View Count: 3461

[2015-10-07 10:43:49]
vbmithr - Posts: 204
Sierra Chart reports only one position whereas I send two position, same amount, one long one short for the same symbol.
Is this normal?
[2015-10-08 10:29:07]
DTC Engineering - Posts: 320
The solution to this is to set this LOGIN_RESPONSE::UsesMultiplePositionsPerSymbolAndTradeAccount to 1.

Sierra Chart will be implementing this in about a week. It is also essential that when there are multiple Positions for the same symbol and trade account, that you also set POSITION_UPDATE::PositionIdentifier uniquely for each one. This is required by the protocol.

This has only been added about a week or two ago and the documentation for this is still not done.

Also be aware, that Sierra Chart will combine Positions for the same symbol and Trade Account into one and show the Net Position for them.
Date Time Of Last Edit: 2015-10-08 10:30:13
[2015-10-08 13:58:23]
vbmithr - Posts: 204
Thanks for the tip. I needed this for OKCoin that treats two opposite position as separate (which is annoying IMO).
[2015-10-10 09:20:59]
DTC Engineering - Posts: 320
Sierra Chart will be releasing support in the next version for:

LOGIN_RESPONSE::UsesMultiplePositionsPerSymbolAndTradeAccount

It should be released before Monday.
[2015-10-18 05:59:10]
DTC Engineering - Posts: 320
In the prerelease 1312 of Sierra Chart this is now supported:
LOGIN_RESPONSE::UsesMultiplePositionsPerSymbolAndTradeAccount

Refer to the DTC documentation for this member.

It has not been tested by us, but we do not expect there are any problems with it. So please let us know how it works. Basically all of the buy and sell Position quantities for the same Symbol and Trade Account are added together and Sierra Chart will show the result of that as the Position Quantity.
Date Time Of Last Edit: 2015-10-18 06:00:04

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account