How to know optimization reaches the end?

Questions about MultiCharts and user contributed studies.
bobfreeman2002
Posts: 4
Joined: 06 Feb 2015
Has thanked: 1 time

How to know optimization reaches the end?

Postby bobfreeman2002 » 09 Dec 2021

Hi,

I am writing a strategy/signal and want to do some analysis at the end of optimization, before the termination of optimization or jumping to a new optimization in the walk forward optimization. Is there any way to know optimization reaches the end? Any keyword or function or indicator, or a method which can achieve that purpose?

Thanks,
Bob

User avatar
Tammy MultiCharts
Posts: 200
Joined: 06 Aug 2020
Has thanked: 6 times
Been thanked: 65 times

Re: How to know optimization reaches the end?

Postby Tammy MultiCharts » 09 Dec 2021

Hello Bob,

It's not possible to indicate the end of optimization from the code.

You can use GetAppInfo(aiOptimizing) keyword to determine whether the strategy is currently being optimized (will return 1 in that case).


Return to “MultiCharts”