PureBytes Links
Trading Reference Links
|
I've started creating a trading simulator to work during playback mode
so I can simulate day trading a single futures. I have a couple of
years of tick data.
In a parameters window, I have buy and sell trigger buttons. I click
on these during playback, store the orders in global variables and
every refresh (1 second) I populate the buy and sell arrays and then
call the equity() function to give me running feedback.
This is working fine but I've hit a wall trying to add in
1. pyramiding and
2. reversing positions.
1) I read in the help that the afl equity() function does not support
scaling in and out of positions. Is there a way to call the new
portfolio backtester through afl?
Can I run the Analysis.Backtest() function from the OLE Object Model
during playback and then get my data from the ~~~equity composite? Is
this practical to run every second? I.e. Would it be quick enough?
2) If I am long 10 contracts and I sell 20 contracts, I want it to
close out my existing long position and then go short 10 contracts on
the same bar.
As there is only one position size array though, is this actually
possible?
This is not a big deal though as I can always just delay the second order?
Any feedback appreciated.
Regards,
Julian.
------------------------------------
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
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:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|