Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

No Sound Alert When Using Strategy's I have Created

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

    No Sound Alert When Using Strategy's I have Created

    I have created my own strategy using Ninja Trader Editor but am unable to get audible alerts to work.
    I added an extra line and can see the Print statement in the Ninja Output window so it seems the code is working

    Where should the code be looking for these wav files?
    Is there something else I need to switch on?
    I recently had to do a soft re-install of Ninja due to OneDrive issues. I am no longer backing up documents folder.....I think



    // Trigger an audible alert
    Alert("BullishEngulfingAlert", Priority.High, "Bullish Engulfing Candle Detected!", "Alert1.wav", 10, null, null);
    Print("Bullish Engulfing Candle detected at bar: " + CurrentBar);



    Thanks

    Stuart
    Last edited by thatsfresh; 03-24-2025, 07:06 AM.

    #2
    Hello thatsfresh,

    Thank you for your post.

    For the sound parameter, you need to use the absolute file path of the .wav file to play. So if you want to use the default Alert1.wav, try calling it similarly to how the sample code does on the Help Guide:

    Code:
    Alert("myAlert", Priority.High, "Reached threshold", NinjaTrader.Core.Globals.InstallDir+@"\sounds\Alert1.wav", 10, Brushes.Black, Brushes.Yellow);

    Comment


      #3
      Thanks for your help. All working now.

      Also for those people like me who are running multiple charts and indicators/strategy's and have different arrows all over the place it's really easy to use Windows 11 Sound Recorder to create your own alerts for your different indicators and strategy's so your not fumbling around. The only thing you have to do when you go into Sound Recorder is to go into Settings and change the Recording Format to WAV before you start recording.​

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      117 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      61 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      40 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      44 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      82 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X