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 arvidvanstaey, Today, 02:19 PM
          4 responses
          11 views
          0 likes
          Last Post arvidvanstaey  
          Started by samish18, 04-17-2024, 08:57 AM
          16 responses
          61 views
          0 likes
          Last Post samish18  
          Started by jordanq2, Today, 03:10 PM
          2 responses
          9 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
          48 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X