通达信总买卖指标公式

 

DAY32:=MIN( BARSCOUNT(C)-9,32);
DAY42:=MIN( BARSCOUNT(C)-9,42);
DAY34:=MIN( BARSCOUNT(C)-9,34);
DAY50:=MIN( BARSCOUNT(C)-9,50);
DAY55:=MIN( BARSCOUNT(C)-7,55);
DAY89:=MIN( BARSCOUNT(C)-6,89);
DAY144:=MIN( BARSCOUNT(C)-4,144);
DAY233:=MIN( BARSCOUNT(C)-30,233);
PP00:=SUM(L<MA(C,8),5)<=0;
PP0:=SUM(L<MA(C,8),13)/13<=8/100;
PP1:=SUM(L<MA(C,13),21)/21<=8/100;
PP2:=SUM(L<MA(C,21),DAY34)/DAY34<=8/100;
PP3:=SUM(L<MA(C,34),DAY55)/DAY55<=8/100;
PP4:=SUM(L<MA(C,DAY55),DAY89)/DAY89<=8/100;
P00:=SUM(H>MA(C,8),5)<=0 ;
P0:=SUM(H>MA(C,8),13)/13<=8/100;
P1:=SUM(H>MA(C,13),21)/21<=8/100;
P2:=SUM(H>MA(C,21),DAY34)/DAY34<=8/100;
P3:=SUM(H>MA(C,DAY34),DAY55)/DAY55<=8/100;
P4:=SUM(H>MA(C,DAY55),DAY89)/DAY89<=8/100;
obv:=SUM(IF(CLOSE>REF(CLOSE,1),vol,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);
RSV:=(OBV-LLV(OBV,DAY34))/(HHV(OBV,DAY34)-LLV(OBV,DAY34))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
JJ:=3*K-2*D;
J:=IF(JJ>100,100,JJ);
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,DAY34))/(HHV(HIGH,DAY34)-LLV(LOW,DAY34))*100;
AA5:=SMA(AA4,13,8);
OBV走势:=CEILING(SMA(AA5,13,8));
AA6:=SMA(AA3,21,8);
买观注:= OBV走势-AA6<-70;
卖观注:=OBV走势-AA6>88;
ZH:=(SUM(P00 AND SUM(P00,2)=1 ,21)>1 AND P00 AND SUM(P00,2)=1) OR (SUM(P00 AND SUM(P00,2)=1 ,DAY55)>2 AND P00 AND SUM(P00,2)=1) OR (P00 AND SUM(P00,2)=1 AND MA(C,DAY89)>REF(MA(C,DAY89),2)) OR (P0 AND SUM(P0,2)=1) OR (P1 AND SUM(P1,2)=1) OR(P2 AND SUM(P2,2)=1) OR(P3 AND SUM(P3,2)=1) OR(P4 AND SUM(P4,2)=1) ;
HZ:=(SUM(PP00 AND SUM(PP00,2)=1 ,21)>1 AND PP00 AND SUM(PP00,2)=1) OR (SUM(PP00 AND SUM(PP00,2)=1 ,DAY55)>2 AND PP00 AND SUM(PP00,2)=1) OR (PP00 AND SUM(PP00,2)=1 AND MA(C,DAY89)>REF(MA(C,DAY89),2)) OR (PP0 AND SUM(PP0,2)=1) OR (PP1 AND SUM(PP1,2)=1) OR(PP2 AND SUM(PP2,2)=1) OR(PP3 AND SUM(PP3,2)=1) OR(PP4 AND SUM(PP4,2)=1) ;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,5);
VAR3:=HHV(HIGH,4);
Y: EMA((VAR1-VAR2)/(VAR3-VAR2)*100,4);
W: EMA(0.667*REF(Y,1)+0.333*Y,2);
VAR5:=(VAR1-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
VAR6:=SMA(VAR5,2,1);
坦途: SMA(VAR6,2,1), LINESTICK;
YY:=W-Y;
DIFF:=EMA(CLOSE,13)-EMA(CLOSE,21);
DEA:=EMA(DIFF,8);
macd:=2*(DIFF-DEA);
MBC:=0.5*(DIFF+DEA);
低位金叉:=crOSS(DIFF,DEA) AND DIFF<-0.1 ;
DIFFF:=DIFF-REF(DIFF,1);
DEAA:=DEA-REF(DEA,1);
Mac:=MACD;
ABMAC:=MA(MAC*MAC,DAY34);
NN:=BArslAST(MAC*REF(MAC,1)<=0)+1;
ZHGTAA:=(SUM(MAC,0)-REF(SUM(MAC,0),NN))/10;
NNN:=BARSLAST(ZHGTAA<0 AND REF(ZHGTAA,1)>0)+1;
TTT:=BARSLAST(ZHGTAA>0 AND REF(ZHGTAA,1)<0)+1;
BBB:= REF(MAC,1)<REF(MAC,2) AND MAC>REF(MAC,1) ;
SSS:= REF(MAC,1)>REF(MAC,2) AND MAC<REF(MAC,1) ;
RTB:=MAC<0 AND REF(MAC,1)>0;
BTR:=MAC>0 AND REF(MAC,1)<0;
BTR1:=BARSLAST(BTR)+1;
RTB1:=BARSLAST(RTB)+1;
BTR2:=REF(BTR1,BTR1)+1;
RTB2:=REF(RTB1,RTB1)+1;
FRIBB:=BARSLAST(BBB)+1;
SECNBB:=REF(FRIBB,FRIBB)+1;
FRISS:=BARSLAST(SSS)+1;
SECNSS:=REF(FRISS,FRISS)+1;
SSS1:= MAC>0 AND SSS AND ( REF(MAC,1)*REF(MAC,1)>3*ABMAC OR ( NOT((HHV(MAC,FRISS+3)>=HHV(MAC,FRISS+SECNSS+3) AND HHV(H,FRISS+3)>=HHV(H,FRISS+SECNSS+3)) OR (HHV(MAC,FRISS+3)<HHV(MAC,FRISS+SECNSS+3) AND HHV(H,FRISS+3)<HHV(H,FRISS+SECNSS+3))) AND REF(MAC,1)*REF(MAC,1)>1.4*ABMAC));
BBB1:=MAC<0 AND BBB AND ( REF(MAC,1)*REF(MAC,1)>3*ABMAC OR (NOT((LLV(MAC,FRIBB+3)<=LLV(MAC,FRIBB+SECNBB+3) AND LLV(L,FRIBB+3)<=LLV(L,FRIBB+SECNBB+3)) OR (LLV(MAC,FRIBB+3)>LLV(MAC,FRIBB+SECNBB+3) AND LLV(L,FRIBB+3)>LLV(L,FRIBB+SECNBB+3))) AND REF(MAC,1)*REF(MAC,1)>1.4*ABMAC));
BBB12:=BTR AND REF(ZHGTAA,1)>=-65/1000;
BBB13:=REF(MAC,1)<0.05 AND REF(MAC,1)>0 AND MAC/REF(MAC,1)>1.3 AND REF(MAC,2)/REF(MAC,1)>1.1 AND MAC/REF(MAC,2)>1;
SSS12:=RTB AND REF(ZHGTAA,1)<=65/1000;
SSS13:=REF(MAC,1)>-0.05 AND REF(MAC,1)<0 AND REF(MAC,1)/MAC>1.3 AND REF(MAC,1)/REF(MAC,2)>1.1 AND REF(MAC,2)/MAC>1;
STICKLINE(SSS1 AND (C/DYNAINFO(3))<1.098 ,-40,65,3,0), COLOR888888;
STICKLINE(BBB1 OR BBB12 OR BBB13 ,-40,65,3,0), COLORFF00FF;
高位死叉:=CROSS(DEA,DIFF) AND DIFF>0.1;
DIFFZ:=1.02*DIFF;
DEAZ:=1.02*DEA;
JCCOUNT:=COUNT(CROSS(DIFFZ,DEA),BARSLAST(DEA>=0));
JCCOUNTT:=COUNT(CROSS(DEAZ,DIFF),BARSLAST(DEA<=0));
二次金叉:=CROSS(DIFFZ,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
二次死叉:=CROSS(DEAZ,DIFF) AND DEA>0 AND COUNT(JCCOUNTT=2,21)=1;
AZ1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,AZ1+1)>CLOSE AND DIFF>REF(DIFF,AZ1+1) AND CROSS(DIFF,DEA) AND DIFF<-0.005;
AZ2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,AZ2+1)<CLOSE AND REF(DIFF,AZ2+1)>DIFF AND CROSS(DEA,DIFF) ;
A1:=MA(CLOSE,5)-MA(CLOSE,8);
A2:=MA(CLOSE,8)-MA(CLOSE,13);
A3:=MA(CLOSE,13)-MA(CLOSE,21);
A4:=MA(CLOSE,21)-MA(CLOSE,DAY34);
A5:=MA(CLOSE,DAY34)-MA(CLOSE,DAY55);
A6:=MA(CLOSE,DAY55)-MA(CLOSE,DAY89);
A7:=MA(CLOSE,DAY89)-MA(CLOSE,DAY144);
A8:=MA(CLOSE,144)-MA(CLOSE,DAY233);
DQSI:=IF(A1>=REF(A1,1),1,0)+IF(A2>=REF(A2,1),1,0)+IF(A3>=REF(A3,1),1,0)+IF(A4>=REF(A4,1),1,0);
CQSI:=IF(A5>=REF(A5,1),1,0)+IF(A6>=REF(A6,1),1,0)+IF(A7>=REF(A7,1),1,0)+IF(A8>=REF(A8,1),1,0);
QSI:=IF(DQSI=0 AND CQSI=0,1,IF(DQSI>1 OR CQSI>0,1,0));
PPP:=IF( 坦途<REF(坦途,1),1,0);
AS:=IF(W<Y AND REF(W,1)>REF(Y,1) AND Y<32,1,0);
ASAT:=IF(AS=1 AND NOT (REF(坦途,BARSLAST(AS)+1)>坦途 AND REF(C,BARSLAST(AS)+1)<C),1,0);
DING:=IF(SUM(L<MA(C,DAY34),DAY50)/DAY50<=12/100,1,0);
买点11:= (ASAT=1) AND ((QSI+REF(QSI,1)+REF(QSI,2))>1) AND (DIFFF>REF(DIFFF,1) OR MACD>REF(MACD,1)) AND REF(PPP,1)+REF(PPP,2)+REF(PPP,3)+REF(PPP,4)>3 ;
DQSID:=IF(A1<REF(A1,1),1,0)+IF(A2<REF(A2,1),1,0)+IF(A3<REF(A3,1),1,0)+IF(A4<REF(A4,1),1,0);
CQSID:=IF(A5<REF(A5,1),1,0)+IF(A6<REF(A6,1),1,0)+IF(A7<REF(A7,1),1,0)+IF(A8<REF(A8,1),1,0);
QSID:=IF(DQSID=0 AND CQSID=0,1,IF(DQSID>1 OR CQSID>0,1,0));
PPPD:=IF( 坦途>REF(坦途,1),1,0);
AT:=IF(W>Y AND REF(W,1)<REF(Y,1) AND REF(W,1)>68,1,0);
ATAS:=IF(AT=1 AND NOT (REF(坦途,BARSLAST(AT)+1)<坦途 AND REF(H,BARSLAST(AT)+1)<H),1,1);
DINGD:=IF(SUM(H>MA(C,DAY34),DAY50)/DAY50>=12/100,1,0);
卖点11:= (ATAS=1) AND ((QSID+REF(QSID,1)+REF(QSID,2))>1) AND (DIFFF<REF(DIFFF,1) OR MACD<REF(MACD,1)) AND REF(PPPD,1)+REF(PPPD,2)+REF(PPPD,3)+REF(PPPD,4)>3 ;
卖点:=(ATAS=1) AND 坦途>58 AND REF(坦途,1)>58 AND REF(坦途,2)>58 AND PPP=1 AND REF(PPP,1)+REF(PPP,2)+REF(PPP,3)<=0;
买点N:=(ATAS=1) AND 坦途<53 AND REF(坦途,1)<53 AND REF(坦途,2)<55 AND PPPD=1 AND REF(PPPD,1)+REF(PPPD,2)+REF(PPPD,3)<=0;
DRAWTEXT(卖点,1.08*坦途,'◆'),COLORYELLOW;
连卖:=SUM(卖点,21)>1;
买点000:=坦途<48 AND SUM(卖点,55)>2 AND MA(C,21)>REF(MA(C,21),1) AND CROSS(Y,W) AND((OBV走势-AA6<-45) OR OBV<50 OR J<20);
DRAWTEXT(买点000 OR 买点N,-25,'◆0'),COLORRED;
买点001:=坦途<50 AND SUM(卖点,42)>2 AND CROSS(Y,W) AND MA(C,13)>REF(MA(C,13),1) ;
DRAWTEXT(买点001,-15,'◆1'),COLORRED;
买点002:=坦途<51 AND SUM(卖点,26)>2 AND CROSS(Y,W) ;
DRAWTEXT(买点002,25,'◆2'),COLORRED;
买点003:=坦途<52 AND SUM(卖点,21)>1 AND CROSS(Y,W) AND (J<30 OR SUM(买观注,2)>0 ) ;
DRAWTEXT(买点003,50,'◆3'),COLORRED;
买点004:=坦途<52 AND SUM(卖点,16)>1 AND CROSS(Y,W) ;
DRAWTEXT(买点004,75,'◆4'),COLORRED;
买点006:=SUM(卖点,15)>1 AND CROSS(Y,W) AND SUM(BARSLAST(卖点)-1,CROSS(Y,W))<3 ;
DRAWTEXT(买点006,0.2*Y,'★6'),COLOR9966FF;
买点005:=SUM(卖点,22)=1 AND CROSS(Y,W) AND SUM(BARSLAST(卖点)-1,CROSS(Y,W))<3 ;
DRAWTEXT(买点005,0.2*Y,'★5'),COLORFF66FF;
买点0060:=SUM(卖点,3)=1 AND SUM(卖点,13)=1 AND SUM(卖点,1)=0 AND Y>1.01*W AND Y>REF(Y,1) AND W>REF(W,1);
买点0006:=买点0060 AND SUM(买点0060,2)=1;
DRAWTEXT(买点0006,0.2*Y,'★7'),COLOR0066FF;
买点00:=买点000 OR 买点001 OR 买点002 ;
买点10:= 坦途<45 AND ((SUM(ZH,5)>0 AND CROSS(Y,W) ) OR (ZH AND SUM(CROSS(Y,W),5)>0) )AND (SUM(买观注,2)>0 OR OBV<30 OR J<10 OR (OBV走势-AA6<-33)) ;
DRAWICON(买点10,-40,1),COLORGREEN;
DRAWTEXT(买点10 AND ( SUM(买点10,8)>2 OR SUM(买点10,16)>3 OR SUM(买点10,32)>4),40,'1'),COLORRED;
DRAWICON(买点10 AND ( SUM(买点10,8)>2 OR SUM(买点10,16)>3 OR SUM(买点10,32)>4),-40,1),COLORGREEN;
卖点10:= 坦途>68 AND ((SUM(HZ,5)>0 AND CROSS(W,Y) ) OR (HZ AND SUM(CROSS(W,Y),4)>0) )AND (SUM(卖观注,2)>0 OR OBV>76 OR J>92 OR (AA6-OBV走势<-33)) ;
DRAWICON(卖点10,100,2),COLORGREEN;
DRAWTEXT(卖点10 AND ( SUM(卖点10,8)>2 OR SUM(卖点10,16)>3 OR SUM(卖点10,32)>4),80,'1'),COLOR00FF66;
DRAWICON(卖点10 AND ( SUM(卖点10,8)>2 OR SUM(卖点10,16)>3 OR SUM(卖点10,32)>4),120,2),COLORGREEN;
买点20:= 坦途<48 AND ((CROSS(Y,W) AND SUM(二次金叉,3)>0) OR (SUM(CROSS(Y,W),3)>0 AND 二次金叉)) ;
DRAWTEXT(买点20,60,'◆20'),COLORRED;
买点:=(买点11 AND (DING=0)) ;
DRAWICON(买点,-60,38),COLORRED;
卖点0:=(卖点11 AND (DINGD=0)) ;
DRAWICON(卖点0,150,39),COLORGREEN;
AA:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
买盘:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖盘:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2));
买卖差:=买盘+卖盘;
换手率:=100*VOL/CAPITAL;
总放量:=IF((买盘>MA(买盘,6)*3) OR (卖盘<MA(卖盘,6)*3) OR (VOL>MA(VOL,5)*2.5),1,0);
买点30:= 坦途<48 AND ((CROSS(Y,W) AND SUM(总放量,2)>0) OR (SUM(CROSS(Y,W),2)>0 AND 总放量)) ;
DRAWTEXT(买点30,90,'◆30'),COLORRED;
久买:=(买点 OR 买点10 OR 买点20 OR 买点30);
卖点005:=SUM(久买,22)=1 AND CROSS(W,Y) AND SUM(BARSLAST(久买)-1,CROSS(W,Y))<3 ;
DRAWTEXT(卖点005,70,'?'),COLORYELLOW;
DRAWTEXT(卖点005,125,'慎'),COLORYELLOW;
慎卖:=买点11 AND (DING=1);
DRAWTEXT(慎卖,坦途+60,'慎'),COLORYELLOW;
买点A:=买点 AND SUM(买点11,32)>=2;
DRAWTEXT(买点A,-40,'买'),COLORRED;
卖点A:=卖点0 AND SUM(卖点11,32)>=2;
DRAWTEXT(卖点A,120,'卖'),COLORGREEN;
ZGT1:=IF(SUM((P00 OR P0 OR P1 OR P2 OR P3 OR P4),3)>0,1,0)+IF(SUM(买观注,3)>0,1,0)+IF(SUM(买点,3)>0 ,1,0)+IF(SUM(总放量,3),1,0);
ZTG1:=IF(SUM((PP00 OR PP0 OR PP1 OR PP2 OR PP3 OR PP4),3)>0,1,0)+IF(SUM(卖观注,3)>0,1,0)+IF(SUM(卖点0 OR 卖点10,3)>0 ,1,0)+IF(SUM(总放量,3),1,0)+IF(SUM(SSS1 OR 二次死叉 OR 高位死叉,3),1,0);
ZHGT00:= (ZGT1>=4) OR (ZGT1=3 AND SUM(二次金叉,13)>0) OR (二次金叉 AND SUM(ZGT1>=3,13)>0) ;
ZHGT:=ZHGT00 AND SUM(ZHGT00,2)=1;
ZHTG:= (ZTG1>=4) AND SUM(ZTG1>=4,2)=1 ;
ZHTG0:= (ZTG1>=5) AND SUM(ZTG1>=5,2)=1 ;
STICKLINE(ZHGT ,-40,90,6,0), COLORWHITE;
DRAWICON(ZHGT,-80,8),COLORGREEN;
STICKLINE(ZHTG ,-45,40,8,0), COLOR008000 ;
DRAWICON(ZHTG,80,15),COLORGREEN;
DRAWICON(ZHTG0,115,15),COLORGREEN;
DXD1:=IF(SUM((PP00 OR PP0 OR PP1 OR PP2 OR PP3 OR PP4),1)>0,1,0)+IF(SUM(卖观注,2)>0,1,0)+IF(SUM(卖点,2)>0 ,1,0)+IF(SUM(总放量,2),1,0);
DXD:=(DXD1=4) OR (DXD1=3 AND SUM(二次死叉,13)>0) OR (二次死叉 AND SUM(DXD1>=3,13)>0) ;
STICKLINE(DXD AND SUM(H<=1.002*L,2)=0 AND (C/DYNAINFO(3))<1.098 ,-60,70,4,0), COLOR00FF00;
DRAWTEXT(DXD AND (C/DYNAINFO(3))<1.098 ,100,'卖'),COLOR00FF00;
总数:=SUM(买点000,24)+SUM(买点001,24)+SUM(买点002,24)+SUM(买点003,24)+SUM(买点004,24)+SUM(买点005,24)+SUM(买点10,24)+SUM(买点20,24)+SUM(买点30,24)+SUM(买点,24);
ATAS0:=(总数>=8);
ATASS:=ATAS0 AND SUM(ATAS0,2)=1 AND (SUM(P00 OR P0 OR P1 OR P2 OR P3 OR P4,3)>0);
STICKLINE(ATASS,-140,120,2,0),COLORRED ;
DRAWTEXT(ATASS AND SUM(ATASS,2)=1 ,-130,'买'),COLOR38B0DE ;
VAR11:= 买点10 AND SUM(买点10,10)>1;
VAR12:= 卖点10 AND SUM(卖点10,10)>1;
PDKS:=P00 AND NOT(REF(P00,1));
PDKSS:=IF(PDKS AND SUM(PDKS,5)=1,1,0);
PDTS:=PP00 AND NOT(REF(PP00,1));
PDTSS:=IF(PDTS AND SUM(PDTS,5)=1,1,0);
DTTIME:=REF(BARSLAST(PDKSS),1)+1;
DTTIME1:=REF(BARSLAST(PDTSS),1)+1;
PDN:=PDKSS AND (SUM(PDTSS,DTTIME)>=1);
PDN1:=PDKSS AND (SUM(PDTSS,DTTIME)<1);
PTN:=PDTSS AND (SUM(PDKSS,DTTIME1)>=1);
PTN1:=PDTSS AND (SUM(PDKSS,DTTIME1)<1);
PDTN1:=PDTSS AND (SUM(PDKSS,DTTIME1)<1);
DTTIMEA:=REF(BARSLAST(PDN),1)+1;
DTTIMEB:=REF(BARSLAST(PTN),1)+1;
DAY11:=MIN( BARSCOUNT(C)-30,DTTIMEA+256);
DAY12:=MIN( BARSCOUNT(C)-30,DTTIMEB+256);
ZHGTA:=PDN1 AND SUM(PDN1,DTTIMEA+1)>=2 AND SUM(PDN,DAY11)>=2;
ZHGTB:=PTN1 AND SUM(PTN1,DTTIMEB+1)>=2 AND SUM(PTN,DAY12)>=2;
VAR21:=ZHGTA;
VAR22:=(VAR21 AND SUM(买点10,4)>0) OR (买点10 AND SUM(VAR21,4)>0);
VAR23:=(ZHGTB AND SUM(卖点10,4)>0) OR (卖点10 AND SUM(ZHGTB,4)>0);
STICKLINE(VAR23 AND (C/DYNAINFO(3))<1.098 ,-100,90,3,0), COLORBLUE;
STICKLINE(VAR22 ,-90,90,3,0), COLORYELLOW;
DRAWTEXT((VAR21 AND SUM(VAR11,4)>0) OR (VAR11 AND SUM(VAR21,4)>0) ,110,'缅'),COLORYELLOW;
总买A:=IF(买点000,1,0)+IF(买点001,1,0)+IF(买点002,1,0)+IF(买点003,1,0)+IF(买点004,1,0)+IF(买点30,4,0)+IF(买点10 ,8,0)+IF(买点,3,0)+IF(买点A,4,0)+IF(买点0006,3,0)+IF(买点005 AND SUM(买点005,DAY32)>=1,5,0)+IF(ZHGT,8,0)+IF(二次金叉,7,0)+IF(买点20,6,0)+IF(底背离,9,0)+IF(低位金叉,3,0)+IF(VAR22,7,0)+IF(BBB1 AND MBC<0,6,0)+IF(BBB1 AND MBC>=0,3,0)+8*IF(BBB12,1,0)+IF(BBB13,6,0);
总卖A:=IF(卖点10,2,0)+IF(卖点0,3,0)+IF(卖点A,4,0)+IF(DXD,4,0)+IF(卖点,4,0)+IF(ZHTG,6,0)+IF(ZHTG0,12,0)+IF(高位死叉,3,0)+IF(顶背离,9,0)+IF(二次死叉,7,0)+IF(VAR23,7,0)+IF(SSS1 AND MBC>0,6,0)+IF(SSS1 AND MBC<=0,3,0)+IF(SSS12,8,0)+IF(SSS13,6,0);
总买:=IF(总买A<4,总买A,IF(SUM(P00 OR P0 OR P1 OR P2 OR P3 OR P4,2)>0,总买A+1,IF(SUM( PP1 OR PP2 OR PP3 OR PP4,2)>0,总买A,总买A))),LINETHICK0;
总卖:=IF(总卖A<4,总卖A,IF(SUM(PP00 OR PP0 OR PP1 OR PP2 OR PP3 OR PP4,2)>0,总卖A+1,IF(SUM( P1 OR P2 OR P3 OR P4,2)>0,总卖A,总卖A))),LINETHICK0;
DRAWNUMBER(总卖>=3 ,135,INTPART(总卖)),COLORGREEN;
DRAWNUMBER(总买>=3 ,-35,INTPART(总买)),COLORWHITE;




来函数检测结果如下
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO

解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

DAY32赋值:收盘价的有效数据周期数-9和32的较小值
DAY42赋值:收盘价的有效数据周期数-9和42的较小值
DAY34赋值:收盘价的有效数据周期数-9和34的较小值
DAY50赋值:收盘价的有效数据周期数-9和50的较小值
DAY55赋值:收盘价的有效数据周期数-7和55的较小值
DAY89赋值:收盘价的有效数据周期数-6和89的较小值
DAY144赋值:收盘价的有效数据周期数-4和144的较小值
DAY233赋值:收盘价的有效数据周期数-30和233的较小值
PP00赋值:最低价<收盘价的8日简单移动平均的5日累和<=0
PP0赋值:最低价<收盘价的8日简单移动平均的13日累和/13<=8/100
PP1赋值:最低价<收盘价的13日简单移动平均的21日累和/21<=8/100
PP2赋值:最低价<收盘价的21日简单移动平均的DAY34日累和/DAY34<=8/100
PP3赋值:最低价<收盘价的34日简单移动平均的DAY55日累和/DAY55<=8/100
PP4赋值:最低价<收盘价的DAY55日简单移动平均的DAY89日累和/DAY89<=8/100
P00赋值:最高价>收盘价的8日简单移动平均的5日累和<=0
P0赋值:最高价>收盘价的8日简单移动平均的13日累和/13<=8/100
P1赋值:最高价>收盘价的13日简单移动平均的21日累和/21<=8/100
P2赋值:最高价>收盘价的21日简单移动平均的DAY34日累和/DAY34<=8/100
P3赋值:最高价>收盘价的DAY34日简单移动平均的DAY55日累和/DAY55<=8/100
P4赋值:最高价>收盘价的DAY55日简单移动平均的DAY89日累和/DAY89<=8/100
OBV赋值:如果收盘价>1日前的收盘价,返回成交量(手),否则返回如果收盘价<1日前的收盘价,返回-成交量(手),否则返回0的历史累和
RSV赋值:(OBV-DAY34日内OBV的最低值)/(DAY34日内OBV的最高值-DAY34日内OBV的最低值)*100
K赋值:RSV的5日[1日权重]移动平均
D赋值:K的3日[1日权重]移动平均
JJ赋值:3*K-2*D
J赋值:如果JJ>100,返回100,否则返回JJ
AA3赋值:(21日内最高价的最高值-收盘价)/(21日内最高价的最高值-21日内最低价的最低值)*100-10
AA4赋值:(收盘价-DAY34日内最低价的最低值)/(DAY34日内最高价的最高值-DAY34日内最低价的最低值)*100
AA5赋值:AA4的13日[8日权重]移动平均
OBV走势赋值:AA5的13日[8日权重]移动平均的向上舍入
AA6赋值:AA3的21日[8日权重]移动平均
买观注赋值: OBV走势-AA6<-70
卖观注赋值:OBV走势-AA6>88
ZH赋值:(P00ANDSUM(P00,2)=1的21日累和>1 AND P00 AND P00的2日累和=1) OR (P00ANDSUM(P00,2)=1的DAY55日累和>2 AND P00 AND P00的2日累和=1) OR (P00 AND P00的2日累和=1 AND 收盘价的DAY89日简单移动平均>2日前的收盘价的DAY89日简单移动平均) OR (P0 AND P0的2日累和=1) OR (P1 AND P1的2日累和=1) OR(P2 AND P2的2日累和=1) OR(P3 AND P3的2日累和=1) OR(P4 AND P4的2日累和=1)
HZ赋值:(PP00ANDSUM(PP00,2)=1的21日累和>1 AND PP00 AND PP00的2日累和=1) OR (PP00ANDSUM(PP00,2)=1的DAY55日累和>2 AND PP00 AND PP00的2日累和=1) OR (PP00 AND PP00的2日累和=1 AND 收盘价的DAY89日简单移动平均>2日前的收盘价的DAY89日简单移动平均) OR (PP0 AND PP0的2日累和=1) OR (PP1 AND PP1的2日累和=1) OR(PP2 AND PP2的2日累和=1) OR(PP3 AND PP3的2日累和=1) OR(PP4 AND PP4的2日累和=1)
VAR1赋值:(2*收盘价+最高价+最低价)/4
VAR2赋值:5日内最低价的最低值
VAR3赋值:4日内最高价的最高值
输出 Y: (VAR1-VAR2)/(VAR3-VAR2)*100的4日指数移动平均
输出 W: 0.667*1日前的Y+0.333*Y的2日指数移动平均
VAR5赋值:(VAR1-4日内最低价的最低值)/(4日内最高价的最高值-4日内最低价的最低值)*100
VAR6赋值:VAR5的2日[1日权重]移动平均
输出 坦途: VAR6的2日[1日权重]移动平均, LINESTICK
YY赋值:W-Y
DIFF赋值:收盘价的13日指数移动平均-收盘价的21日指数移动平均
DEA赋值:DIFF的8日指数移动平均
MACD赋值:2*(DIFF-DEA)
MBC赋值:0.5*(DIFF+DEA)
低位金叉赋值:DIFF上穿DEA AND DIFF<-0.1
DIFFF赋值:DIFF-1日前的DIFF
DEAA赋值:DEA-1日前的DEA
MAC赋值:MACD
ABMAC赋值:MAC*MAC的DAY34日简单移动平均
NN赋值:上次MAC*1日前的MAC<=0距今天数+1
ZHGTAA赋值:(MAC的历史累和-NN日前的MAC的历史累和)/10
NNN赋值:上次ZHGTAA<0ANDREF(ZHGTAA,1)>0距今天数+1
TTT赋值:上次ZHGTAA>0ANDREF(ZHGTAA,1)<0距今天数+1
BBB赋值: 1日前的MAC<2日前的MAC AND MAC>1日前的MAC
SSS赋值: 1日前的MAC>2日前的MAC AND MAC<1日前的MAC
RTB赋值:MAC<0 AND 1日前的MAC>0
BTR赋值:MAC>0 AND 1日前的MAC<0
BTR1赋值:上次BTR距今天数+1
RTB1赋值:上次RTB距今天数+1
BTR2赋值:BTR1日前的BTR1+1
RTB2赋值:RTB1日前的RTB1+1
FRIBB赋值:上次BBB距今天数+1
SECNBB赋值:FRIBB日前的FRIBB+1
FRISS赋值:上次SSS距今天数+1
SECNSS赋值:FRISS日前的FRISS+1
SSS1赋值: MAC>0 AND SSS AND ( 1日前的MAC*1日前的MAC>3*ABMAC OR ( 取反 AND 1日前的MAC*1日前的MAC>1.4*ABMAC))
BBB1赋值:MAC<0 AND BBB AND ( 1日前的MAC*1日前的MAC>3*ABMAC OR (取反 AND 1日前的MAC*1日前的MAC>1.4*ABMAC))
BBB12赋值:BTR AND 1日前的ZHGTAA>=-65/1000
BBB13赋值:1日前的MAC<0.05 AND 1日前的MAC>0 AND MAC/1日前的MAC>1.3 AND 2日前的MAC/1日前的MAC>1.1 AND MAC/2日前的MAC>1
SSS12赋值:RTB AND 1日前的ZHGTAA<=65/1000
SSS13赋值:1日前的MAC>-0.05 AND 1日前的MAC<0 AND 1日前的MAC/MAC>1.3 AND 1日前的MAC/2日前的MAC>1.1 AND 2日前的MAC/MAC>1
当满足条件SSS1AND(收盘价/昨收盘价)<1.098时,在-40和65位置之间画柱状线,宽度为3,0不为0则画空心柱., COLOR888888
当满足条件BBB1ORBBB12ORBBB13时,在-40和65位置之间画柱状线,宽度为3,0不为0则画空心柱., COLORFF00FF
高位死叉赋值:DEA上穿DIFF AND DIFF>0.1
DIFFZ赋值:1.02*DIFF
DEAZ赋值:1.02*DEA
JCCOUNT赋值:统计上次DEA>=0距今天数日中满足DIFFZ上穿DEA的天数
JCCOUNTT赋值:统计上次DEA<=0距今天数日中满足DEAZ上穿DIFF的天数
二次金叉赋值:DIFFZ上穿DEA AND DEA<0 AND 统计21日中满足JCCOUNT=2的天数=1
二次死叉赋值:DEAZ上穿DIFF AND DEA>0 AND 统计21日中满足JCCOUNTT=2的天数=1
AZ1赋值:上次1日前的DIFF上穿DEA距今天数
底背离赋值:AZ1+1日前的收盘价>收盘价 AND DIFF>AZ1+1日前的DIFF AND DIFF上穿DEA AND DIFF<-0.005
AZ2赋值:上次1日前的DEA上穿DIFF距今天数
顶背离赋值:AZ2+1日前的收盘价<收盘价 AND AZ2+1日前的DIFF>DIFF AND DEA上穿DIFF
A1赋值:收盘价的5日简单移动平均-收盘价的8日简单移动平均
A2赋值:收盘价的8日简单移动平均-收盘价的13日简单移动平均
A3赋值:收盘价的13日简单移动平均-收盘价的21日简单移动平均
A4赋值:收盘价的21日简单移动平均-收盘价的DAY34日简单移动平均
A5赋值:收盘价的DAY34日简单移动平均-收盘价的DAY55日简单移动平均
A6赋值:收盘价的DAY55日简单移动平均-收盘价的DAY89日简单移动平均
A7赋值:收盘价的DAY89日简单移动平均-收盘价的DAY144日简单移动平均
A8赋值:收盘价的144日简单移动平均-收盘价的DAY233日简单移动平均
DQSI赋值:如果A1>=1日前的A1,返回1,否则返回0+如果A2>=1日前的A2,返回1,否则返回0+如果A3>=1日前的A3,返回1,否则返回0+如果A4>=1日前的A4,返回1,否则返回0
CQSI赋值:如果A5>=1日前的A5,返回1,否则返回0+如果A6>=1日前的A6,返回1,否则返回0+如果A7>=1日前的A7,返回1,否则返回0+如果A8>=1日前的A8,返回1,否则返回0
QSI赋值:如果DQSI=0ANDCQSI=0,返回1,否则返回如果DQSI>1ORCQSI>0,返回1,否则返回0
PPP赋值:如果坦途<1日前的坦途,返回1,否则返回0
AS赋值:如果W1日前的YANDY<32,返回1,否则返回0
ASAT赋值:如果AS=1ANDNOT(上次AS距今天数+1日前的坦途>坦途ANDREF(收盘价,上次AS距今天数+1)<收盘价),返回1,否则返回0
DING赋值:如果最低价<收盘价的DAY34日简单移动平均的DAY50日累和/DAY50<=12/100,返回1,否则返回0
买点11赋值: (ASAT=1) AND ((QSI+1日前的QSI+2日前的QSI)>1) AND (DIFFF>1日前的DIFFF OR MACD>1日前的MACD) AND 1日前的PPP+2日前的PPP+3日前的PPP+4日前的PPP>3
DQSID赋值:如果A1<1日前的A1,返回1,否则返回0+如果A2<1日前的A2,返回1,否则返回0+如果A3<1日前的A3,返回1,否则返回0+如果A4<1日前的A4,返回1,否则返回0
CQSID赋值:如果A5<1日前的A5,返回1,否则返回0+如果A6<1日前的A6,返回1,否则返回0+如果A7<1日前的A7,返回1,否则返回0+如果A8<1日前的A8,返回1,否则返回0
QSID赋值:如果DQSID=0ANDCQSID=0,返回1,否则返回如果DQSID>1ORCQSID>0,返回1,否则返回0
PPPD赋值:如果坦途>1日前的坦途,返回1,否则返回0
AT赋值:如果W>YANDREF(W,1)<1日前的YANDREF(W,1)>68,返回1,否则返回0
ATAS赋值:如果AT=1ANDNOT(上次AT距今天数+1日前的坦途<坦途ANDREF(最高价,上次AT距今天数+1)<最高价),返回1,否则返回1
DINGD赋值:如果最高价>收盘价的DAY34日简单移动平均的DAY50日累和/DAY50>=12/100,返回1,否则返回0
卖点11赋值: (ATAS=1) AND ((QSID+1日前的QSID+2日前的QSID)>1) AND (DIFFF<1日前的DIFFF OR MACD<1日前的MACD) AND 1日前的PPPD+2日前的PPPD+3日前的PPPD+4日前的PPPD>3
卖点赋值:(ATAS=1) AND 坦途>58 AND 1日前的坦途>58 AND 2日前的坦途>58 AND PPP=1 AND 1日前的PPP+2日前的PPP+3日前的PPP<=0
买点N赋值:(ATAS=1) AND 坦途<53 AND 1日前的坦途<53 AND 2日前的坦途<55 AND PPPD=1 AND 1日前的PPPD+2日前的PPPD+3日前的PPPD<=0
当满足条件卖点时,在1.08*坦途位置书写文字,画黄色
连卖赋值:卖点的21日累和>1
买点000赋值:坦途<48 AND 卖点的55日累和>2 AND 收盘价的21日简单移动平均>1日前的收盘价的21日简单移动平均 AND Y上穿W AND((OBV走势-AA6<-45) OR OBV<50 OR J<20)
当满足条件买点000OR买点N时,在-25位置书写文字,画红色
买点001赋值:坦途<50 AND 卖点的42日累和>2 AND Y上穿W AND 收盘价的13日简单移动平均>1日前的收盘价的13日简单移动平均
当满足条件买点001时,在-15位置书写文字,画红色
买点002赋值:坦途<51 AND 卖点的26日累和>2 AND Y上穿W
当满足条件买点002时,在25位置书写文字,画红色
买点003赋值:坦途<52 AND 卖点的21日累和>1 AND Y上穿W AND (J<30 OR 买观注的2日累和>0 )
当满足条件买点003时,在50位置书写文字,画红色
买点004赋值:坦途<52 AND 卖点的16日累和>1 AND Y上穿W
当满足条件买点004时,在75位置书写文字,画红色
买点006赋值:卖点的15日累和>1 AND Y上穿W AND 上次卖点距今天数-1的Y上穿W日累和<3
当满足条件买点006时,在0.2*Y位置书写文字,COLOR9966FF
买点005赋值:卖点的22日累和=1 AND Y上穿W AND 上次卖点距今天数-1的Y上穿W日累和<3
当满足条件买点005时,在0.2*Y位置书写文字,COLORFF66FF
买点0060赋值:卖点的3日累和=1 AND 卖点的13日累和=1 AND 卖点的1日累和=0 AND Y>1.01*W AND Y>1日前的Y AND W>1日前的W
买点0006赋值:买点0060 AND 买点0060的2日累和=1
当满足条件买点0006时,在0.2*Y位置书写文字,COLOR0066FF
买点00赋值:买点000 OR 买点001 OR 买点002
买点10赋值: 坦途<45 AND ((ZH的5日累和>0 AND Y上穿W ) OR (ZH AND Y上穿W的5日累和>0) )AND (买观注的2日累和>0 OR OBV<30 OR J<10 OR (OBV走势-AA6<-33))
当满足条件买点10时,在-40位置画1号图标,画绿色
当满足条件买点10AND(买点10的8日累和>2ORSUM(买点10,16)>3ORSUM(买点10,32)>4)时,在40位置书写文字,画红色
当满足条件买点10AND(买点10的8日累和>2ORSUM(买点10,16)>3ORSUM(买点10,32)>4)时,在-40位置画1号图标,画绿色
卖点10赋值: 坦途>68 AND ((HZ的5日累和>0 AND W上穿Y ) OR (HZ AND W上穿Y的4日累和>0) )AND (卖观注的2日累和>0 OR OBV>76 OR J>92 OR (AA6-OBV走势<-33))
当满足条件卖点10时,在100位置画2号图标,画绿色
当满足条件卖点10AND(卖点10的8日累和>2ORSUM(卖点10,16)>3ORSUM(卖点10,32)>4)时,在80位置书写文字,COLOR00FF66
当满足条件卖点10AND(卖点10的8日累和>2ORSUM(卖点10,16)>3ORSUM(卖点10,32)>4)时,在120位置画2号图标,画绿色
买点20赋值: 坦途<48 AND ((Y上穿W AND 二次金叉的3日累和>0) OR (Y上穿W的3日累和>0 AND 二次金叉))
当满足条件买点20时,在60位置书写文字,画红色
买点赋值:(买点11 AND (DING=0))
当满足条件买点时,在-60位置画38号图标,画红色
卖点0赋值:(卖点11 AND (DINGD=0))
当满足条件卖点0时,在150位置画39号图标,画绿色
AA赋值:成交量(手)/((最高价-最低价)*2-收盘价-开盘价的绝对值)
买盘赋值:如果收阳线,返回AA*(最高价-最低价),否则返回如果收阴线,返回AA*((最高价-开盘价)+(收盘价-最低价)),否则返回成交量(手)/2
卖盘赋值:如果收阳线,返回0-AA*((最高价-收盘价)+(开盘价-最低价)),否则返回如果收阴线,返回0-AA*(最高价-最低价),否则返回0-成交量(手)/2
买卖差赋值:买盘+卖盘
换手率赋值:100*成交量(手)/当前流通股本(手)
总放量赋值:如果(买盘>买盘的6日简单移动平均*3)OR(卖盘<卖盘的6日简单移动平均*3)OR(成交量(手)>成交量(手)的5日简单移动平均*2.5),返回1,否则返回0
买点30赋值: 坦途<48 AND ((Y上穿W AND 总放量的2日累和>0) OR (Y上穿W的2日累和>0 AND 总放量))
当满足条件买点30时,在90位置书写文字,画红色
久买赋值:(买点 OR 买点10 OR 买点20 OR 买点30)
卖点005赋值:久买的22日累和=1 AND W上穿Y AND 上次久买距今天数-1的W上穿Y日累和<3
当满足条件卖点005时,在70位置书写文字,画黄色
当满足条件卖点005时,在125位置书写文字,画黄色
慎卖赋值:买点11 AND (DING=1)
当满足条件慎卖时,在坦途+60位置书写文字,画黄色
买点A赋值:买点 AND 买点11的32日累和>=2
当满足条件买点A时,在-40位置书写文字,画红色
卖点A赋值:卖点0 AND 卖点11的32日累和>=2
当满足条件卖点A时,在120位置书写文字,画绿色
ZGT1赋值:如果(P00ORP0ORP1ORP2ORP3ORP4)的3日累和>0,返回1,否则返回0+如果买观注的3日累和>0,返回1,否则返回0+如果买点的3日累和>0,返回1,否则返回0+如果总放量的3日累和,返回1,否则返回0
ZTG1赋值:如果(PP00ORPP0ORPP1ORPP2ORPP3ORPP4)的3日累和>0,返回1,否则返回0+如果卖观注的3日累和>0,返回1,否则返回0+如果卖点0OR卖点10的3日累和>0,返回1,否则返回0+如果总放量的3日累和,返回1,否则返回0+如果SSS1OR二次死叉OR高位死叉的3日累和,返回1,否则返回0
ZHGT00赋值: (ZGT1>=4) OR (ZGT1=3 AND 二次金叉的13日累和>0) OR (二次金叉 AND ZGT1>=3的13日累和>0)
ZHGT赋值:ZHGT00 AND ZHGT00的2日累和=1
ZHTG赋值: (ZTG1>=4) AND ZTG1>=4的2日累和=1
ZHTG0赋值: (ZTG1>=5) AND ZTG1>=5的2日累和=1
当满足条件ZHGT时,在-40和90位置之间画柱状线,宽度为6,0不为0则画空心柱., 画白色
当满足条件ZHGT时,在-80位置画8号图标,画绿色
当满足条件ZHTG时,在-45和40位置之间画柱状线,宽度为8,0不为0则画空心柱., COLOR008000
当满足条件ZHTG时,在80位置画15号图标,画绿色
当满足条件ZHTG0时,在115位置画15号图标,画绿色
DXD1赋值:如果(PP00ORPP0ORPP1ORPP2ORPP3ORPP4)的1日累和>0,返回1,否则返回0+如果卖观注的2日累和>0,返回1,否则返回0+如果卖点的2日累和>0,返回1,否则返回0+如果总放量的2日累和,返回1,否则返回0
DXD赋值:(DXD1=4) OR (DXD1=3 AND 二次死叉的13日累和>0) OR (二次死叉 AND DXD1>=3的13日累和>0)
当满足条件DXDANDSUM(最高价<=1.002*最低价,2)=0AND(收盘价/昨收盘价)<1.098时,在-60和70位置之间画柱状线,宽度为4,0不为0则画空心柱., COLOR00FF00
当满足条件DXDAND(收盘价/昨收盘价)<1.098时,在100位置书写文字,COLOR00FF00
总数赋值:买点000的24日累和+买点001的24日累和+买点002的24日累和+买点003的24日累和+买点004的24日累和+买点005的24日累和+买点10的24日累和+买点20的24日累和+买点30的24日累和+买点的24日累和
ATAS0赋值:(总数>=8)
ATASS赋值:ATAS0 AND ATAS0的2日累和=1 AND (P00ORP0ORP1ORP2ORP3ORP4的3日累和>0)
当满足条件ATASS时,在-140和120位置之间画柱状线,宽度为2,0不为0则画空心柱.,画红色
当满足条件ATASSANDSUM(ATASS,2)=1时,在-130位置书写文字,COLOR38B0DE
VAR11赋值: 买点10 AND 买点10的10日累和>1
VAR12赋值: 卖点10 AND 卖点10的10日累和>1
PDKS赋值:P00 AND 取反
PDKSS赋值:如果PDKSANDSUM(PDKS,5)=1,返回1,否则返回0
PDTS赋值:PP00 AND 取反
PDTSS赋值:如果PDTSANDSUM(PDTS,5)=1,返回1,否则返回0
DTTIME赋值:1日前的上次PDKSS距今天数+1
DTTIME1赋值:1日前的上次PDTSS距今天数+1
PDN赋值:PDKSS AND (PDTSS的DTTIME日累和>=1)
PDN1赋值:PDKSS AND (PDTSS的DTTIME日累和<1)
PTN赋值:PDTSS AND (PDKSS的DTTIME1日累和>=1)
PTN1赋值:PDTSS AND (PDKSS的DTTIME1日累和<1)
PDTN1赋值:PDTSS AND (PDKSS的DTTIME1日累和<1)
DTTIMEA赋值:1日前的上次PDN距今天数+1
DTTIMEB赋值:1日前的上次PTN距今天数+1
DAY11赋值:收盘价的有效数据周期数-30和DTTIMEA+256的较小值
DAY12赋值:收盘价的有效数据周期数-30和DTTIMEB+256的较小值
ZHGTA赋值:PDN1 AND PDN1的DTTIMEA+1日累和>=2 AND PDN的DAY11日累和>=2
ZHGTB赋值:PTN1 AND PTN1的DTTIMEB+1日累和>=2 AND PTN的DAY12日累和>=2
VAR21赋值:ZHGTA
VAR22赋值:(VAR21 AND 买点10的4日累和>0) OR (买点10 AND VAR21的4日累和>0)
VAR23赋值:(ZHGTB AND 卖点10的4日累和>0) OR (卖点10 AND ZHGTB的4日累和>0)
当满足条件VAR23AND(收盘价/昨收盘价)<1.098时,在-100和90位置之间画柱状线,宽度为3,0不为0则画空心柱., 画蓝色
当满足条件VAR22时,在-90和90位置之间画柱状线,宽度为3,0不为0则画空心柱., 画黄色
当满足条件(VAR21ANDSUM(VAR11,4)>0)OR(VAR11ANDSUM(VAR21,4)>0)时,在110位置书写文字,画黄色
总买A赋值:如果买点000,返回1,否则返回0+如果买点001,返回1,否则返回0+如果买点002,返回1,否则返回0+如果买点003,返回1,否则返回0+如果买点004,返回1,否则返回0+如果买点30,返回4,否则返回0+如果买点10,返回8,否则返回0+如果买点,返回3,否则返回0+如果买点A,返回4,否则返回0+如果买点0006,返回3,否则返回0+如果买点005ANDSUM(买点005,DAY32)>=1,返回5,否则返回0+如果ZHGT,返回8,否则返回0+如果二次金叉,返回7,否则返回0+如果买点20,返回6,否则返回0+如果底背离,返回9,否则返回0+如果低位金叉,返回3,否则返回0+如果VAR22,返回7,否则返回0+如果BBB1ANDMBC<0,返回6,否则返回0+如果BBB1ANDMBC>=0,返回3,否则返回0+8*如果BBB12,返回1,否则返回0+如果BBB13,返回6,否则返回0
总卖A赋值:如果卖点10,返回2,否则返回0+如果卖点0,返回3,否则返回0+如果卖点A,返回4,否则返回0+如果DXD,返回4,否则返回0+如果卖点,返回4,否则返回0+如果ZHTG,返回6,否则返回0+如果ZHTG0,返回12,否则返回0+如果高位死叉,返回3,否则返回0+如果顶背离,返回9,否则返回0+如果二次死叉,返回7,否则返回0+如果VAR23,返回7,否则返回0+如果SSS1ANDMBC>0,返回6,否则返回0+如果SSS1ANDMBC<=0,返回3,否则返回0+如果SSS12,返回8,否则返回0+如果SSS13,返回6,否则返回0
总买赋值:如果总买A<4,返回总买A,否则返回如果P00ORP0ORP1ORP2ORP3ORP4的2日累和>0,返回总买A+1,否则返回如果PP1ORPP2ORPP3ORPP4的2日累和>0,返回总买A,否则返回总买A,线宽为0
总卖赋值:如果总卖A<4,返回总卖A,否则返回如果PP00ORPP0ORPP1ORPP2ORPP3ORPP4的2日累和>0,返回总卖A+1,否则返回如果P1ORP2ORP3ORP4的2日累和>0,返回总卖A,否则返回总卖A,线宽为0
当满足条件总卖>=3时,在135位置书写数字,画绿色
当满足条件总买>=3时,在-35位置书写数字,画白色

指标安装下载帮助  |   联系我们  |  股朋指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股朋指标网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:股朋指标网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图