通達信陰陽五行主圖波段買賣指標公式
- 指標類別: 通達信指標公式
- 授權(quán)方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 主圖
- 日期:2024-07-03 來源:互聯(lián)網(wǎng)
通達信陰陽五行主圖波段買賣指標公式:
陰陽五行:HHV(FORCAST(C,7),7),COLORWHITE;
水生木:HHV(FORCAST(C,7),14),COLORLIBLUE;
木生火:HHV(FORCAST(C,7),21),COLORGREEN;
火生土:HHV(FORCAST(C,7),28),COLORRED;
土生金出:FORCAST(C,7),COLORYELLOW,LINETHICK2;
陰陽分界線:EMA(EMA(C,20),20),COLORYELLOW,LINETHICK5;
RSV:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=((3 * K) - (2 * D));
RSV12:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100);
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
J12:=((3 * K12) - (2 * D12));
RSV24:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=((3 * K24) - (2 * D24));
波段底進:IF(CROSS(J,J24),LOW,REF(LOW,BARSLAST(CROSS(J,J24)))),COLORYELLOW;
波段頂出:IF(CROSS(J24,J),HIGH,REF(HIGH,BARSLAST(CROSS(J24,J)))),COLORWHITE;
有K線就玩:=HHV(MA(HIGH,(3)),2),COLORGREEN,LINETHICK2;
紅線贏:=LLV(MA(HIGH,(3)),1),COLORRED,LINETHICK2;
RD1:=FILTER(REF(CLOSE,10)=HHV(CLOSE,2*10+1),10);
RD2:=BACKSET(RD1,10+1);
RD3:=FILTER(RD2,10);
RD4:=REF(CLOSE,10)=LLV(CLOSE,2*10+1);
RD5:=FILTER(BACKSET(FILTER(RD4,10),10+1),10);
RD6:=REF(C,BARSLAST(RD3));
立走賣:=IF(CLOSE,RD6,RD6),COLORWHITE,LINETHICK2;
RA1:=BACKSET((FILTER((REF(CLOSE,7)=HHV(CLOSE,2*7+1)),7)),7+1);
RA2:=REF(CLOSE,7)=LLV(CLOSE,2*7+1);
RA3:=FILTER((BACKSET((FILTER(RA2,7)),7+1)),7);
RA4:=REF(C,BARSLAST((FILTER(RA1,7))));
RA5:=REF(L,BARSLAST(RA3));
RA6:=BARSLAST((FILTER(RA1,7)))>BARSLAST(RA3) AND NOT(RA3);
立走買入:=IF(RA6,RA5,RA5),COLORRED,LINETHICK2;
強弱分界線:=EMA(C,21),COLORWHITE,LINETHICK2;
A1:=BACKSET((FILTER((REF(CLOSE,14)=HHV(CLOSE,2*14+1)),14)),14+1);
A3:=FILTER((BACKSET((FILTER(REF(CLOSE,14)=LLV(CLOSE,2*14+1),14)),14+1)),14);
A4:=REF(CLOSE,BARSLAST((FILTER(A1,14))));
平安線:=IF(CLOSE,A4,A4),COLORRED,LINETHICK2;
D1:=BACKSET((FILTER((REF(CLOSE,7)=HHV(CLOSE,2*7+1)),7)),7+1);
D3:=FILTER((BACKSET((FILTER(REF(CLOSE,7)=LLV(CLOSE,2*7+1),7)),7+1)),7);
D4:=REF(CLOSE,BARSLAST((FILTER(D1,7))));
七日轉(zhuǎn):=IF(CLOSE,D4,D4),COLORWHITE,LINETHICK3;
DRAWTEXT(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.99,'←買入')
,COLORGREEN,LINETHICK1; DRAWTEXT(CROSS(REF(ZIG(3,10),1),
ZIG(3,10)),HIGH*1.008,'←賣出') ,COLORRED,LINETHICK1;
STICKLINE(REF(COUNT(C<立走賣,5)=5,1) AND C>立走賣 AND C>O,C,O,3,0),
COLORYELLOW;
RR5:=IF(1.09>SMA(CLOSE,5,1)/SMA(CLOSE,15,1)>0.45,SMA(LOW,10,1),SMA(LOW,5,1));
DRAWTEXT(CROSS((MA(C,5)),七日轉(zhuǎn)),RR5,'來撿白金塊'),COLORWHITE;
短期底部:=LLV(HIGH,30),LINETHICK2,COLORFFCC00;
重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORYELLOW,LINETHICK1;
GAO:=HHV(C,60)-LLV(C,60);
RSI:=SMA(MAX(重心-REF(重心,1),0),5,1)/SMA(ABS(重心-REF(重心,1)),5,1);
騎黑馬玩:=EMA((2*CLOSE+LOW+HIGH)/3.82*IF(DATE>=10201201,0,1),55)
,COLORWHITE;
DRAWTEXT(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.99,'←買入')
,COLORGREEN,LINETHICK1; DRAWTEXT(CROSS(REF(ZIG(3,10),1),
ZIG(3,10)),HIGH*1.008,'←賣出') ,COLORRED,LINETHICK1;
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR5:=REF(VAR4,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR7:=REF(VAR6,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR9:=REF(VAR8,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,O,3,1),COLORRED;{紅1}
STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,H,H,0,0),COLORRED;{紅1};
VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VARE:=REF(VARD,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR10:=REF(VARF,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR12:=REF(VAR11,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR14:=REF(VAR13,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR16:=REF(VAR15,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR18:=REF(VAR17,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,O,3,0),COLORFFCC66;
STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,H,L,0,0),COLORFFCC66;
VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),4.5,1),COLORYELLOW;
VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
STICKLINE(VAR1A,H,O,4.5,2),COLORWHITE{98FD};
白金陰陽界:=MA(CLOSE,14),COLORWHITE;
火煉真金:IF(EMA((2*CLOSE+LOW+HIGH)/3.82*IF(DATE>=10201201,0,1),8)
>REF(MA(EMA((2*CLOSE+LOW+HIGH)/3.82*IF(DATE>=10201201,0,1),55),3),3),EMA
((2*CLOSE+LOW+HIGH)/3.82*IF(DATE>=10201201,0,1),8),DRAWNULL)
,COLORRED,LINETHICK5;
有白K線就玩:IF(EMA((2*CLOSE+LOW+HIGH)/3.82*IF(DATE>=10201201,0,1),55)
>REF(MA(EMA((2*CLOSE+LOW+HIGH)/3.82*IF(DATE>=10201201,0,1),55),3),3),EMA
((2*CLOSE+LOW+HIGH)/3.82*IF(DATE>=10201201,0,1),55),DRAWNULL)
,COLORWHITE,LINETHICK5;
MA3:=MA(CLOSE,24);
VAR3A:=LLV(HIGH,240);
VAR4A:=100*(CLOSE-VAR3A)/VAR3A;
VAR5A:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR6A:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
VAR8A:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR9A:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR10A:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11A:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12A:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13A:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14A:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15A:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16A:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17A:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18A:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19A:=EMA(CLOSE,2)-EMA(CLOSE,150);
風險區(qū):=MA(C,5)COLORLIBLUE,LINETHICK3;
AA1:=BACKSET((FILTER((REF(CLOSE,14)=HHV(CLOSE,2*14+1)),14)),14+1);
AA3:=FILTER((BACKSET((FILTER(REF(CLOSE,14)=LLV(CLOSE,2*14+1),14)),14+1)),14);
AA4:=REF(CLOSE,BARSLAST((FILTER(AA1,14))));
平安線起賣:=IF(CLOSE,AA4,AA4),COLORRED,LINETHICK3;
R1:=BACKSET((FILTER((REF(CLOSE,7)=HHV(CLOSE,2*7+1)),7)),7+1);
R2:=REF(CLOSE,7)=LLV(CLOSE,2*7+1);
R3:=FILTER((BACKSET((FILTER(R2,7)),7+1)),7);
R4:=REF(CLOSE,BARSLAST((FILTER(R1,7))));
R5:=REF(LOW,BARSLAST(R3));
R6:=BARSLAST((FILTER(R1,7)))>BARSLAST(R3) AND NOT(R3);
底樓:=IF(R6,R5,R5),COLORLIBLUE;
上樓:=IF(CLOSE,白金陰陽界,白金陰陽界),COLORMAGENTA;
樓頂:=IF(CLOSE,MA(CLOSE,14),MA(CLOSE,14)),COLORRED,LINETHICK2;
RR1:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);{ZIG 有未來}
RR2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
STICKLINE(RR1,C,O,3,0),COLORRED;
STICKLINE(RR2,C,O,3,0),COLORGREEN;
買1:=VAR10;
買2:=(VAR11+VAR13+VAR15+VAR17);
賣1:=(VAR12+VAR14+VAR16+VAR18);
買:=IF(買1>0 OR 買2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORRED;
DRAWTEXT(買1>0 OR 買2>0,LOW*0.99,'買'),COLORRED;
賣:=IF(賣1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;
DRAWTEXT(賣1>0,HIGH*1.02,'賣'),COLORGREEN;
{趨勢}
平衡:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
上:=風險區(qū)<REF(風險區(qū),1);
有K線就行:=IF(上-1,風險區(qū),DRAWNULL)COLORMAGENTA,LINETHICK3;
有風險不玩:=HHV(EXPMEMA(OPEN,3),50),COLORLIBLUE;
揀白金塊玩:=EXPMEMA(OPEN,3),COLORWHITE;
量:=AMOUNT/(100*VOL);
八字量:=((量+OPEN)+(量+CLOSE)+(量+LOW)+(量+HIGH))/8,COLORMAGENTA;
三角:=EXPMEMA(OPEN,15);
STICKLINE(八字量>(EMA(OPEN,8)) AND 八字量<三角,OPEN,HIGH,0,0),COLORLIBLUE;
STICKLINE(八字量>(EMA(OPEN,8)) AND 八字量<三角,OPEN,LOW,0,0),COLORBLUE;
上H:=強弱分界線<REF(強弱分界線,1);
八字財運好制作:=IF(上H-1,強弱分界線,DRAWNULL)COLORWHITE,LINETHICK3;
D10:=BACKSET((FILTER((REF(CLOSE,7)=HHV(CLOSE,2*7+1)),7)),7+1);
D30:=FILTER((BACKSET((FILTER(REF(CLOSE,7)=LLV(CLOSE,2*7+1),7)),7+1)),7);
D40:=REF(CLOSE,BARSLAST((FILTER(D10,7))));
五根線七日轉(zhuǎn):=IF(CLOSE,D40,D40),COLORWHITE,LINETHICK3;
STICKLINE(REF(COUNT(C<強弱分界線,5)=5,1) AND C>強弱分界線 AND C>O,C,O,3,0),
COLORYELLOW;
STICKLINE(REF(COUNT(C<平安線,5)=5,1) AND C>平安線 AND C>O,C,O,3,0),
COLORYELLOW;
STICKLINE(REF(COUNT(C<平安線,5)=5,1) AND C>平安線 AND C>O,C,O,1,0),
COLORRED;
STICKLINE(CLOSE>樓頂,OPEN,CLOSE,2,0),COLORWHITE;
STICKLINE(CLOSE>樓頂,OPEN,HIGH,0,0),COLORRED;
STICKLINE(CLOSE>樓頂,OPEN,LOW,0,0),COLORGREEN;
STICKLINE(CLOSE>平安線,OPEN,CLOSE,3,0),COLORWHITE;
STICKLINE(CLOSE>平安線,OPEN,HIGH,0.2,0),COLORRED;
STICKLINE(CLOSE>平安線,OPEN,LOW,0.2,0),COLORGREEN;
STICKLINE(REF(COUNT(C<樓頂,5)=5,1) AND C>樓頂 AND C>O,C,O,4,0),
COLORYELLOW;
STICKLINE(REF(COUNT(C<樓頂,5)=5,1) AND C>樓頂 AND C>O,C,O,1.5,0),
COLORGREEN;
STICKLINE(REF(COUNT(C<平安線起賣,5)=5,1) AND C>平安線起賣 AND C>O,C,O,4,0),
COLORYELLOW;
STICKLINE(REF(COUNT(C<平安線起賣,5)=5,1) AND C>平安線起賣 AND C>O,C,O,1.5,0),
COLORRED;
明日阻力:=L+((C+H+L+O)/4-L)+(C-L),LINETHICK0;
明日支撐:=L+(C-(C+H+L+O)/4),COLORWHITE;
壓:IF(ISLASTBAR,REF(明日阻力 , 1), DRAWNULL),CROSSDOT,LINETHICK5,COLORMAGENTA;
抬:IF(ISLASTBAR,REF(明日支撐 , 1), DRAWNULL),CROSSDOT,COLORLIBLUE,LINETHICK5;
炒股:EMA(C,9.5),COLORRED;
發(fā)財:EMA(炒股,9.5),COLORYELLOW;
STICKLINE(炒股>發(fā)財,發(fā)財,炒股,1,0),COLORMAGENTA;
STICKLINE(炒股<發(fā)財,發(fā)財,炒股,1,0),COLORLIBLUE;
DRAWTEXT(CROSS((MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4
,(EMA(C,6)+EMA(C,18)+EMA(C,54)+EMA(C,162))/4),L-0.13,'加速') ,COLORYELLOW;
DRAWTEXT(CROSS(EMA(CLOSE,3),EMA(CLOSE,21)),(LOW * 0.99)
,'向上升'),COLORMAGENTA;
安全贏錢:=MA((EXPMEMA(OPEN,3)),13),COLORWHITE;
財運好制作:=EXPMEMA(安全贏錢,7),COLORYELLOW;
STICKLINE(財運好制作<安全贏錢,財運好制作,安全贏錢,2,0),COLORRED;
通達信陰陽五行主圖波段買賣指標公式實例圖解:
通達信陰陽五行主圖波段買賣指標公式