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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      134 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X