Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Session Time

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

    Session Time

    NinjaTrader8 , often sets trade session time manually , please , is there a way of representing this programmatically.Thank you

    #2
    Hello Emma1,

    Thanks for your post.

    Are you referring to limiting the trading hours of a strategy so that it only trades within a certain timeframe?

    If so, see this reference sample that demonstrates implementing a time filter in your script: https://ninjatrader.com/support/help...to_limit_t.htm

    If this does not resolve your inquiry, please provide a brief description explaining exactly what you mean by 'often sets trade session time manually' so I may accurately assist.

    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


      #3
      No , it does work . I meant setting Trade session ,example : 'Start Time =12.00', such that user can set different trading hours that are suitable, on loading indicator or Strategy in 'Properties', programmatically . Thank you.
      Last edited by Emma1; 07-18-2022, 02:06 PM.

      Comment


        #4
        Hello Emma1,

        Thanks for your note.

        You could use the Inputs and Variables screen of the Strategy Builder to create user-defined time inputs called something like StartTime or EndTime. Then you could create a time filter using those inputs to limit trading hours.

        See this help guide page for more information about the Inputs and Variables screen: https://ninjatrader.com/support/help...ariablesScreen

        See this help guide page for information about how to create a Time Filter: https://ninjatrader.com/support/help...ateTimeFilters'

        Also, see the attached example script demonstrating this.

        Let me know if I may assist further.
        Attached Files
        <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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        367 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        571 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X