Support Board
Date/Time: Fri, 07 Feb 2025 15:13:54 +0000
[Programming Help] - ACSIL and sim mode
View Count: 1138
[2020-06-06 06:36:52] |
Giovanni II - Posts: 25 |
Is there a way, an instruction, to read from ACSIL code if Sierra is in Sim or Real trading mode? Thank’s |
[2020-06-07 00:27:49] |
JohnR - User831573 - Posts: 309 |
Here is the part of the docs that explain what you are looking for. Automated Trading Management: SendOrdersToTradeService SendOrdersToTradeService This variable applies to the automated trading system it is set on. The default value for this variable is FALSE (No). Setting SendOrdersToTradeService to FALSE (No) will send all orders and order actions to the Sierra Chart Trade Simulation system. Setting SendOrdersToTradeService to TRUE (Yes) will send all orders and order actions to the connected Trading service. The connected Trading service is defined in the Data/Trade Service Settings. JohnR |
[2020-06-07 06:00:44] |
Giovanni II - Posts: 25 |
Well, Is there a way to read the state (On or Off) of the “Global Trade >> Trade Simulation Mode On” with ACSIL code? Thank’s Date Time Of Last Edit: 2020-06-07 06:03:44
|
[2020-06-07 08:24:13] |
Ackin - Posts: 1865 |
I didn't understand what the previous user was answering, but Try: sc.GlobalTradeSimulationIsOn |
[2020-06-07 08:46:25] |
Ackin - Posts: 1865 |
I already understand that JohnR - User831573) Just for your correction: Trade simulation is a separate independent function from it. "SendOrdersToTradeService" This command does not change Live / Sim, it only sets orders to be sent to another service. Be careful not to be surprised. Intended for you in a good way. Date Time Of Last Edit: 2020-06-07 08:49:22
|
[2020-06-07 15:38:00] |
Giovanni II - Posts: 25 |
sc.GlobalTradeSimulationIsOn works well Thank’s |
[2020-06-07 18:15:36] |
JohnR - User831573 - Posts: 309 |
Ackin, No offense taken. I am still learning, but trying to help when I think I can. Turns out I was close, but got it wrong. Thanks for the correction. JohnR |
[2020-06-07 18:27:19] |
Ackin - Posts: 1865 |
Ackin, No offense taken. I am still learning, but trying to help when I think I can.
:) In my English, you must see that I am not from an English-speaking country. Some sentences may sound harsh and may have other meanings without context ... but it shouldn't be - it's definitely not the intention....it is not my goal to offend anyone I respect all people (who help) ..... including you. Date Time Of Last Edit: 2020-06-07 18:39:01
|
To post a message in this thread, you need to log in with your Sierra Chart account: