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 jxs_xrj, 01-12-2020, 09:49 AM
|
5 responses
3,290 views
1 like
|
Last Post
by jgualdronc
Today, 10:47 AM
|
||
Started by Touch-Ups, Today, 10:36 AM
|
0 responses
7 views
0 likes
|
Last Post
by Touch-Ups
Today, 10:36 AM
|
||
Started by geddyisodin, 04-25-2024, 05:20 AM
|
8 responses
61 views
0 likes
|
Last Post Yesterday, 10:45 AM | ||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
8 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by halgo_boulder, 04-20-2024, 08:44 AM
|
2 responses
24 views
0 likes
|
Last Post Today, 09:41 AM |
Comment