Hello, I found #include <Paramoptimize.afl> and I understood that this function could use the best optimized values as parameters, instead of default values, into charts.
Is my understanding correct ? I cant' automatically enter these best values from the result list. I read ten's of threads concerning ParamOptimize, but after a full day of exhausting search, I get nothing. Any help or detailed example will be appreciated. I'am on the verge to give up. Regards --- In [email protected], "reinsley" <[EMAIL PROTECTED]> wrote: > > Hello, > > How can I reinsert the best optimized values into the parameters ? > Does it exist a way to extract them ? > > I ran the following example and during the optimization, I see the > curves that follows the running values. > But at the end of optimization the graph comes back to the default > values : 5 - 10 - 7 - 14 (as mentionned in Help File). > > I read http://www.amibroker.com/guide/h_optimization.html, but I did > not understood how to reenter the best values sorted by the best > results list. > > I wish, if possible, to reintroduce the best 4 values founded by > optimization into the default param set of : > > BFastPer=Param("BFastPer",( [Best value #1] ,2,50,1); > BSlowPer=Param("BSlowPer",( [Best value #2] ,2,50,1); > SFastPer=Param("SFastPer",( [Best value #3] ,2,50,1); > SSlowPer=Param("SSlowPer",( [Best value #4] ,2,50,1); > > ********************************** > > //four values optimization example > > BFastPer=Optimize("BFastPer",5,2,50,1); > BSlowPer=Optimize("BSlowPer", 10,2,50,1); > > SFastPer=Optimize("SFastPer",7,2,50,1); > SSlowPer=Optimize("SSlowPer",14,2,50,1); > > mov1 = EMA(C, BFastPer); > mov2 = EMA(C, BSlowPer); > mov3 = EMA(C, SFastPer); > mov4 = EMA(C, SSlowPer); > > ** then place the best optimized values... but how ? > > plot mov1 ; > plot mov2 ; > plot mov3 ; > plot mov4 ; > > ********************************** > > Thank you > > Regards >
