[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Time Frame Question



PureBytes Links

Trading Reference Links

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();



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS