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