Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Location for Default Sounds File

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

    Location for Default Sounds File

    Dear Support,

    I know for the most recent NT8 version the default install location for Sounds file was changed. However, the following code does not seem to access the sounds file as it did before. Is statement for alert1Sound in the following code still valid or needs changes? What is the correct code?

    Code:
    private bool         soundOn                = true; // on/off switch for audio alerts
    private string       alert1Sound            = NinjaTrader.Core.Globals.InstallDir+@"\sounds\Alert1.wav"; //audio alert for Condition1
    private int          rearmTime              = 30;
    Many thanks.

    #2
    Hello alligator,

    Thank you for your note.

    The file path you are using in your snipped should still work as expected. What is your condition to play the alert sound? If you add print statements to your script, are you sure that this condition is being met? I was able to create a test script that uses the same fileName string and it plays a sound on the first tick of each bar. Feel free to import this example and test on your end to make sure the sound plays as expected.
    AlertSoundTest_NT8.zip

    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    627 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    359 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    562 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    567 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X