Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 12:26:37 +0000



Trading works sim off to paper account but not live trading account. Urgent

View Count: 546

[2020-05-04 20:23:50]
User807787 - Posts: 41
This is a big issue for me(lost a good trade)

My keybinds (through a manual looping study) are not sending orders when the trade service is in live mode.
They work perfectly fine when sending to the paper account. Sim mode off in both cases

Trading via the chart and trade menu work for both paper and live.

  sc.SendOrdersToTradeService = true;

an example would be:

if (sc.KeyboardKeyEventCode == 65 && sc.IsKeyPressed_Control)
  {  
    LastPrice = sc.GetLastPriceForTrading();
    SetStopQuantAllowance(sc, LastPrice, 0);
    
    NewOrder.OrderQuantity = Quant;
    NewOrder.OrderType = SCT_ORDERTYPE_LIMIT;
    NewOrder.TimeInForce = SCT_TIF_DAY;
    float Price = sc.Ask;
    Price = Price + Allowance;
    NewOrder.Price1 = Price;
    sc.BuyOrder(NewOrder);      
  }
Date Time Of Last Edit: 2020-05-05 01:45:44
[2020-05-05 00:20:30]
User807787 - Posts: 41
I tested it post market on the live account and the trade orders where sent as intended.

Hopefully they will work when the market opens also. Not to sure at this point.
Date Time Of Last Edit: 2020-05-05 03:06:25
[2020-05-05 11:00:19]
Sierra Chart Engineering - Posts: 104368
Refer to:
Automated Trading From an Advanced Custom Study: Going from Simulation Mode to Live Trading

And refer to:
Automated Trading From an Advanced Custom Study: Debugging/Troubleshooting Automated Trading Systems
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account