Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alert on bar close?

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

    Alert on bar close?

    Is it possible to set an alert to only evaluate its conditions on bar close instead of on every tick?

    #2
    Originally posted by TheBarChartist View Post
    Is it possible to set an alert to only evaluate its conditions on bar close instead of on every tick?
    Is that not the default behavior?

    Comment


      #3
      According to help guide, all alerts are handled in real-time.

      http://ninjatrader.com/support/helpG...ing_alerts.htm

      Comment


        #4
        Originally posted by Calonious View Post
        According to help guide, all alerts are handled in real-time.

        http://ninjatrader.com/support/helpG...ing_alerts.htm
        I guess it is confusing then, because that same page says:
        ... In contrast, a Chart does display historical bar data, (sic) therefore a chart alert would be able to use historical bar data to be considering in a specific alert condition used for indicators and other data series.

        Comment


          #5
          Yes - but the workaround is simple. Since the alert evaluates on each tick, just set your conditions on the previous bar, and they will evaluate once on the first tick of the current bar.

          Comment


            #6
            Yeah I saw that and I think it's more towards what kind of information is available to you for alerts, but I've never seen an historical alert. Would defeat the purpose of them.

            But to the question at hand, I think this is based on what you setting an alert condition to.
            Example, if you set it to an indicator on a chart, your alert is still being evaluated on each tick. However, if the indicator is set to only calculate OnBarClose then you wouldn't get an alert until a bar closed and the indicator could update its values, thus if the new values met the alert conditions, an alert gets generated.

            Comment


              #7
              Originally posted by Calonious View Post
              Yeah I saw that and I think it's more towards what kind of information is available to you for alerts, but I've never seen an historical alert. Would defeat the purpose of them.

              But to the question at hand, I think this is based on what you setting an alert condition to.
              Example, if you set it to an indicator on a chart, your alert is still being evaluated on each tick. However, if the indicator is set to only calculate OnBarClose then you wouldn't get an alert until a bar closed and the indicator could update its values, thus if the new values met the alert conditions, an alert gets generated.
              Hence my statement that it is the default behavior.

              Comment


                #8
                Originally posted by koganam View Post
                Hence my statement that it is the default behavior.
                Alright I'll give you your point!

                Comment


                  #9
                  Hello TheBarChartist,

                  Thank you for your post.

                  You would use Calculate to determine in code if the calculation would be done on each tick, price movement, or bar close: http://ninjatrader.com/support/helpG.../calculate.htm
                  That would be the alerts in an indicator.

                  Alerts through the Market Analyzer would not have an option to set the Calculate as the Market Analyzer is intended to be updated per tick.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by mattbsea, Today, 05:44 PM
                  0 responses
                  2 views
                  0 likes
                  Last Post mattbsea  
                  Started by RideMe, 04-07-2024, 04:54 PM
                  6 responses
                  31 views
                  0 likes
                  Last Post RideMe
                  by RideMe
                   
                  Started by tkaboris, Today, 05:13 PM
                  0 responses
                  2 views
                  0 likes
                  Last Post tkaboris  
                  Started by GussJ, 03-04-2020, 03:11 PM
                  16 responses
                  3,281 views
                  0 likes
                  Last Post Leafcutter  
                  Started by WHICKED, Today, 12:45 PM
                  2 responses
                  19 views
                  0 likes
                  Last Post WHICKED
                  by WHICKED
                   
                  Working...
                  X