Hello Doc,
 
You can use Optimization to Optimize various variables, not Time Frames.
 
To Optimize Time Frame, you have to manually back test using multiple time frames (Ie, using TimeFrame.... Syntax).
 
Cheers
 
Prashanth
 
----- Original Message -----
From: drk_411
Sent: Thursday, September 28, 2006 7:47 PM
Subject: [amibroker] Help a newbie code

a newbie's try.

Lessertimeframe=5;
Greatertimeframe=7;
Lessertimeframe=Optimize("Lessertimeframe",2,2,5,1);
Greatertimeframe=Optimize("Greatertimeframe",7,7,14,1);

Plot(EMA(Close,Lessertimefame),"",colorRed,styleLine,styleThick);
Plot(EMA(Open,Greatertimeframe),"",colorBlue,styleLine,styleThick);
Plot(EMA(C,55),"",colorBlack,styleLine,styleThick);
buy = cross(ema(C,Lessertimeframe),ema(O,Greatertimeframe);
sell = cross(ema(O,Greatertimeframe),ema(C,Lessertimeframe);

Buy when red ema crosses the blue from below and sell reverse

so far so good. A small success for a newbie.

Now i would love to optimize the timeframe too,
so that this above graph is optimized on 5 min or 10 min or 15 min
(say an increment of 1 minute from 5 minutes to 20 minutes) and so on
there must be a way to optimize that too.
Would some kind could add that code line . Please.

regards
Dr. Raman Kumar

__._,_.___

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






SPONSORED LINKS
Software support Small business finance Business finance online
Business finance training Business finance course

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to