Login Page - Create Account

Support Board


Date/Time: Thu, 16 Jan 2025 22:01:20 +0000



Execute Script in MT4 from SC Alert

View Count: 2379

[2017-11-20 18:50:58]
User534090 - Posts: 5
Hello all! I understand variations of this request have been posted before, but I don't see any breadcrumbs I can follow to accomplish my goal.

I have indicators in SC which are triggering an alert for me. I'd like to execute a script in metatrader 4 when the alert is triggered. The options I've been informed about so far are to create an EA in mt4 which listens for the alert. If this is the "best" route, what options does sierrachart give for sending data from alerts to 3rd party programs? If anyone has a link for this please let me know!

The only other option I'm looking at is a nasty workaround which can't be the best solution. I'll create an EA which reads the Alerts Log for sierra chart and when a new alert is logged, the EA will execute accordingly. That will get messy but it's doable.

If anyone has a quick or easier solution for this, please let me know! I'm simply trying to have a script in MT4 fire when an alert in SierraChart is triggered.

Thank you in advance for all your help everyone!
[2017-11-20 20:08:57]
Sierra Chart Engineering - Posts: 104368
You really need to use ACSIL:
Advanced Custom Study Interface and Language (ACSIL)

And and write some kind of flag to a file that the other program can read.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2017-11-20 20:49:12]
User534090 - Posts: 5
Thank you for the info. If this is the best/easiest way to do so. Is the Alerts log stored as a file locally or is it server side for SC? If local, I'll use that and parse the data I need from my EA in mt4
[2017-11-20 22:39:04]
Sierra Chart Engineering - Posts: 104368
The Alerts Log is only held in memory.

It is not programmatically accessible.

However, you could use this variable:
ACSIL Interface Members - Variables and Arrays: sc.AlertConditionFlags
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, *change* to 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