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 sjsj2732, Yesterday, 04:31 AM
          0 responses
          33 views
          0 likes
          Last Post sjsj2732  
          Started by NullPointStrategies, 03-13-2026, 05:17 AM
          0 responses
          286 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          284 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          133 views
          1 like
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          91 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Working...
          X