Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 06:02:18 +0000



Post From: GetOrderByOrderID()

[2016-10-19 09:53:20]
Pinger - Posts: 33
Thanks for your swift reply. Here is the order of events and what happens...

Sierra Chart 1473
LMAX Live Trading account using Sierra Chart simulation mode

Select "Go To Beginning of Chart"
Add my custom Study
Select "Replay Chart" clearing trade simulation data
My custom study opens a Buy Stop and a Sell Stop order
My custom study successfully modifies the orders as required, and GetOrderByOrderID() works
As soon as the Buy Stop fills GetOrderByOrderID() returns an error

I have looked in "Trade>>Trade Orders and Positions>>Orders" and there is no sign of the Buy Stop order (at all), only the remaining Sell Stop order.

I'm sure GetOrderByOrderID() didn't return an error for a filled order only a couple of days ago.

Many thanks for looking into it.