PureBytes Links
Trading Reference Links
|
I am currently developing & backtesting my trading systems on stocks
EOD data and up to several years back.
I'd like to backtest a trading system like for living, i.e to
simulate cash withdrawal in reccuring periods if there is any profit,
of course.
Is there any way to code it with AFL, say the following way :
1. At the end of a distinct period = Param( month, quarter or year) I
check whether there is any profit during this period
2. If so, I will set my "Period Salary" as Cash Withdrawal = Param
(percent Of Profit).
3. If I can't withdraw all that amount due to current lack of cash ->
I'll wait for some period = Param( # of days ) and don't open any
new position while checking whether I can withdraw an extra cash by
closing currently opened and profiting position(s) just only after my
trading system send a signal to close it.
4. I then make a record on cash withdrawal and begin opening new
positions according to available cash and gradual position closing
like with plain system backtesting.
Does anyone have an idea to code it ?
Thanks
Svatopluk
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
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/
<*> 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/
|