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

Strategy Execution error

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

    Strategy Execution error

    I have a strategy running in simulation trading mode and encountered the execution errors as shown in the attached image below.

    Click image for larger version

Name:	ExecutionErrors.png
Views:	60
Size:	17.4 KB
ID:	1158685

    The strategy is using explicit order execution using OnExecutionUpdate() and this seemed to be working fine previously. I have switched to automatic stop/profit setting using :


    SetStopLoss(CalculationMode.Ticks,StopTicks);
    SetProfitTarget(CalculationMode.Ticks, ProfitTicks);

    However still seem to be encountering an error. Is it worth doing a reinstall of NT8?

    #2
    Hello mballagan,

    Thanks for your post.

    We were recently made aware of an erroneous risk template that was added to the platform from a database update, which is likely the cause of the error message that you are receiving. In order to correct this item, you will need to first delete the erroneous risk templates then reset the Sim101 account.

    To remove the erroneous risk template;
    • Shut down NinjaTrader
    • On your PC, navigate to Documents/NinjaTrader 8/templates/Risk
    • Delete the risk templates titled '.xml', 'KPO.xml', and 'MES.xml'
    • I've included a video demonstration that we've made publicly available at the following link:
    Once you've deleted the erroneous risk templates, please do the following;
    • Restart NinjaTrader
    • From the NinjaTrader Control Center window select the Accounts tab
    • Right click on your simulation account and select 'Edit Account'
    • Ensure that 'None' is selected for the 'Risk' property
    • Press the "Reset" button
    • Select OK

    After completing the steps above, you should now be able to place orders in the Sim101 account without error.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    2 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    1 view
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    6 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Working...
    X