Login Page - Create Account

Support Board


Date/Time: Tue, 16 Sep 2025 14:54:13 +0000



Post From: ASCIL MULTIPLE TRIGGER ORDERS

[2022-04-21 16:58:37]
ForgivingComputers.com - Posts: 1123
There is an error in your SellEntry and BuyEntry orders. You need to specify the correct NewOrder:

s_SCNewOrder NewOrder1;
//parameters for order 1;
sc.SellEntry(NewOrder1);

s_SCNewOrder NewOrder2;
//parameters for order 2;
sc.BuyEntry(NewOrder2);

Specifying a BuyEntry after a SellEntry will either change the position by the second order's quantity, or if reversals are allowed, flatten the Short and then Go Long.