Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alert is not playing

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

    Alert is not playing

    Hi Support,
    I am using NT8 and developing a strategy.
    I would like to play alert when taking any position and using the following code but it is not working also doesn't show any data in Alerts Log.

    var soundPath = System.IO.Path.Combine(NinjaTrader.Core.Globals.In stallDir, @"sounds\OrderFilled.wav");
    Alert("myOrderfilled", Priority.High, "OpenAlert", soundPath, 6000, Brushes.Black, Brushes.Yellow);

    NT version : 8.0.22.2 64-bit
    Last edited by bosajin; 07-05-2020, 03:43 PM.

    #2
    Hello bosajin,

    Welcome to the NinjaTrader forums!

    Alerts and sounds only appear in real-time. Are you ensuring the conditions are evaluating as true with real-time?

    Below is a link to a forum post that demonstrates using prints to understand behavior.


    Please add a print of the Time, State, and all values used in the condition that calls this method.

    Then please save the output to a text file and attach this with your next post.

    I am happy to assist with analyzing the output.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    58 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X