Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 23:42:54 +0000



[Programming Help] - Sending repeatedly market orders to close a future position using Automated Trading

View Count: 325

[2023-06-30 01:07:04]
User509533 - Posts: 57
My understanding/Background: When I'm in front of a desktop running Sierra chart, I can send 'flatten' until the position is closed. However, I do place limit/OCO/bracket orders, and I'm away, and no longer monitoring the market. In a situation like that, I would like to get the same action that a 'Flatten' button does using automated trading. If my stop order (essentially a limit order with 3 points for ES) does not get a fill, my script would send consecutive 'market orders' until it gets a fill. Can I implement this using automated trading?

Before I invest time in learning automated trading, I would like to know if this is even possible. I appreciate all your help.
Date Time Of Last Edit: 2023-06-30 04:39:39
[2023-06-30 13:06:34]
John - SC Support - Posts: 36350
Using ACSIL (Advanced Custom Study Interface Language) you are programming in standard C++, so you can do most things. What you are talking about doesn't sound too hard, you would just need to check the status of the existing orders and then send Market orders and make sure they fill. The point is that the ability to check and send orders is part of ACSIL, but the rest would be standard C++ programming tasks.

Refer to the following for the beginning of the documentation on ACSIL:
Advanced Custom Study Interface and Language (ACSIL)

We have also set this thread to "Programming Help" as others may chime in with tips to help you on your way.
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