Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Play beep OnMarketDepth

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

    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.

    #2
    Try creating two separate wav files and using the PlaySound() method?
    http://www.ninjatrader-support.com/H...PlaySound.html
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh
      I know, it would be better, but I need to play a very short beep...

      Comment


        #4
        Any suggestion?
        Marcello

        Comment


          #5
          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.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Anthony_0709, Today, 01:29 PM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by kenbun, Today, 12:21 PM
          0 responses
          8 views
          0 likes
          Last Post kenbun
          by kenbun
           
          Started by WNorton, Today, 11:23 AM
          1 response
          13 views
          0 likes
          Last Post NinjaTrader_Spencer  
          Started by stafe, Today, 10:43 AM
          0 responses
          12 views
          0 likes
          Last Post stafe
          by stafe
           
          Started by UltraNIX, Today, 09:13 AM
          3 responses
          18 views
          0 likes
          Last Post UltraNIX  
          Working...
          X