Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 00:22:00 +0000



FlattenAndCancelAllOrders does not work in trade simulation mode

View Count: 1038

[2014-06-21 19:10:53]
@sstfrederik - Posts: 404
FlattenAndCancelAllOrders in ACSIl is not working in TSM. Have an ACSIL script where it is called but not executed and also have a ACS button where it is not executed. In live mode it works fine, but when id want to backtest it fails.
Any leads?

Thanks.
[2014-06-21 20:07:45]
Sierra Chart Engineering - Posts: 104368
Make sure that sc.SendOrdersToTradeService is set to FALSE. Otherwise, it will get ignored when in Trade Simulation Mode. This is a recent change.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2014-06-22 15:10:12]
@sstfrederik - Posts: 404
thanks. that solved it.

if (sc.GlobalTradeSimulationIsOn == 1)
{
SendOrdersToService.SetYesNo(false);
}

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

Login

Login Page - Create Account