Support Board
Date/Time: Sat, 30 Nov 2024 04:37:19 +0000
[Programming Help] - HOWTO TURN on-off AT via acsil ?
View Count: 541
[2022-11-02 15:37:28] |
User574685 - Posts: 28 |
Hi is there a function or some possibility to turn on/off AT (autotrading) by acsil ? Thanks for help Dave |
[2022-11-02 16:42:56] |
JohnR - User831573 - Posts: 306 |
This might be what you are looking for. ACSIL Interface Members - Variables and Arrays: sc.TradingIsLocked sc.TradingIsLocked Type: Read-only integer variable. The sc.TradingIsLocked variable is set to 1 when Trade >> Trading Locked is enabled. Otherwise, it is set to 0. To change the state of trading locked, use the sc.SetTradingLockState function. Hope this helps, JohnR |
[2022-11-04 21:10:33] |
ForgivingComputers.com - Posts: 960 |
Locking trading will also lock manual trades, and lock trading on all charts. An alternative would be: sc.SendOrdersToTradeService = false;
|
[2022-11-07 21:42:14] |
User90125 - Posts: 715 |
Support, sc.SendOrdersToTradeService = false;
Is there an available Control Bar command for this? If not, can one be added easily? Thanks. Date Time Of Last Edit: 2022-11-07 21:46:23
|
[2022-12-26 21:02:27] |
User90125 - Posts: 715 |
Just following up on this. If it were to be added, could it be done on a per-chart only basis. The current Trading Locked control bar seems to lock up everything on a universal basis. |
[2022-12-26 21:44:44] |
ForgivingComputers.com - Posts: 960 |
You can add a Control Bar Button for Trade>>AutoTrade Enabled - Chart
|
[2022-12-27 00:03:26] |
ondafringe - Posts: 286 |
You can put your trade execution code inside a conditional statement. Then create a bool variable, and setup a hotkey to turn that variable on/off. I do that and have a bool for pause trading. I press "P" to pause trading and press "R" to resume trading. |
To post a message in this thread, you need to log in with your Sierra Chart account: