Login Page - Create Account

Support Board


Date/Time: Thu, 13 Feb 2025 03:09:05 +0000



Post From: sc.MaximumPositionAllowed no longer works from sc.SetDefaults block

[2020-11-15 10:41:17]
Sierra Chart Engineering - Posts: 104368
There is absolutely nothing wrong with that study function. If you are getting the error the you are, then the code that is actually running, is not the code that you have posted above. This is the source of the problem.

Here is a log, running the code that you gave:
ActivityType  DateTime  Symbol  OrderActionSource  InternalOrderID  OrderStatus  ServiceOrderID  OrderType  Quantity  BuySell  Price  Price2  FillPrice  FilledQuantity  TradeAccount  OpenClose  ParentInternalOrderID  PositionQuantity  FillExecutionServiceID  HighDuringPosition  LowDuringPosition  Note  AccountBalance  ExchangeOrderID  ClientOrderID
Orders  2020-11-13 14:30:25.005  [Sim]MESZ20_FUT_CME  Auto-trade: Replay 10.00X: MESZ20_FUT_CME[M] 1 Min #1 | TradingTestFunction3 | BuyEntry | Bar start date-time: 2020-11-13 14:28:00.000 | Last: 3575.25 | AO=0  281444  Order Sent    Market  4  Buy          Sim1  Open              0.00    
Orders  2020-11-13 14:30:25.006  [Sim]MESZ20_FUT_CME  Simulated order accepted  281444  Open  281444  Market  4  Buy          Sim1  Open              0.00    

We also do not understand the basis of post #2. There is not a problem. If you have a problem, you are doing something wrong.
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
Date Time Of Last Edit: 2020-11-15 10:43:02