Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 06:45:45 +0000



Can SC read signals from a text file to executive orders?

View Count: 431

[2023-01-06 08:39:29]
machinagurujp - Posts: 12
I have signals created externally and saved to a text file. This file includes the price entry, target profit and stop loss. Can this be feed as text file to SC to execute as a order? I mention it this way because I do the data processing externally that creates my order signals. If so, if someone can provide a link or even an example then it would be greatly appreciated!
[2023-01-07 19:46:06]
machinagurujp - Posts: 12
Anyone have any guidance here?
[2023-01-07 21:04:55]
ertrader - Posts: 645
@Machinagurujp
Yes, this is definitely possible and appears relatively straightforward with ACSIL. I use a study to read in a value from a text file and display a line. You will need to modify it to do what you want but it is a place to start. Below is a discussion link and the .cpp file I use is attached.

If you need to learn ACSIL, SC C++ is well documented or you can contact developers who can do it for you. I have had good interactions with the owners of www.ForgivingComputers.com and www.simplesystemtrading.com. There are many really good programmers on SC that can help for free but you have to show your effort first and they have to be willing to help. Sometimes these solutions that initially seem easy take many many hours and testing to properly resolve.

Read text file discussion
How to read file with sc.ReadFile()?

Developers:
https://www.sierrachart.com/index.php?page=doc/SierraChartStudyAndSystemProgrammers.php
Date Time Of Last Edit: 2023-01-07 21:38:20
attachmentReadLineFromFile.cpp - Attached On 2023-01-07 21:01:08 UTC - Size: 2.21 KB - 83 views
[2023-01-09 15:56:42]
machinagurujp - Posts: 12
Thank you so much!!! I will look into this!!!
[2024-04-14 05:39:05]
jsandlan - Posts: 12
What was the outcome of this? I'm interested in writing buy and sell orders to a text file and then having Sierra Chart read changes to that file to execute orders. Is this a reliable way to execute an automated trade strategy via SC?
[2024-04-14 13:36:07]
Sierra_Chart Engineering - Posts: 14173
Refer to the following documentation related to this:
Automated Trading From an Advanced Custom Study

ACSIL Programming Concepts: ACSIL File Functions
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

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

Login

Login Page - Create Account