Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 20:21:29 +0000



Programmatically set trade size in discretionary trading

View Count: 785

[2017-06-19 17:03:44]
Jagui - Posts: 19 Invalid SC Account Name.
Hello, I would like to know if there is a way (any kind of way, from setting parameters to coding in c++) to accomplish a simple task.

I would like to:

1) on a stock chart, manually enter an order to open a position, with bracket orders automatically added by SC chart trader

2) override the trade size by invoking some code that, before sending the order to the broker, changes the order size according to some logic (e.g. calculating number of shares based on current volatility)

Is this possible?

Thank you.
[2017-06-19 18:52:31]
Sierra Chart Engineering - Posts: 104368
Yes this is possible.
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
[2017-06-19 20:09:50]
Jagui - Posts: 19 Invalid SC Account Name.
Thank you for your answer.

How I do it? With an indicator? With a spreadsheet? Other way?
Please point me in the right direction.
[2017-06-20 05:44:38]
Sierra Chart Engineering - Posts: 104368
You need to use ACSIL:
Automated Trading From an Advanced Custom Study

This is the particular relevant ACSIL variable for this:
ACSIL Interface Members - Variables and Arrays: sc.TradeWindowOrderQuantity

However, we see that this variable is currently read-only. We will add support in the next release to allow it to change the order quantity for the Trade Window for the chart, assuming there are no unexpected complications with this.
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
[2017-06-20 05:44:42]
Sierra Chart Engineering - Posts: 104368
You need to use ACSIL:
Automated Trading From an Advanced Custom Study

This is the particular relevant ACSIL variable for this:
ACSIL Interface Members - Variables and Arrays: sc.TradeWindowOrderQuantity

However, we see that this variable is currently read-only. We will add support in the next release to allow it to change the order quantity for the Trade Window for the chart, assuming there are no unexpected complications with this.
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
[2017-07-18 17:01:34]
Jagui - Posts: 19 Invalid SC Account Name.
Thank you. It worked.
Very simple way of doing a simple thing, while much more difficult or impossible to do in other platforms I have.
[2017-07-19 02:05:35]
Sierra Chart Engineering - Posts: 104368
OK this is good.
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