Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 18:43:57 +0000



Send Limit Orders

View Count: 1078

[2014-10-01 12:16:53]
FerroTrader - Posts: 70
Hello,

I have an automated trading strategy that sends limit order as take profit and stop loss: is there a way to reproduce "take profit" and "stop loss" orders during an ACSIL trading system ? Is there some exemple ?

Thank you
AF
[2014-10-01 20:44:32]
Sierra Chart Engineering - Posts: 104368
Yes. This is documented here:
http://www.sierrachart.com/index.php?page=doc/doc_AutoTradeManagment.php#SupportAttachedOrdersForTrading
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
[2014-10-02 09:49:47]
FerroTrader - Posts: 70
Hello,

thank you for your response.

I would like to send LIMIT ORDERS but I just cannot figure out how to do this using SC.
For instance: once and only once the LONG trigger signal is true send a LIMIT order (the parent order) to the market; once and only once the parent order has been complitely filled or partialy filled send to the market the STOP LOSS and the TAKE PROFIT order.

Well, is there the possibility to do this ? If yes, where can I find a sample code ?

Thank you a lot in advance
AF
[2014-10-02 23:28:21]
Sierra Chart Engineering - Posts: 104368
In the case of ACSIL you need to set s_SCNewOrder:: OrderType to the limit order type. This is documented here:
https://www.sierrachart.com/index.php?page=doc/doc_ACSILTrading.html#s_SCNewOrder

And also in the same order structure you can specify Target and Stop offsets.

You can find lots of examples in /ACS_Source/tradingsystem.cpp


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
[2014-10-03 08:11:57]
FerroTrader - Posts: 70
hello,

thank you for your response.

i have searched into the folder you provide but I have no tradingsystem.cpp file (image attached) !
Where can I find it ?

thanks,
Andrew
imagetradingsystem missed.jpg / V - Attached On 2014-10-03 08:10:34 UTC - Size: 340.66 KB - 352 views
Attachment Deleted.
[2014-10-03 09:21:56]
Sierra Chart Engineering - Posts: 104368
Not sure why that file is not there. It is automatically installed. If you update Sierra Chart with Help >> Download Prerelease you should get it.

Let us know if it still is missing after that.
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