PureBytes Links
Trading Reference Links
|
Hello,
Instead of working on manual backtester, wouldn't be easier to just use built-in Equity function
http://www.amibroker.com/f?equity
You can use range markers with equity too:
buy= ...
sell = your system here
graph0 = Equity( 0, 3, BeginValue( DateNum() ), EndValue( DateNum() ) );
And you will be able to see your equity chart changing immediatelly as
you change range markers.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Leon Nedbalek" <ned@xxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, January 14, 2004 8:40 PM
Subject: [amibroker] Setting Beginning Date of Test Period
> I'm working on a manual backtester which allows me to progress bar by bar
> through the past performance of a stock, view the custom indicator outputs
> that would have been current at that time, make decisions on entry and exit
> points, test entry and exit signals, etc., all with the "current" date at
> the right margin with no "future" data yet visible. When the desired entry
> date is at the right margin, I set the test period by triple-clicking on
> that bar -- this sets the BeginValue(BarIndex()) to that date and resets
> the SelectedValue(BarIndex()) to whatever date is at the right margin, with
> the "days in trade" increasing by one each time I click the scroll bar
> arrow or the bracket key (keyboard set up to behave like TC2000). Here is
> an excerpt of the code which works in that manner:
>
> Start=BeginValue(BarIndex());
> Current=SelectedValue(BarIndex());
> DaysInTradeInclusive=Current-Start+1;
> EntryPrice=BeginValue(Close);
> etc etc
>
> This works fine for that purpose, but I would like to set up some backtest
> indicator files preset with a specific start date or changeable with a
> right-click "parameters" function rather than starting at the earliest data
> date. So far I have not been able to enter the desired date in a location
> or format which the program will accept.
>
> Help, please!
>
> Ned
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> 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/
>
>
>
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
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/
|