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, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    31 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