Text Islami

Sudahkan Anda Memikirkan & Mempersiapkan Kematian Anda ?

Muslim wajib menjaga lima perkara:

Agama, Akal, Kehormatan, Harta dan Jiwa

Percaya Hanya Pada Analisa Anda ... USAHA maksimal, SABAR dan DISIPLIN... lalu serahkan hasilnya pada Allah subhanahu wa ta'ala...

Sunday, November 30, 2008

Belajar AFL_Stochastic KD with Cloud

PERHATIAN:

POSTING AFL INI SUDAH DIEDIT DENGAN JUDUL "Belajar AFL_Stochastic KD with Cloud - EDITED VERSION plus CANDLESTICK ANALYSIS"


AFL ini saya post dengan harapan bisa menjadi dorongan semangat untuk terus belajar, khususnya buat yang request dan umumnya bagi yang sedang belajar bikin/ngoprek AFL.

Kedepan, hanya akan dikasih petunjuknya dan sampean yang mengoprek sendiri. Penting untuk diketahui bahwa saya juga sedang dan terus belajar, jadi kemungkinan salah pasti ada. Oleh karena itu, mohon di cek en recek.

AFL : STOCHASTIC KD WITH CLOUD

_SECTION_BEGIN(" Stoch KD Cloud");

/*
Stochastic is an oscillator that measures the position of a stock OR security compared with its recent trading range indicating overbought OR oversold conditions.
It displays current Day price at a percentage relative to the security’s trading range (High/Low) over the specified period of time.
In a Slow Stochastic, the highs AND lows are averaged over a slowing period. The default is usually 3 for slow AND 1 (no slowing) for fast.
The line can then be smoothed using an exponential moving average, Weighted, OR simple moving average %D.
Confirming Buy/Sell signals can be read at intersections of the %D with the %K as well.

The Stochastic Oscillator always ranges between 0% AND 100%.
A reading of 0% shows that the security's Close was the Lowest price that the security has traded during the preceding x-time periods.
A reading of 100% shows that the security's Close was the Highest price that the security has traded during the preceding x-time periods.
When the closing price is near the top of the recent trading range (above 80%), the security is in an overbought condition AND may Signal for a possible correction.
Oversold condition exists at a point below %20. Prices Close near the top of the range during uptrends AND near the bottom of the range during downtrends.

Source: Amibroker 5.20 Help Menu

BUY = When the Stochastic is below the 20 oversold line AND the %K line crosses over the %D line.
SELL = When the Stochastic is above the 80 overbought line AND the %K line crosses below the %D line.

*/

_SECTION_BEGIN("%K Cloud");
pk = Param("Periods", 15, 2, 100, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
//Plot( StochK( pk, Ksmooth), _DEFAULT_NAME(), ParamColor( "Color", colorBrightGreen ), ParamStyle("Style") );
_SECTION_END();

_SECTION_BEGIN("%D Cloud");
pd = Param("Periods", 15, 2, 100, 1 );
Ksmooth = Param( "%K Avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 3, 1, 200, 1 );
//Plot( StochD( pd, Ksmooth, DSmooth ), _DEFAULT_NAME(), ParamColor( "Color", colorRed ), ParamStyle("Style") );
_SECTION_END();

PlotOHLC( StochK(),StochK(),StochD(),StochK(),"", IIf( StochK()> StochD(), colorBrightGreen, colorRed ), styleCloud);

Overbought= 80;
Oversold= 20;
Plot(Overbought,"OB",colorRed);
Plot(Oversold,"OS",colorGreen);

a = StochK( pk );
b = StochD( pd );
Buy = Cross( a, b );
Sell = Cross( b, a );
PlotShapes( shapeSmallCircle * Buy + shapeSmallCircle * Sell, IIf( Buy, colorYellow, colorWhite ) );

_SECTION_END();



Semoga bermanfaat.

ES

Investasikan Dunia Mu Untuk Akherat Mu

DISCLAIMER ON Share

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.