Support Board
Date/Time: Wed, 15 Jul 2026 00:21:11 +0000
[Programming Help] - Connect Python script to Sierra Chart for automated spread orders
View Count: 331
| [2026-05-29 10:48:15] |
| User579675 - Posts: 2 |
|
Hello, I have a Python script that reads real-time prices from Sierra Chart data files and calculates entry/exit signals for a 2-leg spread (ZFU26 + ZNU26). I need to connect this script to Sierra Chart to execute orders automatically. What I tried: DTC Protocol Server: Python connects successfully to port 11099, heartbeat is sent and acknowledged, but SUBMIT_ORDER messages are never executed. No orders appear. Trading System Based on Alert Condition: tried FILE() formula but get #SYNTAX! error Spreadsheet System for Trading: cannot link external CSV My question: What is the recommended way to have an external script trigger orders in Sierra Chart? Is DTC supposed to work with JSON? Or is ACSIL (C++) the only way? Thank you. |
| [2026-06-01 21:00:52] |
| Sierra_Chart Engineering - Posts: 24259 |
|
You definitely can use the DTC Protocol server and connect a DTC Protocol client and submit orders through it. If you have an issue like this: but SUBMIT_ORDER messages are never executed. No orders appear.
There must be some issue with the encoding. Yes JSON encoding can be used. Make sure each message is separated with a null character. The easiest solution is to use ACSIL: Automated Trading From an Advanced Custom Study 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, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2026-06-01 21:01:04
|
To post a message in this thread, you need to log in with your Sierra Chart account:
