Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Consistent failure

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

    Consistent failure

    I have a consistent failure when doing the following:

    1. Start version 7 with an empty workspace
    2. Connect to Interactive Brokers
    3. Create new chart. Add "YM 12-09", then add "^TICK" (both 5 minute interval). YM is in panel 1, ^TICK is in panel2.
    4. After chart is displayed add the indicator kpTickLines to the ^TICK data series. (indicator script is attached)
    5. Change the chart interval from 5 minute to 1 minute.
    6. Keep alternating the interval between 5 minute and 1 minute. Usually within the first five interval changes an error will be thrown. Sometimes it says kpTickLines cannot be serialized. Sometimes it just fails. (see attached trace file).
    Attached Files

    #2
    Your script does not compile. LastBarOnChart is not a NinjaTrader property.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Sorry, that's in my UserDefinedMethods.

      Code:
      [SIZE=2][[/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Browsable[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]false[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])][/SIZE]
      [SIZE=2][[/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]XmlIgnore[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]][/SIZE]
      [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]public[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]bool[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] LastBarOnChart[/SIZE]
      [SIZE=2]{[/SIZE]
      [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]get[/COLOR][/SIZE]
      [/COLOR][/SIZE][SIZE=2]{[/SIZE]
      [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (!CalculateOnBarClose && CurrentBar == Bars.Count - 1)[/SIZE]
      [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]return[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
      [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]else[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (CalculateOnBarClose && CurrentBar == Bars.Count - 2)[/SIZE]
      [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]return[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
      [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]return[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]false[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
      [SIZE=2]}[/SIZE]
      [SIZE=2]}[/SIZE]

      Comment


        #4
        Please provide full context for your UserDefinedMethods. Or better yet, please provide a workable script without UserDefinedMethods, thank you.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Here you go.
          Attached Files

          Comment


            #6
            Which series are you changing the time interval for in step 5? YM or TICK? How are you changing the interval too? Tool menu drop down? Data Series window? Typing 1M then 5M?
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Tool menu drop down

              Comment


                #8
                Are you selecting the secondary series each time before going to the Toolbar menu?
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  No, neither of the data series are selected.

                  Comment


                    #10
                    I am unable to reproduce on latest sources, but a colleague was able to reproduce on NT7B2. This leads me to believe the issue may be already fixed. Please try again on the next version and let us know if it doesn't work. Thank you.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Will do. Thanks Josh.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by gemify, 11-11-2022, 11:52 AM
                      6 responses
                      803 views
                      2 likes
                      Last Post ultls
                      by ultls
                       
                      Started by ScottWalsh, Today, 04:52 PM
                      0 responses
                      3 views
                      0 likes
                      Last Post ScottWalsh  
                      Started by ScottWalsh, Today, 04:29 PM
                      0 responses
                      7 views
                      0 likes
                      Last Post ScottWalsh  
                      Started by rtwave, 04-12-2024, 09:30 AM
                      2 responses
                      22 views
                      0 likes
                      Last Post rtwave
                      by rtwave
                       
                      Started by tsantospinto, 04-12-2024, 07:04 PM
                      5 responses
                      70 views
                      0 likes
                      Last Post tsantospinto  
                      Working...
                      X