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

set a saoun alert

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

    set a saoun alert

    Hello,

    I just want to add a simple sound alert (like @"C:\Program Files\NinjaTrader 8\sounds\Alert2.wav") to this logic, please help

    if (PaintBarColoring != false) {
    // Bullish Color
    if(CrossAbove(Values[0], Values[1], 1)) {
    // Up candle, color only the outline
    if (Close[0] >= Open[0]) {
    CandleOutlineBrush = CrossoverBull;
    }
    else {
    // Down candle, Color both outline and body
    CandleOutlineBrush = CrossoverBull;
    BarBrush = CrossoverBull;
    }
    }
    Thanks​

    #2
    Hello futuros,

    You can use the PlaySound function to make a sound. There is an example in the following help guide page that shows how to select a sound file from the platforms existing sounds.

    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by mishhh, 05-25-2010, 08:54 AM
    19 responses
    6,189 views
    0 likes
    Last Post rene69851  
    Started by gwenael, Today, 09:29 AM
    0 responses
    3 views
    0 likes
    Last Post gwenael
    by gwenael
     
    Started by Karado58, 11-26-2012, 02:57 PM
    8 responses
    14,829 views
    0 likes
    Last Post Option Whisperer  
    Started by Option Whisperer, Today, 09:05 AM
    0 responses
    2 views
    0 likes
    Last Post Option Whisperer  
    Started by cre8able, Yesterday, 01:16 PM
    3 responses
    11 views
    0 likes
    Last Post cre8able  
    Working...
    X