跌破糾結均線

By | 2018-11-06

跌破糾結均線,代表價格跌破過去一段時間短中長期平均成本,只要反彈上來,馬上會面臨到短中長期不同的解套賣壓一起出籠,這個訊號在空頭市場有蠻高的精準度。

對應的腳本如下

input: shortlength(5); setinputname(1,"短期均線期數");
input: midlength(10); setinputname(2,"中期均線期數");
input: Longlength(20); setinputname(3,"長期均線期數");
input: Percent(2); setinputname(4,"均線糾結區間%");
input: Volpercent(25); setinputname(5,"放量幅度%");//帶量突破的量是超過最長期的均量多少%
variable: shortaverage(0);
variable: midaverage(0);
variable: Longaverage(0);
variable:Kprice(0);

if volume > average(volume,Longlength) * (1 + volpercent * 0.01) then
begin
 shortaverage = average(close,shortlength);
 midaverage = average(close,midlength);
 Longaverage = average(close,Longlength);
 if Close crosses below maxlist(shortaverage,midaverage,Longaverage) then
 begin
 value1= absvalue(shortaverage -midaverage);
 value2= absvalue(midaverage -Longaverage);
 value3= absvalue(Longaverage -shortaverage);
 if maxlist(value1,value2,value3)*100 < Percent*Close then Kprice=L;
 end;
end;

if C crosses below Kprice then ret=1;
如果這個訊號出現在一大段的上漲及橫向盤整之後,後市看跌的機率就更高

你可能會有興趣的文章

回應