Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Please help!!! how can i identify which forex pair just gave me an alert

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

    Please help!!! how can i identify which forex pair just gave me an alert

    I have a indicator play a certain alert sound when a certain condition was met on the chart.

    But I need to figure out how to program such that the forex pair (instrument) give me an alert can be identified.
    ie Need to extract the instrument name somehow

    I also have a (.wav) sound I.D. file for each forex pair.

    #2
    JC2000, for this you can work with the Instrument class - please see the properties it offers here - http://www.ninjatrader.com/support/h...instrument.htm

    Comment


      #3
      Originally posted by JC2000 View Post
      I have a indicator play a certain alert sound when a certain condition was met on the chart.

      But I need to figure out how to program such that the forex pair (instrument) give me an alert can be identified.
      ie Need to extract the instrument name somehow

      I also have a (.wav) sound I.D. file for each forex pair.
      How do you mean? Are you generating the sound with PlaySound() or with Alert()?

      Comment


        #4
        it just mean that the alert command will tell me which forex pair had met a certain condition ---ie such as a EMA cross over

        Comment


          #5
          Hi Koganam,

          I forget to mention that I generate the sound with Alert.
          Is Playsound a better command & what is the advantages?

          Comment


            #6
            Originally posted by JC2000 View Post
            Hi Koganam,

            I forget to mention that I generate the sound with Alert.
            Is Playsound a better command & what is the advantages?
            If you generate it with Alert(), then you just need to include the name of the instrument in the alert text.

            Example:

            Code:
            Alert("myBigMoneyAlert", NinjaTrader.Cbi.Priority.High, Instrument.MasterInstrument.Name + ": Reached  threshold to start making megabucks.", "Alert1.wav", 10, Color.Black, Color.Yellow);

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            571 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            330 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
            548 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