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, 09:36 AM.

    #2
    Try creating two separate wav files and using the PlaySound() method?
    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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          41 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          20 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          29 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          46 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          37 views
          0 likes
          Last Post CarlTrading  
          Working...
          X