How to terminate one iteration of optimization early

Questions about MultiCharts .NET and user contributed studies.
User avatar
fbertram
Posts: 166
Joined: 16 Oct 2014
Location: Seattle, USA
Has thanked: 36 times
Been thanked: 76 times
Contact:

How to terminate one iteration of optimization early

Postby fbertram » 15 Dec 2016

Dear MultiCharts fans,

In order to speed up optimization, I would like to end individual iterations early, when certain criteria are met. An example condition would be exceeding a certain draw-down.

I am aware of ExecControl.Abort(), but that unfortunately aborts the whole optimization, not just a single iteration. Any other suggestions?


Thank you,
best regards, Felix

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: How to terminate one iteration of optimization early

Postby Henry MultiСharts » 16 Dec 2016

Hello Felix,

You can call Return instead of doing some calculations when certain criteria are met.


Return to “MultiCharts .NET”