Fave This

Saturday, 9 April 2011

Re: [Komunitas AmiBroker] Sharing AFL

coba tambahkan berikut pak, sebelum buy dan sell nya :

// Additional by *Trader.jr*
// MACD Parameter

r1 = 12; r2 = 26; r3 = 9;
mcl = MACD(r1, r2);
sl = Signal(r1,r2,r3);
Hist = mcl-sl;

MACUP = Hist > Ref(Hist,-1);
MACDN = Hist < Ref(Hist,-1);
BarColor = IIf(MACUP,colorGreen,colorRed);

// Stochastic Confirm
ConfBuy = ( (StochK( 15, 3 ) - StochD( 15, 3, 3 )) > 0 || Cross(
StochK( 15, 3 ), StochD( 15, 3, 3 ) ) ) ;
ConfSell = ((StochD( 15, 3, 3 ) - StochK( 15, 3 )) > 0 AND (C < O) ) ;

Plot( C, "", BarColor, styleThick | styleNoTitle |GetPriceStyle() );


untuk buy dan sell nya tambahkan berikut :

Buy = IIf ( ... AND MACUP AND Confbuy, 1, 0);
Sell = IIf( ... AND MACDN AND Confsell, 1, 0) ;

Semoga membantu ... untuk afl lengkap hasil diskus kita bisa di share
nanti ya pak ..

Trima kasih


On 09/04/2011, YangYin <ener_chi@yahoo.com> wrote:
> Cara tambahin afl utk confirmasi buy/sell nya dengan stochastic atau/dan
> MACD gimana?
> Thank you
>
>
> "When the mind goes astray, the truth is lost...
> When the mind is gathered in, the truth is enlightment"
>
> -----Original Message-----
> From: "Trader.Jr" <trader.junior01@gmail.com>
> Sender: amibroker-4-bei@yahoogroups.com
> Date: Fri, 8 Apr 2011 11:09:15
> To: <amibroker-4-bei@yahoogroups.com>
> Reply-To: amibroker-4-bei@yahoogroups.com
> Subject: Re: [Komunitas AmiBroker] Sharing AFL
>
> Sebaiknya ditambahkan confirmasi buy/sell nya dengan stochastic dan MACD
> pak
> desmon, jadi untuk screening sinyal buy harus memenuhi semua syarat
> konfirmasinya juga ... biar ga terlalu sering keluar sinyalnya.
>
> 2011/4/8 Christopher Tahir <chris_tahir@ymail.com>
>
>>
>>
>> Pak Desmond, ini sy oprek dikit, jadi ndak usa gonta ganti tiep x
>> screening.....
>>
>> //----------------------------------------
>>
>> SetChartOptions( 0 , chartShowArrows|chartShowDates ) ;
>>_N( Title = StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g , Hi %g ,
>> Lo %g , Close %g ( %.1f%% ) {{VALUES}}" , O , H , L , C , SelectedValue(
>> ROC( C , 1 ) ) ) ) ;
>> Plot( C , "Close" , ParamColor( "Color" , colorBlack ) , styleNoTitle |
>> ParamStyle( "Style" ) | GetPriceStyle( ) ) ;
>>
>> periode = Optimize( "EMA Periode" , Param( "EMA Periode" , 5 , 0 , 50 , 1
>> )
>> , 0 , 50 , 1 ) ;
>>
>> myEMA = EMA( C , periode ) ;
>> Buy = Cross( C , myEMA ) ;
>> Sell = Cross( myEMA , C ) ;
>> PlotShapes( shapeUpArrow*Buy , colorGreen , 0 , Low ) ;
>> PlotShapes( shapeDownArrow*Sell , colorRed , 0 , High ) ;
>> EMACol = ParamColor( "EMA Color" , colorBlue ) ;
>> EMAStyle = ParamStyle( "EMA Style" , styleLine ) ;
>> Plot( myEMA , ", EMA ( " + periode + " ) = " , EMAcol , EMAstyle ) ;
>> Filter = Buy OR Sell ;
>> Comment = WriteIf( Buy , "Beli" , WriteIf( Sell , "Jual" , "" ) ) ;
>> AddTextColumn( Comment , "Trade" , 1.0 , colorDefault , IIf( Buy ,
>> colorBrightGreen , IIf( Sell , colorPink , colorDefault ) ) , 48 ) ;
>> //----------------------------------------
>>
>> Sudah sy tambahkan parameternya, berikut candle harga, sy ubah sedikit
>> eksplorasi nya..:D
>>
>> Best Regards,
>> Christopher Tahir
>> Blog: http://ez-stock.blogspot.com
>> MSN: chris_tahir@hotmail.com
>> YM: chris_tahir@ymail.com
>>
>> Mail to my Y!Group:
>> ez-stock-subscribe@yahoogroups.com
>>
>>
>> ------------------------------
>> *From:* Desmond Wira <desmondwira@yahoo.com>
>> *To:* amibroker-4-bei@yahoogroups.com
>> *Sent:* Fri, April 8, 2011 8:30:45 AM
>>
>> *Subject:* Re: [Komunitas AmiBroker] Sharing AFL
>>
>>
>>
>> Pak Nyoman
>> untuk screening ganti aflnya
>> //----------------------------------------
>> periode=Optimize("periode",5,0,50,1);
>> myEMA=EMA(C,periode);
>> Buy = Cross(C,myEMA);
>> Sell = Cross(myEMA,C);
>> Filter = Buy;
>> AddColumn(Buy, "Beli", 1);
>> //----------------------------------------
>>
>> di Automatic Analysis pilih n last quotations=1 (candle terakhir)
>> klik Explore, udah gitu aja
>> list saham yang menunjukkan sinyal beli pada candle terakhir
>>
>> Buat Pak Andre S
>> Saya belum pernah mengalami hasil backtest nol semua, jadi bingung
>> menjawabnya. Mungkin bisa dicoba klik Settings, mungkin settingannya ada
>> yang nggak benar. Atau appy backtest nya cuma ke saham tertentu saja
>>
>> regards
>> DW
>>
>> ------------------------------
>> *From:* Nyoman <nyoman.shm@gmail.com>
>> *To:* amibroker-4-bei@yahoogroups.com
>> *Sent:* Wed, April 6, 2011 6:32:41 PM
>> *Subject:* Re: [Komunitas AmiBroker] Sharing AFL
>>
>>
>>
>> Pak DW,
>> Masih terkait dengan AFL yang sama. misalkan udah benernih backtest dan
>> optimasinya, lalu kita mau screening stock yang ada sinyal buy pada
>> candle
>> terakhir gimana caranya ya?
>>
>> Mohon dibantu...
>>
>> Salam,
>>
>> Nyoman
>>
>> On 05-Apr-11 2:42 PM, And_ Sut wrote:
>>
>>
>> Pak Desmond, tolong bantuannya,
>> Saya coba backtest afl yg bapak berikan dibawah, kok hasilnya nol semua
>> ya?
>> Tolong bantuan apa saja yg harus di setting di Automatic Analysis kalo
>> mau
>> bactest atau optimize.
>> Terima kasih
>>
>> Salam,
>> Andre S
>>
>>
>> ------------------------------
>> *From:* Desmond Wira <desmondwira@yahoo.com> <desmondwira@yahoo.com>
>> *To:* amibroker-4-bei@yahoogroups.com
>> *Sent:* Tue, April 5, 2011 1:20:12 PM
>> *Subject:* Re: [Komunitas AmiBroker] Sharing AFL
>>
>>
>> Pak Nyoman,
>> Betul koq pak hasil backtestnya kalau pakai daily, kira-kira 11% profit
>> untuk BMRI,
>> Untuk optimasi, periode EMAnya kita ganti dengan variable,
>> misalnya periode=Optimize("periode",5,0,50,1);
>> berarti kita tentuin defaultnya 5, optimasi mulai dari nilai 0 sampai 50,
>> 1
>> menunjukkan stepnya, jadi akan dicek dari periode 0,1,2,3,4,5, sd 50
>>
>> Saya ganti afl codenya jadi seperti ini pak
>> //----------------------------------------
>> periode=Optimize("periode",5,0,50,1);
>> myEMA=EMA(C,periode);
>> Buy = Cross(C,myEMA);
>> Sell = Cross(myEMA,C);
>> //----------------------------------------
>>
>> tinggal klik Optimize kemudian tinggal urutin net profit paling besar,
>> kmd
>> nyari periode yang diinginkan (ada di kolom terakhir)
>> untuk bmri jan-apr ketemunya periode 4 pak
>>
>> regards
>> DW
>>
>>
>> ------------------------------
>> *From:* Nyoman <nyoman.shm@gmail.com> <nyoman.shm@gmail.com>
>> *To:* amibroker-4-bei@yahoogroups.com
>> *Sent:* Mon, April 4, 2011 12:45:28 PM
>> *Subject:* Re: [Komunitas AmiBroker] Sharing AFL
>>
>>
>>
>> Terima kasih pak sharingnya..
>> Secara standard AFLnya pak Tjhai saya backtest hasilnya seperti dalam
>> gambar. Pertumbuhan modalnya dari 15jt menjadi 16.7jt dalam kurun waktu
>> jan
>> - apr.
>> Jika cara backtestnya salah, mohon masukan bapak/ibu sekalian.
>> Dan sekalian saya mau tanya juga, kalau kita mau optimasi indikator EMA
>> dengan periode berapakah yang profitnya paling besar, gimanakah caranya?
>> Tidak mungkin dicoba satu per satu khan periode ema yang ada?
>>
>> Please sarannya dan terima kasih sebelumnya.
>>
>> Salam,
>>
>> Nyoman
>>
>>
>> On 03-Apr-11 11:36 AM, alex susanto wrote:
>>
>>
>>
>> Pak Nyoman kalau saya yang dirubah angkanya yang diwarnai hijau.
>>
>> Buy = Cross( C,EMA( Close, 5 ) );
>> Sell = Cross(EMA(C,5),C);
>> PlotShapes(IIf(Buy==1, shapeUpArrow , shapeNone), colorBlue, 0,Low,
>> Offset=-15);
>> PlotShapes(IIf(Sell==1, shapeDownArrow , shapeNone), colorRed, 0,High,
>> Offset=-15);
>>_SECTION_END();
>>_SECTION_BEGIN("Price");
>> SetChartOptions(0,chartShowArrows|chartShowDates);
>>_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo
>> %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )
>> )
>> ));
>> Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle |
>> ParamStyle("Style") | GetPriceStyle() );
>>_SECTION_END();
>>_SECTION_BEGIN("EMA");
>> P = ParamField("Price field",-1);
>> Periods = Param("Periods", 5);
>> Plot( EMA( P, Periods ),_DEFAULT_NAME(), ParamColor( "Color", colorBlue
>> ),styleDots, ParamStyle("Style") );
>>_SECTION_END();
>>
>>
>> he he kalau rubah sell = low hari ini atau low kemarin (pilih yang lebih
>> rendah ) saya belum bisa buat afl nya ( sementara manual dulu aja pak
>> ,pakai mata kita )
>>
>> ini musti minta tolong para master seperti Pak Bassir, Dr Anas , Pak
>> Isfandi,Mas Eco ,Pak Timur Langit ,Pak Eko ,Pak Wisnu,Pak desmond ,Pak
>> Christopher,Pak Hengky,Pak Hok 1 ,Pak Junior Tr ,Pak Kenzie dan banyak
>> lainnya .
>> terima kasih
>>
>>
>>
>>
>>
>>
>>
>
>


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

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