通達信主控戰(zhàn)略K線主圖指標公式
- 指標類別: 通達信指標公式
- 授權(quán)方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 策略
- 畫線方法: 主圖
- 日期:2024-12-25 來源:互聯(lián)網(wǎng)
通達信主控戰(zhàn)略K線主圖指標公式:
平頂:=H=REF(H,1) OR (H=REF(H,2) AND H>REF(H,1));
DRAWTEXT(平頂,H*1.01,'←平頂'),COLORMAGENTA;
平底:=L=REF(L,1) OR (L=REF(L,2) AND L<REF(L,1));
DRAWTEXT(平底,L*0.99,'←平底'),COLORMAGENTA;
陽子母:=C>REF(MAX(C,O),1) AND H>REF(H,1) AND L<REF(L,1) AND C>O AND REF(MAX(C,O),1)/REF(MIN(C,O),1)>1.01 AND (O != L OR C != H);
DRAWTEXT(陽子母,L*0.99,'←陽子母'),COLORYELLOW;
陰子母:=C<REF(MIN(C,O),1) AND H>REF(H,1) AND L<REF(L,1) AND C<O AND REF(MAX(C,O),1)/REF(MIN(C,O),1)>1.01 AND (O != H OR C != L);
DRAWTEXT(陰子母,H*1.01,'←陰子母'),COLORRED;
陰母子:=C>REF(MIN(C,O),1) AND H<REF(H,1) AND L>REF(L,1) AND C<O AND C/O<0.99;
DRAWTEXT(陰母子,H*1.01,'←陰母子'),COLORRED;
陽母子:=C<REF(MAX(C,O),1) AND H<REF(H,1) AND L>REF(L,1) AND C>O AND C/O>1.01;
DRAWTEXT(陽母子,L*0.99,'←陽母子'),COLORYELLOW;
烏云蓋頂:=REF(C,1)/REF(O,1)>1.03 AND C<O AND H>REF(H,1) AND C>REF(O,1) AND L>REF(L,1) AND O>REF(H,1) AND C<(REF(C,1)+REF(O,1))/2;
DRAWTEXT(烏云蓋頂,H*1.01,'←烏云蓋頂'),COLORMAGENTA;
曙光初現(xiàn):=REF(O,1)/REF(C,1)>1.03 AND C>O AND H<REF(H,1) AND C<REF(O,1) AND L<REF(L,1) AND O<REF(L,1) AND C>(REF(C,1)+REF(O,1))/2;
DRAWTEXT(曙光初現(xiàn),L*0.99,'←曙光初現(xiàn)'),COLORYELLOW;
空戳多:=C<REF(C,1) AND REF(C,1)/REF(O,1)>1.03 AND C<O AND H>REF(H,1) AND C>REF(O,1) AND L>REF(L,1) AND O>REF(H,1) AND C>(REF(C,1)+REF(O,1))/2;
DRAWTEXT(空戳多,H*1.01,'←空戳多'),COLORRED;
多戳空:=C>REF(C,1) AND REF(O,1)/REF(C,1)>1.03 AND C>O AND H<REF(H,1) AND C<REF(O,1) AND L<REF(L,1) AND O<REF(L,1) AND C<(REF(C,1)+REF(O,1))/2;
DRAWTEXT(多戳空,L*0.99,'←多戳空'),COLORYELLOW;
空頭反攻:=C=REF(C,1) AND REF(C,1)/REF(O,1)>1.03 AND C<O AND H>REF(H,1) AND C>REF(O,1) AND L>REF(L,1) AND O>REF(H,1);
DRAWTEXT(空頭反攻,H*1.01,'←空頭反攻'),COLORBLUE;
多頭反攻:=C=REF(C,1) AND REF(O,1)/REF(C,1)>1.03 AND C>O AND H<REF(H,1) AND C<REF(O,1) AND L<REF(L,1) AND O<REF(L,1);
DRAWTEXT(多頭反攻,L*0.99,'←多頭反攻'),COLORYELLOW;
玉柱:=C>REF(MAX(C,O),1) AND H>REF(H,1) AND L<REF(L,1) AND C>O AND REF(MAX(C,O),1)/REF(MIN(C,O),1)>1.01 AND O=L AND C=H;
DRAWTEXT(玉柱,L*0.99,'←玉柱'),COLORYELLOW;
危樓:=C<REF(MIN(C,O),1) AND H>REF(H,1) AND L<REF(L,1) AND C<O AND REF(MAX(C,O),1)/REF(MIN(C,O),1)>1.01 AND O=H AND C=L;
DRAWTEXT(危樓,H*1.01,'←危樓'),COLORBLUE;
{3根K線組合}
紅三兵:=COUNT(H/C<1.02,3)=3 AND COUNT(C/O>1.01,3)=3 AND COUNT(C>REF(C,1),2)=2 AND COUNT(H>REF(H,1),2)=2 AND COUNT(L>REF(L,1),2)=2 AND ABS(REF(C,2)/REF(O,2)-REF(C,1)/REF(O,1))<0.02 AND ABS(REF(C,1)/REF(O,1)-C/O)<0.02;
DRAWTEXT(紅三兵,L*0.99,'←紅三兵'),COLORYELLOW;
黑三兵:=COUNT(C/L<1.02,3)=3 AND COUNT(O/C>1.01,3)=3 AND COUNT(C<REF(C,1),2)=2 AND COUNT(H<REF(H,1),2)=2 AND COUNT(L<REF(L,1),2)=2 AND ABS(REF(C,2)/REF(O,2)-REF(C,1)/REF(O,1))<0.02 AND ABS(REF(C,1)/REF(O,1)-C/O)<0.02;
DRAWTEXT(黑三兵,H*1.01,'←黑三兵'),COLORMAGENTA;
大敵當前:=COUNT(C/O<1.03,2)=2 AND COUNT(H/C>1.015,2)=2 AND COUNT(C>O,3)=3 AND COUNT(C>REF(C,1),2)=2 AND COUNT(H>REF(H,1),2)=2 AND COUNT(L>REF(L,1),2)=2 AND REF(C,2)/REF(O,2)>1.03 AND REF(C,2)/REF(O,2)>REF(C,1)/REF(O,1) AND REF(C,2)/REF(O,2)>C/O AND H/C>REF(H/C,2) AND REF(H/C,1)>REF(H/C,2);
DRAWTEXT(大敵當前,L*0.99,'←大敵當前'),COLORBLUE;
步步為營:=COUNT(C>O,3)=3 AND COUNT(C>REF(C,1),2)=2 AND COUNT(H>REF(H,1),2)=2 AND COUNT(L>REF(L,1),2)=2 AND (REF(C/O,2)>1.03 OR REF(C/O,1)>1.03) AND C/O<REF(C/O,2) AND C/O<REF(C/O,1 AND H/C>REF(H/C,2) AND H/C>REF(H/C,1)) AND H/C>1.02;
DRAWTEXT(步步為營,L*0.99,'←步步為營'),COLORRED;
離黑戰(zhàn)車:=REF(C/O,2)>1.01 AND REF(O/C,1)>1.01 AND C/O>1.01 AND REF(H/C,2)<1.02 AND REF(H/O,1)<1.02 AND H/C<1.02 AND REF(O,1)>REF(C,2) AND C>REF(O,1) AND COUNT(H>REF(H,1),2)=2 AND COUNT(L>REF(L,1),2)=2 AND ABS(REF(C/O,2)-REF(O/C,1))<0.02 AND ABS(REF(O/C,1)-C/O)<0.02 AND REF(C,1)>REF(O,2);
DRAWTEXT(離黑戰(zhàn)車,L*0.99,'←離黑戰(zhàn)車'),COLORYELLOW;
離白戰(zhàn)車:=REF(O/C,2)>1.01 AND REF(C/O,1)>1.01 AND O/C>1.01 AND REF(H/O,2)<1.02 AND REF(H/C,1)<1.02 AND H/O<1.02 AND (REF(C,1)=REF(O,2) OR REF(C,1)<REF(O,2)) AND O<REF(C,1) AND C<REF(O,1) AND COUNT(H<REF(H,1),2)=2 AND COUNT(L<REF(L,1),2)=2 AND ABS(REF(C/O,2)-REF(O/C,1))<0.02 AND ABS(REF(O/C,1)-C/O)<0.02;
DRAWTEXT(離白戰(zhàn)車,H*1.01,'←離白戰(zhàn)車'),COLORMAGENTA;
晨星:=(REF(C/O,2)<0.97 AND ABS(REF(C/O,1)-1)<0.015 AND C/O>1.025 AND REF(MAX(C,O),1)<REF(C,2) AND O>REF(MAX(C,O),1))
OR (REF(C/O,3)<0.97 AND ABS(REF(C/O,1)-1)<0.02 AND ABS(REF(C/O,2)-1)<0.02 AND C/O>1.025 AND REF(MAX(C,O),2)<REF(C,3) AND REF(MAX(C,O),1)<REF(C,3) AND O>REF(MAX(C,O),1) AND O>REF(MAX(C,O),2));
DRAWTEXT(晨星,L*0.99,'←晨星'),COLORYELLOW;
夜星:=(REF(O/C,2)<0.97 AND ABS(REF(C/O,1)-1)<0.015 AND O/C>1.025 AND REF(MIN(C,O),1)>REF(C,2) AND O<REF(MIN(C,O),1))
OR (REF(O/C,3)<0.97 AND ABS(REF(C/O,1)-1)<0.02 AND ABS(REF(C/O,2)-1)<0.02 AND O/C>1.025 AND REF(MIN(C,O),2)>REF(C,3) AND REF(MIN(C,O),1)>REF(C,3) AND O<REF(MIN(C,O),1) AND O<REF(MIN(C,O),2));
DRAWTEXT(夜星,H*1.01,'←夜星'),COLORBLUE;
雙鴉:=REF(C/O,2)>1.03 AND REF(O/C,1)-1<0.015 AND REF(C,1)>REF(C,2) AND REF(O,1)>REF(C,2) AND O/C>1.025 AND O<REF(O,1) AND O>REF(C,1) AND H<REF(H,1) AND C<REF(C,2);
DRAWTEXT(雙鴉,H*1.01,'←雙鴉'),COLORBLUE;
雙鴉耀空:=REF(C/O,2)>1.03 AND REF(O/C,1)<1.015 AND O/C<1.015 AND REF(C,1)>REF(C,2) AND C>REF(C,2) AND C<O AND REF(C,1)<REF(O,1);
DRAWTEXT(雙鴉耀空,H*1.01,'←雙鴉耀空'),COLORBLUE;
上肩缺口:=REF(H,1)=REF(HHV(H,20),1) AND COUNT(MA(C,10)>REF(MA(C,10),1),13)>10 AND REF(C/O,2)>1.03 AND REF(C/O,1)>1.02 AND REF(L,1)>REF(H,2) AND H<REF(H,1) AND O<REF(C,1) AND L<REF(L,1) AND C<REF(O,1) AND O/C>1.02 AND C>REF(H,2);
DRAWTEXT(上肩缺口,L*0.99,'←上肩缺口'),COLORYELLOW;
下肩缺口:=REF(L,1)=REF(LLV(L,20),1) AND COUNT(MA(C,10)<REF(MA(C,10),1),13)>10 AND REF(O/C,2)>1.03 AND REF(O/C,1)>1 AND REF(H,1)<REF(L,2) AND L>REF(L,1) AND C>REF(O,1) AND H>REF(H,1) AND O>REF(C,1) AND C/O>1.02 AND C<REF(L,2);
DRAWTEXT(下肩缺口,H*1.01,'←下肩缺口'),COLORBLUE;
{4根K線組合}
上揚三法:=REF(C/O,3)>1.03 AND REF(H,2)>REF(H,3) AND REF(C,2)<REF(C,3) AND REF(O,2)>REF(C,3) AND REF(H,1)<REF(H,2) AND REF(L,1)<REF(L,2) AND H<REF(H,1) AND L<REF(L,1) AND REF(C,1)<REF(C,2) AND C<REF(C,1) AND L>REF(O,3) AND COUNT(O/C>1.03,3)<2 AND COUNT(O/C>1.01,3)>1 AND COUNT(C<O,3)=3;
DRAWTEXT(上揚三法,L*0.99,'←上揚三法'),COLORYELLOW;
下跌三法:=REF(O/C,3)>1.03 AND REF(L,2)<REF(L,3) AND REF(C,2)>REF(C,3) AND REF(O,2)<REF(C,3) AND REF(H,1)>REF(H,2) AND REF(L,1)>REF(L,2) AND H>REF(H,1) AND L>REF(L,1) AND REF(C,1)>REF(C,2) AND C>REF(C,1) AND H<REF(O,3) AND COUNT(C/O>1.03,3)<2 AND COUNT(C/O>1.01,3)>1 AND COUNT(C>O,3)=3;
DRAWTEXT(下跌三法,H*1.01,'←下跌三法'),COLORBLUE;
寶塔翻白:=REF(COUNT(C>REF(C,1),3),1)=0 AND REF(COUNT(C<O,3),1)=3 AND L<REF(L,1) AND O<REF(C,1) AND H>REF(HHV(H,3),1) AND C>REF(HHV(C,3),1);
DRAWTEXT(寶塔翻白,L*0.99,'←寶塔翻白'),COLORYELLOW;
寶塔翻黑:=REF(COUNT(C<REF(C,1),3),1)=0 AND REF(COUNT(C>O,3),1)=3 AND H>REF(H,1) AND O>REF(C,1) AND L<REF(LLV(L,3),1) AND C<REF(HHV(O,3),1);
DRAWTEXT(寶塔翻黑,H*1.01,'←寶塔翻黑'),COLORBLUE;
{多根K線組合}
離黑:=MA(C,13)>REF(MA(C,13),1) AND REF(COUNT(HHV(C,10)/LLV(O,10)<1.15,10),1)=10 AND O/REF(MAX(C,O),1)>1.01 AND C/REF(H,1)>1.05 AND H=HHV(H,15) AND H/C<1.02;
DRAWTEXT(離黑,L*0.99,'←離黑'),COLORYELLOW;
離白:=MA(C,13)<REF(MA(C,13),1) AND REF(COUNT(HHV(C,10)/LLV(O,10)<1.15,10),1)=10 AND O/REF(MIN(C,O),1)<0.99 AND C/REF(L,1)<0.95 AND L=LLV(L,15) AND L/C<1.02;
DRAWTEXT(離白,H*1.01,'←離白'),COLORMAGENTA;
通達信主控戰(zhàn)略K線主圖指標公式實例圖解:
通達信主控戰(zhàn)略K線主圖指標公式