Support Board
Date/Time: Fri, 07 Nov 2025 01:14:19 +0000
[Programming Help] - Maximum failed modifications have been reached
View Count: 101
| [2025-10-23 05:57:31] |
| hamezigno_esseco - Posts: 3 |
|
Dear support, I hope you're doing well I built a custom ASCIL study that modifies the price of a limit order, following some indicator. At some point, I get the following message appearing in the Trade Service Log: "Unable to modify order because maximum failed modifications has been reached. Limit: 20" Two questions: - Can I change the limit=20 to something higher ? (or disable it?) - I'm currently manually calling sc.ModifyOrder for that purpose and it fails when the indicator does not change ("Price and quantity (xxx, xxx) for order modification are the same as existing order"), which eventually triggers the "Maximum failed modifications" error. Is calling sc.ModifyOrder the recommended way for this use case or would you recommend doing something else ? Thanks for your help |
| [2025-10-23 06:16:15] |
| Sierra_Chart Engineering - Posts: 21324 |
|
You need to avoid a failed order modification. This cannot be changed. It is there to avoid excessive messaging to the exchange. Before modifying check the existing price and quantity of the order and if there are no changes do not do anything. 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, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2025-10-23 06:16:53
|
| [2025-10-23 06:32:12] |
| hamezigno_esseco - Posts: 3 |
|
Thanks, very clear Quick followup question if I may; My understanding is that sc.ModifyORder returns -1 for all errors correct ? is there a way to programmatically catch what error is raised precisely or do I have to go to trade service logs ? |
| [2025-10-24 18:37:35] |
| Sierra_Chart Engineering - Posts: 21324 |
|
No there is not a way to know exactly what the error is programmatically other than checking the Trade Service Log.
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, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2025-10-24 18:37:41
|
To post a message in this thread, you need to log in with your Sierra Chart account:
