Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Start/End Time

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

    Start/End Time

    I'm using time series and time value within a Strategy Builder code. I would like to user a user input for start/end time but there is no option when I select time series/time value. It works fine, but I have to change the times within the code every time I want to change the time. How do I include the start/end time as a condition? Thanks.

    #2
    Hello Fran888,

    Thanks for your post.

    User-defined Time inputs could be created on the Inputs and Variables screen of the Strategy Builder. That variable could then be used for your Time comparisons in the Conditions and Actions screen.

    You could find a simple example script on the forum thread linked below demonstrating how this could be accomplished.

    https://ninjatrader.com/support/foru...86#post1109686

    See the help guide documentation below for more information.

    Inputs and Variables Screen: https://ninjatrader.com/support/help...ariablesScreen
    Conditions: https://ninjatrader.com/support/help...on_builder.htm
    Actions: https://ninjatrader.com/support/help...t8/actions.htm

    Let me know if I may assist further.
    <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
    79 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X