同花顺指标公式ZQGF四合一
同花顺主图指标指标ZQGF四合一,轨道线可以判断股票未来趋势,中止和短止线可以判断支撑力度,强弱值可以作为买卖依据。
MA5:=MA(C,5);
MA20:=MA(C,20);
A51:= REF(MA5,1)*0.98;
A52:= REF(MA5,2)*0.98;
B52:= BARSLAST(REF(C,2)>=REF(MA5,2) AND REF(C,1)<REF(MA5,1))+2;
B51:= BARSLAST(REF(C,2)>=REF(MA5,2) AND REF(C,1)<REF(MA5,1))+1;
DZ:=IF((REF(C,2)>=REF(MA5,2)) AND (REF(C,1)<REF(MA5,1)),IF(REF(MA5,2)<REF(MA5,1),A51,A52),IF(BARSSINCE(REF(C,2)>=REF(MA5,2) AND REF(C,1)<REF(MA5,1))>0,IF(REF(MA5, B52)< REF(MA5, B51),REF(MA5,B51)*0.98, REF(MA5,B52)*0.98), REF(MA5,1)));
A201:= REF(MA20,1)*0.98;
A202:= REF(MA20,2)*0.98;
B202:= BARSLAST(REF(C,2)>=REF(MA20,2) AND REF(C,1)<REF(MA20,1))+2;
B201:= BARSLAST(REF(C,2)>=REF(MA20,2) AND REF(C,1)<REF(MA20,1))+1;
ZZ:=IF((REF(C,2)>=REF(MA20,2)) AND (REF(C,1)<REF(MA20,1)),IF(REF(MA20,2)<REF(MA20,1),A201,A202),IF(BARSSINCE(REF(C,2)>=REF(MA20,2) AND REF(C,1)<REF(MA20,1))>0,IF(REF(MA20, B202)< REF(MA20, B201),REF(MA20,B201)*0.98, REF(MA20,B202)*0.98), REF(MA20,1)));
短止:DZ,colorwhite;
中止:ZZ,colormagenta;
白轨:MA(CLOSE,25)+MA(CLOSE,25)*20/100,colorwhite;
影子线:MA(CLOSE,25)+MA(CLOSE,25)*13/100,POINTDOT,colorgray;
黄轨:MA(CLOSE,25)+MA(CLOSE,25)*6/100,coloryellow;
牛熊轨:MA(CLOSE,25), POINTDOT,colorblue;
下白轨:MA(CLOSE,25)-MA(CLOSE,25)*15/100,colorwhite;
反止:MA(HIGH,5),colormagenta;
a:=LLV(REF(LOW,1),2)+(HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2,colorgreen;
【强弱值】:a,colorgreen;
DRAWICON(REF(C,1)<REF(dz,1) AND C>=dz AND C>a,LOW,"BUY");
DRAWICON(REF(C,1)<REF(a,1) AND C>=a,LOW,"BUY");