Khusus untuk nubie yg Oon kaya saya ya.
Pada gambar di bawah, coba lihat lingkaran kuning pada William %R …. Lingkaran kuning itu menunjukkan R-Squared antara harga Close dan William %R.
Pada parameter geser=geser ‘periods’ sampai ketemu R-Squared yg maksimum…. J
Walaaa…… ternyata pada chart 30menit ini, dengan menggunakan periods ’96 bars’, didapat 92% correlasi antara William %R dan price….
Silahkan bereksperimen sendiri dgn sthocastic, macd, RSI dsbnya,,,,,, AFL nya di bawah
Have fun and cuan….
Timur

_SECTION_BEGIN("William's %R R-Squared");
function PercentR( periods )
{
return -100 * ( HHV( H, periods ) - C )/( HHV( H, periods ) - LLV( L, periods ) );
}
per=Param("Periods", 14, 2, 1000 );
willR=PercentR(per);
Plot(-20,"",colorRed);
Plot(-80,"",colorGreen);
R2=Correlation(willR,C,per)*Correlation(willR,C,per); // Ini untuk R Squared William %R dgn harga close
Plot( willR,
" \nR2 ="+WriteVal(r2,1.2)+" " + _DEFAULT_NAME(),
ParamColor("Color", ColorCycle ) ); //untuk ngeplot R-Squared di chart
PlotOHLC( willR,willR,-50,willR, "", colorPink, styleCloud | styleClipMinMax, -80, -100 );
PlotOHLC( willR,willR,-50,willR, "", colorAqua, styleCloud | styleClipMinMax, 0, -20 );
_SECTION_END();
__._,_.___



No comments:
Post a Comment