Support Board
Date/Time: Thu, 23 Jan 2025 03:13:23 +0000
Post From: Live FXCM Trading from ACSIL
[2018-10-16 13:31:30] |
User53496 - Posts: 34 |
Hi Support, I connected sierra chart to my live FXCM trading account. Now I want to send an order with a stop and a profit target via ACSIL. In demo it all worked fine, but when I sent a live order, it was filled, but the stop and target that I defined were 2 different orders in FXCM: SE order (stop entry) and LE (Limit Entry) order when looking at FXCM's Trade Station. 1. How can I send an order with a stop and profit that will match 1 order like in FXCM's trading station? here is the acsil code I used for entering: s_SCNewOrder NewOrder; NewOrder.OrderQuantity = 1000; NewOrder.OrderType = SCT_ORDERTYPE_MARKET; NewOrder.TimeInForce = SCT_TIF_GOOD_TILL_CANCELED; //Define the Attached Orders to be attached to the main Market order //Target 1 NewOrder.Target1Offset = 10 * sc.TickSize; NewOrder.AttachedOrderTarget1Type = SCT_ORDERTYPE_LIMIT; // Common Step Trailing Stop NewOrder.StopAllOffset = 10 * sc.TickSize; NewOrder.AttachedOrderStopAllType = SCT_ORDERTYPE_STEP_TRAILING_STOP; NewOrder.TrailStopStepPriceAmount = 10 * sc.TickSize; return sc.BuyEntry(NewOrder); Thanks, Eyal |