Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Verbal Alers

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

    Indicator Verbal Alers

    I have the following code which is running and announces, based on a set of indicators, when to go long or short. I created a custom sound file of my voice saying "go long" or "go short". I did this to make sure I didn't miss a set up during manual trading. I get bored or distracted and find myself missing good trades. Here is the problem, I have several charts open and I don't know which one gave me the voice alert until I scan all of them. I could create custom audio alerts for each chart but I'd rather have the alert grab the instrument that the chart contains and put that in the alert. Is there a way to do that?

    Here is the code I am currently running:

    Code:
    				{
    				Alert("GoLong Change", NinjaTrader.Cbi.Priority.High, "GL Color Change",
    				"Go_Long.wav", 1, Color.Black, Color.Yellow);			
    				}
    Thanks
    DaveN

    #2
    Dave, yes you could include the master instrument name as part of your Alert message shown in the message then - http://www.ninjatrader-support.com/H...umentName.html

    Comment


      #3
      Indicator Alert cont.

      That's great but I have a couple of questions:

      1) Can you point me to some sample code showing me how to get that name? I'm pretty sure it needs to be converted into some kind of useful string and I don't know how to do that.

      2) Right now, I get the alert verbally. I'm betting there's no way to convert that string into a verbal statement, however machine sounding it might be. (I hope I'm wrong but I'm guessing I'm not.) Also, I don't see the other text alert, "GL Color Change". is that supposed to show up in the output screen or somewhere else? It isn't being written to the chart.
      Thanks
      DaveN

      Comment


        #4
        1. The property Bertrand linked you to is already a string. You do not need to convert it to anything. Just plug it into where you want it to print and it will print the string containing the instrument name.

        2. Unfortunately we do not have text-to-speech support. Alerts should all show up in the Alerts window. Suggest you try adding a Print() statement as well along with the Alert() line so you can evaluate it in the Output Window too.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Indicator Alert cont.

          Thanks Josh,
          I'm embarrassed to admit that I never looked at an alert screen before. I will keep it open from now on.
          Thanks
          DaveN

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          563 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          329 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          547 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X