Login Page - Create Account

Support Board


Date/Time: Wed, 07 May 2025 16:58:29 +0000



[Programming Help] - Problem Logging Real Account Trades with ASCIL

View Count: 235

[2024-11-21 23:19:46]
User299099 - Posts: 10
Hello, I am creating an indicator to automatically log trades and any modifications I make to an order in ASCIL. The problem is that I can successfully log everything in Sim accounts, but not in the real account. Could you tell me if this is possible to do in ASCIL?

Thank you very much.
[2024-11-22 10:11:43]
User431178 - Posts: 667

Could you tell me if this is possible to do in ASCIL?

Yes


The problem is that I can successfully log everything in Sim accounts, but not in the real account.

What do you have this set to, it needs to correspond to live/sim?
Automated Trading Management: SendOrdersToTradeService
Date Time Of Last Edit: 2024-11-22 10:12:44
[2024-11-22 10:25:20]
User299099 - Posts: 10
The orders appear in the Trade Activity Log and are sent correctly through DTC to Rithmic, but through ACSIL, the indicator I created only captures the orders (not open positions, I am specifically referring to orders) from simulated accounts.
[2024-11-22 10:56:34]
User431178 - Posts: 667
I'll say it again, what do you have sc.SendOrdersToTradeService set to in the study?
Read the docs again and see why it is relevant.

Automated Trading From an Advanced Custom Study: sc.GetOrderByIndex


When calling the sc.GetOrderByIndex function and Trade >> Trade Simulation Mode On is enabled or sc.SendOrdersToTradeService is false, then only simulated orders are returned.
If Trade >> Trade Simulation Mode On is disabled and sc.SendOrdersToTradeService is true, then only non-simulated orders are returned.

[2024-11-22 12:06:58]
User299099 - Posts: 10
Thank you very much, I think I am now well on my way.

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

Login

Login Page - Create Account