Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 03:29:48 +0000



Post From: ACSIL study won't use Trade Window attached orders

[2023-03-11 16:37:06]
tecman240 - Posts: 16
Thanks, now the study quantity matches the trade window, however I get this Trade Log error message when trying to enter a position with quantity = 2:
Auto-trade: MESH23_FUT_CME[M] Rev. 6t #2 | Next Reversal Open | SellEntry | Bar start date-time: 2023-03-10 15:47:18.014 | SellEntry signal is ignored because maximum Short Position quantity allowed has been reached or would be exceeded with new order. Max. Position allowed: 1. Resulting Position without working orders: -2. Resulting Position with all working orders except exits: -2. Resulting Position with Market working orders: -2 | 2023-03-10 15:51:27.705

I can't figure out where this position limit error is coming from:
The Trade Position window shows no positions before attempting the above entry.
In my study I have sc.MaximumPositionAllowed = 4 in the SetDefaults section.
In Global Settings>>Symbol Settings:
- Use Global Trade Position Limit is unchecked,
- Symbol MES?##_FUT_CME Trade Position Limit =0 and Order Quantity Limit = 0

thank you for the help.