Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
          BertrandNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,607 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          6 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          15 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X