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 Natoc, Today, 03:04 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by Rudy2323, Today, 02:56 AM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by tonynt, Yesterday, 02:07 PM
        1 response
        29 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by sgordet, Yesterday, 01:57 PM
        1 response
        30 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by PeterInBrisbane, Yesterday, 01:07 AM
        2 responses
        24 views
        0 likes
        Last Post PeterInBrisbane  
        Working...
        X