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

Taking the snapshot in the case of failure

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

    Taking the snapshot in the case of failure

    At the moment i have strategy that one of the risk management approaches is to stop trading on the pair after X failed trades. I have used object on the init of the strategy to keep the count of consecutive failed trades, the issue is if Ninja restarts i loose the count.Is there an effective way except writing to the file as backup to ensure that if crash has occurred upon restart strategy will initiate from the point in time rather than from default values.

    Thanks in advance

    #2
    Hello Sinisa.dodos,

    Writing to files is one way. You may also consider global variables. This is unfortunately outside of our support, but there should be reference available at the msdn C# site.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by LiamTwine, Today, 08:10 AM
    0 responses
    2 views
    0 likes
    Last Post LiamTwine  
    Started by Balage0922, Today, 07:38 AM
    0 responses
    5 views
    0 likes
    Last Post Balage0922  
    Started by JoMoon2024, Today, 06:56 AM
    0 responses
    6 views
    0 likes
    Last Post JoMoon2024  
    Started by Haiasi, 04-25-2024, 06:53 PM
    2 responses
    19 views
    0 likes
    Last Post Massinisa  
    Started by Creamers, Today, 05:32 AM
    0 responses
    6 views
    0 likes
    Last Post Creamers  
    Working...
    X