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

Re: [amibroker] Momentum Bars in AB ? Renko bars in AB?



PureBytes Links

Trading Reference Links

Adding a the signal qualifier below to your code, optimize and click the 3D
chart button, you can have a quick view of how seasonality effects your
system. This is just an example! Please modify it to analyze days of the
week and whatever else you think may have an effect on your system
performance.

Happy Coding,
Herman

m = Optimize("Month",0,1,12,1);
Qm = m == Month() OR m == 0;
y = Optimize("Year",0,2000,2004,1);
Qy = y == Year() OR m == 0;
Q = Qm AND Qy;
//// signal generator, NOT a practical system! /////
//// substitute your own system here /////
SetTradeDelays(0,0,0,0);
BuyPrice=SellPrice-ShortPrice=CoverPrice=Open;
Buy = Cross( MACD(), Signal() ) AND Q;
Sell = Cross( Signal(), MACD() ) AND Q;
Short = Sell;
Cover = Buy;
E=Equity(1);
Plot(E,"Equity",1,1);













[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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