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

switch rejection handling

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

    switch rejection handling

    Hi,

    I understand how to initilise a strategy to use my own rejection handling
    ie. RealtimeErrorHandling = RealtimeErrorHandling.TakeNoAction

    However, is there a way to reverse this decision once the strategy has started eg. I try my own methods to handle the rejection but it keeps on happening, so now I want to revert back to the ninja native RealtimeErrorHandling function.

    I tried:
    RealtimeErrorHandling = RealtimeErrorHandling.StopStrategyCancelOrdersClos ePosition
    ... which I thought the help file might have been alluding to, however it raises an error on compilation.

    cheers,

    #2
    Just remove the whole line from your strategy and recompile then you will be back to the default.
    Last edited by NinjaTrader_JoshP; 09-19-2008, 08:10 AM.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      real time error handling - reverting back to default

      I think that my key words were: "However, is there a way to reverse this decision once the strategy has started" ie. in realtime, within the code.

      Or, to put it another way, what is the meaning of:
      RealtimeErrorHandling = RealtimeErrorHandling.StopStrategyCancelOrdersClos ePosition() in the help file?

      What is it supposed to be alluding to? How do we use it?

      cheers
      Last edited by sysimp; 09-19-2008, 04:43 PM. Reason: update

      Comment


        #4
        I believe this has been deprecated. We will update the HelpGuide.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by merc410, Today, 03:41 AM
        4 responses
        27 views
        0 likes
        Last Post merc410
        by merc410
         
        Started by Graci117, Yesterday, 11:40 PM
        2 responses
        15 views
        0 likes
        Last Post Graci117  
        Started by Taddypole, Today, 02:25 PM
        0 responses
        1 view
        0 likes
        Last Post Taddypole  
        Started by ETFVoyageur, 04-30-2024, 02:04 PM
        9 responses
        56 views
        0 likes
        Last Post ETFVoyageur  
        Started by Felix Reichert, 04-26-2024, 02:12 PM
        8 responses
        48 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X