Login Page - Create Account

Support Board


Date/Time: Tue, 06 May 2025 22:52:59 +0000



Post From: [Programming Help] - Can I disable “IsAutoTradingOptionEnabledForChart” in ACSIL?

[2024-12-06 12:30:00]
emmanuel - Posts: 62
No, that property is read-only. I haven't seen a way to change the auto-trading status from ACSIL, which is very likely on purpose.

Alternatively, you can have your watchdog study produce a subgraph with a known value (ex. 1) when auto-trading should be disabled. Then, you can have your trading studies read the value using `sc.Input[n].GetChartStudySubgraphValues()` and automatically disable themselves.

In fact, a good way to do it is have a trading study disable itself if the input value is non-zero. That way, you can set the default like this: `sc.Input[n].SetChartStudySubgraphValues(sc.ChartNumber, 0, 1)` which if I recall is the open price; Since the open price is unlikely to be 0, the trading study would be disabled by default.