Login Page - Create Account

Support Board


Date/Time: Sun, 29 Dec 2024 06:55:39 +0000



Post From: Missmatch execution times...

[2016-01-11 13:17:36]
User368248 - Posts: 46
Thanks, this its good news.
Plase provide me a guide/example how to use "if ( result > 0 )" combined with scGetOrderFillEntry.
This mean, how to check when a order was filled by LP/Broker, please referr to my code below:


        s_SCNewOrder order;
        //order.OrderQuantity = 10000;
        order.OrderQuantity = sc.TradeWindowOrderQuantity;
        order.OrderType = SCT_ORDERTYPE_MARKET;
        order.TimeInForce = SCT_TIF_GTC;
        
        int Result = sc.SellOrder(order);

        
        if (Result > 0)//order was accepted
        {
          
            
            RememberedOrderID = order.InternalOrderID;
                      
            

        }