Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time of Day

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

    Time of Day

    Good morning,

    In an indicator I have a bool that I only want to be true if the bar occurs between 9:30am - 9:40am. Is there a way to do this? Is there a page on the NT8 help guide that talks about referencing date and time of day?

    Thank you very much,
    Ryan

    #2
    Hello Ryan,

    Thanks for your post.

    A Time Filter condition could be implemented in your script to detect if the current Time is between say 9:30 AM and 9:40 AM. You could flip your bool to true within that condition.

    Another Time Filter could be used to check if the current Time is outside of the first Time Filter and set your bool to false.

    The Strategy Builder could be used to set up these conditions and then you could click the 'View code' button to see the generated syntax that could be used in your indicator.

    Please review the help guide documentation below for more information.

    Time Filters: https://ninjatrader.com/support/help...ateTimeFilters
    Time Conditions: https://ninjatrader.com/support/help...imeComparisons
    Time: https://ninjatrader.com/support/help...eries_time.htm

    Let me know if you have further questions on this topic.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Got it thank you very much for the direction.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sjsj2732, Yesterday, 04:31 AM
      0 responses
      30 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      286 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      282 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      132 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      90 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X