Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alarm signal triggering Inconsistent

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

    Alarm signal triggering Inconsistent

    I've programmed several strategies to sound an alarm upon certain conditions, but they seem to be inconsistent at best in triggering the alarm when I think they should.

    The condition is supposed to be triggered on the occurrence of a certain number of up or down bars. I've used NBarsUp and NBarsDown, together in the same strategy. In other strategies, I've used just either one or the other.

    For example, if I want to see three bars up and then two down, I use "bars ago = 2" for the first condition and "bars ago = 0" for the second. Since I'm not certain I'm counting bars ago correctly, I've created an alarm trigger that should sound when there's just a single down bar, but that doesn't work either.

    I'm using a demo trading account, but live data -- not simulated. The funny thing is that the alarm has sounded successfully at least once, and I can't for the life of me figure out why it only works for certain programmed strategies and not for others.

    Any suggestions?

    Thanks.

    Eric

    #2
    Hello Eric,

    Thank you for your post.

    Do you have 'calculate on bar close' set to true for all strategies?
    Ray S.NinjaTrader Customer Service

    Comment


      #3
      "Do you have 'calculate on bar close' set to true for all strategies?"

      I usually do. How does this affect it? Should I have this set to true? Thanks. Eric

      Oh, and BTW -- just to test it out, sometimes I'll program the thing to "ring" after two bars, and I'll wait three or four, just to be on the safe side.

      Any suggestions most appreciated. Thanks. E.

      Comment


        #4
        Eric,

        CalculateOnBarClose influences when your strategy actually evaluates your conditions. With it set to true it will evaluate at the end of each bar. With it false it will evaluate at each incoming tick.

        Please take note that alerts and sound playing will only happen in real-time. The best way to test if your strategy should be firing off a sound is to also tell it to draw a dot on your chart. If you see the dot and no sound is played then there is an issue to further look into. If you do not see a dot then your conditions were not evaluated to true and no sound should have been played.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Alarms in real time with external data feed

          Josh, when you say alerts and sounds only happen in real time. Does this apply when I am Connected to "External Data Feed" on a demo account?

          Thanks.

          Eric






          [
          quote=NinjaTrader_Josh;94712]Eric,

          CalculateOnBarClose influences when your strategy actually evaluates your conditions. With it set to true it will evaluate at the end of each bar. With it false it will evaluate at each incoming tick.

          Please take note that alerts and sound playing will only happen in real-time. The best way to test if your strategy should be firing off a sound is to also tell it to draw a dot on your chart. If you see the dot and no sound is played then there is an issue to further look into. If you do not see a dot then your conditions were not evaluated to true and no sound should have been played.[/quote]

          Comment


            #6
            Real-time is a condition that does not care what connection or account type you are on. Real-time means real-time streaming data and not historical chart data. Let me know if this does not make sense.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by set2win, 08-04-2021, 09:23 AM
            39 responses
            999 views
            0 likes
            Last Post WaleeTheRobot  
            Started by md4866, Today, 08:15 PM
            0 responses
            1 view
            0 likes
            Last Post md4866
            by md4866
             
            Started by mjbatts91, Yesterday, 04:48 PM
            2 responses
            23 views
            0 likes
            Last Post mjbatts91  
            Started by pibrew, Today, 06:10 PM
            1 response
            17 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by actualfacts.2021, 07-25-2021, 03:11 PM
            8 responses
            1,184 views
            0 likes
            Last Post linkcou
            by linkcou
             
            Working...
            X