Login Page - Create Account

Support Board


Date/Time: Wed, 25 Jun 2025 21:56:05 +0000



Efficient Bracket Order Entry as command string

View Count: 982

[2021-12-06 12:38:16]
User272232 - Posts: 3
Hi,
I am a discretionary intraday "swing" trader (not scalping through the DOM) fading the market at specific levels and am pre-planning my trades in Excel. This means that I know my precise entry price, stop size, target, and lot size ahead of entering a trade at all times. Also, my stop size and therefore lot size changes on every trade since I am using a fixed $ risk for each trade and my stop is based on market structure.

From what I understand the only way to enter a bracket order is to manually enter quantity, order type, entry price in the order entry panel, then click the targets tab and again manually enter the stop and target offset/price and only then being able to execute. Or you can save a standard configuration with a fixed stop and target. But then it is always the same stop size and target offset and I'll have to move those around on the chart once the order is sent to match my precalculated Stop and Target prices. This all takes a lot of time and is prone to errors.

What I would like to do is: Pass on a command string to SC which will then execute an order based on it. Basically, a command-line looking something like this: "Order=Side:Buy,Type:Limit,Qty:1,Entry:4500,Stop:4495,Target:4510,TIF:GTC".

My question is: Can I achieve something like this through ACSIL? Ideally, there'd be a button in one of my control bars that would cause an input dialog to pop up asking me for the command, and once I press enter the trade executes. If you see another way, of course please let me know.

Basically, it is the command-line functionality provided as in the Tradestation platform: http://help.tradestation.com/10_00/eng/tradestationhelp/tb/placeorder_advanced_parameters.htm

Thanks for your answers in advance !
Cheers
Date Time Of Last Edit: 2021-12-06 12:52:00
[2021-12-06 16:55:59]
John - SC Support - Posts: 40605
It is possible to create a window that gets input using ACSIL. Refer to the following:
ACSIL Programming Concepts: Use of Dialog Windows in Advanced Custom Studies

Keep in mind that you can always build locally and have access to all the Visual Studio functionality, therefore it would be possible to read data directly from your Excel sheet if you wanted to do so.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2021-12-06 18:09:25]
User272232 - Posts: 3
Ok, thank you for the swift reply!

From the link you gave me it looks like the use of modal dialog boxes is not supported so I gather what I wanted to achieve is not really possible. Not sure about the second suggestion and sorry if I got it wrong but would that mean that I'd need to recompile the study in Visual Studio each time I want to have an order executed?

Really a shame because order entry for bracket orders is very cumbersome in Sierra Chart (if you need different stop and target offsets with each order). I should probably look into using other trading software for execution, maybe even Tradestation and keep SC for charting only.
[2021-12-06 19:15:44]
John - SC Support - Posts: 40605
It is possible, you just need to use a Dialog Box which would contain your entry. Then you would read the data when you select your button.

In terms of reading from Excel, we were just pointing out that if you build your study locally, you can have access to all the features of C++ and Visual Studio, so you can get data from your own Excel sheet. You would need to work out how to do this, but you would have to build the study locally (you can not build it using our Remote Build option, as that does not include all the Microsoft information).
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