Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 algospoke, Yesterday, 06:40 PM
    2 responses
    19 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    45 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    181 views
    0 likes
    Last Post jeronymite  
    Working...
    X