Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Only enter when Tick Counter Indicator is greater than certain value

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

    Only enter when Tick Counter Indicator is greater than certain value

    I'm trying to build a strategy using the wizard in which it only enters orders when the Tick Counter is above 500. I'm using ES 2000 tick and the strategy is set to CalculateOnEachTick. Right now, my strategy condition reads Tick Counter greater than numeric value 500 and when I try to enable the strategy in the Playback Connection by checking the box, it will immediately uncheck. I have tried both the Standard and High setting for order fill resolution and they had the same results.

    Any help is appreciated.

    #2
    Hello dominus158,

    Thank you for your post.

    You can't get the number of ticks remaining in the bar from the Tick Counter indicator because it doesn't expose that value for use in a custom NinjaScript, nor would you be able to get this value in the Strategy Builder. You'd need to unlock the code and use Bars.TickCount to get the current number of ticks in a bar and enter if that's greater. Here's a link to our help guide going over Bars.TickCount:



    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Thank you Kate!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X