Support Board
Date/Time: Wed, 16 Jul 2025 01:54:12 +0000
[Programming Help] - Study won't send live trades
View Count: 93
[2025-06-24 15:37:47] |
APMS - Posts: 30 |
Hi, My study won't send trades when I use a live account. I have Teton Routing and an AMP account. When I use the exact same system with the Trading Evaluator, it works fine. I have "Auto Trading Enabled" On. I have "Trade Simulation Mode" Off. I have "SendOrdersToTradeService" set to Yes in my code - after the SetDefaults method. Is there something I might have missed that causes this? It works to place trades manually using Chart Trading. Best, A |
[2025-06-26 09:07:17] |
APMS - Posts: 30 |
I wonder if the SC team has any thoughts on this matter. I think it's strange that the study works with "Trading Evaluator" but not with "Teton CME Routing". Date Time Of Last Edit: 2025-06-26 15:46:29
|
[2025-06-26 14:47:20] |
John - SC Support - Posts: 40916 |
When you have an issue, look at the "Trade >> Trade Service Log" and see what it states. The reason for the failure should be in there. You can post that log to this thread if you want us to take a look. Follow these instructions for this: Support Board Posting Information: Providing Lines From Trade Service Log If there are no errors in the Trade Service Log, then the issue has something to do with your study, and you would need to debug it. This is not something we can help with. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-06-26 17:49:02] |
APMS - Posts: 30 |
Thank you for the reply and for encouraging me to look into my code. The Trade Service Log showed nothing, therefore debugging was performed and the root of the problem was found: Using sc.GetAskMarketDepthEntryAtLevel with LevelIndex=0 results in different price attributes for the s_MarketDepthEntry, when done with Trading Evaluator and Teton CME Routing. For an Ask price of 6189.50 I get the following: Trading Evaluator returns: 6189.500000 Teton CME Routing returns: 618950.000000 A difference by a factor of 100. Is there a reason for this difference? I have not seen it in any documentation. Best, A |
[2025-06-26 18:18:44] |
John - SC Support - Posts: 40916 |
Different services use a different format for the prices. You need to apply the "Real-Time Price Multiplier" to the data to get the price value as you would see it in the chart. Refer to the following: ACSIL Interface Members - Variables and Arrays: sc.RealTimePriceMultiplier For the most reliable, advanced, and zero cost futures order routing, use 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: