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

Re: [amibroker] Re: Optimize function



PureBytes Links

Trading Reference Links




 
----- Original Message ----- 
From: "DIMITRIS TSOKAKIS" <<A 
href=""><FONT 
size=2>TSOKAKIS@xxxxxxxxx<FONT 
size=2>>
To: <<A 
href=""><FONT 
size=2>amibroker@xxxxxxxxxxxxxxx<FONT 
size=2>>
Sent: Friday, September 12, 2003 12:48 
PM
Subject: [amibroker] Re: Optimize 
function

> Bill,> I have posted in the past the 
walk-forward optimization.> Here is the basic principle, for a restricted 
period optimization > [year2002 in the example]
 
If I correctly understand, optimization 
of k is still being established on the entire dataset, rather than only on 
2002 data.  Right?  If so, how would you restrict Optimize to operate 
only in 2002?
> of a Stochastic o/b, o/s system :> 
> k=Optimize("k",40,30,50,10);> d2002=DateNum()>=1020101 AND 
DateNum()<1030101;> LastTradingBar=(d2002==0 AND 
Ref(d2002,-1))*DateNum();> Buy=d2002*Cross(StochD(),k);> 
Sell=d2002*Cross(StochD(),70) OR DateNum()==LastTradingBar;> > Hit 
now Optimize for > *current stock> *all quotations> AA will 
see only 2002 dates.> It is important to exit any open trade by the end 
of the test period, > else the last probable Open trade will last for 
ever !!> The solution is that{  OR DateNum()==LastTradingBar } 
statement.> Dimitris Tsokakis> --- In <A 
href=""><FONT 
size=2>amibroker@xxxxxxxxxxxxxxx, 
"wavemechanic" <<FONT 
size=2>wd78@x...> wrote:> 
> > > ----- Original Message ----- > > From: "Stephane 
Carrasset" <<FONT 
size=2>nenapacwanfr@x...>> 
> To: <<A 
href=""><FONT 
size=2>amibroker@xxxxxxxxxxxxxxx<FONT 
size=2>>> > Sent: Friday, September 12, 2003 11:55 AM> > 
Subject: [amibroker] Re: Optimize function> > > > > 
> > Bill,> > >> > > do you mean if you Backtest 
for example NDX on the last 500 bars> > > do you want optimize an 
indicator on the 500-400 bars?? then keep > the> > > 
optimized value on the 400-1 bars ??> > > > I was not 
thinking of that, but your scenario is along the same > lines and> 
> would be a another important option.  I was actually thinking of 
> the problem> > from 180 degrees around.  Specifically, 
for a dataset of, for > example, 1000> > bars optimize only 
over the last 500 and display the equity curve > for that> > 
range.  It is possible to only consider (and display) the equity > 
for a> > specified number of bars (e.g., the last 500 bars), but I 
don't see > how to> > restrict optimization to those 
bars.  Certainly not with the > available> > arguments for 
Optimize.> > > > >> > > Stephane> 
> >> > > > It is my understanding that the Optimize 
function operates on > all> > > data.  So,> > 
> > for example, if one is looking at equity for a portion of the > 
data> > > (e.g.,> > > > Equity(0, 1, 100) Optimize 
still operates on all data.  Does > anyone> > > have 
a> > > > work-around that will force Optimize to only consider a 
> specified> > > range of> > > > 
data?> > > >> > > > Thanks.> > > 
>> > > > Bill> > >> > >> 
> >> > > Send BUG REPORTS to <A 
href=""><FONT 
size=2>bugs@x...> > > Send 
SUGGESTIONS to <FONT 
size=2>suggest@x...> > > 
-----------------------------------------> > > Post 
AmiQuote-related messages ONLY to: <A 
href=""><FONT 
size=2>amiquote@xxxxxxxxxxxxxxx> 
> > (Web page: <A 
href=""><FONT 
size=2>http://groups.yahoo.com/group/amiquote/messages/<FONT 
size=2>)> > > --------------------------------------------> 
> > Check group FAQ at:> > <A 
href=""><FONT 
size=2>http://groups.yahoo.com/group/amibroker/files/groupfaq.html<FONT 
size=2>> > >> > > Your use of Yahoo! Groups is subject to 
> <A 
href=""><FONT 
size=2>http://docs.yahoo.com/info/terms/<FONT 
size=2>> > >> > >> > > 
------------------------ 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. <A 
href=""><FONT 
size=2>http://www.c1tracking.com/l.asp?cid=5511<FONT 
size=2>> <A 
href=""><FONT 
size=2>http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM<FONT 
size=2>> 
---------------------------------------------------------------------~->> 
> Send BUG REPORTS to <A 
href=""><FONT 
size=2>bugs@xxxxxxxxxxxxx> Send 
SUGGESTIONS to <A 
href=""><FONT 
size=2>suggest@xxxxxxxxxxxxx> 
-----------------------------------------> Post AmiQuote-related messages 
ONLY to: <FONT 
size=2>amiquote@xxxxxxxxxxxxxxx 
> (Web page: <A 
href=""><FONT 
size=2>http://groups.yahoo.com/group/amiquote/messages/<FONT 
size=2>)> --------------------------------------------> Check 
group FAQ at: <A 
href=""><FONT 
size=2>http://groups.yahoo.com/group/amibroker/files/groupfaq.html<FONT 
size=2> > > Your use of Yahoo! Groups is subject to 
<FONT 
size=2>http://docs.yahoo.com/info/terms/<FONT 
size=2> > > 






Yahoo! Groups Sponsor


  ADVERTISEMENT 









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



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.