I am
trying to optimize parameters using the following. I have my AA Settings
set to daily. It runs but in gives the same results as if done
daily. What is wrong?
Thanks, Larry
TimeFrameSet
(inDaily * 5);
Per = Optimize("Per",0.001,0.001,0.005,0.001);
Per2 = Optimize("Per2",0.004,0.001,0.005,0.001);
Periods = Optimize("Periods",12,5,34,1);
Periods2 = Optimize("Periods2",21,5,34,1);
/*********************************/
average= MA(C,periods);
ba1 = bandsAdjust=average*per;
ba2 = bandsAdjust=average*per2;
average2= MA(C,periods2);
ba3 = bandsAdjust=average*per;
ba4 = bandsAdjust=average*per2;
upperband=average+ba1; //bandsAdjust;
Lowerband=average-ba2; //bandsAdjust;
TimeFrameRestore
();