Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 12:20:26 +0000



[Programming Help] - ASCIL: Code trigger or Alert when Target1Offset is reached?

View Count: 176

[2023-12-05 13:50:38]
BenjFlame - Posts: 324
Hi,
to enter an order I use this code:

s_SCNewOrder NewOrder;
NewOrder.OrderQuantity = sc.TradeWindowOrderQuantity;
NewOrder.OrderType = SCT_ORDERTYPE_MARKET;
NewOrder.TimeInForce = SCT_TIF_GOOD_TILL_CANCELED;
NewOrder.Target1Offset = sc.TickSize * Input_TickTarget.GetInt();
NewOrder.Stop1Offset = sc.TickSize * 50;

Do you know of any way to have some code or alert run when Target1Offset placed limit order is triggered ?

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

Login

Login Page - Create Account