Login Page - Create Account

Support Board


Date/Time: Fri, 10 Jan 2025 03:47:51 +0000



Post From: Multiple entries at various times with single trailing stop in ACSIL

[2016-08-09 04:55:34]
SantiagoTrader - Posts: 11
I'm implementing a strategy that performs multiple entry orders at various times along with a single trailing stop that will close all of the open positions when hit.

When trading manually, SC seems to do this naturally, combining the open positions into a single indicator (an aggregate position) on the chart and updating the stop order with the increased quantity.

However, when trying to implement this in ACSIL it seems that entry orders will have their own independent trailing stops as attached orders or you can try manually creating a stop order, keeping track of the quantity and InternalOrderID yourself. Is the latter the recommended method or is there a better (more simpler) way? If it is recommended, then please confirm whether my code would also have to monitor the price change and move the stop loss as needed since an automatic trailing stop lose won't work?

Code samples would be appreciated. I'm trading Forex with FXCM over a FIX connection.