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 GloriaRineye, Yesterday, 11:59 PM
          0 responses
          1 view
          0 likes
          Last Post GloriaRineye  
          Started by Paul Penton, Yesterday, 10:42 PM
          0 responses
          1 view
          0 likes
          Last Post Paul Penton  
          Started by mo_fi, Yesterday, 10:08 PM
          0 responses
          2 views
          0 likes
          Last Post mo_fi
          by mo_fi
           
          Started by Oracletrades, Yesterday, 10:02 PM
          0 responses
          1 view
          0 likes
          Last Post Oracletrades  
          Started by jeronymite, Yesterday, 09:15 PM
          0 responses
          2 views
          0 likes
          Last Post jeronymite  
          Working...
          X