Login Page - Create Account

Support Board


Date/Time: Fri, 06 Feb 2026 09:01:58 +0000



ASCIL: Max Position Allowed Error

View Count: 540

[2025-04-07 21:27:05]
Gradient - Posts: 187
Hi,

I noticed my system was alerting new orders but the orders were never sent.

I checked the trade service log and it stated that the new order would exceed the max position allowed.

Per the trade service log, the max position allowed is 0.

This is despite having an input that sets sc.MaxPositionAllowed.

I tried hard coding the sc.MaxPositionAllowed and the error still persists preventing any new orders.

What might be causing Max Position to be static at 0 despite hard coding sc.MaxPositionAllowed >0

I've attached screenshots of the TradeServiceLog Message as well as the hardcoding of the Max Position Allowed.
imageMaxPositionAllowedError1.png / V - Attached On 2025-04-07 21:25:58 UTC - Size: 111.78 KB - 181 views
imageMaxPositionAllowedError2.png / V - Attached On 2025-04-07 21:26:04 UTC - Size: 175.49 KB - 177 views
imageMaxPositionAllowedError3.png / V - Attached On 2025-04-07 21:26:10 UTC - Size: 9.62 KB - 164 views
[2025-04-08 00:19:45]
ForgivingComputers.com - Posts: 1191
The issue could be that you used sc.MaxPositionAllowed. The correct setting is
sc.MaximumPositionAllowed = 1;

The default is 5 if you do not set it.

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

Login

Login Page - Create Account