Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator does not work to 30 sec timeframe

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

    Indicator does not work to 30 sec timeframe

    I built an indicator that draws a diamond under certain conditions.
    It works well to 1, 5 and 15 minutes and also at 15 and 45 seconds but not at 30 seconds.
    What could be the problem?
    Thanks a lot.

    #2
    Hello sniper,

    Thank you for your post.

    Can you provide the indicator file to test on my end? You will find the file in the following directory on your PC: (My) Documents\NinjaTrader 7\bin\Custom\Indicator

    What instrument are you testing the 30 second chart and indicator on? Does the indicator have the same issue on any other 30 second chart for other instruments?

    Do you see any errors listed in the Log tab of the Control Center?

    Comment


      #3
      Found the error :
      in protected override void OnBarUpdate()
      {
      if (CurrentBar < 1 )
      return;

      I changed 1 with the period counting bars is 21 and now it works fine.

      Thank you very much

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      133 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      75 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      117 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      113 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      90 views
      0 likes
      Last Post CarlTrading  
      Working...
      X