Login Page - Create Account

Support Board


Date/Time: Thu, 28 Mar 2024 23:50:35 +0000



[User Discussion] - send alert to my application when order is place/executed from SierraChart.

View Count: 731

[2020-11-09 03:33:13]
DHARMESH MEHTA - Posts: 5
Hello,
I am AMP Future customer and using SierraChart. I want to know is it possible to send an alert/message to my application when I place an order to buy or sell any equity/future?

May be, send a message via socket or DDE or some other means.

Please let me know, and if you have any example, that will be very useful.

Thanks,
DM.
[2020-11-11 13:05:32]
User99735 - Posts: 234
Hi,
Yes this is possible. Need further details like, how you are opening order in SC, manually or through a strategy. Will need to develop a new strategy to send the message, or existing strategy to be modified whenever order is opened.
Similarly, your app will be need to modified to receive the message. Are both SC and app running on same system / network etc.
Please provide details here or in DM.

Regards

Vivek
[2020-11-11 13:13:06]
DHARMESH MEHTA - Posts: 5
Hello Vivek,

It will be the same machine, I wanted to send a message from SC to my app (possibly local socket or some faster mechanism).
I may use existing strategies or new strategies in SC to place an order.

I want to take action based on the Current Price, MACD, ADX, RSI, PSAR, and EMA's.
so it looks like I have to write my own strategies which can get the current values of the above strategies/indictor and take action. I am new to SC so not sure is it possible or not?

Any suggestion or if you have an example, that will be helpful.
Thanks,
DM.
[2020-11-11 14:05:39]
User99735 - Posts: 234
Then you can have a separate strategy to forward the position data to app, instead of modifying existing strategies.
[2020-12-01 15:08:42]
kam2001 - Posts: 65
yeah, it's possible to send a message to other app, i be able to help. What is other app written in ? Thanks
[2020-12-01 17:39:17]
DHARMESH MEHTA - Posts: 5
I am writing app in C# (Windows 10), if you have any working example/readme/code snippet that will be helpful.
Thanks.
:-)
[2020-12-04 15:46:33]
kam2001 - Posts: 65
the simple option in your scenario would be set an alert when an order is executed and run a program when an alert is triggered. Settings to run a program are under General Settings tab3 (Alerts/General3). Now this program could be even a batch file which in turn starts your dll(c#) file using RUNDLL32.
Date Time Of Last Edit: 2020-12-04 15:49:36
[2020-12-04 16:27:08]
DHARMESH MEHTA - Posts: 5
thanks.
[2021-01-03 11:56:04]
User870514 - Posts: 25
I am looking for a study to send the values available in the chart values window to an outside app on alerts being triggered. Programmers willing to do this please DM.

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

Login

Login Page - Create Account