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, 02: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.
    https://ninjatrader.com/support/foru...121#post791121

    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 John Bogui, Today, 06:07 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Started by SteveAU, Yesterday, 08:35 PM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by nduckste, Today, 02:00 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by watchinggoodman, Today, 05:45 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Started by cummish, Today, 03:40 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jason  
    Working...
    X