Login Page - Create Account

Support Board


Date/Time: Fri, 09 Jan 2026 14:51:24 +0000



Post From: Bar Based Backtest blocked (-8998) despite correct AutoTrade settings (ACSIL)

[2026-01-07 16:37:57]
User105070 - Posts: 3
I am unable to get Bar Based Backtesting to place trades from an ACSIL study, despite all documented requirements being met.

Summary:

• Custom ACSIL study compiles and loads correctly
• Study calculations execute and indicators render normally
• Orders are attempted via sc.BuyEntry / sc.SellExit
• Platform is disconnected (File → Disconnect)
• Trade Simulation Mode = ON
• Auto Trading Enabled – Global = ON
• Auto Trading Enabled – Chart = ON
• Chart Trade Mode = ON
• Trading Locked = OFF

However, when running AutoTrade System Bar Based Backtest:

• Orders are blocked with error -8998
• “TRADING BLOCKED” messages appear
• NumberOfTimesCalculateCalled (Cumulative) = 0
• Trades tab remains empty
• Trade Statistics show zero or inconsistent values

This occurs even with a minimal SMA crossover test strategy.

Questions:

1) Are there ANY additional required settings or chart states that can silently block ACSIL Bar Based Backtests?
2) Does Bar Based Backtest strictly require Chart Trade Mode ON even in Simulation?
3) Are there known issues in the current build related to ACSIL AutoTrade or Bar Based Backtest?
4) Is there a way to fully reset trading/backtest state without reinstalling Sierra Chart?

Additional diagnostic information:

• Bar Backtest log shows:
"Back test processing: NumberOfTimesCalculateCalled (Cumulative) = 0"
• Study DOES calculate normally during live/sim chart replay
• Same behavior occurs with a minimal SMA cross test strategy

I can provide the exact ACSIL source code, logs, and screenshots if needed.

TRADING BLOCKED (-8998): Enable Chart Trade Mode + Auto Trading (Chart/Global) and run Bar Based Back Test
This message appears despite the following being verified at the time of the test:

• Trade Simulation Mode = ON
• Trading Locked = OFF
• Auto Trading Enabled – Global = ON
• Auto Trading Enabled – Chart = ON
• Chart Trade Mode = ON
• Platform disconnected (File → Disconnect)

Additional diagnostics from the same run:

Bar Backtest: [Symbol] | Back test processing:
NumberOfTimesCalculateCalled (Cumulative) = 0


Notes:
• The ACSIL study compiles and loads correctly
• Study calculations and plots execute normally
• sc.BuyEntry / sc.SellExit are called
• Same behavior occurs with a minimal SMA crossover test study
• Study does calculate during live/sim chart replay


Thank you.
Date Time Of Last Edit: 2026-01-07 20:25:05