Support Board
Date/Time: Tue, 26 Nov 2024 02:19:48 +0000
[ACSIL] - Trailing order does not close
View Count: 179
[2024-01-08 23:05:15] |
backinblack - Posts: 35 |
Hi, I have a custom study that opens new positions with a trailing SL. The code looks like: NewOrder.AttachedOrderTarget1Type = SCT_ORDERTYPE_LIMIT; NewOrder.StopAllOffset = stopAllOffset; // Initial stop placement NewOrder.AttachedOrderStopAllType = SCT_ORDERTYPE_TRAILING_STOP; NewOrder.TriggeredTrailStopTriggerPriceOffset = priceMoveX * sc.TickSize; // When price moves 8 ticks above current stop ... NewOrder.TriggeredTrailStopTrailPriceOffset = slMoveForX * sc.TickSize; // ... increase stop by 4 ticks It runs all fine in Sim mode. But when I connect to Rithmic paper trading feed, more often than not, even though the position is closed when the target is hit, I see an orphan hanging trailing loss line on my chart which goes away if I manually press cancel. The issue is if I don't cancel the orphaned order, the system (For the right reasons), thinks that there is an open order and does no take any new positions subsequently (probably sc.MaximumPositionAllowed stops it from doing so). Is there something I am missing in my order configuration in the code here or is this a Rithmic issue? Thanks you! J |
[2024-01-08 23:30:46] |
Sierra_Chart Engineering - Posts: 17179 |
This is a Rithmic issue. We cannot help with it further.
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 |
[2024-01-08 23:34:52] |
backinblack - Posts: 35 |
Thank you for confirming!
|
To post a message in this thread, you need to log in with your Sierra Chart account: