Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 23:44:48 +0000



[Programming Help] - Limit If Touched Order type

View Count: 320

[2023-06-28 19:05:59]
User769783 - Posts: 182
Are there any Limit If Touched order type examples? Maybe in the studies. Im trying to code a strategy in ACSIL using this order type but I do not wish to use the trading window. I want to set these within my program. Thanks
[2023-06-28 19:50:03]
User900285 - Posts: 94
Limit If Touched is an advanced server side order type and not all trading services provide it. Teton doesn't have it yet. Interactive Brokers has this order type and it's held on their servers. You could run a client side condition in the form of an Advanced Custom Study that could do something similar. It still won't function like a Limit If Touched order because when you close Sierra Chart the study will stop working. It would be interesting if SC eventually provides a method to send orders by a program to your Teton account outside of Sierra Chart. A REST API is what I've seen being used a lot these days.

If the strategy is short term then you could probably run it locally as an Advanced Custom Study without issues. To replicate what a Limit If Touched order does, you would need to access market data through ACSIL and set up some conditions around that. One study you could use as an example template is Trading: Bid/Ask Quantity Triggered Stop. This study requires the user to use the chart trading menu to place a line at the desired price to set up the order condition. When the market reaches the price and the other conditions are true, it submits the order. You would probably have to adjust the code to use a different trigger method than the one in that study. You could also change the order type being used since that study uses the Stop order type.

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

Login

Login Page - Create Account