Login Page - Create Account

Support Board


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



GetOrderByOrderID()

View Count: 775

[2016-10-19 07:21:41]
Pinger - Posts: 33
Hi

Has something changed recently (in the last couple of days) when using GetOrderByOrderID() in simulation mode? When I call this function with an order ID of an order which has filled it now returns an error whereas previously (I believe) it didn't. If this is the correct functionality then apologies for the stupid question but I'm sure I did not see this error previously.

Kind regards
[2016-10-19 07:54:09]
Sierra Chart Engineering - Posts: 104368
We will test this to make sure it still works properly.

Do you see the particular order you are trying to get listed in Trade >> Trade Orders and Positions >> Orders?
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
[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.
[2016-10-19 10:06:39]
Pinger - Posts: 33
Further to my last...

I have re-run the events as per my previous message watching "Trade>>Trade Orders and Positions>>Orders"

When my custom study opens a Buy Stop and Sell Stop both orders are displayed in "Trade>>Trade Orders and Positions>>Orders". As soon as the Buy Stop fills it disappears from the orders list, hence (probably) the GetOrderByOrderID() errors.

Kind regards
[2016-10-19 17:16:06]
Sierra Chart Engineering - Posts: 104368
Refer to the information about this here:
http://www.sierrachart.com/index.php?page=doc/TradeStatusWindows.html#AutoClearingOrders

What changed is that you are now using Accurate Trading System Back Test Mode on the Replay window.
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
Date Time Of Last Edit: 2016-10-19 17:18:02
[2016-10-19 17:23:36]
Pinger - Posts: 33
Hi

Thanks for your reply and link to the documentation. That explains what I'm seeing, I'm only surprised that I haven't noticed it before.

Many thanks for looking into my query so swiftly.

Kind regards

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

Login

Login Page - Create Account