Reply To: สูตรscanโดยใช้ Stochastic RSI ที่มีลูกศร

#41115
dreamscat
Keymaster

ขออภัยอย่างสูงที่ล่าช้าครับ

StoD = StochD(14,3,3);
StoK = StochK(14,3);

Buy = Cross(StoK,StoD) AND StoK < 20;
Sell = Cross(StoD,StoK) AND StoK > 80;

// Plot
_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", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
PlotShapes(Buy*shapeUpArrow,colorGreen,0,L);
PlotShapes(Sell*shapedownArrow,colorred,0,H);
_SECTION_END();

// Explorer
Filter = 1;
AddColumn(Sell,"Sell",1.0,colorDefault,colorDefault,35);
AddColumn(Buy,"Buy",1.0,colorDefault,colorDefault,35);