Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Bloodhound Error

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

    Bloodhound Error

    I keep getting the following error during set up of a BH strategy:

    "Errors: [Solver: HMA 21 Change In Slope] Index was out of range. Must be non-negative and less that the size of the collection. Parameter name: index."

    The Indicator is a 21 period Hull MA and I am using a the change in slope solver.

    The default time frame is 5 min and the secondary time frame is 1 minute.

    The only thing I can think of is that the default time frame must be smaller than the secondary.

    However, despite the error message the solver seems to work properly.

    Anyone run across this? How do I remedy?

    Jeff

    #2
    Hello Jeff,

    Do you have a CurrentBars check in the OnBarUpdate()?

    Is this programming strictly through Bloodhound's interface or are you using NinjaTrader editor?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Cal View Post
      Hello Jeff,

      Do you have a CurrentBars check in the OnBarUpdate()?

      Is this programming strictly through Bloodhound's interface or are you using NinjaTrader editor?
      Where do I check CurrentBars?

      Yes, programming is through Bloodhound

      Comment


        #4
        Jeff,

        if(CurrentBars < 1) return;

        You would place this at the beginning of OnBarUpdate.

        However, given the unfamiliarity of Bloodhound system I would advise reaching out to them for any information they can offer
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        2 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        11 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        12 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,982 views
        3 likes
        Last Post jhudas88  
        Working...
        X