Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trading at Specific Hour

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

    Trading at Specific Hour

    How do I add a condition to trade at specific hours?
    i.e. 12pm to 10pm PST

    if ( CurrentTime is between 12pm and 10pm PST )
    {
    // Do this
    }

    #2
    Hello johnnybegoode,

    A time filter is demonstrated in the Strategy Builder 301 course./

    Below is a public link.


    Also, below is a link to a reference sample in the help guide which demonstrates.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Is the timezone based on my PC or it's it always EST?

      SampleTimeFilter_NT8.zip commented that "The timezone used here is (GMT -05:00) EST."

      Comment


        #4
        Hello johnnybegoode,

        It's based on the Tools > Options > General > Preferences setting which by default is set to the timezone of your local computer.
        I've emailed our lead to have that comment removed.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        55 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        132 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        73 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X