Need equivalent to Enviroment.Optimizing for Portfolio.

Questions about MultiCharts .NET and user contributed studies.
RonS
Posts: 21
Joined: 16 Sep 2018
Has thanked: 7 times
Been thanked: 3 times

Need equivalent to Enviroment.Optimizing for Portfolio.

Postby RonS » 11 Oct 2019

I was wondering if there was an equivalent to "Enviroment.Optimizing" for the Portfolio? A Strategy I use in both Charts and Portfolio outputs Display messages i.e.: CCI_Bull, CCI_Bear etc.. When optimizing I inhibit this with "Environment.Opimizing" and it works well. Unfortunately in a Portfolio Trading window it has an Invalid Pointer error that halts Forward Testing. I am hoping to not have to add an [Input] to select Portfolio mode.

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

Re: Need equivalent to Enviroment.Optimizing for Portfolio.

Postby Henry MultiСharts » 14 Oct 2019

Hello RonS,

Try this code:

Code: Select all

Output.WriteLine("Optimizing: {0}, ApplicationCode: {1}", Environment.Optimizing, Environment.ApplicationCode);


Return to “MultiCharts .NET”