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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X