• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    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 ehvsdhjvsf, Today, 04:42 AM
    0 responses
    1 view
    0 likes
    Last Post ehvsdhjvsf  
    Started by webus, Today, 02:03 AM
    0 responses
    8 views
    0 likes
    Last Post webus
    by webus
     
    Started by momchi, Yesterday, 07:12 PM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Started by DieSlower, Yesterday, 11:02 PM
    0 responses
    5 views
    0 likes
    Last Post DieSlower  
    Started by gujungg, Yesterday, 10:59 PM
    0 responses
    13 views
    0 likes
    Last Post gujungg
    by gujungg
     
    Working...
    X