• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

StrategyAnalyzer Exception : Order property has not been set

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

    StrategyAnalyzer Exception : Order property has not been set

    Hi,
    a strategy that runs fine on the chart is having problems in the Strategy Analyzer. It can be backtested, but if the Backtest type is set to Optimization, the following exception appears in orange in the Log tab.
    "Failed to load selected strategy ... The Order Property has not been set. Use the GetOrder method to get the value."

    I am not familiar with the GetOrder method and it is not in the help or the intellisense. Nor do I knowwhy it would be crashing.

    Please assist.
    Cheers,
    saltminer

    #2
    Hello saltminer,

    Based on the error, this seems that it could be related to properties being used. GetOrder is not a documented NinjaScript method, the only information I could locate on this is that it may be related to the DisplayAttribute you are using and is not specifically related to the Order object like a placed order.

    Would you be able to provide a sample script that demonstrates this problem so I can see what syntax is being used?

    If you have not yet reduced the code to find what controls this error, I would suggest doing that, possibly in an entirely new test script. This would just help cut out your proprietary logic or other items you don't want to share, this would also help illuminate the issue so we can both test to find an answer.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      FIXED:
      In the properties of each input parameter I included Order=n and that fixed it up. Strange; leaving it out works ok on charts and in backtest, but not in Optimise.
      saltminer

      Comment


        #4
        Hi NT,

        To give more info, I found the Order property for input variables to be required on bool type values, however, double and int will not require it.

        I suspect this is a bug. Please have a look and let us know.
        mrlogik
        NinjaTrader Ecosystem Vendor - Purelogik Trading

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by razeus, Today, 12:00 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by kitwit, Today, 09:47 AM
        5 responses
        20 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by guidoisot, Today, 11:17 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by razeus, Today, 10:11 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by tonynt, Today, 10:18 AM
        5 responses
        16 views
        0 likes
        Last Post tonynt
        by tonynt
         
        Working...
        X