Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 17:15:35 +0000



Multiple entries at various times with single trailing stop in ACSIL

View Count: 1011

[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.
[2016-08-09 06:55:49]
Sierra Chart Engineering - Posts: 104368
Refer to the Trading Scale In variable to do what you want:
ACSIL Interface Members - Variables and Arrays: sc.SupportTradingScaleIn
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-08-09 16:43:52]
SantiagoTrader - Posts: 11
Thanks! I was finally able to get this to work when I disabled sc.CancelAllOrdersOnEntriesAndReversals.

Is there a way to use a Percentage based trailing stop in ACSIL without relying on a Trade Window or configuration file?
[2016-08-09 17:08:03]
Sierra Chart Engineering - Posts: 104368
Specifying a percentage for Attached Orders is not supported in ACSIL. You would have to calculate the actual price or price offset yourself in your study function.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account