Support Board
Date/Time: Tue, 26 Aug 2025 10:05:14 +0000
Trade Management by Study works in Sim but not live
View Count: 274
[2025-07-15 21:24:07] |
User453293 - Posts: 20 |
I don't want the stop to move, so I set the Adjustment Frequency to a very high value. This works as expected in Simulation, the stop order is created at the correct price. But when Trade Simulation Mode is off, the stop is created far away from the study level. What could be causing this and how to overcome? Thanks |
[2025-07-15 22:07:45] |
John - SC Support - Posts: 41464 |
We are not really understanding this given the way you have stated it. To begin with, if you have an existing order and then activate the "Trade Management by Study" then the "Trade Management by Study" is not going to adjust the Stop until the defined time has passed. Conversely, if you have the "Trade Management by Study" active and then open a position, the Stop will move immediately based on the settings for that study. You need to look at what is occurring and at what time relative to this information, in order to understand why the Stop is where it is located. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-07-15 22:45:21] |
User453293 - Posts: 20 |
The Trade Management by Study is always on, I don't deactivate it at any time nor do I make any changes to its configuration. The Adjustment Frequency is set to 200000. The only difference in behaviour occurs when Simulation Mode is on or off. In Simulation Mode, when an order is filled, a stop is created at the value of the referenced study. When Simulation Mode is off, the stop is created at a much further away value (and does not change).
|
[2025-07-16 14:38:19] |
John - SC Support - Posts: 41464 |
Please get us the chart that shows this issue by following these instructions: Support Board Posting Information: Providing Chartbook with Only a Single Chart For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-07-17 06:02:01] |
User453293 - Posts: 20 |
Here is the file...
|
Private File Attachment Deleted. |
[2025-07-17 09:03:52] |
User453293 - Posts: 20 |
I tried coding something in ACSIL (using sc.GetOrderByIndex and sc.GetNearestStopWorkingAttachedOrder) to get back the list of orders, and it worked for Simulation but nothing came back for non-Sim. I do get the list of non-Sim orders using the Orders window of SC.
Date Time Of Last Edit: 2025-07-17 09:08:52
|
[2025-07-21 20:22:01] |
Sierra_Chart Engineering - Posts: 20734 |
The Trade Management by Study is always on, I don't deactivate it at any time nor do I make any changes to its configuration. The Adjustment Frequency is set to 200000. The only difference in behaviour occurs when Simulation Mode is on or off. In Simulation Mode, when an order is filled, a stop is created at the value of the referenced study. When Simulation Mode is off, the stop is created at a much further away value (and does not change). We understand the general reason for the problem when enabling and disabling Trade Simulation Mode. We have implemented a solution which will be out in the next release.I tried coding something in ACSIL (using sc.GetOrderByIndex and sc.GetNearestStopWorkingAttachedOrder) to get back the list of orders, and it worked for Simulation but nothing came back for non-Sim. I do get the list of non-Sim orders using the Orders window of SC.
Related to this, refer to:Automated Trading Management: SendOrdersToTradeService 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 Date Time Of Last Edit: 2025-07-21 20:22:16
|
[2025-07-23 14:41:55] |
Sierra_Chart Engineering - Posts: 20734 |
For a solution to the problem. Update to the current version of Sierra Chart. Instructions: Software Download: Fast Update 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 |
[2025-07-28 04:37:42] |
User453293 - Posts: 20 |
I tested out the new release. This time, using Trade Management by Study, the stop was not set correctly in either simulation or non-simulation. However, I was able to get sc.GetNearestStopWorkingAttachedOrder and sc.ModifyOrder working in both simulation and non-simulation. For anyone reading, the code was, essentially: sc.SupportAttachedOrdersForTrading = true; if (sc.GlobalTradeSimulationIsOn) { sc.SendOrdersToTradeService = false; } else { sc.SendOrdersToTradeService = true; } int getAttachedOrderCallSuccess = sc.GetNearestStopWorkingAttachedOrder(OrderDetails); . . . sc.ModifyOrder(ModifyOrder); Date Time Of Last Edit: 2025-07-28 04:38:08
|
[2025-07-28 05:18:02] |
User453293 - Posts: 20 |
With a little more experimentation with Trade Management by Study, what I found is happening is: 1. Opening order placed by user. 2. SC sets the attached stop order at the value set in the Trade Window for the chart. 3. TMbS checks if Order Adjustment period has elapsed from the time of step 2. and adjusts the price if so. However, that means the attached stop order is sitting at the wrong price until the first Adjustment Period has elapsed. If you don't want the attached order price to change and set the Adjustment Frquency to a very high value, the stop will never get to the correct price. What I think should happen instead is: 1. Opening order placed by user. 2. SC sets the attached stop order at the value set in the Trade Window for the chart. (Or just get rid of this step and create the attached order in step 3.) 3. TMbS sets the attached order price to the value of the referenced study. 4. TMbS checks if Order Adjustment period has elapsed from the time of step 3. and adjusts the price if so. Date Time Of Last Edit: 2025-07-28 05:23:44
|
[2025-07-28 05:28:32] |
Sierra_Chart Engineering - Posts: 20734 |
Would be best to modify the study to meet your requirements. Refer to: How to Build an Advanced Custom Study from Source Code It does not mean there is a problem. It is just that your requirements are different than what the study does. This is all 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 |
[2025-07-28 05:53:56] |
User453293 - Posts: 20 |
I understand where you are coming from, and I have already created a solution for what I need (that doesn't use TMbS). But I think you should look again at the functionality you have for TMbS. If a user wants the price to adjust every 60 secs, then for the entire first 60 seconds the price will be at a level that is according to the static Trade Management window. I think it's unlikely any user would want this.
|
To post a message in this thread, you need to log in with your Sierra Chart account: