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

[amibroker] Need AFL coding help



PureBytes Links

Trading Reference Links

Hi all
 
I need a little coding help  to backtest a simple trading strategy based on moving average crossover. I need to find in backtest whts the max drawdown, no of winners and losers etc.
 
I give the buy and sell rules:
 
buy=cross(ema(c,10),ema(c,20));
sell=cross(ema(c,20),ema(c,10));
Short=sell;
cover=buy;
 
I want to code for stop as 2% from entry price.
 
Once coded for stop, we can do a backtest in amibroker and check the results.
Based on the results  one can fine tune the system. Any further tips on backtesting in amibroker is also welcome.
 
Any help in this matter will be highly appreciated.
 
 
 
Thanks

Naresh Nambissan


--
NARESH KUMAR NAMBISAN


__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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




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

__,_._,___