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

Opening Bell sound ?

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

    Opening Bell sound ?

    Is there a way to hear a bell sound when the market regular open begins ? An alert possibly connected with the " CurrentOHL " indicator ? Something simple .

    Thanks

    #2
    Originally posted by T2020 View Post
    Is there a way to hear a bell sound when the market regular open begins ? An alert possibly connected with the " CurrentOHL " indicator ? Something simple .

    Thanks
    Code:
     
    int Mar****penTime = 930;
    if (ToTime(Time[0]) == Mar****penTime && FirstTickOfBar) PlaySound("Alarm1.wav");

    Comment


      #3
      Hello T2020,

      I am not aware of an Indicator that will do this but it would be possible with some custom code. For example:

      Code:
      if(Bars.FirstBarOfSession)
      {
         Alert("Session Open", NinjaTrader.Cbi.Priority.High, "Session is now Open", "Alert4.wav", 10, Color.Black, Color.Yellow);
      }
      Will play an Alert() on the first bar of a session.

      You may change the sound file, and the Alert() will only play the sound in real-time.

      Let us know if we can be of further assistance.
      JCNinjaTrader Customer Service

      Comment


        #4
        Thanks guys ,

        But what do you do with it ? Add it to an existing indicator ? Is there a way to create a
        independent alert ? Going to File > new > alerts doesn't open a avenue for this that I can see.

        Comment


          #5
          Hello T2020,
          You have to create a new indicator to do it. You cannot set an alert via the File>New>Alert.

          The Alert window only lists the Alerts and set from a NinjaScript code or the market analyzer.
          JoydeepNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by arvidvanstaey, Today, 02:19 PM
          3 responses
          9 views
          0 likes
          Last Post NinjaTrader_Zachary  
          Started by jordanq2, Today, 03:10 PM
          2 responses
          7 views
          0 likes
          Last Post jordanq2  
          Started by traderqz, Today, 12:06 AM
          10 responses
          18 views
          0 likes
          Last Post traderqz  
          Started by algospoke, 04-17-2024, 06:40 PM
          5 responses
          47 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by mmckinnm, Today, 01:34 PM
          3 responses
          7 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X