Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Play beep OnMarketDepth

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

  • NinjaTrader_JoshP
    replied
    Can't you just make the wav file consist of a very short beep? When you call PlaySound() it will play whatever is contained in your sound file. If the sound file is a whole 5 minute song it will play the whole thing, but if it is 1 millisecond it will only play for that duration.

    Leave a comment:


  • MrBaffalo
    replied
    Any suggestion?
    Marcello

    Leave a comment:


  • MrBaffalo
    replied
    Thanks Josh
    I know, it would be better, but I need to play a very short beep...

    Leave a comment:


  • NinjaTrader_JoshP
    replied
    Try creating two separate wav files and using the PlaySound() method?
    http://www.ninjatrader-support.com/H...PlaySound.html

    Leave a comment:


  • MrBaffalo
    started a topic Play beep OnMarketDepth

    Play beep OnMarketDepth

    Hi Guys,
    following the interesting Josh's SampleMarketDepth script I was trying to reproduce a beep once the last is on the bid side and a different frequency beep once the trade is on the offer side.
    I was looking at
    Code:
    public static void Beep (
        int frequency,
        int duration
    )
    I'm not able to build something useful, could someone help me doing this?
    Thanks
    MB

    Sorry Guys Irealized I'm on the wrong sub-forum
    Last edited by MrBaffalo; 11-18-2007, 08:36 AM.

Latest Posts

Collapse

Topics Statistics Last Post
Started by Paul Penton, Today, 10:42 PM
0 responses
1 view
0 likes
Last Post Paul Penton  
Started by mo_fi, Today, 10:08 PM
0 responses
2 views
0 likes
Last Post mo_fi
by mo_fi
 
Started by Oracletrades, Today, 10:02 PM
0 responses
1 view
0 likes
Last Post Oracletrades  
Started by jeronymite, Today, 09:15 PM
0 responses
1 view
0 likes
Last Post jeronymite  
Started by temtam, Today, 07:56 PM
0 responses
7 views
0 likes
Last Post temtam
by temtam
 
Working...
X