Login Page - Create Account

Support Board


Date/Time: Wed, 12 Mar 2025 11:33:42 +0000



[Programming Help] - ASCIL MULTIPLE TRIGGER ORDERS

View Count: 544

[2022-04-19 15:29:47]
JDCII2112 - Posts: 21
Can anyone tell me if it is possible to place multiple orders at once using ASCIL?

Something like:

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

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

Or anything similar? I cannot find any examples despite literature being pretty clear we can place two orders at once.

Thanks.
[2022-04-20 21:36:07]
ondafringe - Posts: 314
I've place multiple orders using ACSIL, one right after the other, using a loop. The loop is so fast it appears the orders are placed all at once.

Whatever you're trying to accomplish, try it in SIM to see if it does what you want.
[2022-04-21 16:58:37]
ForgivingComputers.com - Posts: 1021
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.
[2022-04-21 20:13:09]
ondafringe - Posts: 314
I'm guessing he wants to place a limit order above the market and another limit order below the market.
[2022-05-06 00:36:20]
JDCII2112 - Posts: 21
ondafringe was correct.

I was able to accomplish the order using the following:

s_SCNewOrder NewOrder;

//parameters for order 1;

sc.SellEntry(NewOrder);


//parameters for order 2;

sc.BuyEntry(NewOrder2);






Except now once one order fills the other one goes haywire. It just starts ordering endlessly so got to figure that out now haha. So close.
[2022-05-06 01:24:06]
ondafringe - Posts: 314
Probably best if you explain exactly what you're trying to accomplish, and also post your complete code, including your parameters, as well as the condition(s) required to place the orders.
Date Time Of Last Edit: 2022-05-06 02:32:14

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

Login

Login Page - Create Account