I am looking to add an alert for this indicator when it prints either a signal or arrow for divergence. It only prints 4 things on the chart - signal for Buy/Sell, divergence for Buy/Sell I am looking to add an alert when any marker is printed on the chart, but I am unsure how to include it in the script. Best case - I get the selection option int he indicator window to choose my alert sound, but 'alert 1' at least would be great. I attached the script in the notepad. Looking for hopefully some minor help in editing this script. thank you!
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Add Alert to indicator
Collapse
X
-
Add Alert to indicator
Hi All,
I am looking to add an alert for this indicator when it prints either a signal or arrow for divergence. It only prints 4 things on the chart - signal for Buy/Sell, divergence for Buy/Sell I am looking to add an alert when any marker is printed on the chart, but I am unsure how to include it in the script. Best case - I get the selection option int he indicator window to choose my alert sound, but 'alert 1' at least would be great. I attached the script in the notepad. Looking for hopefully some minor help in editing this script. thank you!Tags: None
-
Hello Austiner87,
Thanks for your post.
There is an alert method you can used, which will provide an alert message to the alerts window and optionally play a sound. The advantage of this is that you get a time stamp of the alert in the alerts log. Here is a link to the method in the help guide: https://ninjatrader.com/support/help...nt7/?alert.htm You can copy the example shown in the help guide and modify for your needs. I would suggest adding the example everywhere in the code that you see the Draw statements for the markers. You would want to change the text of the message to better represent what the alert is as well as perhaps change the sound file and colors as appropriate.
If by alert you only mean to play a sound then you can use the PlaySound method for that: https://ninjatrader.com/support/help...?playsound.htm As before you can copy the example in the help guide and apply it in the same sections where the draw methods are.
Paul H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
147 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
||
Started by mattbsea, Today, 05:44 PM
|
0 responses
5 views
0 likes
|
Last Post
by mattbsea
Today, 05:44 PM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
6 responses
33 views
0 likes
|
Last Post
by RideMe
Today, 05:31 PM
|
||
Started by tkaboris, Today, 05:13 PM
|
0 responses
5 views
0 likes
|
Last Post
by tkaboris
Today, 05:13 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
16 responses
3,282 views
0 likes
|
Last Post
by Leafcutter
Today, 04:14 PM
|
Comment