Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

alert question

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

    alert question

    Hi

    I created an alert using an indicator that will show what the average trade size on each bar close. It initally worked but after the first alert it no longer posts into the alert log. I have set the Rearm Type to "on bar close" but still doesn't work. I have the alert set to go off everytime a bar closes with an average trade greater than 4.

    Thanks

    #2
    Hello rexsole,

    Could you please send an email to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread, the indicator file, and attach the log and trace files for the day in subject which you can find in My Documents>NinjaTrader8>Log and My Documents>NinjaTrader8/Trace folders.

    From the Control Center window select Tools -> Export -> NinjaScript...
    Click Add>Select the indicator>OK>Export.
    Then attach that file you saved; under My Docs>NT8>Bin>Custom>Select the downloaded .zip file.

    I look forward to your email.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      I have noticed the same problem as rexsole.

      I created a simple 1 minute chart on 6E 09-17 and added the stock VOL indicator. I added a horizontal line with a Y anchor of 100 to the indicator panel. I added an alert tied to the horizontal line and set it to rearm after bar close. The alert does trigger on some of the horizontal line crosses, but not all of them. It seems that the alert can take several minutes rearm.

      I also created a test copy of the VOL indicator and set IsSuspendedWhileInactive to false and still have the same issue.
      The Trading Mantis
      NinjaTrader Ecosystem Vendor - The Trading Mantis

      Comment


        #4
        I've done a little more testing on the setup I outlined below.

        It seems that consecutive volume bars over 100 will only trigger one alert. Once a volume bar less than 100 prints, then a subsequent volume bar over 100 will trigger another alert.
        The Trading Mantis
        NinjaTrader Ecosystem Vendor - The Trading Mantis

        Comment


          #5
          Hello gregschr,

          It sounds like you are using Cross Above, when you should use Greater as an operator. Cross Above would need the previous bar to have a value less than your Horizontal Line. Is this the case? If not, would you please take a screen shot of how you have your alert set up similar to the one I've attached?

          I look forward to your reply.
          Attached Files
          Alan P.NinjaTrader Customer Service

          Comment


            #6
            Thanks Alan, using the Greater operator solved the rearming issue!
            The Trading Mantis
            NinjaTrader Ecosystem Vendor - The Trading Mantis

            Comment


              #7
              I have been using the updated alert with greater than and it has solved the rearming issue as I mentioned below.

              BUT... I am still having a problem with the re-armed alert occasionally not firing. The alert is on a chart tab that I do not normally have active. I have set IsSuspendedWhileInactive=false on the volume indicator the alert is attached to.
              The Trading Mantis
              NinjaTrader Ecosystem Vendor - The Trading Mantis

              Comment


                #8
                Hello gregschr,

                Could you please provide a screen shot of how you have the alert set up similar to the one I have attached?

                If you open a 10 second chart, apply the volume indicator, draw a horizontal line at a value of 1, and set up an alert to go off every time the volume is greater than the horizontal line, do you experience the same issue?

                I look forward to your reply.
                Attached Files
                Alan P.NinjaTrader Customer Service

                Comment


                  #9
                  I set the horizontal line at 1 contract and used a 1 minute chart (instead of a 10 second chart).

                  The problem still occurs. It actually happens when the 1 minute chart is inactive or when it is active.

                  I noticed the alert, when it would fire, took anywhere from 5 seconds to 50 seconds after a volume of 2 or more printed.

                  I then tried the 10 second chart you suggested, and because of the lag in firing, was not surprised to find that the alert rarely fires.
                  Attached Files
                  The Trading Mantis
                  NinjaTrader Ecosystem Vendor - The Trading Mantis

                  Comment


                    #10
                    Hello gregschr,

                    If you change Rearm Type to Timer, and set the timer to a value less than the data series, does this change the issue?

                    Instead of setting Action to Play sound, change it to display a pop up, does this have different results?

                    What instrument are you applying this to?

                    Who is your data provider?

                    I look forward to your reply.
                    Alan P.NinjaTrader Customer Service

                    Comment


                      #11
                      Hi Alan,

                      I tried using a timer set to 5 seconds on a 10 second bar and also using a pop-up message.

                      Neither one resolved the issue.

                      I am using this on 6E 09-17 and my data provider is CQG.

                      Thanks,
                      Greg
                      The Trading Mantis
                      NinjaTrader Ecosystem Vendor - The Trading Mantis

                      Comment


                        #12
                        Hello gregschr,

                        Looking at the set up of your alert, I notice your object is set to VolumeBasedOnClose rather than something like Vol(YM(09-17).

                        When you draw a horizontal line on the volume indicator, right click>alert> you should set the condition to a data series and the price type to volume. See attachment.

                        After making that change, do the alerts function as expected?
                        Attached Files
                        Alan P.NinjaTrader Customer Service

                        Comment


                          #13
                          Hi Alan,
                          The alert functions as expected when I set the alert condition to a data series and the price type to volume as you suggested. So that works around my issue. Thanks!

                          Is a condition that compares an indicator to a drawing object acceptable; and a bug just prevents it from working correctly? Or is this type of comparison not supported?

                          Thanks,
                          Greg
                          The Trading Mantis
                          NinjaTrader Ecosystem Vendor - The Trading Mantis

                          Comment


                            #14
                            Hello gregschr,

                            I see no issue using an indicator together with a drawing object to trigger an alert. I tested this on my end and provided screen shots showing this. I would suggest debugging your indicator and carefully looking at how you are setting up the alert.

                            Please let us know if you need further assistance.
                            Attached Files
                            Alan P.NinjaTrader Customer Service

                            Comment


                              #15
                              Thanks for your help Alan!

                              I checked my volume indicator code and realized what was causing the problem. The volume indicator uses 3 plots (1 for up bars, 1 for down bars and 1 for neutral bars). Since I only had one condition set, the alert was only firing on one of the plots. When I set up a condition for each plot and set the alert to fire on any condition, the alert always fire as expected.
                              The Trading Mantis
                              NinjaTrader Ecosystem Vendor - The Trading Mantis

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by bortz, 11-06-2023, 08:04 AM
                              47 responses
                              1,603 views
                              0 likes
                              Last Post aligator  
                              Started by jaybedreamin, Today, 05:56 PM
                              0 responses
                              8 views
                              0 likes
                              Last Post jaybedreamin  
                              Started by DJ888, 04-16-2024, 06:09 PM
                              6 responses
                              18 views
                              0 likes
                              Last Post DJ888
                              by DJ888
                               
                              Started by Jon17, Today, 04:33 PM
                              0 responses
                              4 views
                              0 likes
                              Last Post Jon17
                              by Jon17
                               
                              Started by Javierw.ok, Today, 04:12 PM
                              0 responses
                              12 views
                              0 likes
                              Last Post Javierw.ok  
                              Working...
                              X