本腳本融合三種技術 Bollinger's Bands Reverse System + 超級績效第二階段 + CandleStick (原理請參考【陰陽線與整體技術面】)。即尋找處於超級績效第二階段(請參考【超級績效_股價四階段】)或古轎創兩年新高(請參考【飆股創高原理】)的多頭股票,當其處於回檔(跌到BB Bands底部) 階段而出現反轉陰陽線型態。
以下將用到三個Funcyion:GetKType()取得陰陽線型態、chkOver240()檢查是否處於超級績效第二階段、chkOver480()檢查是否越過兩年新高。
|
//*** //* BBREV-Bollinger's Band Reverse System With 飆股創高+超績創高+陰陽線反轉選股 //*** input:VolLength(10); SetInputName(1, "均量天期"); input:VolumeLimit(500); SetInputName(2, "最小均量"); var: sGrowth240(""),sGrowth480(""),sGrowth(""),kType(""); var: v_avg_vol(0); // 過濾掉成交量太低的 v_avg_vol = Average(volume, VolLength); if v_avg_vol < VolumeLimit then return; sGrowth240 = chkOver240(-15,200,-100,-100); if sGrowth240 = "" then sGrowth480 = chkOver480(-100,-100); if sGrowth240 ="" and sGrowth480 = "" then return; IF sGrowth240<>"" then sGrowth = "2_" + sGrowth240 else sGrowth = "4_" + sGrowth480; kType = GetKtype("做多",0.2,0.8);//ALL,做多,做空 //condition1 = instr(kType,"+上升三法") > 0; //condition1 = instr(kType,"+多頭執帶") > 0; if kType = "" then return; SetOutputName1("創高成長率"); OutputField1(sGrowth); SetOutputName2("K線型態"); OutputField2(kType); Ret = 1; |
