• 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 Papercut110, Yesterday, 09:08 PM
    0 responses
    4 views
    0 likes
    Last Post Papercut110  
    Started by iq200, 11-09-2019, 08:26 AM
    5 responses
    58 views
    0 likes
    Last Post koganam
    by koganam
     
    Started by johng964, Yesterday, 02:57 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_RyanS  
    Started by spamula, Yesterday, 03:00 PM
    2 responses
    17 views
    0 likes
    Last Post spamula
    by spamula
     
    Started by MARTIN MARTIN, Yesterday, 01:01 PM
    0 responses
    17 views
    0 likes
    Last Post MARTIN MARTIN  
    Working...
    X