Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Issues with setting audio alert on indicator

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

    Issues with setting audio alert on indicator

    Having an issue with setting an audio alert on an indicator. When I set the audio parameters on one chart say a Range 1 NQ chart. I set the file to play-this-sound.wav.

    I open up a secondary chart say a Range 1 ES chart. I set the file to secondary-play-sound.wav.

    If I go back to the first chart and open up the properties. it has set the audio to the parameters of the second chart. how could that possibly happen.

    #2
    Hello Whicked, thanks for posting.

    That would not be expected. I attached a couple of test indicators that implements sound file pickers in the properties and this test script is not displaying this behavior. Please see attached. Check that you are not setting it somewhere within the code after State.Configure.

    Best regards,
    -ChrisL
    Attached Files

    Comment


      #3
      Originally posted by NinjaTrader_ChrisL View Post
      Hello Whicked, thanks for posting.

      That would not be expected. I attached a couple of test indicators that implements sound file pickers in the properties and this test script is not displaying this behavior. Please see attached. Check that you are not setting it somewhere within the code after State.Configure.

      Best regards,
      -ChrisL
      I believe I have resolved the issue. correct me if I am wrong. But if you define the class variable as private static string <variable> it will change on all charts. Changing it to non static i.e. private string <variable>. each graph has its own instance of that variable?

      Comment


        #4
        Hello Whicked, thanks for your reply.

        That is correct. You should use a non-static class member. See this publicly available link on the subject:
        https://stackoverflow.com/questions/...-class-members

        Kind regards,
        -ChrisL

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        77 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X