Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Request for NT8

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

    Request for NT8

    I just had to create a little work around in NT7 and I wanted to bring my thoughts to your attention. It has to do with FirstTickOfBar and how it is currently being handled when you turn your strategy on mid candle. The assumption is that FTOB is ONLY true on the very first tick of the bar, period. Well, not really...

    What happens is that when you turn a strategy on mid candle that very first live tick you get is set to FTOB = true. In my specific case what happens is that I check for live candles plus FTOB in order to perform some stop propagation. So my condition is FTOB && !Historical. When price is below the point where it would move my stop up or down then those events are being triggered too early if I turn the strategy on at that moment.

    Here's some output that makes me scratch my head:

    Real Time = 5/13/2014 10:45:43 AM
    System Time = 5/8/2014 5:46:48 AM
    Historical = True // expected
    FirstTickOfBar = True // ???

    Real Time = 5/13/2014 10:45:44 AM
    System Time = 5/13/2014 6:59:59 AM // expected
    Historical = True // expected
    FirstTickOfBar = True // ???

    Real Time = 5/13/2014 10:45:44 AM
    System Time = 5/13/2014 7:09:32 AM
    Historical = True // expected
    FirstTickOfBar = True // ??? that is silly

    Real Time = 5/13/2014 11:02:53 AM
    System Time = 5/13/2014 7:09:35 AM
    Historical = False // expected - now it's live
    FirstTickOfBar = False // expected

    It's a complete mess and I never really know when FTOB is going to be triggered with NT7 - I have been dealing with this one for two years and although I have work arounds it's all very fragile. My request for NT8 is that FTOB should ONLY be true on the first tick of the bar, in both LIVE and HISTORICAL mode. If you guys need another variable for the first live tick then you should create a new one.

    #2
    Hello molecool,

    Thank you for your post.

    The FirstTickOfBar works as expected in this case. If you wish to see another method to track this you can use your own custom method. This item has been detailed in the past in the thread at the following link: http://www.ninjatrader.com/support/f...ad.php?t=59979

    If you have any questions please let me know.

    Comment


      #3
      Yes, I remember as I originated that post :-)

      My question is whether or not this on the road map for NT8. Will NT8 work identically in this regard or are you considering a change?
      Last edited by molecool; 05-13-2014, 11:25 AM.

      Comment


        #4
        Hello molecool,

        Thank you for your response.

        Improvements to NinjaScript are planned for the next major release of NinjaTrader, including more state attributes. At this time though, I cannot confirm anything, as nothing is set in stone.

        Please let me know if I may be of further assistance.

        Comment


          #5
          This problem is of interest to me too. i guess the first question to ask is how do you define FTOB? Is it the first trade or the first change in quote?

          If it is either of the above then the first tick may not correspond to the time boundaries of say 5 minute candles.

          What is the instrument that you are using? If such updates are infrequent, then what you show above may actually be expected behavior?

          Comment


            #6
            Originally posted by newworldguy View Post
            This problem is of interest to me too. i guess the first question to ask is how do you define FTOB? Is it the first trade or the first change in quote?

            If it is either of the above then the first tick may not correspond to the time boundaries of say 5 minute candles.

            What is the instrument that you are using? If such updates are infrequent, then what you show above may actually be expected behavior?
            FTOB stands for 'first tick of bar' - you should read the previous thread.

            Comment

            Latest Posts

            Collapse

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