Login Page - Create Account

Support Board


Date/Time: Fri, 04 Jul 2025 22:28:41 +0000



Post From: ASCIL MULTIPLE TRIGGER ORDERS

[2022-04-21 16:58:37]
ForgivingComputers.com - Posts: 1076
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.