Login Page - Create Account

Support Board


Date/Time: Tue, 31 Mar 2020 01:39:30 +0000



Send Limit Orders

[2014-10-01 12:16:53]
FerroTrader - Posts: 62 | Ending Date: 2016-08-17 [Expired]
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: 82871 | Ending Date: 2020-06-09
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. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2014-10-02 09:49:47]
FerroTrader - Posts: 62 | Ending Date: 2016-08-17 [Expired]
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: 82871 | Ending Date: 2020-06-09
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. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2014-10-03 08:11:57]
FerroTrader - Posts: 62 | Ending Date: 2016-08-17 [Expired]
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 - 113 views
Attachment Deleted.
[2014-10-03 09:21:56]
Sierra Chart Engineering - Posts: 82871 | Ending Date: 2020-06-09
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. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.

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

Login

Login Page - Create Account