Need equivalent to Enviroment.Optimizing for Portfolio.
Need equivalent to Enviroment.Optimizing for Portfolio.
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.
- 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.
Hello RonS,
Try this code:
Try this code:
Code: Select all
Output.WriteLine("Optimizing: {0}, ApplicationCode: {1}", Environment.Optimizing, Environment.ApplicationCode);