Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

FancyBarTimer Compile error

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

    FancyBarTimer Compile error

    I'm getting a compile error when trying to run "FancyBarTimer" in Ninja Trader version 7.

    the compile error is on this line of code,

    && Bars.Session.InSession(Now, Bars.Period.Id, true))


    The error messages are:

    The best overloaded method match for 'NinjaTrader.Data.Session.InSession(System.DateTim e, NinjaTrader.Data.Period, bool)' has some invalid arguments

    Argument '2': cannot convert from 'NinjaTrader.Data.PeriodType' to 'NinjaTrader.Data.Period'

    Can someone point me in the right direction?

    Thank you,
    taddypole...

    #2
    Taddypole,

    Unfortunately .InSession is not supported. What you should do is just check the session begin and end times and make a comparison to your current Time[0].
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Unfortunately i'm not a C# programmer and really don't know just what the code is trying to do. Here's more of the code from "Fancy Bar Timer" found in the Indicator File sharing section. Any further help would be appreciated.
      Attached Files

      Comment


        #4
        Taddypole,

        Unfortunately you are using a lot of unsupported methods and properties. I suspect you got this code from somewhere else, in that case, I would recommend asking the original author what their code is doing.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by Taddypole View Post
          Unfortunately i'm not a C# programmer and really don't know just what the code is trying to do. Here's more of the code from "Fancy Bar Timer" found in the Indicator File sharing section. Any further help would be appreciated.
          Did u get it working in NT7?

          Comment


            #6
            I really don't understand the code well enough. If I pursue this, it will take me some time which don't have at the moment.

            taddypole...

            Comment


              #7
              I'm not much of a programer but I managed to get it to work.

              Import it using NT6.5. Find the file in the NT6.5 folder and then copy it into the same NT7 folder. Open the file in NT7 by Tool>Edit NinjaScript> Select "Fancy Bar Timer"

              Press F5 > go to the error line and just delete it > press F5 again and it will compile.

              Now it works.

              Comment


                #8
                FancyBarTimer for NT7

                I have now posted a version of the FancyBarTimer for NT7.

                You can find it here.

                Please don't use the NT6 version to make your own version for NT7, or at least don't share it. The modifications I have seen people do so far will not properly work in all situations (within session, playback etc).

                Thank you to all that informed me that the NT6 version did not work for NT7 (which is still in beta so I don't use it).

                Enjoy,

                TB
                Last edited by tobbe; 08-07-2010, 02:34 AM. Reason: Updated link.

                Comment


                  #9
                  tobbe, thank you for sharing.
                  AustinNinjaTrader Customer Service

                  Comment


                    #10
                    Link not work

                    Hi guys the link below does not work, any ideas where to get the new and improved fancy bar timer for ninja 7? Thanks. DJ

                    Comment


                      #11
                      Originally posted by djkiwi View Post
                      Hi guys the link below does not work, any ideas where to get the new and improved fancy bar timer for ninja 7? Thanks. DJ
                      NinjaTrader moved all the NT7 indicators to a separate thread. I've updated the link above. You can find it here.

                      Cheers,
                      TB
                      Last edited by tobbe; 08-07-2010, 02:39 AM.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      586 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      341 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      103 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      555 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      552 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X