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 rdtdale, Today, 01:02 PM
    0 responses
    3 views
    0 likes
    Last Post rdtdale
    by rdtdale
     
    Started by alifarahani, Today, 09:40 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by RookieTrader, Today, 09:37 AM
    4 responses
    18 views
    0 likes
    Last Post RookieTrader  
    Started by PaulMohn, Today, 12:36 PM
    0 responses
    7 views
    0 likes
    Last Post PaulMohn  
    Started by love2code2trade, 04-17-2024, 01:45 PM
    4 responses
    41 views
    0 likes
    Last Post love2code2trade  
    Working...
    X