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 techgetgame, Today, 11:42 PM
          0 responses
          7 views
          0 likes
          Last Post techgetgame  
          Started by sephichapdson, Today, 11:36 PM
          0 responses
          1 view
          0 likes
          Last Post sephichapdson  
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,612 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Working...
          X