Login Page - Create Account

Support Board


Date/Time: Tue, 22 Apr 2025 03:06:58 +0000



Post From: Cheking move of attached Stop order to breakeven in ACSIL

[2025-01-19 19:22:21]
gtaranti - Posts: 94
I don't fully get it.

MoveToBreakEven is a member of s_SCNewOrder.
So, do we have to track the the MoveToBreakEven.Type of NewOrder after the order has been submitted?


s_SCNewOrder NewOrder;
NewOrder.MoveToBreakEven.Type = MOVETO_BE_ACTION_TYPE_OFFSET_TRIGGERED;
NewOrder.MoveToBreakEven.TriggerOffsetInTicks = 50;
....
....
// Logic to check NewOrder.MoveToBreakEven.Type in order to determine if type changed from original type to NONE.

I think an additional member to the s_ACSTrade structure would be more appropriate.
This is how I usually track new trades, and check their progress:

s_ACSTrade TradeEntry;
sc.GetTradeListEntry(sc.GetTradeListSize() - 1, TradeEntry);