Reply To: สูตรscanด้วย RSIที่มีarrows buy sell signal

#41034
dreamscat
Keymaster
RSparam = Param("RSI period",14,1,100,1);
RS = RSI(RSparam);
OB = IIf(Cross(RS,70),1,0);
OS = IIf(Cross(30,RS),1,0);
Buy = OS;
Sell = OB;

// 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(OS*shapeUpArrow,colorGreen,0,L);
PlotShapes(OB*shapedownArrow,colorred,0,H);
_SECTION_END();

// Explorer
Filter = 1;
AddColumn(OB,"Overbought",1.0,colorDefault,colorDefault,35);
AddColumn(OS,"Oversold",1.0,colorDefault,colorDefault,35);

  • This reply was modified 3 years, 5 months ago by dreamscat.
  • This reply was modified 3 years, 5 months ago by dreamscat.