Support Board
Date/Time: Sat, 05 Jul 2025 08:34:51 +0000
SC1850 - ACSIL sc.GetNearestStopOrder not working on realtime feed
View Count: 761
[2018-12-17 09:47:26] |
User864893 - Posts: 26 |
I developed an ACSIL study which makes use of sc.GetNearestStopOrder while in a position. Its working fine on Replay but on a realtime feed (GAIN / DEMO) its not returning (not finding) the nearest StopOrder. Its also working on Sierra SIM account but not on the GAIN-DEMO account. According to the documentation it should return the nearest stoporder as long the OrderState is Pending or Open. Please see screenshot. Date Time Of Last Edit: 2018-12-17 10:09:42
|
Private File |
[2018-12-17 19:48:23] |
|
For the order with Internal Order ID 4097, does it have a nonzero Parent Internal Order ID? It is also displayed in the Orders 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: 2018-12-17 19:49:05
|
[2018-12-17 20:08:09] |
User864893 - Posts: 26 |
yes it had ; parent id 4095; see attached activity log; messages starting at 2018-12-17 09:26:17
|
Private File |
[2018-12-18 11:07:25] |
|
You need to make sure that this is set as follows in the study function: sc.SendOrdersToTradeService = true; 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: