Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 08:33:16 +0000



Post From: Problems adding limit orders

[2023-09-06 01:04:31]
WeroTrader - Posts: 46
Greetings, Sierra Chart team.

I am trying to place two limit orders (one to buy and one to sell) via ACSIL in the same index.

The orders are placed correctly, but they are added, without me having requested it, two additional close orders for each one, one limit type and another stop type; the status of these additional orders is "Pending Child-Client", with zero quantity.

How can I make sure that those additional orders are not placed? This is causing me that when the "correct" order is filled, it is immediately closed.

I am not looking for code, just a correct guide about the instruction that I must follow for the correct handling of limit type orders.

I leave an example of the code for the sales order.



s_SCNewOrder Order_SellGRID;

Order_SellGRID.Symbol = Symbol;
Order_SellGRID.OrderType = SCT_ORDERTYPE_LIMIT;
Order_SellGRID.TimeInForce = SCT_TIF_GOOD_TILL_CANCELED;
Order_SellGRID.OrderQuantity = Batch;
Order_SellGRID.Price1 = GridSell;

Result = static_cast<int>(sc.SellOrder(Order_SellGRID));


I attach images of the orders in the graph, as well as the information that appears in the window of trade orders; thank you in advance for the answer
imageTrade Orders.png / V - Attached On 2023-09-06 01:01:16 UTC - Size: 17.68 KB - 66 views
imageChild - Client.png / V - Attached On 2023-09-06 01:02:38 UTC - Size: 6.54 KB - 65 views