Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change a bar count timer

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

    Change a bar count timer

    I'm using a bar count timer (BarCounter) that starts placing numbers under bars at the beginning of each session.

    I trade ES on the 24 hour Globex, but I need the counter to start at the beginning of the day session (9:30 EST).

    I don't know NinjaScript, but it looks to me that it does the restart with one line of code:

    if (Bars.IsFirstBarOf Session)

    Could you tell me what the line would be to make it, "if local time is 9:35..." or whatever that line would need to be to accomplish what I want.

    Thanks,
    Stephen

    #2
    Take a look at ToTime -- it has a great example.

    Comment


      #3
      Thank you. I was able to make it work.

      Stephen

      Comment


        #4
        Hello sgordet,

        (And thanks bltdavid)

        Below are links to additional resources.
        https://www.youtube.com/watch?v=HCyt...tu.be&t=43m30s
        https://ninjatrader.com/support/help...to_limit_t.htm
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by localappleseed, Today, 02:41 PM
        0 responses
        2 views
        0 likes
        Last Post localappleseed  
        Started by kschuble, Today, 01:16 PM
        2 responses
        12 views
        0 likes
        Last Post kschuble  
        Started by wooofad, Today, 11:34 AM
        0 responses
        15 views
        0 likes
        Last Post wooofad
        by wooofad
         
        Started by tonynt, Today, 10:06 AM
        1 response
        21 views
        0 likes
        Last Post bltdavid  
        Started by Kediil, Yesterday, 09:26 AM
        2 responses
        36 views
        0 likes
        Last Post Kediil
        by Kediil
         
        Working...
        X