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 kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        58 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        41 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        46 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        37 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        157 views
        0 likes
        Last Post SalmaTrader  
        Working...
        X