Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time related

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

    Time related

    I want an indicator to based on a certain time as follows:

    ToTime(Time[
    0]) >= 74500 && ToTime(Time[0]) <= 154500

    Where would I place this code so that it is global to the indicator without adding an if statement?

    Thanks

    #2
    Hello,

    Do you want the indicator to not work/draw if it is a certain time? I'm not aware of anyway to do that. However I suggest using an If statement just inside the OnBarUpdate() block and putting all of the code inside that. Or something like that.
    DenNinjaTrader Customer Service

    Comment


      #3
      ok, I was afraid you were going to say that. I'll structure it the way you suggested.

      Thanks for responding.

      Comment


        #4
        Exchange time vs. home time

        Is it possible for NT to use the exchange time and not the computer time? Is there no time stamp in the zenfire data?

        I want to use the same strategy in the same Grid for different exchanges (in different time zones).

        Thanks

        Comment


          #5
          N-Trader, unfortunately not with NinjaTrader 6.5 - with NinjaTrader 7 you can setup custom session templates then with the Session Manager we have added - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          571 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          549 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          549 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X