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

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to