Fave This

Tuesday, 21 December 2010

Re: [Komunitas AmiBroker] [PROJECT] Bargain Hunter Backtest - CLOSED

trims sharingnya pa wisnu,

saya tipe pembelajar yang agak males kalau belajar via help nya amibroker,
lebih suka melihat afl yang sudah jadi dan memahami maksud codingnya
(saya tahu itu cara belajar yang salah hehe..)

On 12/21/10, Eko Widjajanto <ekow19d@gmail.com> wrote:
> Oh sudah pernah ya?
> Thanks atas penjelasannya. Coba saya baca lagi posting sebelumnya
> Eko
>
>
> From: amibroker-4-bei@yahoogroups.com
> [mailto:amibroker-4-bei@yahoogroups.com] On Behalf Of Wisnu Mobile
> Sent: Tuesday, December 21, 2010 13:54 PM
> To: amibroker-4-bei@yahoogroups.com
> Subject: Re: [Komunitas AmiBroker] [PROJECT] Bargain Hunter Backtest -
> CLOSED
>
>
> Sudah pernah dijelaskan dulu, Pak Eko.. hehe..
>
> 1. CAR=Compound Annual Return=growth rate tahunan, yang dianggap linear,
> dalam timeframe backtest. Karena timeframe backtest 20 tahun, maka
> "dianggap" sistem selama 20 tahun, memberikan annual growth tahunan, sebesar
> 82% TIAP tahun.
>
> 2. MaxSysDD=Maximum System DrawDown=Penurunan maksimum PORTFOLIO yang pernah
> terjadi. Misalnya dalam satu titik waktu nilai dari equity kita 100, turun
> sampai 100%-52%=48% nilai equity sebelumnya, sebelum kemudian recover.
>
> 3. 5 juta %. Jangan dilihat. Backtest selalu mengasumsikan market bisa
> menampung transaksi kita dari waktu ke waktu, which is not true. Backtest
> cuma cek bahwa entry-exit kita sesuai dengan OHLC entry-exit bar. Volume
> check belum sempurna.
>
> Jadi, lihat saja CAR, yang artinya adalah expectancy tahunan, kemudian
> potong 50-75% dari angka CAR untuk compensating akurasi trading manual kita
> terhadap backtest, sampailah kita ke expectancy "REAL" kita, kalau kita
> follow sistem kita, religiously. Kalau tidak bisa follow, forget backtest.
>
> Salam.
> 2010/12/21 Eko Widjajanto <ekow19d@gmail.com>
>
> Wisnu,
> Boleh dijelaskan point 1. CAR% itu apa? MaxSysDD? Dalam bahasa yang mudah
> ya. Saya baca dari help-nya AB, tapi tidak paham. Thanks.
> Kemudian profit sampai 5juta % +, apakah nggak too good to be true?
> Salam,
> Eko
>
> From: amibroker-4-bei@yahoogroups.com
> [mailto:amibroker-4-bei@yahoogroups.com] On Behalf Of Wisnu Mobile
> Sent: Tuesday, December 21, 2010 12:58 PM
> To: amibroker-4-bei@yahoogroups.com
> Subject: [Komunitas AmiBroker] [PROJECT] Bargain Hunter Backtest - CLOSED
>
>
> Ternyata Wiseman1 lumayan menguntungkan.
>
> 1. 20 years backtested. CAR: 82%! WB kalah tuw.. Problema nya ada di
> MaxSysDD: -52%! Saya belum pernah lihat trader senior yang mampu stomach
> this kind of drawdown. Kalau beginner malah sering lihat.. :) Bisa
> diperbaiki dengan better Exit.
>
> 2. Entry: BULLISH DIVERGENCE BAR, with DISCOUNT as a qualifier (gantinya
> Angulasi). Silahkan diganti dengan kondisi lain yang anda mau. Leave
> variable names intact, supaya bisa dipanggil.
>
> 3. Simple MM: 5 max open positions (optimization capable - untuk yang mau
> belajar optimasi), RSI based position score.
>
> 4. Exit, karena tidak ada inputan - mungkin entry nya sangat profitable
> barangkali, saya pakai REVERSE Divergence Bar... hehe... silahkan diganti
> kalau punya kode yang lebih baik.
>
> 5. Realtime Entry-Exit.
>
> Snapshot and code, attached.
>
> Hari ini sudah masuk pasar lagi... jadinya project ini kudu diselesaikan..
> :) Silahkan dikembangkan sendiri-sendiri ya..
>
> Salam.
>
> Code:
>
> _SECTION_BEGIN("Price");
> SetChartOptions(0,chartShowArrows|chartShowDates|chartLogarithmic);
> _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo
> %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C,
> SelectedValue( ROC( C, 1 )) ));
> Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle |
> ParamStyle("Style") | GetPriceStyle() );
> if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
> {
> ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g
> (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1
> )));
> }
> _SECTION_END();
>
> _SECTION_BEGIN("Trade System");
> GfxSelectFont("Tahoma", 12, 400);
> GfxDrawText("Wiseman1 - BETA", 4, 15, 350, 40);
> SetFormulaName("Wiseman1 - BETA");
>
> SetTradeDelays( 0, 0, 0, 0);
>
> MaxOpenPos=Optimize("MaxOpenPositions", 5, 1, 10, 1);
> SetOption("MaxOpenPositions", MaxOpenPos);
> PositionSize=-100/MaxOpenPos;
>
> PositionScore=100-RSI();
>
> /*Wiseman1*/
> DivBar=(L<Ref(L,-1)) AND (C>(H+L)/2); //DivBar
>
> /*Angulation Replacement - take out and replace if you want, but keep the
> variables name intact.*/
> PriceDisc=1-Param("PriceDisc (%)", 5, 0, 50, 5)/100;
> DBQualifier1=(C<=Ref(C,-Param("LookBack Period", 5, 3, 10, 1))*PriceDisc);
>
> WS1DivBar=DivBar AND DBQualifier1;
> DaySinceDivBar=BarsSince(WS1DivBar);
> WS1BuyCond1=C>Ref(H,-DaySinceDivBar);//Entry if Close higher than DivBar H
>
> Buy=WS1BuyCond1;
> BuyPrice=Ref(H,-DaySinceDivBar);//Realtime Buy Price at DivBar H
>
> RevDivBar=(L>Ref(L,-1)) AND (C<(H+L)/2); // Reverse DivBar Exit
> DaySinceRevDivBar=BarsSince(RevDivBar);
> WS1ExitCond1=C<Ref(L,-DaySinceRevDivBar); //Exit if Close lower than
> RevDivBar L
>
> Sell=WS1ExitCond1;
> SellPrice=Ref(L,-DaySinceRevDivBar);//Realtime Exit Price at RevDivBar L
>
> Buy=ExRem(Buy,WS1DivBar);
> Sell=ExRem(Sell,RevDivBar);
> Sell=ExRem(Sell,Buy);
>
> PlotShapes(IIf(WS1DivBar,shapeSmallUpTriangle,Null), colorBlue, 0, L, -15);
> PlotShapes(IIf(Buy,shapeSmallUpTriangle,Null), colorBrightGreen, 0, L, -10);
> PlotShapes(IIf(RevDivBar,shapeSmallDownTriangle,Null), colorYellow, 0, H,
> -15);
> PlotShapes(IIf(Sell,shapeSmallDownTriangle,Null), colorRed, 0, H, -10);
> _SECTION_END();
>
> _SECTION_BEGIN("Daily Explorer");
> Filter=Buy OR Sell;
>
> AddTextColumn( WriteIf(Buy, "Buy!",
> WriteIf(Sell,
> "Sell!", "")), "Trade Signal", 1.0);
>
> AddColumn(C, "Close", 1.0);
> _SECTION_END();
>
>
>
>


------------------------------------

Apabila membutuhkan software AmiBroker, Realtime Intraday Data & Pelatihan silahkan kontak : Dendo Valentino | Cell : 08159304868 | e-mail: amibrokerfreak{at}yahoo.co.id | YM id : dendov | http://www.facebook.com/dendo.amibrokerfreak | http://www.amibroker-4-bei.org

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker-4-bei/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker-4-bei/join
(Yahoo! ID required)

<*> To change settings via email:
amibroker-4-bei-digest@yahoogroups.com
amibroker-4-bei-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
amibroker-4-bei-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

No comments:

Post a Comment