炒股指标

显示 收起

通达信阴阳五行主图波段买卖指标公式

通达信阴阳五行主图波段买卖指标公式:

阴阳五行: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))));
七日转:=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)),七日转),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);
风险区:=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);
上:=风险区<REF(风险区,1);
有K线就行:=IF(上-1,风险区,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))));
五根线七日转:=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;
发财:EMA(炒股,9.5),COLORYELLOW;
STICKLINE(炒股>发财,发财,炒股,1,0),COLORMAGENTA;
STICKLINE(炒股<发财,发财,炒股,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;

通达信阴阳五行主图波段买卖指标公式实例图解:

通达信阴阳五行主图波段买卖指标公式