Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 06:11:37 +0000



[User Discussion] - Alert run program PowerShell script

View Count: 1058

[2020-07-19 08:26:17]
User672883 - Posts: 4
Is it possible to run a PowerShell script (instead of a program) when an alert is triggered?

I am able to run the PowerShell script successfully from both Command Prompt and Windows Powershell. However, when I specify the file path to the PowerShell script in "General Settings -> Alerts/General 3 -> Run Program When This Alert Triggered" I get a variety of different error messages depending on the various file paths I try (in an attempt to make it work).
[2020-07-19 09:21:19]
Sierra Chart Engineering - Posts: 104368
Have a look at this article:
https://stackoverflow.com/questions/25919451/use-createprocess-to-run-a-batch-file

Sierra Chart will use CreateProcess.
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