Let me try again. I created the following code with wizard.
CODE:
Please log in to see this code.
I would like to Optimize "DataSeries maFast = SMA.Series(Close, 20);" and the instructions tell me to do the following:
------------------------------------------------------------------------------------------------------
Add New Parameter
Whether or not you plan to optimize, it's easiest to add Straps to your script using the O.C. Note that once you've added them and clicked Apply Changes to Code, you must modify the Strategy to actually use the parameter(s)! For example, assume that want to optimize the period of a moving average. Your code will have a statement like this one:
DataSeries fastMA = SMA.Series(Close, 20);
After adding a Strap and applying it to the code, you need to modify the line above with the Strap variable, parameterN, where N is the parameter number in the list.
DataSeries fastMA = SMA.Series(Close, parameterN.ValueInt);
-----------------------------------------------------------------------------------------------------------
I made several changes like the following which all compiled with errors.
....DataSeries maFast = SMA.Series(Close, strategyParameter1);
I did take a look at your suggested code/programs and alot more code is needed. So I must be missing something in the User Guide / Optimixation Control. Thanks again...Ed