Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Compare ROI for Amibroker (AFL)
My first attempt an coding AFL, add this to other explorations to compare the potential Return from a trade.
Allows comparison of the return from each trade
Indicator / Formula
/* a simple exploration based on parameters chosen, if each stock returned its ATR each day, which would provide the better return */ daystocheckatr=Param("How Many days of for ATR?",100,1,200,1); expectreturninxday=Param("How Many days to get a return?",5,1,20,1); commission_on_trade=param("what is avg commission in $",19.95,0,60,1); trade_size = Param("What is baseline investment",10000,100,100000,10); bang_for_buck = (trade_size/C)* (ATR(daystocheckatr)/100); will_Cover_commission_in_x_days = ((trade_size/C)* (ATR(daystocheckatr)/100))*expectreturninxday > commission_on_trade;//x Days trading range should Cover Commissions AddColumn(bang_for_buck,"assume ATR, potential return over x days", 1.4); AddColumn(will_cover_commission_in_x_days,"true/false, x days at ATR will cover commission", 1);
0 comments
Leave Comment
Please login here to leave a comment.
Back