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 tradingnasdaqprueba, 05-07-2024, 03:42 AM
        16 responses
        63 views
        0 likes
        Last Post tradingnasdaqprueba  
        Started by Vulgoth_t_Destroyer, 05-09-2022, 04:45 PM
        55 responses
        5,456 views
        0 likes
        Last Post BartMan
        by BartMan
         
        Started by DawnTreader, 05-08-2024, 05:58 PM
        16 responses
        52 views
        0 likes
        Last Post DawnTreader  
        Started by kevinenergy, Yesterday, 12:01 PM
        8 responses
        28 views
        0 likes
        Last Post kevinenergy  
        Started by nightstalker, Today, 01:32 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Working...
        X