Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to notify at the end of optimization

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

    How to notify at the end of optimization

    Hello

    I want be able to send a SMS to my phone at the end of optimization.
    I know how to send mail and and then my mobile phone operator forward it as an SMS.

    But how send mail on end of optimization process?
    Is any method something like OnTermination()?

    My OS: Win 7 Home Premium 64-bit
    My Ninja: 64-bit 7.0.1000.7 (Live)



    Thank you, Doller Jozef

    #2
    Hello Doller Jozef,
    Thanks for writing in.
    Unfortunately there’s no inbuilt in-handler for “end of optimization” event.

    You can use OnTermination but it will be called after each instances of the testing. So let’s say you have a strategy with only one integer parameter in it and you want to optimize the same from, say 10-11. Then OnTermination will be called for 2 times.

    You can do a little test. Make a copy of the SampleMACrossover strategy (inbuilt strategy with NinjaTrader) and place this little coded in it

    Code:
    protected override void OnTermination()
    {
    	Print("Hi");
    }
    Now optimize the same (say with the Slow parameter set to 25-26), and you will find that the OutputWindow printed “Hi” 2 times (please do keep the output window open).

    This is true for your SMS/Email codes too.

    Please let me know if I can be of any further help.

    Regards,
    Joydeep.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Hello Joydeep,

      But when I have 3 parameters to optimize with each parameter step is 1 to 10,
      I get 1000 SMS

      The "End of Optimization" event should be great feature, if the optimization duration is too long.
      Anyway I thank you for quick response

      Best regards
      Jozef Doller

      Comment


        #4
        Hello Doller Jozef,
        Unfortunately we do not have that feature yet. But we have added the same in the list of our future upgrade consideration. I will let you know the tracking number once I get it.

        Please let me know if I can be of any help.

        Regards,
        Joydeep.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Hello,
          Development has assigned ticket #1482 for the feature as requested by you.

          Thanks.
          JoydeepNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          650 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          370 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          574 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          577 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X