Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 22:55:55 +0000



Position Sizing Study for Forex

View Count: 1610

[2018-11-28 07:30:32]
ILIM KIRGIZ - Posts: 187
Hi there,
We are working on craeting a position sizing study for FX trading.

With two mouse click we would like to determine stop loss and entry levels and add ask-bid difference to them in tick values.
Then use this value to calculate quantity.

For example If I trade GBPJPY pair and If my capital is in $;
Capital is 100K$ and allowed risk percentage is 1% per trade. So quantity is being calculated according to it.

I have below questions.
1. To calculate quantity, this study needs to reach current USD/JPY Ask Price. Is there a way to do it without opening a chart inside the chartbook containing USDJPY pair such as reading directly from intraday file?
2. Can I set attached orders target trigger offset and stop offset via the study?

Thanks.
Ilim.
[2018-11-28 18:29:06]
Sierra Chart Engineering - Posts: 104368
1. You can use this particular ACSIL function:
sc.GetBasicSymbolData()

2. No not currently. We would have to add that capability.
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
[2018-11-30 13:29:33]
ILIM KIRGIZ - Posts: 187
Thank you.
Do you have a plan to do so in the near future?
Best regards,
Ilim.
[2018-11-30 17:35:19]
Sierra Chart Engineering - Posts: 104368
Yes we will add the capability in the next few days for ACSIL to configure attached orders but not submit orders. Assuming there are no technical problems 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
[2018-12-04 10:56:24]
ILIM KIRGIZ - Posts: 187
Thanks. Please let me know when It is added then.
[2018-12-04 18:02:59]
Sierra Chart Engineering - Posts: 104368
It is added. The function is   sc.SetAttachedOrders(const s_SCNewOrder& AttachedOrdersConfiguration);

It just takes a s_SCNewOrder data structure filled out with the Attached order settings and this then configures the Attached Orders on the Trade Window for the chart the trading study is on.
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
[2019-01-10 17:19:15]
Cavalry3162 - Posts: 523
@ILIM KIRGIZ - would you mind sharing that study? i'd love to have something like this.

thanks,
Andreas
[2019-02-02 16:22:00]
bradh - Posts: 854
It just takes a s_SCNewOrder data structure filled out with the Attached order settings and this then configures the Attached Orders on the Trade Window for the chart the trading study is on.

Could you add an example to the documentation? Automated Trading From an Advanced Custom Study: sc.SetAttachedOrders

Thanks!

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

Login

Login Page - Create Account