Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Implementing Time-Based Conditions in Strategy Builder Without Custom Code

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

    Implementing Time-Based Conditions in Strategy Builder Without Custom Code



    Hello NinjaTrader Community,

    I am working on a strategy that needs to apply specific indicators only during Regular Trading Hours (RTH). Currently, I have a setup that functions correctly when RTH is defined in the settings. However, I want to expand the strategy to include additional conditions that operate beyond RTH.

    Is there a way within the Strategy Builder to set time-based conditions for indicators, such that the calculations are confined to a specified time window, emulating the RTH filter, without resorting to writing custom code?

    I am aiming to have certain parts of the strategy activate only during defined trading hours (e.g., 9:30 AM to 4:00 PM for the NASDAQ), while other components may work on a different schedule or around the clock.

    Any guidance or workarounds using solely the Strategy Builder would be greatly appreciated, as I would prefer to avoid diving into custom scripting if possible.

    Thank you for your assistance!

    #2
    Hello Hezi100,

    Thanks for your post.

    So I may accurately assist, please provide a brief description explaining exactly what you are trying to accomplish.

    Are you wanting to do actions only if a condition occurs during a certain timeframe?

    If so, you could implement Time Filters in your script to limit the times that an action takes place when a condition is true.

    See this help guide page for more information about creating Time Filters: https://ninjatrader.com/support/help...on_builder.htm


    <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

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    56 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    33 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    195 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    359 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    280 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X