Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Price alert

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

    Price alert

    Hi,

    I link market analyzer and chart. What is the most feasible way to set price alert on multiple charts? Due to my workspace limitation, I cannot open more than 10 chart windows. If I want to set price alert on mulitple charts, how can I do this? I just read from MA forum that market analyzer doesn't support price alert. Thank you.

    Sunnyrain

    #2
    Market analyzer support alerts (please see docs), chart don't (unless coded in a NinjaScript indicator/chart, please see docs).

    Comment


      #3
      Try this...

      Comment


        #4
        Hi KBJ and Dierk,

        Thank you for quick reply. I am not sure I understand. From document, the alert is created per column, not per cell. I set alert to triggle if last price is great than 30. The problem is that I only want this alert to happen on certain symbol, say BRCM. For GOOG, I may want to set alert if last price is larger than 570 because it doesn't make sense to set price alert of GOOG at 30. Can I achieve this? I tried on MA but for all of the symbols in MA, the last price alert is at 30.

        Thank you.

        SunnyRain

        Comment


          #5
          You could write a special indicator to load into the Market Analyzer that would check for a match on the Instrument name as well as the price.

          Something like this...

          Code:
          protected override void OnBarUpdate()
          {
              check_alert( "GOOG", 570 );
              check_alert( "BRCM", 30 );
          }
          
          private void check_alert( string sym_name, double sym_price )
          {
              if (Instrument.FullName == sym_name)
              if (Close[0] > sym_price)
              {
                  Alert( sym_name + CurrentBar, 
                     NinjaTrader.Cbi.Priority.High,
                     String.Format( "Stock {0} has exceeded a price of {1}", sym_name, sym_price ),
                     "Alert1.wav", 10, Color.Black, Color.Yellow);
              }
          }
          I haven't tested this, but it should be a starting point for you.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mestor, 03-10-2023, 01:50 AM
          16 responses
          388 views
          0 likes
          Last Post z.franck  
          Started by rtwave, 04-12-2024, 09:30 AM
          4 responses
          31 views
          0 likes
          Last Post rtwave
          by rtwave
           
          Started by yertle, Yesterday, 08:38 AM
          7 responses
          29 views
          0 likes
          Last Post yertle
          by yertle
           
          Started by bmartz, 03-12-2024, 06:12 AM
          2 responses
          22 views
          0 likes
          Last Post bmartz
          by bmartz
           
          Started by funk10101, Today, 12:02 AM
          0 responses
          7 views
          0 likes
          Last Post funk10101  
          Working...
          X