Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Alert window Reset

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

    Alert window Reset

    I have the same indicator generating Alerts from two different charts each with a different instrument. What happens is that one or both of the charts stops Alerting. I put debug code in the indicator to Print before and after the alert is triggered and the debug code prints as correctly but alas the alert does not alert. I thought it might have something to do with the Rearm time and set them all to zero just in case even tho when it stops it stops. What I found consistently was that if I Reset the Alert window the Alerts start up again. There are no Errors in the Log. Does anyone have any ideas on either what is going on or how to Debug it. I assumed a rearm time of zero would just play over the Alert with same ID that was in progress.

    Thanks
    J~

    #2
    JerryWar,

    Thank you for your post.

    You will need to use different IDs between the two charts. I would suggest adding
    + CurrentBar after the string name

    "myID" + CurrentBar
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Cal,
      Thanks - In that case I think I will try appending Instrument.MasterInstrument.Name

      J~

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SantoshXX, Today, 03:09 AM
      0 responses
      11 views
      0 likes
      Last Post SantoshXX  
      Started by DanielTynera, Today, 01:14 AM
      0 responses
      2 views
      0 likes
      Last Post DanielTynera  
      Started by yertle, 04-18-2024, 08:38 AM
      9 responses
      41 views
      0 likes
      Last Post yertle
      by yertle
       
      Started by techgetgame, Yesterday, 11:42 PM
      0 responses
      12 views
      0 likes
      Last Post techgetgame  
      Started by sephichapdson, Yesterday, 11:36 PM
      0 responses
      2 views
      0 likes
      Last Post sephichapdson  
      Working...
      X