Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 10:30:42 +0000



Backtesting SIM mode.

View Count: 310

[2023-02-18 15:19:30]
NepWog - Posts: 1
Hi I have following setting, yet the backtesting is not working for me.

On my ACSIL code I have:

sc.SendOrdersToTradeService = false;

Under Trade--> Trade Simulation Mode On [Yes] ticked.
Under Trade--> Auto Trading Enabled - Global [Yes] ticked
Under Trade--> Auto Trading Enabled - Chart [Yes] ticked

Under File --> Disconnect [Yes] chart is currently disconnected status

When I run the replay with mode = "Accurate Trading system Backtest Mode"

I get following on Trade Service Log:

Replay 100X: MES-202303-CME-USD[M] 2700 Trades #12 | SendOrdersToTradeService is not consistent with 'Trade >> Trade Simulation Mode On' setting. Order action ignored. | 2023-02-18 15:12:48.001

basically, there is something wrong and trades are ignored.

I read through the documentation and tried everything that I could think of yet there is no luck.

Could you please let me know what exactly should be the settings for backtesting (replay) for mode = mode = "Accurate Trading system Backtest Mode" ?

Thank you.

Regards,
San
[2023-02-21 15:14:44]
Sierra_Chart Engineering - Posts: 17226
Make sure this line of code is below the sc.SetDefaults code block:
sc.SendOrdersToTradeService = false;

Also recompile the study. And are you using Remote Build?
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account