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 NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      86 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      151 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      79 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      53 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      60 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X