Login Page - Create Account

Support Board


Date/Time: Fri, 10 Jan 2025 20:06:38 +0000



Modifying LMAX Pending Orders

View Count: 816

[2016-10-04 12:43:06]
Pinger - Posts: 33
Hi

I have some functionality which works with SierraChart in simulation mode but which produces Trade Service Log error messages when connected to the LMAX live trading service...

I'm comparing a computed value with the price of a previously submitted stop order, and if the 2 differ I'm modifying the order using the sc.ModifyOrder() function with the computed value. This functionality works in the simulation mode, but generates the following messages when connected to the LMAX live trading service...

Order modification failed | Price and quantity for order modification are the same as the existing order. No modification was submitted...

Having read the SierraChart LMAX Trade Service documentation, is it possible to use sc.ModifyOrder() to modify a pending order with LMAX or do I need to cancel the original stop order and submit a new one? Or is this taken care of behind the scenes by SierraChart?

Many thanks in advance for your assistance.
[2016-10-04 17:16:00]
Sierra Chart Engineering - Posts: 104368
is it possible to use sc.ModifyOrder() to modify a pending order with LMAX
Yes it is.

When doing the comparison to the computed value, you must use this function:
http://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scFormattedEvaluate
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