Login Page - Create Account

DTC Protocol Discussion Forum

Date/Time: Tue, 02 Jun 2020 05:20:15 +0000

SC/DTC Client: intentional TRADE_UNSET orders

[2018-01-25 04:55:38]
AndrewAMD1 - Posts: 27 | Ending Date: 2020-06-23

I learned from this thread...

... that I can reverse a position by setting OpenOrClose to TRADE_UNSET while placing an order (unless I'm using BitMEX or TD Ameritrade... I have neither).

I have a related question: Can I place an open OpenOrClose==TRADE_UNSET market, limit, or stop order and expect it to be able to:
* increase long
* decrease long
* reverse
* increase short
* and decrease short...

... my position and for Sierra Chart to not care?

For example: I place a stop or limit order when my position is short, and then my position is long by the time it is executed/triggered. What would have at the time of order submission been a close is now an open, and vice versa.

FYI, this would be particularly useful if I'm running multiple trading algorithms on the same asset.
Date Time Of Last Edit: 2018-01-25 16:06:31
[2018-01-29 21:11:15]
AndrewAMD1 - Posts: 27 | Ending Date: 2020-06-23
From here:

[OpenCloseTradeEnum] Open Close Trade Enumeration
This field is not used for futures.
I am interested in knowing which of Sierra Chart's brokers actually require/use this field.
Date Time Of Last Edit: 2018-01-29 21:12:33
[2018-01-30 04:44:33]
DTC Engineering - Posts: 282 | Ending Date: 2015-09-08 [Expired]
Best thing to do is not to set:


This is simply just not used. It is only used in the case of the DTC client in Sierra Chart and it is up to the server to use it.
Date Time Of Last Edit: 2018-01-30 04:44:56

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


Login Page - Create Account