Support Board
Date/Time: Thu, 26 Dec 2024 21:32:16 +0000
Sierra Chart - How to close running Order
View Count: 144
[2024-10-21 05:57:00] |
stefkovic.m28 - Posts: 18 |
Hello, I have successfuly sent my single order to simulated trading account with this command: { "Type": 208, "Symbol": "ESZ24-CME", "ClientOrderID": 123, "OrderType": 1, "BuySell": 1, "Quantity": 25, "TradeAccount": "Sim1", "TradeMode": 1, "IsParentOrder": 0 } But now I don´t know, or don´t understand how to close this position in simulated account. These two types of commands are not working: { "Type": 208, "Symbol": "ESZ24-CME", "ClientOrderID": 123, "OrderType": 1, "BuySell": 1, "Quantity": 25, "TradeAccount": "Sim1", "TradeMode": 1, "IsParentOrder": 1 } Second command: { "Type": 201, "Symbol": "ESZ24-CME", "ParentTriggerClientOrderID": 123, "ClientOrderID_1": 124, "OrderType_1": 3, "BuySell_1": 2, "Price1_1": 5900, "Quantity_1": 25, "ClientOrderID_2": 125, "OrderType_2": 2, "BuySell_2": 2, "Price1_2": 5930, "Quantity_2": 25, "TimeInForce": 1, "TradeAccount": "Sim1" } Many thanks for your support and explanation how to close running position. |
[2024-10-21 06:59:03] |
Sierra_Chart Engineering - Posts: 17672 |
If there is a Long position of quantity 25, then you would send the Sell order of quantity 25 to close the position. Usually you would use a market order for that.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-10-21 07:59:40] |
stefkovic.m28 - Posts: 18 |
Hello, I have tried this, also have changed to market order, but without result, please see my code. Do you know please, why I´am getting this message typ 507 always? { "Type": 208, "Symbol": "ESZ24-CME", "ClientOrderID": 123, "OrderType": 1, "BuySell": 1, "Quantity": 1, "TradeAccount": "Sim1", "TradeMode": 1, "IsParentOrder": 1 } { "Type": 201, "Symbol": "ESZ24-CME", "ParentTriggerClientOrderID": 123, "ClientOrderID_1": 124, "OrderType_1": 1, "BuySell_1": 2, "Price1_1": 5900, "Quantity_1": 1, "ClientOrderID_2": 125, "OrderType_2": 1, "BuySell_2": 2, "Price1_2": 5930, "Quantity_2": 1, "TimeInForce": 1, "PartialFillHandling": 1, "TradeAccount": "Sim1" } And then I got this answer: { "Type": 507, "RequestID": 110000000, "SecurityType": 1, "MinPriceIncrement": 1, "PriceDisplayFormat": 0, "CurrencyValuePerIncrement": 25, "IsFinalMessage": 1, "SecurityExpirationDate": 1734652800, "DisplayPriceMultiplier": 1, "RolloverDate": 1734566400, "IsDelayed": 1, "SecurityIdentifier": 7296065, "Symbol": "FDAXZ24-EUREX", "Description": "FUT ON DAX INDEX", "UnderlyingSymbol": "FDAX", "ExchangeSymbol": "FDAX202412_FUT_EUREX", "Currency": "EUR", "ProductIdentifier": "DE0008469594" } { "Type": 507, "RequestID": 110000000, "SecurityType": 1, "MinPriceIncrement": 0.25, "PriceDisplayFormat": 2, "CurrencyValuePerIncrement": 12.5, "IsFinalMessage": 1, "SecurityExpirationDate": 1734652800, "DisplayPriceMultiplier": 1, "OpenInterest": 2149636, "RolloverDate": 1734307200, "IsDelayed": 1, "SecurityIdentifier": 183748, "Symbol": "ESZ24-CME", "Description": "E-MINI S&P 500 FUTURES ES Dec 2024", "UnderlyingSymbol": "ES", "ExchangeSymbol": "ESZ24", "Currency": "USD" } { "Type": 507, "RequestID": 110000000, "SecurityType": 1, "MinPriceIncrement": 0.25, "PriceDisplayFormat": 2, "CurrencyValuePerIncrement": 5, "IsFinalMessage": 1, "SecurityExpirationDate": 1734652800, "DisplayPriceMultiplier": 1, "OpenInterest": 238189, "RolloverDate": 1734307200, "IsDelayed": 1, "SecurityIdentifier": 106364, "Symbol": "NQZ24-CME", "Description": "E-MINI NASDAQ 100 FUTURES NQ Dec 2024", "UnderlyingSymbol": "NQ", "ExchangeSymbol": "NQZ24", "Currency": "USD" } |
[2024-10-22 21:06:30] |
Sierra_Chart Engineering - Posts: 17672 |
507 is a security definition response . This would not come in response to an order submission: const uint16_t SECURITY_DEFINITION_RESPONSE = 507; Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-10-28 20:02:02] |
stefkovic.m28 - Posts: 18 |
Hello, what I have to make the close order to be correct? Do you have please the command in documentation, where can I find it? thanks. |
To post a message in this thread, you need to log in with your Sierra Chart account: