Fave This

Monday, 7 February 2011

Bls: [Komunitas AmiBroker] Mohon bantuan sharing afl utk divergence (bullish/bearish) macd dgn harga saham



Dear Pak Irwan,

Mudah2an sesuai dengan yg diminta:

_SECTION_BEGIN("MACD");
 r1 =
 Param( "Fast avg", 12, 2, 200, 1 );
 r2 = Param( "Slow avg", 26, 2, 200, 1 );
 r3 = Param( "Signal avg", 9, 2, 200, 1 );
 Plot ( ml = MACD(r1, r2), StrFormat(_SECTION_NAME()+"(%g,%g)", r1, r2),
 ParamColor("MACD color", colorRed ), ParamStyle("MACD style") );
 Plot ( sl = Signal(r1,r2,r3), "Signal" + _PARAM_VALUES(), ParamColor("Signal
 color", colorBlue ), ParamStyle("Signal style") );
 //Plot ( ml-sl, "MACD Histogram", ParamColor("Histogram color", colorBlack ), styleNoTitle | ParamStyle("Histogram style", styleHistogram | styleNoLabel, maskHistogram ) );
 Plot (0, "", colorBlue,styleNoLabel);



r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );

ml = MACD(r1, r2);
sl = Signal(r1,r2,r3);
Hist = ml-sl;

MACUP = Hist > Ref(Hist,-1);
MACDN = Hist < Ref(Hist,-1);

BarColor  = IIf(MACUP,colorGreen,IIf(MACDN,colorRed,colorBlue));

//Plot( Hist, "MACD Histogram", ParamColor("Histogram color", colorBlack ),
styleNoTitle | ParamStyle("Histogram style", styleHistogram | styleNoLabel,maskHistogram ) ;

Plot( Hist, "MACD Histogram", BarColor  , styleHistogram );
Plot(0, "0", colorBlueGrey );


Buy = Cross(ml,sl);
Sell = Cross(sl,ml);

PlotShapes(shapeUpArrow*Buy,colorGreen);
PlotShapes(shapeDownArrow*Sell,colorRed);

//


Salam,
Samuel

--- Pada Sen, 7/2/11, ps3 expert <xp3max@gmail.com> menulis:

Dari: ps3 expert <xp3max@gmail.com>
Judul: [Komunitas AmiBroker] Mohon bantuan sharing afl utk divergence (bullish/bearish) macd dgn harga saham
Kepada: amibroker-4-bei@yahoogroups.com
Tanggal: Senin, 7 Februari, 2011, 2:37 AM

 

Dear para Seniors,

Slm kenal sr newbie, sy tertarik dgn tool macd, dan sy mohon bantuan
para Senior utk sharing afl yg dpt memberi signal buy/sell jika
terjadi bullish/bearish divergence antara macd dgn harga saham.

Contoh kasus: harga BUMI yg drop tajam pada mid 2010 namun pd macd
terjadi bullish divergence. Akhirnya harga rebound.

Byk thx
Irwan

--
Sent from my mobile device




__._,_.___


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





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

No comments:

Post a Comment