• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add Alert to indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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!
    Attached Files

    #2
    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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by gbulle, Today, 06:03 PM
    1 response
    7 views
    0 likes
    Last Post gbulle
    by gbulle
     
    Started by kronie, Today, 03:52 PM
    0 responses
    10 views
    0 likes
    Last Post kronie
    by kronie
     
    Started by bouncetherubble, Yesterday, 07:12 PM
    2 responses
    17 views
    0 likes
    Last Post bouncetherubble  
    Started by Zenersev, 10-19-2019, 02:11 PM
    7 responses
    53 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by Lancer, Today, 10:39 AM
    4 responses
    24 views
    0 likes
    Last Post Lancer
    by Lancer
     
    Working...
    X