Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 20:50:09 +0000



Post From: New Trade Sim Environment and ACSIL auto-trade settings

[2021-05-21 05:58:42]
User275839 - Posts: 57
Oh! One confirmation if I may...

4) In my ACSIL code I have sc.SendOrdersToTradeService set to false. Is this OK for backtesting with the SC Trade Sim service?

Yes. You can use this statement to automatically change this setting when you switch back and forth between Sim and Live.

sc.SendOrdersToTradeService = !sc.GlobalTradeSimulationIsOn;

Should the above line be INSIDE or OUTSIDE (or both?) the if (sc.SetDefaults) scope? I'm imagining it should be OUTSIDE otherwise it won't get evaluated in all situations?

Which is correct?

Thanks