1、主力喷血
主力喷血,是属于追涨类的短线公式。
含未来函数
{主力喷血 副图源码}
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV:=MA(OBV,30);
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*1;
DEA:=(EMA(DIF,9))*1;
MACD:=(DIF-DEA)*2,COLORSTICK;
M:=CROSS(DIF,DEA);
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;
H1:=FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4;
HJ:=COUNT(H1,6)=1;
MA6:=MA(CLOSE,60);
MA5:=MA(CLOSE,5);
V05:=MA(VOL,5),LINETHICK1,COLORWHITE;
V35:=MA(VOL,35),LINETHICK1,COLORYELLOW ;
VL135:=MA(VOL,135),LINETHICK1,COLORMAGENTA;
ML:=(CROSS(V05,VL135) OR CROSS(V05,V35)) AND OBV>MAOBV;
MLL:=CROSS(C,MA6);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
STICKLINE(UP,0,0.05,3,0),COLOR0000FF;
STICKLINE(DOWN,0,0.05,3,0),COLOR00FF00;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ202:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
ZN:ML AND MLL AND COUNT(TJ202,50)>=1,COLORMAGENTA;
{DRAWICON(ZN,1,5); }
DRAWTEXT(ZN,0.6,'抓'),COLORGREEN;
DRAWTEXT(ZN,0.3,'牛'),COLORGREEN;
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DZJ:=VAR11 AND COUNT(VAR11,30)=1;
STICKLINE(DZJ,0,0.15,3,0),COLORFF80FF;
STICKLINE(DZJ,0.15,0.35,2,0),COLOR3000FF;
STICKLINE(DZJ,0.35,0.51,1,0),COLOR00FFFF;
DRAWTEXT(DZJ,0.55,'大资金'),COLORMAGENTA;
DIF18:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA18:=EMA(DIF18,9);
AAA1:=(DIF18-DEA18)*2*60;
AA:=AAA1-REF(AAA1,1);
VAR18:=(CLOSE*2+HIGH+LOW)/4;
VAR28:=EMA(VAR18,13)-EMA(VAR18,34);
VAR38:=EMA(VAR28,5);
BB:=(VAR38-VAR28)*5,COLORGREEN,LINETHICK2;
CC:=(VAR28-VAR38)*5,COLORWHITE,LINETHICK2;
LZL:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);
LT:=IF(BARSLAST(LZL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LZL)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(LZL)=3 AND CLOSE>REF(HIGH,3),1,0)));
LB:=BARSLAST(LZL)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));
BACKSET300:=BACKSET(LB,4);
BACKSET301:=BACKSET(LT,4);
LL:=FILTER(BACKSET300,3) AND BACKSET301 AND LZL;
QN:CROSS(AA,15) AND CC>BB,COLORYELLOW,LINETHICK4,STICK;
DRAWICON(QN,0.6,1);
DRAWICON(QN,0.8,1);
QQN:=COUNT(QN,3)=1 AND COUNT(LL,3)>=1 AND HJ,COLORRED;
BLZ:=VOL>REF(V,1)*1.9;
BLZ1:=VOL<REF(LLV(VOL,13),1);
BLZ2:=VOL<REF(LLV(VOL,55),1);
BL2:=BLZ AND REF(BLZ,1);
X:=CONST(DATE);
Y:=IF(DATE<X, 240, FROMOPEN);
ZR:=BARSCOUNT(CLOSE);
LD:=IF((VOL/Y*240)=CONST(LLV(VOL,60)) AND (VOL/Y*240)>CONST(LLV(VOL,ZR)),6,0);
ZD:=IF((VOL/Y*240)=CONST(LLV(VOL,60)) AND (VOL/Y*240)=CONST(LLV(VOL,ZR)),6,0);
DL:ZD OR LD;
DRAWTEXT(DL,0.4,'量底'),COLORYELLOW;
{DRAWICON(QQN>0,0.9,9);}
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
ND:=TJ202 AND TJ1 AND BT;
STICKLINE(ND,0,0.8,0.1,0),COLORRED;
DRAWTEXT(ND,0.7,'牛底'),COLORYELLOW;
YK:="KDJ.K"(89,3,3),COLOR00FF00;
YD:="KDJ.D"(89,3,3),COLOR00FF00,LINETHICK2;
ZK:="KDJ.K"(27,3,3),COLORRED;
Z1D:="KDJ.D"(27,3,3),COLORRED,LINETHICK2;
RK:="KD.K"(5,3,3),COLORWHITE;
RD:="KD.D"(5,3,3),COLORWHITE,LINETHICK2;
RJC:=IF(CROSS(RK,RD),50,0),COLORFFFFFF;
ZJC:=IF(CROSS(ZK,Z1D),30,0),COLORRED;
YJC:=IF(CROSS(YK,YD),20,0),COLOR0080FF;
HZ:=COUNT(MACD>0,4)=4 AND COUNT(MACD<REF(MACD,1),4)>2 AND MACD>REF(MACD,1)AND MA(C,5)>REF(MA(C,5),1);
NN:=(HZ AND RJC AND ZJC AND YJC) AND UP;
N22:NN;
DRAWTEXT(N22,0.6,'牛'),COLORRED;
DRAWTEXT(N22,0.3,'庄'),COLORRED;
DIFFV:=EMA(DCLOSE,9)-EMA(DCLOSE,27);
DEAV:=EMA(DIFFV,5);
A1V:=CROSS(DIFFV,DEAV);
DB2:=REF(CLOSE,A1V+1)>CLOSE AND DIFFV>REF(DIFFV,A1V+1) AND CROSS(DIFFV,DEAV);
DEA0:=EMA(DIFFV*100,9);
MACD0:=2*(DIFFV*100-DEA0);
HM:=(MACD0>REF(MACD0,1)*2.5 AND MACD0>15);
LHT:=DB2 AND HM;
DRAWTEXT(LHT,0.3,'牛势'),COLORRED;
DRAWICON(LHT,0.1,1);
KK:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.14159,COLORSTICK;
MAA:=(KK/REF(KK,1)>=2 AND KK>0 AND C>0 AND (H=HHV(H,10) OR C=HHV(C,10)))*80,STICK,COLORWHITE,LINETHICK3;
QMM:=(MA(C,30)>REF(MA(C,30),1) AND KK/REF(KK,1)>=2 AND KK>0 AND COUNT(KK<REF(KK,1),4)>=1
AND CROSS(KK,45) AND (H=HHV(H,10) OR C=HHV(C,10)))*100,COLORWHITE,LINETHICK2;
N:=14;MM:=6;
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD:=HIGH-REF(HIGH,1);
LD1:=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD1,HD,0),N);
DMM:=EXPMEMA(IF(LD1>0&&LD1>HD,LD1,0),N);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,MM);
ADXR:=EXPMEMA(ADX,MM);
MAI:=IF(CROSS(PDI,MDI) AND (C >1.05*REF(C,1) OR REF(C,1)>1.05*REF(C,2)) AND (V>2*REF(V,1) OR REF(V,1)>2*REF(V,2))AND MA(V,5)>MA(V,60) ,20,0),COLORRED,LINETHICK2;
RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1:=SMA(RSV9,3,1);
DK1:=K1-REF(K1,1),COLORSTICK;
MA10:=MA(CLOSE,10),;
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
Q5:=MA5>REF(MA5,1),;
Q10:=MA10>REF(MA10,1),;
Q20:=MA20>REF(MA20,1),;
Q30:=MA30>REF(MA30,1),;
Q60:=MA60>REF(MA60,1),;
XJQ:=(Q5 AND Q10)*0.5,;
JJD:=(H+L+C)/3;
QSX1:=HHV(MA((((LOW + HIGH) + CLOSE) / 3),8),60),COLORRED,LINETHICK2;
QSX2:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.18),8),20),COLORWHITE,LINETHICK2;
QSX3:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.258),8),10),COLORYELLOW,LINETHICK2;
QSX4:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.08),80),13),COLORLIMAGENTA,LINETHICK2;
ZQ1:=QSX1>REF(QSX1,1),;
ZQ2:=QSX2>REF(QSX2,1),;
ZQ3:=QSX3>REF(QSX3,1),;
ZQ4:=QSX4>REF(QSX3,1),;
SQ1:=ZQ1 AND ZQ2,;
SQ2:=ZQ2 AND ZQ3,;
SQ3:=ZQ2 AND ZQ3,;
SQ4:=ZQ3 AND ZQ4,;
Q3:=ZQ1 AND ZQ2 AND ZQ3,;
Q4:=ZQ1 AND ZQ2 AND ZQ3 AND ZQ4,;
QSWW:=SQ1 OR SQ2 OR SQ3 OR SQ4 OR Q3 OR Q4,;
VV:=(C+L+H)/3;
DSA:=SMA(XMA(VV,15),2,1)LINETHICK3;
DU1:=DSA*0.9518,COLORLICYAN,LINETHICK1;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
MA4:=MA(CLOSE,60);
Z5Q:=MA1>REF(MA1,1),;
Z10Q:=MA2>REF(MA2,1),;
Z20Q:=MA3>REF(MA3,1),;
Z60Q:=MA4>REF(MA4,1),;
DS:=Z5Q AND Z10Q AND Z60Q,;
ZSL:=Z5Q AND Z10Q AND Z20Q,;
DZSL:=Z10Q AND Z20Q AND Z60Q,;
DZSL2:=Z5Q AND Z10Q AND Z20Q AND Z60Q,;
ZZS:=ZSL AND DZSL AND DZSL2,;
ZZSL:=DS OR ZSL OR DZSL OR DZSL2 OR ZZS,;
QSZ:=(L<DU1 AND ZZSL AND QSWW AND C<DSA AND UP)*0.5,COLORYELLOW,LINETHICK2;
LO:=(L<DU1 AND C<DSA AND QSWW AND UP)*0.5,COLORMAGENTA,LINETHICK2,LINESTICK;
CJ:=QSZ AND LO AND H<DSA,COLORRED,;
A:=MA(C,30);
A1:=A*1.1;
A4:=A*0.9;
A2:=A1-(A1-A4)*0.191;
CCC:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A1,A4),LINETHICK3,COLORRED;
SSS:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A2,A4),LINETHICK3,COLORFFFFFF;
ZC:=CCC>SSS,;
ZA1:=CCC>REF(CCC,1),;
ZA2:=SSS>REF(SSS,1),;
ZA:=ZA1 AND ZA2,;
ZW:=(CJ AND ZC AND ZA) OR (LO AND ZC AND ZA),;
SSSSS:=((ZW AND XJQ) OR (LO AND XJQ) AND UP)*0.5,COLORLIRED,LINETHICK4,STICK;
DRAWICON(SSSSS>0,0.1,1);
{主力喷血选股}
DIF18:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA18:=EMA(DIF18,9);
AAA1:=(DIF18-DEA18)*2*60;
AA:=AAA1-REF(AAA1,1);
VAR18:=(CLOSE*2+HIGH+LOW)/4;
VAR28:=EMA(VAR18,13)-EMA(VAR18,34);
VAR38:=EMA(VAR28,5);
BB:=(VAR38-VAR28)*5,COLORGREEN,LINETHICK2;
CC:=(VAR28-VAR38)*5,COLORWHITE,LINETHICK2;
LZL:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);
LT:=IF(BARSLAST(LZL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LZL)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(LZL)=3 AND CLOSE>REF(HIGH,3),1,0)));
LB:=BARSLAST(LZL)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));
BACKSET300:=BACKSET(LB,4);
BACKSET301:=BACKSET(LT,4);
LL:=FILTER(BACKSET300,3) AND BACKSET301 AND LZL;
QN:CROSS(AA,15) AND CC>BB;
{超前红柱量}
{V1:=CLOSE/REF(CLOSE,3)>=1.1;
V2:=BACKSET(V1,2);}
{红柱信号:V2 AND COUNT(V2,2)=1;
DRAWTEXT(V2 AND COUNT(V2,2)=1,0.5,'红柱信号为1'),COLORFFFF00;}
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量}
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,3,-1),COLOR00C0C0;
VOL,VOLSTICK;
倍量:(VOL/REF(VOL,1)>2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>2),COLORFF00FF;
STICKLINE(倍量,0,V,3,0),COLORFF00FF;
地量:LLV(VOL,15)=VOL,COLORWHITE;
STICKLINE(地量,0,V,1,0),COLORWHITE;
三十地:LLV(VOL,30)=VOL,COLORFFDE00;
STICKLINE(三十地,0,V,3,0),COLOR008800;
倍缩量:VOL/REF(VOL,1)<0.5,COLORYELLOW;
STICKLINE(倍缩量,0,V,3,0),COLORYELLOW;
缩量涨:COUNT(C>REF(C,1),2)=2 AND COUNT(VOL<REF(VOL,1),2)=2,COLORGREEN;
STICKLINE(缩量涨,0,V,3,0),COLORGREEN;
黑跳: IF(LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1),0.5,0),COLORFF0080;
STICKLINE(黑跳,0,V,3,0),COLORFF0080;
红跳:IF(LOW>REF(HIGH,1) AND COUNT(OPEN<CLOSE,1),0.5,0),COLOR8000FF;
STICKLINE(红跳,0,V,3,0),COLOR8000FF;
真阳或假阴:=C>O OR C>REF(C,1);
收阳:= REF(真阳或假阴,3);
倍量1:=REF(倍量,3);
高量:=REF(V,3)>=HHV(V,7);
三日不破:= LLV(C,3)>=REF(L,3);
价升:=COUNT(C>=REF(C,1),3)=3;{收盘价逐升}
量缩:=COUNT(V<=REF(V,1),3)=3;
连阳:= COUNT(真阳或假阴,3)=3;
倍量将军柱:= 倍量1 AND 三日不破 AND 收阳;
高量将军柱:= 高量 AND 三日不破 AND 收阳;
将军柱:= 倍量将军柱 OR 高量将军柱;
黄金柱:将军柱 AND 价升 AND 量缩 AND 连阳 ,COLOR0077FF;
DRAWICON(黄金柱,V+0.1,1);
长阴短柱:C/REF(C,1)<=0.96 AND V<HHV(V,30)/1.9;
DRAWTEXT(长阴短柱 ,V,'!'),COLORLICYAN;
XGX7:=ABS((VOL-REF(VOL,7))/REF(VOL,7))<0.04 AND
VOL>1.8*REF(VOL,2) AND
REF(VOL,1)<REF(VOL,7) AND
REF(VOL,2)<REF(VOL,7) AND
REF(VOL,3)<REF(VOL,7) AND
REF(VOL,(7-3))<REF(VOL,7) AND
REF(VOL,(7-2))<REF(VOL,7) AND
REF(VOL,(7-1))<REF(VOL,7);
XGX8:=ABS((VOL-REF(VOL,8))/REF(VOL,8))<0.04 AND
VOL>1.8*REF(VOL,2) AND
REF(VOL,1)<REF(VOL,8) AND
REF(VOL,2)<REF(VOL,8) AND
REF(VOL,3)<REF(VOL,8) AND
REF(VOL,(8-3))<REF(VOL,8) AND
REF(VOL,(8-2))<REF(VOL,8) AND
REF(VOL,(8-1))<REF(VOL,8);
XGX9:=ABS((VOL-REF(VOL,9))/REF(VOL,9))<0.04 AND
VOL>1.8*REF(VOL,2) AND
REF(VOL,1)<REF(VOL,9) AND
REF(VOL,2)<REF(VOL,9) AND
REF(VOL,3)<REF(VOL,9) AND
REF(VOL,(9-3))<REF(VOL,9) AND
REF(VOL,(9-2))<REF(VOL,9) AND
REF(VOL,(9-1))<REF(VOL,9);
XGX10:=ABS((VOL-REF(VOL,10))/REF(VOL,10))<0.04 AND
VOL>1.8*REF(VOL,2) AND
REF(VOL,1)<REF(VOL,10) AND
REF(VOL,2)<REF(VOL,10) AND
REF(VOL,3)<REF(VOL,10) AND
REF(VOL,(10-3))<REF(VOL,10) AND
REF(VOL,(10-2))<REF(VOL,10) AND
REF(VOL,(10-1))<REF(VOL,10);
XGX11:=ABS((VOL-REF(VOL,11))/REF(VOL,11))<0.04 AND
VOL>1.8*REF(VOL,2) AND
REF(VOL,1)<REF(VOL,11) AND
REF(VOL,2)<REF(VOL,11) AND
REF(VOL,3)<REF(VOL,11) AND
REF(VOL,(11-3))<REF(VOL,11) AND
REF(VOL,(11-2))<REF(VOL,11) AND
REF(VOL,(11-1))<REF(VOL,11);
XGX12:=ABS((VOL-REF(VOL,12))/REF(VOL,12))<0.04 AND
VOL>1.8*REF(VOL,2) AND
REF(VOL,1)<REF(VOL,12) AND
REF(VOL,2)<REF(VOL,12) AND
REF(VOL,3)<REF(VOL,12) AND
REF(VOL,(12-3))<REF(VOL,12) AND
REF(VOL,(12-2))<REF(VOL,12) AND
REF(VOL,(12-1))<REF(VOL,12);
DRAWTEXT(XGX7,V,'7日平量柱'),COLORFFFF00;
DRAWTEXT(XGX8,V,'8日平量柱'),COLORFFFF00;
DRAWTEXT(XGX9,V,'9日平量柱'),COLORFFFF00;
DRAWTEXT(XGX10,V,'10日平量柱'),COLORFFFF00;
DRAWTEXT(XGX11,V,'11日平量柱'),COLORFFFF00;
DRAWTEXT(XGX12,V,'12日平量柱'),COLORFFFF00;
百日地量:LLV(VOL,100)=VOL,COLORWHITE;
STICKLINE(百日地量,0,V,3,0),COLORWHITE;
V1:=CLOSE/REF(CLOSE,3)>=1.1;
V2:=BACKSET(V1,2);
V3:=REF(CLOSE,3)*1.1;
V4:=CROSS(C,V3);
STICKLINE((V2 AND COUNT(V2,2)=1),VOL,0,3,0),COLOR00007D;
STICKLINE((V2 AND COUNT(V2,2)=1),VOL,0,2.4,0),COLOR0000A6;
STICKLINE((V2 AND COUNT(V2,2)=1),VOL,0,2,0),COLOR0000BB;
STICKLINE((V2 AND COUNT(V2,2)=1),VOL,0,1.4,0),COLOR0000DD;
STICKLINE((V2 AND COUNT(V2,2)=1),VOL,0,0.8,0),COLOR0000FF;
M5:MA(VOL,5),COLORFFFFFF;
M20:MA(VOL,20);
M55:MA(VOL,55),COLORGREEN,LINETHICK2;
DRAWICON(CROSS(V,M5) AND CROSS(V,M20) AND C > O,L*0.95,5);
2、醉全聚合
字面理解,这个公式就是组合了多个公式的大杂烩,近30款优质无漂移公式合并为一个副图公式。
源码是:
{醉全聚合}
ZD1:=STRCAT('风格:',FGBLOCK); ZD2:=STRCAT(ZD1,'概念:'); ZD3:=STRCAT(ZD2,GNBLOCK);
TARGET:=FINDSTR(ZD3,'减持') OR FINDSTR(ZD3,'预降') OR FINDSTR(ZD3,'减值') OR FINDSTR(ZD3,'质押');
DRAWGBK(TARGET,RGB(290,50,290),RGB(10,10,10),0,'背景图',0);
AQ:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;
BQ:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
DQ:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;
长期线:AQ+100,DOTLINE,COLOR9900FF;
短期线:=BQ+100,COLOR888888,COLORRED;
中期线:DQ+100,COLORYELLOW,DOTLINE;
80,COLORGRAY;
20,COLORGRAY;
10,COLORGRAY;
90,COLORGRAY;
见顶:=((REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线)) ,COLORGREEN;
顶部区域:=(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5
AND 短期线<中期线 AND 短期线<长期线+4,COLORGREEN;
顶部:=FILTER(顶部区域,4);
STICKLINE( {见顶 OR} 顶部,99,103,20,1 ),COLORRED,LINETHICK2;
DRAWBAND(中期线,RGB(150,50,50),长期线,RGB(0,0,255));
底部区域:=(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))
OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ,COLORGREEN;
STICKLINE( 底部区域,-4,0,22,0 ),COLORGREEN;
低位金叉:50*(长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线
AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线 OR REF( 短期线,1)<1 )),COLORRED;
STICKLINE( 低位金叉,0,5,11,0 ),COLORRED;
DRAWICON(CROSS(中期线,长期线),中期线,7);
DRAWICON(CROSS(长期线,中期线),长期线,8);
VAR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
VAR2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
VAR3:=SMA(VAR2,2,1);
天:=100+(-ABS(VAR1)),COLORRED;
下:=SMA(VAR3,2,1);
无:=ABS(VAR1),COLORGREEN;
敌:=50,COLORFFAA00,LINETHICK3;
A1:=80;
BA1:=20;
买:STICKLINE(CROSS(下,无),3,20,2,0),COLORRED,LINETHICK1;
STICKLINE(CROSS(下,无),20,25,2,0),COLORFF9900,LINETHICK1;
DRAWICON(CROSS(下,无),下,41);
DRAWTEXT(CROSS(下,无),30,'买 '),COLORFFFFCC;
卖:STICKLINE(CROSS(下,天),70,90,2,0),COLORRED,LINETHICK1;
STICKLINE(CROSS(下,天),90,99,2,0),COLORFF9900,LINETHICK1;
DRAWICON(CROSS(下,天),98,39);
DRAWTEXT(CROSS(下,天),96,' '),COLORFFFFCC;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),COLORCYAN;
D:SMA(K,M2,1),COLORFFFFFF;
DRAWICON(CROSS(K,D),D,1);
DRAWICON(CROSS(D,K),D,2);
DRAWRECTREL(0,5,180,999,RGB(10,0,0));
DRAWTEXT_FIX(1,0.1,0.01,1,GNBLOCK),COLORRED;
DRAWTEXT_FIX(1,0.18,0.01,1,HYBLOCK),COLORLIGREEN;
净资收益率:=(FINANCE(33)/FINANCE(34)*100);
LJ1:=IF(净资收益率>净资收益率大于,HZ-HZ*(净资收益率-净资收益率大于)/净资收益率,HZ);
净资产1:=IF(净资收益率>7,净资收益率,DRAWNULL);
净资产2:=IF(净资收益率<7,净资收益率,DRAWNULL);
销售毛利率:=((FINANCE(20)-FINANCE(21))/FINANCE(20)*100);
LJZ1:=IF(销售毛利率>销售毛利润大于,HZ-HZ*(销售毛利率-销售毛利润大于)/销售毛利率,HZ);
毛利润1:=IF(销售毛利率>17,销售毛利率,DRAWNULL);
毛利润2:=IF(销售毛利率<17,销售毛利率,DRAWNULL);
净利润比率:=(FINANCE(30)/FINANCE(20)*100);
LJA1:=IF(净利润比率>净利润比率大于,HZ-HZ*(净利润比率-净利润比率大于)/净利润比率,HZ);
净利润1:=IF(净利润比率>10,净利润比率,DRAWNULL);
净利润2:=IF(净利润比率<10,净利润比率,DRAWNULL);
主营利润率:=(FINANCE(23)/FINANCE(20)*100);
LJC1:=IF(主营利润率>主营利润率大于,HZ-HZ*(主营利润率-主营利润率大于)/主营利润率,HZ);
主营利润1:=IF(主营利润率>10,主营利润率,DRAWNULL);
主营利润2:=IF(主营利润率<10,主营利润率,DRAWNULL);
市净率:=CONST(DYNAINFO(7) / FINANCE(34));
LZJ4:=IF(市净率<市净率小于,HZ+HZ*(市净率-市净率小于)/市净率小于,HZ);
市净率1:=IF(市净率<20,市净率,DRAWNULL);
市净率2:=IF(市净率>20,市净率,DRAWNULL);
资产负债率:=FINANCE(9),NODRAW;
LJ4:=IF(资产负债率<资产负债率低于,HZ+HZ*(资产负债率-资产负债率低于)/资产负债率低于,HZ);
负债1:=IF(资产负债率<35,资产负债率,DRAWNULL);
负债2:=IF(资产负债率>35,资产负债率,DRAWNULL);
净利同增率:=FINANCE(43);
LJ7:=IF(净利同增率>利润同比大于,HZ*(净利同增率-利润同比大于)/净利同增率,HZ);
同比利润1:=IF(净利同增率>10,净利同增率,DRAWNULL);
同比利润2:=IF(净利同增率<10,净利同增率,DRAWNULL);
总收入增率:=FINANCE(44);
LJ9:=IF(总收入增率>营收增大于,HZ-HZ*(总收入增率-营收增大于)/总收入增率,HZ);
总收入1:=IF(总收入增率>4,总收入增率,DRAWNULL);
总收入2:=IF(总收入增率<4,总收入增率,DRAWNULL);
每股现金流:=FINANCE(25)/FINANCE(1),NODRAW;
LJ3:=IF(每股现金流>(FINANCE(38)*每股现金流大于/100),HZ-HZ*(每股现金流-(FINANCE(38)*每股现金流大于/100))/每股现金流,HZ);
现金1:=IF(每股现金流>1,每股现金流,DRAWNULL);
现金2:=IF(每股现金流<1,每股现金流,DRAWNULL);
DRAWTEXT_FIX(1,0.07,0.15,1,'净资收益率>15%:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.07,0.25,1,'销售毛利率>20%:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.07,0.35,1,'净利润率 :'),COLORYELLOW;
DRAWTEXT_FIX(1,0.07,0.45,1,'主营利润率>10%:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.07,0.55,1,'市净率:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.07,0.65,1,'资产负债率<30%:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.07,0.75,1,'净利同增率:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.07,0.85,1,'总收入增率:'),COLORYELLOW;
DRAWNUMBER_FIX(净资产1>7,0.1,0.15,1,净资收益率),COLORRED;
DRAWNUMBER_FIX(净资产2<7,0.1,0.15,1,净资收益率),COLORWHITE;
DRAWNUMBER_FIX(毛利润1>17,0.1,0.25,1,销售毛利率),COLORRED;
DRAWNUMBER_FIX(毛利润2<17,0.1,0.25,1,销售毛利率),COLORWHITE;
DRAWNUMBER_FIX(净利润2<10,0.1,0.35,1,净利润比率),COLORWHITE;
DRAWNUMBER_FIX(净利润1>10,0.1,0.35,1,净利润比率),COLORRED;
DRAWNUMBER_FIX(主营利润1>10,0.1,0.45,1,主营利润率),COLORRED;
DRAWNUMBER_FIX(主营利润2<10,0.1,0.45,1,主营利润率),COLORWHITE;
DRAWNUMBER_FIX(市净率1>0 AND 市净率1<20,0.1,0.55,1,市净率),COLORRED;
DRAWNUMBER_FIX(市净率2>20,0.1,0.55,1,市净率),COLORWHITE;
DRAWNUMBER_FIX(负债1<35,0.1,0.65,1,资产负债率),COLORRED;
DRAWNUMBER_FIX(负债2>35,0.1,0.65,1,资产负债率),COLORWHITE;
DRAWNUMBER_FIX(同比利润1>10,0.1,0.75,1,净利同增率),COLORRED;
DRAWNUMBER_FIX(同比利润2<10,0.1,0.75,1,净利同增率),COLORWHITE;
DRAWNUMBER_FIX(总收入1>4,0.1,0.85,1,总收入增率),COLORRED;
DRAWNUMBER_FIX(总收入2<4,0.1,0.85,1,总收入增率),COLORWHITE;
每股公积金:=CONST(FINANCE(18));
LJ5:=IF(每股公积金>(C*每股公积金大于/100),HZ-HZ*(每股公积金-(C*每股公积金大于/100))/每股公积金,HZ);
公积金1:=IF(每股公积金>2,每股公积金,DRAWNULL);
公积金2:=IF(每股公积金<2,每股公积金,DRAWNULL);
DRAWTEXT_FIX(1,0.15,0.15,1,'每股现金流 :'),COLORYELLOW;
DRAWTEXT_FIX(1,0.15,0.25,1,'每股公积金:'),COLORYELLOW;
DRAWNUMBER_FIX(现金1>1,0.17,0.15,1,每股现金流),COLORRED;
DRAWNUMBER_FIX(现金2<1,0.17,0.15,1,每股现金流),COLORWHITE;
DRAWNUMBER_FIX(公积金1>2,0.17,0.25,1,每股公积金),COLORRED;
DRAWNUMBER_FIX(公积金2<2,0.17,0.25,1,每股公积金),COLORWHITE;
流通市值:=(FINANCE(40)/100000000),NODRAW,COLORRED;
DRAWTEXT_FIX(1,0.14,0.35,1,'流通市值'),COLORYELLOW;
DRAWNUMBER_FIX(流通市值>100,0.17,0.35,1,流通市值),COLORMAGENTA;
DRAWNUMBER_FIX(流通市值<100,0.17,0.35,1,流通市值),COLORWHITE;
当日成交:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2),'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));
DRAWTEXT_FIX(1,0.14,0.45,1,'当日成交'),COLORYELLOW;
DRAWTEXT_FIX(1,0.17,0.45,1,当日成交),COLORGREEN;
C1_DIF:=(C-SMA(C,13,1))/SMA(C,13,1)*(100);
C1_DIF_3:=EMA(EMA(C1_DIF,3),3);
C1_DIF_7:=EMA(EMA(C1_DIF,3),7);
{IF(C1_DIF_3>REF(C1_DIF_3,1),C1_DIF_3,DRAWNULL),COLORLIRED,LINETHICK1;
IF(C1_DIF_7>REF(C1_DIF_7,1),C1_DIF_7,DRAWNULL),COLORYELLOW,LINETHICK1;}
C1_DEA:=REF(C1_DIF,1)<-13 AND REF(C1_DIF,1)/C1_DIF>1.23 AND C/REF(C,1)>1.03;
C1_KOV1:=IF(C1_DEA AND REF(C,1)<=COST(5),28,0);
春笋:=IF(C1_DEA AND REF(C,1)<=COST(5),1,0);
VAR22:=REF(CLOSE,1);
VAR23:=SMA(MAX(CLOSE-VAR22,0),7,1)/SMA(ABS(CLOSE-VAR22),7,1)*100;
VAR24:=SMA(MAX(CLOSE-VAR22,0),13,1)/SMA(ABS(CLOSE-VAR22),13,1)*100;
VAR25:=BARSLAST(VAR24<23)<=3 AND CROSS(VAR23,VAR24);
VAR26:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<-12.5;
VAR27:=LLV(LOW,5);
VAR28:=HHV(HIGH,10);
VAR29:=EMA((CLOSE-VAR27)/(VAR28-VAR27)*100,4);
VAR2A:=EMA(0.667*REF(VAR29,1)+0.333*VAR29,2);
千载难逢:=0-(-1)*VAR25 AND VAR26 AND CROSS(VAR29,VAR2A) AND VAR29<=25;
{精准抄底(三代)选股/副图源码 通达信 贴图 无未来 无密码}
X_1:=IF(HHV(ABS(HHV(CLOSE,6)/LLV(CLOSE,6)-1),6)>10/100,3,6);
X_2:=IF(MINUTE=5,X_1*48,IF(MINUTE=15,X_1*16,IF(MINUTE=30,X_1*8,IF(MINUTE=60,X_1*4,X_1))));
X_3:=VOL<MA(VOL,5) AND MA(VOL,5)<MA(VOL,55);
X_4:=CLOSE/REF(CLOSE,1)>1.025;
X_5:=MA(CLOSE,10)>CLOSE*1.05;
X_6:=MA(CLOSE,10)<CLOSE*1.1;
X_7:=MA(CLOSE,60)>CLOSE*1.28;
X_8:=X_3 AND X_4 AND X_5 AND X_6 AND X_7;
精准抄底三代:=X_2 AND X_8;
{STICKLINE(精准抄底三代,1,0,3,0),COLORLIRED;}
LM_VAR2:=CLOSE*VOL;
LM_VAR3:=EMA((MA(LM_VAR2,3)/MA(VOL,3)+MA(LM_VAR2,5)/MA(VOL,5)+MA(LM_VAR2,13)/MA(VOL,13)+MA(LM_VAR2,21)/MA(VOL,21))/4,1);
LM_VAR4:=1*LM_VAR3;
LM_VAR5:=LM_VAR3*0.92;
LM_VAR6:=EMA(CLOSE,34);
LM_VAR7:=MA(LM_VAR6*1.12,5);
LM_VAR8:=MA(LM_VAR6*0.82,5);
LM_VAR9:=CLOSE<LM_VAR8;
LM_VARA:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100)<(-0.4);
LM_XX:=LM_VARA AND CLOSE<LM_VAR8;
LM_VAR10:=REF(CLOSE,1);
LM_VAR14:=SMA(MAX(CLOSE-LM_VAR10,0),12,1)/SMA(ABS(CLOSE-LM_VAR10),12,1)*100;
LM_CC:=CROSS(LM_VAR14,20);
蓝马:=LM_XX AND LM_CC;
CJ_XG_1:=(C<DMA(EMA(C,21),SUM(V,8)/5/CAPITAL)*0.76 AND C<REF(H,13)*0.775);
CJ_XG_2:="VMACD.MACD"(13,63,10)>0;
CJ_XG_2_1:="VMACD.MACD"(13,63,10);
CJ_XG_3:=(MAX(ABS(H-AMOUNT/V/100),ABS(AMOUNT/V/100-L))+ABS((O+C)/2-AMOUNT/V/100))/(AMOUNT/V/100)*50>2.1 AND REF(L,1)/H<1.02 AND V<REF(V,1)*3;
CJ_XG_4:="KDJ.J"(28,14,7)<10;
KDJ28:="KDJ.J"(28,14,7);
{IF(KDJ28>REF(KDJ28,1),KDJ28,DRAWNULL),COLORLIRED,LINETHICK1;}
{DRAWICON(KDJ28>REF(KDJ28,1) AND COUNT(KDJ28>REF(KDJ28,1),7)=0,KDJ28,1);}
CJ_XG_5:=MA(V,10)<MA(V,50)*1.7;
超级选股:=CJ_XG_1 AND CJ_XG_2 AND CJ_XG_3 AND CJ_XG_4 AND CJ_XG_5;
{波段底部副图非常好,没有未来函数和漂移延迟,胜率86.67%,总次数435次,符合参选标准!!!}
XA_2:=(C-DMA(C,VOL/MA(VOL,4)/4))/DMA(C,VOL/MA(VOL,4)/4)*100<(-8) AND (DMA(C,VOL/MA(VOL,4)/4)-DMA(C,VOL/MA(VOL,32)/32))/DMA(C,VOL/MA(VOL,32)/32)*100<(-21) AND (OPEN-REF(C,1))/REF(C,1)>(-0.05) AND COUNT(C=OPEN,3)=0;
XA_2_1:=(C-DMA(C,VOL/MA(VOL,4)/4))/DMA(C,VOL/MA(VOL,4)/4)*100;
XA_2_1_1:=EMA(EMA(XA_2_1,3),3);
{IF(XA_2_1_1>REF(XA_2_1_1,1),XA_2_1_1,DRAWNULL),COLORLIRED,LINETHICK1;}
XA_2_2:=(DMA(C,VOL/MA(VOL,4)/4)-DMA(C,VOL/MA(VOL,32)/32))/DMA(C,VOL/MA(VOL,32)/32)*100;
XA_2_2_1:=EMA(XA_2_2,3);
{IF(XA_2_2_1>REF(XA_2_2_1,1),XA_2_2_1,DRAWNULL),COLORGREEN,LINETHICK1;}
XA_3:=SMA(SMA((INDEXC-LLV(INDEXL,275))/(HHV(INDEXH,275)-LLV(INDEXL,275))*100,50,1),40,1);
XA_4:=(C-MA(C,60))/MA(C,60)*100<(-23) AND XA_3<23 AND COUNT((C-MA(C,60))/MA(C,60)*100<(-20),2)=1 AND (OPEN>C OR OPEN<C) AND OPEN/REF(C,1)>0.96;
XA_5:=XA_2 OR XA_4;
{XA_6:=IF(DATETODAY(DATE)<11700,1,DRAWNULL);}
波段底部:=IF(XA_5=1,1,0){*XA_6};
FY_VAR1:=C/MA(C,40)*100<78;
FY_VAR1_1:=EMA(EMA(C/MA(C,40)*100,3),3);
{IF(FY_VAR1_1>REF(FY_VAR1_1,1),FY_VAR1_1,DRAWNULL),COLORLIRED,LINETHICK1;}
FY_VAR2:=C/MA(C,60)*100<74;
FY_VAR2_1:=EMA(EMA(C/MA(C,60)*100,3),3);
{IF(FY_VAR2_1>REF(FY_VAR2_1,1),FY_VAR2_1,DRAWNULL),COLORYELLOW,LINETHICK1;}
FY_VAR3:=HIGH>LOW*1.051;
FY_VAR4:=FY_VAR3 AND COUNT(FY_VAR3,5)>1;
FY_TYP:=(HIGH+LOW+C)/3;
FY_CCI:=(FY_TYP-MA(FY_TYP,14))/(0.015*AVEDEV(FY_TYP,14));
飞鹰:=FY_VAR4 AND (FY_VAR1 OR FY_VAR2) AND MA(C,27)/C>1.169 AND MA(C,17)/C>1.158 AND
C<MA(C,120) AND MA(C,60)<MA(C,120) AND MA(C,60)>MA(C,30) AND FY_CCI>-210;
DIF:=EMA(C,3)-EMA(C,13);
DEA:=EMA(DIF,9);MACD:=2*(DIF-DEA);
F1:=COUNT(L=LLV(L,60),10)>=1;
F2:=DIF<-0.09;
F3:=C>0 AND (C/O>1.03 OR C>1.05*REF(C,1));
F4:=CROSS(DIF,DEA);
B1:=MA(C,200);
B3:=B1*0.75;
B4:=IF(C<B3,1,0);
Y:=C>=REF(H,1)+0.01;
A:=H>REF(H,1);
双龙抄底:=F1 AND F2 AND F3 AND F4 AND B4 AND A ;
{9}
CAR0:=VOL<MA(VOL,5) AND MA(VOL,5)<MA(VOL,55);
CAR2:=CLOSE/REF(CLOSE,1)>1.028;
CAR3:=MA(CLOSE,10)>CLOSE*1.05;
CAR4:=MA(CLOSE,10)<CLOSE*1.1;
CAR5:=MA(CLOSE,60)>CLOSE*1.28;
金牛起步:=CAR0 AND CAR2 AND CAR3 AND CAR4 AND CAR5 ;
{0}
XA_1C:=EXIST((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5.6,100);
XA_2C:=DYNAINFO(4)>0;
XA_3C:=XA_1C AND XA_2C;
XA_4C:=REF(LOW,1);
XA_5C:=SMA(ABS(LOW-XA_4C),13,1)/SMA(MAX(LOW-XA_4C,0),13,1)*100;
XA_6C:=EMA(IF(CLOSE*1.2,XA_5C*13,XA_5C/13),13);
XA_7C:=LLV(LOW,34);
XA_8C:=HHV(XA_6C,34);
XA_9C:=IF(LLV(LOW,55),1,0);
XA_10C:=EMA(IF(LOW<=XA_7C,(XA_6C+XA_8C*2)/2,0),3)/618*XA_9C;
XA_11C:=MA(LOW,2)*0.96;
XA_12C:=MA(LOW,26)*0.85;
百分百抄底:=REF(XA_11C,1)<XA_12C AND REF(XA_11C,1)<XA_11C AND REF(XA_11C,1)<REF(XA_11C,2);
{大红马组合公式}
VAR10:=EMA(WINNER(C)*70,3);
VAR20:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,3);
VAR30:=C/MA(C,40)*100<76;
VAR40:=C/MA(C,60)*100<74;
VAR50:=H>L*1.051;
VAR60:=VAR50 AND COUNT(VAR50,5)>1;
VAR70:=(WINNER(C*125/100)-WINNER(C))*100<7.5;
VAR80:=1;
TZB:=-0.2*(VAR60 AND (VAR30 OR VAR40) AND VAR20<20 AND VAR10<20 AND VAR70 AND VAR80);
红马:=TZB<0 AND REF(TZB,1)=0 ;
风险值:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3)<=10;
机会来临:=REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1);
HJ_11:=CLOSE/MA(CLOSE,40);
HJ_12:=CLOSE/MA(CLOSE,60)*100<71;
大魔鬼:=CROSS(HJ_11,HJ_12) AND 风险值 AND 机会来临;
红马大魔鬼:=红马 OR 大魔鬼;
{*}
ETG1:=CLOSE/MA(CLOSE,30)*100<75;
ETG2:=CLOSE/MA(CLOSE,50)*100<78;
ETG3:=HIGH>LOW*1.053;
ETG4:=ETG3 AND COUNT(ETG3,5)>2;
ETG5:=ETG4 AND (ETG1 OR ETG2);
ETG6:=DMA(EMA(CLOSE,5),SUM(VOL,8)/2.8/CAPITAL);
ETG7:=(CLOSE-ETG6)/ETG6*100;
市场赢家:=REF(ETG7,1)<-34 AND ETG7>REF(ETG7,1) AND REF(ETG7,1)<REF(ETG7,2)
AND ETG7-REF(ETG7,1)>1.76 OR ETG5;
{海底活鱼}
KS13:=(C-SMA(C,13,1))/SMA(C,13,1)*(-100);
AAA:=REF(KS13,1)>13 AND REF(KS13,1)/KS13>1.23 AND C/REF(C,1)>1.03;
海底鱼:=IF(AAA AND REF(C,1)<COST(1),30,0);
海底活鱼:=市场赢家AND海底鱼;
{8}
BIAS0:=(C-MA(C,3))/MA(C,3)*100;
HXL:=V/CAPITAL*100;
D1:=INDEXC;
D2:=MA(D1,5);
DR2:=D2>1.05*D1;
E1:=(C-HHV(C,13))/HHV(C,13)*10;
E2:=(C-REF(C,21))/REF(C,21)*10;
E3:=MA(C,5);
SJ1:=DR2;
SJ2:=E2<-2.30;
SJ3:=BIAS0<-2.7;
SJ5:=SJ1 AND SJ2 AND SJ3;
SJ6:=CROSS(0.55,SJ5);
JS1:=CROSS(SJ6,0.5);JS2:=BARSLAST(JS1=1);
JS3:=JS2<=5 AND C<REF(C,JS2);
JS4:=SJ6 OR JS3;
率土之滨:=BARSLASTCOUNT(REF(JS4,1))=1 ;
抄底金:春笋 + 千载难逢+ 精准抄底三代 + 蓝马 + 超级选股 + 波段底部 + 飞鹰 + 双龙抄底 + 金牛起步 + 百分百抄底+红马大魔鬼+率土之滨+海底活鱼 >=3;
STICKLINE(抄底金,60,0,2,0),COLORMAGENTA;
STICKLINE(抄底金,40,0,3,0),COLORYELLOW;
STICKLINE(抄底金,90,0,1,0),COLORRED;
STICKLINE(抄底金,20,0,4,0),COLORBLUE;
公式解释:
图中红蓝带状线为趋势顶底公式,
青色和白色线为系统自带KD公式,
添加了财务公式,优质的财务红色数字显示提醒,差的财务以白色显示。
同时将论坛20余款成功率最高的抄底公式聚合一起,( 股民学院: )
当有3个抄底公式共振发出信号时以火箭图标提示,大致情况就是这样,更多价值发现自行研究!---价值就是共振信号
3、双抛物线,SAR和金手指组合
双抛物线,有未来函数
SAR是非常经典好用的指标,本主图带有两个未来函数,SAR指标本身就是有未来函数的,后加的“金手指”提示信号也是有未来函数的。
有未来函数不一定就不能用,特别是懂SAR这个经典常用指标的同学,而“金手指”这个未来函数,个人观察下来是属于收盘后确认的未来函数,盘中会变化,但好像没有出现后补的情况。( 股民学院: )
至于SAR指标的使用方法,有不了解这个指标的同学请自行百度一下,另外多对比这个指标的细节部分,什么时候会加速上涨。。。。。。我这里就不多说了哈。
主图中两条趋势线也是另外加的,EMA5 EMA10好像是,也就是5 10的收盘价线,不起大作用,只是为了方便观察趋势形态。
{公式名称: 双抛物线}
EMA5:EMA(CLOSE,5),COLORMAGENTA;
EMA10:EMA(CLOSE,10),COLORYELLOW;
A:IF(CLOSE>SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORRED;
B:IF(CLOSE<SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORCYAN;
VAR1:=CLOSE>SAR(4,2,20);
VAR2:=CLOSE<SAR(4,2,20);
买入:DRAWICON(CROSS(VAR1,VAR2),LOW-0.1,1);
卖出:DRAWICON(CROSS(VAR2,VAR1),HIGH+0.1,2);
STICKLINE(VAR1,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(VAR1,HIGH,LOW,0.5,0),COLOR000099;
STICKLINE(VAR2,CLOSE,OPEN,3,0),COLORFF0099;
STICKLINE(VAR2,HIGH,LOW,0.5,0),COLOR660099;
STICKLINE(VAR1,CLOSE,OPEN,3,0),COLOR9900CC;
STICKLINE(VAR1,CLOSE,OPEN,2.5,0),COLORFF00CC;
STICKLINE(VAR1,CLOSE,OPEN,1.9,0),COLORMAGENTA;
STICKLINE(VAR1,CLOSE,OPEN,1,0),COLORFF33FF;
STICKLINE(VAR1,CLOSE,OPEN,0.5,0),COLORFF66FF;
STICKLINE(VAR1,CLOSE,OPEN,0.2,0),COLORFF99FF;
STICKLINE(VAR2,CLOSE,OPEN,3,0),COLOR006633;
STICKLINE(VAR2,CLOSE,OPEN,2.5,0),COLOR339933;
STICKLINE(VAR2,CLOSE,OPEN,1.9,0),COLOR669933;
STICKLINE(VAR2,CLOSE,OPEN,1.5,0),COLOR33CC33;
STICKLINE(VAR2,CLOSE,OPEN,1,0),COLOR66CC33;
STICKLINE(VAR2,CLOSE,OPEN,0.2,0),COLORCCFF33;
STICKLINE(买入,OPEN,(CLOSE-OPEN)/2+OPEN,3,0),COLOR335555;
STICKLINE(买入,OPEN,(CLOSE-OPEN)/2+OPEN,2.2,0),COLOR338888;
STICKLINE(买入,OPEN,(CLOSE-OPEN)/2+OPEN,1.5,0),COLOR33AAAA;
STICKLINE(买入,OPEN,(CLOSE-OPEN)/2+OPEN,1,0),COLOR33CCCC;
STICKLINE(买入,OPEN,(CLOSE-OPEN)/2+OPEN,0,0),COLOR33EEEE;
STICKLINE(卖出,OPEN,(CLOSE-OPEN)/2+OPEN,3,0),COLOR550055;
STICKLINE(卖出,OPEN,(CLOSE-OPEN)/2+OPEN,2.2,0),COLOR880088;
STICKLINE(卖出,OPEN,(CLOSE-OPEN)/2+OPEN,1.5,0),COLORAA00AA;
STICKLINE(卖出,OPEN,(CLOSE-OPEN)/2+OPEN,1,0),COLORCC00CC;
STICKLINE(卖出,OPEN,(CLOSE-OPEN)/2+OPEN,0.5,0),COLOREE00EE;
修正SAR:SAR(5,4,7),POINTDOT,COLORBLUE,LINETHICK6;
VAR3:=EMA(CLOSE,14);
VAR4:=(VAR3-REF(VAR3,1))/REF(VAR3,1)*100;
出击:IF(VAR4>=0,REF(EMA(CLOSE,14),BARSLAST(CROSS(VAR4,0))+1),DRAWNULL),NODRAW;
休假:IF(VAR4<0,REF(EMA(CLOSE,14),BARSLAST(CROSS(0,VAR4))+1),DRAWNULL),NODRAW;
STICKLINE(CROSS(VAR4,0),CLOSE,OPEN,2,0),NODRAW;
STICKLINE(CROSS(0,VAR4),CLOSE,OPEN,2,0),NODRAW;
STICKLINE(CROSS(VAR4,0) OR CROSS(0,VAR4),REF(EMA(CLOSE,14),1),REF(EMA(CLOSE,14),1)*0.998,2,0),NODRAW;
STICKLINE(ISLASTBAR,REF(EMA(CLOSE,14),1),REF(EMA(CLOSE,14),1)*0.998,5,0),NODRAW;
VAR5:=EMA(CLOSE,14);
止盈线:EMA(CLOSE,7),NODRAW;
工作区:IF(CLOSE>=VAR5 AND EMA(CLOSE,14)>=EMA(CLOSE,25),VAR5,DRAWNULL),NODRAW;
准备区:IF(CLOSE>=VAR5 AND EMA(CLOSE,14)<EMA(CLOSE,25),VAR5,DRAWNULL),NODRAW;
休息区:IF(CLOSE<VAR5,VAR5,DRAWNULL),NODRAW;
生命:EMA(CLOSE,25),NODRAW;
IF(CROSS(VAR5,生命),VAR5*0.975,DRAWNULL),CIRCLEDOT,COLORRED;
DRAWICON(CROSS(CLOSE,生命) AND CLOSE>EMA(CLOSE,14),LOW*0.99,1);
DRAWICON(COUNT(CLOSE<EMA(CLOSE,7),2)=2 AND EMA(CLOSE,7)>EMA(CLOSE,14) AND COUNT(CLOSE>止盈线,6)>=3,HIGH*1.03,2);
DRAWICON(CROSS(VAR5,CLOSE) AND EMA(CLOSE,14)>EMA(CLOSE,25),HIGH*1.01,8);
IF(CROSS(生命,VAR5),HIGH*1.04,DRAWNULL),CIRCLEDOT,COLORGREEN;
MA1:MA(CLOSE,5),NODRAW;
MA2:MA(CLOSE,10),NODRAW;
MA3:MA(CLOSE,25),NODRAW;
MA4:MA(CLOSE,60),NODRAW;
MA5:MA(CLOSE,610),NODRAW;
DRAWTEXT_FIX(1,0,0,0,HYBLOCK),COLOR0080FF;
DRAWTEXT_FIX(1,0.14,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.06,0,EXTERNSTR(0,1)),COLORRED;
DRAWTEXT_FIX(1,0,0.12,0,EXTERNSTR(0,2)),COLORMAGENTA;
DRAWTEXT_FIX(1,0,0.18,0,EXTERNSTR(0,3)),COLORFF88FF;
DRAWTEXT_FIX(1,0,0.24,0,EXTERNSTR(0,5)),COLORLICYAN;
VAR6:=TROUGH(CLOSE,10,1)*1.02;
VAR7:=COUNT(LOW<VAR6,3);
VAR8:=TROUGH(CLOSE,10,1)*1.05;
DRAWTEXT(VAR7>=1 AND VAR6<MA3 AND CROSS(CLOSE,VAR8),LOW*0.9999,1),COLOR00CCCC;
DRAWTEXT(MA3>MA4 AND VAR7>=1 AND VAR6<MA3 AND CROSS(CLOSE,VAR8),LOW*0.9999,2),COLOR00CCCC;
金手指:VAR7>=1 AND VAR6<MA3 AND CROSS(CLOSE,VAR8),NODRAW,COLOR00AAAA;
STICKLINE(金手指,OPEN,CLOSE,2,0),COLOR008888;
STICKLINE(金手指,OPEN,CLOSE,1.6,0),COLOR00AAAA;
STICKLINE(金手指,OPEN,CLOSE,0.8,0),COLOR00CCCC;
STICKLINE(金手指,OPEN,CLOSE,0.2,0),COLORYELLOW;
VAR9:=REF(EVERY(CLOSE<OPEN,2),1) AND CLOSE>OPEN;
www58188com:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR10:=MA(CLOSE,5);
VAR11:=MA(CLOSE,10);
VAR12:=(VAR10-CLOSE)/CLOSE>3/100;
VAR13:=(VAR11-VAR10)/VAR10>0.03;
VAR14:=LLV(CLOSE,30)=LLV(CLOSE,120);
VAR15:=VAR12 AND VAR13 AND VAR14;
STICKLINE(BARSLAST(VAR15)<=2 AND VAR9,OPEN,CLOSE,2,0),COLORFF0066;
VAR16:=MA(CLOSE,13);
VAR17:=MA(CLOSE,33);
VAR18:=MA(CLOSE,55);
VAR19:=((CLOSE-REF(MA(CLOSE,20),1))/20+VAR16)*1.2;
DRAWTEXT(CROSS(VAR16,CLOSE) AND INDEXC>MA(INDEXC,13) AND VAR16>REF(VAR16,1) AND VOL<REF(VOL,1) AND VAR16>VAR18,LOW*0.985,3),COLORRED;
VAR20:=PEAK(CLOSE,10,1)*1.001;
VAR21:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
VAR22:=SMA(VAR21,3,1);
VAR23:=SMA(VAR22,3,1);
VAR24:=3*VAR22-2*VAR23;
VAR25:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
VAR26:=SMA(VAR25,3,1);
VAR27:=SMA(VAR26,3,1);
VAR28:=3*VAR26-2*VAR27;
VAR29:=IF(CROSS(VAR28,VAR24),HIGH,REF(HIGH,BARSLAST(CROSS(VAR28,VAR24))));
VAR30:=IF(CROSS(VAR24,VAR28),LOW,REF(LOW,BARSLAST(CROSS(VAR24,VAR28))));
VAR31:=VAR29<VAR20 AND CROSS(CLOSE,VAR20);
DRAWTEXT(VAR29<VAR20 AND CROSS(CLOSE,VAR20),LOW,4),COLORCC8868;
VAR32:=REF(VOL,1);
VAR33:=DVOL;
VAR34:=VAR33/VAR32;
VAR35:=VAR34-REF(VAR34,1);
VAR36:=REF(CLOSE,1);
VAR37:=DCLOSE;
VAR38:=(VAR37-VAR36)/VAR36*100;
VAR39:=VAR38-REF(VAR38,1);
VAR40:=CROSS(VAR35,500) AND CROSS(VAR39,10);
DRAWTEXT(VAR40=1,LOW*0.985,5),COLORCC8868;
DRAWICON(VAR40=1,LOW*0.99,11);
DRAWTEXT_FIX(1,0,0.7,0,6),COLORMAGENTA;
DRAWTEXT_FIX(1,0.08,0.7,0,EXTERNSTR(0,403)),COLORMAGENTA;
DRAWTEXT_FIX(1,0,0.75,0,7),COLORYELLOW;
DRAWTEXT_FIX(1,0.08,0.75,0,EXTERNSTR(0,402)),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.81,0,8),COLORLIBLUE;
DRAWTEXT_FIX(1,0.08,0.81,0,EXTERNSTR(0,404)),COLORLIBLUE;
DRAWTEXT_FIX(1,0,0.86,0,9),COLORGREEN;
DRAWTEXT_FIX(1,0.08,0.86,0,EXTERNSTR(0,401)),COLORGREEN;
【炒股入门知识学习】通达信源码精选:主力喷血,醉全聚合,双抛物线
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。
Copyright @ 2020
All Rights Reserved.版权所有 XMl地图