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 terofs, Today, 04:18 PM
                      0 responses
                      5 views
                      0 likes
                      Last Post terofs
                      by terofs
                       
                      Started by nandhumca, Today, 03:41 PM
                      0 responses
                      4 views
                      0 likes
                      Last Post nandhumca  
                      Started by The_Sec, Today, 03:37 PM
                      0 responses
                      3 views
                      0 likes
                      Last Post The_Sec
                      by The_Sec
                       
                      Started by GwFutures1988, Today, 02:48 PM
                      1 response
                      9 views
                      0 likes
                      Last Post NinjaTrader_Clayton  
                      Started by ScottWalsh, 04-16-2024, 04:29 PM
                      6 responses
                      33 views
                      0 likes
                      Last Post ScottWalsh  
                      Working...
                      X