Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 23:21:11 +0000



[Programming Help] - ATM strategy and IB Commission

View Count: 682

[2019-12-23 19:48:35]
User260560 - Posts: 37
Hi there, I'm using SC with IB, and I tried using the ATM strategy. It seems like when I select two target with two stops, it split my stock order shares into 2 buy orders so I get charged twice commission with IB, which can add up to a lot overtime. I'd like to submit my entry all at once so only pay commission once. I'm wondering if there's a setting that could fix the issue?Please let me know. Thanks!
[2019-12-24 19:10:44]
Sierra Chart Engineering - Posts: 104368
Yes this is the case because in order for there to be server-side bracket orders, the parent order quantity and the child orders (Target and Stop orders) quantities must all match.

Did you want to use server side bracket orders?
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
Date Time Of Last Edit: 2019-12-24 19:14:06
[2019-12-25 21:50:58]
User260560 - Posts: 37
Ah I see. Thanks for your reply. If I disable server side bracket order, and when I have a power outrage in the middle of a trade, do my previous bracket orders come back into effect when my power is back on and I turn my computer back on, or they get lost permanently when the power shut down and I have to add new bracket orders?

Also I'd like to ask you another question please. I've been trying to create a study to calculate how many shares to buy based on risking 100 bucks per trade, so my calculation is 100/distance, and distance is from current price to 10min 13ema. I couldn't seem find any study subgraph calculation study to calculate 100 divided by another study subgraph. Could you please tell me which study I could use for that? Thanks!
[2019-12-28 05:05:22]
Sierra Chart Engineering - Posts: 104368
The bracket orders may be present when Sierra Chart is restarted. It depends upon whether the parent order filled or not. Refer to:
Attached Orders: General Management of Attached Orders

In order to do the 100 / distance, you would need to use two studies - Study Subgraph Divide, where you would divide the Subgraph by 100, then 1 Divided by Price.

In each case, you would need to set the Based On Input to the appropriate study on which you want to make the calculation.

Refer to the following for these studies:
Study Subgraph Divide

1 Divided by Price
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-12-28 17:17:01]
User260560 - Posts: 37
Thanks for your reply. I actually did try to create that based on the two studies you mentioned above, as logically it makes sense. But I had some problem with the second study, as it described as "this study calculates and displays the reciprocals of the Open, High, Low, and Close Prices. The reciprocal Prices are displayed as the Main Price Graph.The 1 Divided by Price study is typically used for currencies." So I set based on the distance study, under subgraphs - drawing type, i tried line on close, and only draw the last, but nothing shows up and it messes up my current chart...Could you tell me how exactly to use this to show the result of 100/distance as a number on the chart or region 2? Thanks!
[2019-12-29 20:46:03]
John - SC Support - Posts: 31379
Sorry, it is possible with the 1 Divided by Price study, but it would be easier to just use the Spreadsheet Formula study and put in the formula = 1 / IDx.SG1 where x is the number of the Study Subgraph Divide. You do not need to change the Based On for this particular study. Just make sure to set the Chart Region as you want it.
For the most reliable, advanced, and zero cost futures order routing, use 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