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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          60 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          147 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          97 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          284 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X