登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

来生缘

上邪!我欲与君相知长命无绝衰.山无陵江水为竭,冬雷震震夏雨雪,天地合,乃敢与君绝

 
 
 

日志

 
 

主图指标公式 压力与支撑  

2012-02-19 12:40:43|  分类: 炒股公式 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

主图指标公式   压力与支撑

1.主力显现(庄影、庄现、坚决全仓)-指标公式源码
H1:EMA(C,8); H2:EMA(H1,20);

VR1:=(HHV(H,36)-C)/(HHV(H,36)-LLV(L,36))*100;

VR2:=SMA(VR1,5,1); VR3:=SMA(VR2,8,1);

VAR4:=CROSS(VR2,VR3) AND VR3< 20; VAR5:=C>LLV(C,60)*1.13 AND VAR4;

VAR6:=IF(C>200,VAR4,VAR5); HH2:=XMA(CLOSE,14);

HH3:=MEMA(CLOSE,4);

VAR1:=(CLOSE-LLV(LOW,60.135))/(HHV(HIGH,60.135)-LLV(LOW,60))*80;

VAR2:=SMA(VAR1,7,1); VAR3:=SMA(VAR2,5,1);

AA1:=AMOUNT/VOL; BB1:=L<AA1*0.9;

CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;

DD1:=L<MA(C,5)*0.921;

EE1:=VOL<MA(V,5)*1.5;

FF1:=BB1 AND CC1 AND DD1 AND EE1; DRAWTEXT(FF1,L*0.99,'庄影'),COLORYELLOW;

AA:=CROSS(MA(C,5),MA(C,20)) AND CROSS(MA(C,5),MA(C,30)) AND CROSS(MA(C,5),MA(C,60));

BB:=MA(C,60)>MA(C,10) AND CROSS(MA(C,10),MA(C,30)) AND MA(C,30)>MA(C,20) AND ABS(MA(C,60)-MA(C,20))/MA(C,20)<0.05;

CC:=MA(C,30)>MA(C,5) AND CROSS(MA(C,5),MA(C,20)) AND MA(C,20)>MA(C,10), COLORYELLOW;

EE:=MA(C,20)>MA(C,5) AND CROSS(MA(C,5),MA(C,10)) AND MA(C,10)>MA(C,60) AND ABS(MA(C,20)-MA(C,60))/MA(C,60)<0.05;

DRAWICON(LONGCROSS(HH2,HH3,1),HH2*0.958,1),COLORRED;

DRAWICON(LONGCROSS(HH3,HH2,1),HH3*1.03,2),COLORGREEN;

DRAWTEXT(CROSS(VAR2,VAR3) AND VAR2<20 AND HH2>HH3,HH2*0.9165,'★坚决全 仓'),COLORMAGENTA;

低吸:0.82*MA(FORCAST(CLOSE,2),40),COLORF7E300,POINTDOT;

满仓:0.72*MA(FORCAST(CLOSE,2),40),POINTDOT,COLOR0000FF;
主图指标公式3 - 来生缘 - 来生缘

主图指标公式3 - 来生缘 - 来生缘
 

2.压力位支撑位画线指标源码 公开

参数         最小     最大     缺省

HIGHN        1.00   1000.00   10.00

LOWN         1.00   1000.00   10.00

LOWDISPLAY   0.00     10.00    0.00

ZGDISPLAY    0.00     10.00    0.00

MADISPLAY    0.00     10.00    0.00

 

AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);

QY:=BACKSET(AA,HIGHN+1);

CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);

DRAWICON(CC,H*1.02,2);

DDD:=BARSLAST(CC);

GDTS:=IF(CC,CURRBARSCOUNT,0);

DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);

DINGBU1:=REF(DINGBU,DDD+1);

GDCS1:=CONST(DINGBUTS);

DINGBUTS1:=REF(DINGBUTS,DDD+1);

GDCS2:=CONST(DINGBUTS1);

DINGBU2:=REF(DINGBU1,DDD+1);

MM:=IF(CURRBARSCOUNT>GDCS2,0,1);

高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2;

DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;

DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;

AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);

QY1:=BACKSET(AA1,LOWN+1);

CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);

DRAWICON(CC1,L*0.98,1);

DD1:=BARSLAST(CC1);

DDTS:=IF(CC1,CURRBARSCOUNT,0);

YDB:=IF(DD1,REF(L,DD1),L);

DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);

DDCS1:=CONST(DDTS1);

ZDB:=REF(YDB,DD1+1);

DDTS2:=REF(DDTS1,DD1+1);

DDCS2:=CONST(DDTS2);

低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2;

ZGSTAR:=(高点压力+低点支撑)/2;

ZGEND:=CONST((高点压力+低点支撑)/2);

STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);

中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK2;

DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,;

DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT; 
主图指标公式3 - 来生缘 - 来生缘


主图指标公式3 - 来生缘 - 来生缘

 

3.捉牛股(压力位、支撑位)-指标公式源码

STICKLINE(CLOSE<OPEN AND REF(CLOSE,1)>REF(OPEN,1),REF(CLOSE,1),REF(CLOSE,1),2,0),COLORFFFFFF;

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;
主图指标公式3 - 来生缘 - 来生缘

主图指标公式3 - 来生缘 - 来生缘

4.飞狐  有支撑和压力位的"超级主图"源码    (压力支撑位当时有误,我给删除了)

E:=(H+L+O+2*C)/5;

ZL:=2*E-L;

ZC:=2*E-H;

FZ:=E-(H-L);

MA5:MA(C,5),COLORF4E202;

MA6:=MA(CLOSE,6);

MA18:=MA(CLOSE,18);

MA13:MA(C,13),COLORRED;

BALANCE:=EMA(C,30);

UP:=BALANCE + 2*STD(C,30);

DOWN:=BALANCE- 2*STD(C,30);

VAR9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);

VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);

VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);

VARDQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);

Y1:=REF(EMA(DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9),3),1);

VAR1W:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));

VAR2W:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));

VAR3W:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));

VAR3P:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);

SS:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)<REF(MA((LOW+HIGH+CLOSE)/3,5),2);

SC:=L<HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND H>HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND C>REF(C,1) AND C>O;

MR:=SC AND COUNT(SS,2);

买:=MR AND NOT(REF(MR,1));

多方:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)

-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)

-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);

VAR1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*1;

VAR2:=SMA(VAR1,3,1)*100;

趋势线:=SMA((SMA(VAR2,3,1)*VAR1),3,1)*1;

VAR9:=CROSS(趋势线,(SMA(VAR2,3,1)*VAR1)) AND (SMA(VAR2,3,1)*VAR1)>8;

AAX:=AMOUNT/VOL;

BBX:=L<AAX*0.9;

CCX:=(C-REF(C,1))/REF(C,1)*100>1.2;

DDX:=L<MA(C,5)*0.921;

EEX:=VOL<MA(V,5)*1.5;

FFX:=BBX AND CCX AND DDX AND EEX;

A:=(3*C+L+O+H)/6;

X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+

14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)

+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+

REF(A,20))/210;

MTM:=C-REF(C,1);

DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);

CB:=EMA(X,13);

STICKLINE((CLOSE >BALANCE),BALANCE,BALANCE,1,0),LINETHICK2,COLOR0000FF;

STICKLINE((BALANCE > CLOSE),BALANCE,BALANCE,1,0),LINETHICK2,COLORFF6600;

STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR0000FF;

STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR0000FF;

STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),COLOR00FF00;

STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLOR00FF00;

STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLORFF7700;

STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORFF9900;

STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLORFFBB00;

STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORFFCC00;

STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFFDD00;

STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORFFEE00;

STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORFFFF00;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000055;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000BB;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000DD;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000FF;

红:=VAR9Q;

STICKLINE(VAR9Q,C,(O+C)/2,7,0),COLOR000055;

STICKLINE(VAR9Q,C,(O+C)/2,6,0),COLOR000066;

STICKLINE(VAR9Q,C,(O+C)/2,5,0),COLOR000077;

STICKLINE(VAR9Q,C,(O+C)/2,4,0),COLOR000099;

STICKLINE(VAR9Q,C,(O+C)/2,3,0),COLOR0000BB;

STICKLINE(VAR9Q,C,(O+C)/2,2,0),COLOR0000DD;   

STICKLINE(VAR9Q,C,(O+C)/2,1,0),COLOR0000FF;

粉:=VARAQ;

STICKLINE(VARAQ,C,(O+C)/2,7,0),COLORFF11FF;   

STICKLINE(VARAQ,C,(O+C)/2,6,0),COLORFF33FF;   

STICKLINE(VARAQ,C,(O+C)/2,5,0),COLORFF55FF;   

STICKLINE(VARAQ,C,(O+C)/2,4,0),COLORFF77FF;   

STICKLINE(VARAQ,C,(O+C)/2,3,0),COLORFF99FF;   

STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORFFBBFF;   

STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFFDDFF;

蓝:=VARDQ;

STICKLINE(VARDQ,O,(O+C)/2,7,0),COLORFF1100;

STICKLINE(VARDQ,O,(O+C)/2,6,0),COLORFF3300;

STICKLINE(VARDQ,O,(O+C)/2,5,0),COLORFF5500;

STICKLINE(VARDQ,O,(O+C)/2,4,0),COLORFF7700;

STICKLINE(VARDQ,O,(O+C)/2,3,0),COLORFF9900;

STICKLINE(VARDQ,O,(O+C)/2,2,0),COLORFFBB00;

STICKLINE(VARDQ,O,(O+C)/2,1,0),COLORFFDD00;

卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);

DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORWHITE;

DRAWTEXT(FILTER(买=1,5),LOW-0.03,'买'),COLORRED;

RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

J:=3*K-2*D;

BDGD:=HHV(J,2)=HHV(J,8) AND J>80;

注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);

加仓A:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;

跟:=IF(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),1,0);
主图指标公式3 - 来生缘 - 来生缘

主图指标公式3 - 来生缘 - 来生缘

5.加了支撑压力位CCI主图

AAF:LLV(LOW,34),LINETHICK1,COLORFFFFCC;   

BBF:MA(AAF,4),LINETHICK1,COLORYELLOW;    

TYP := (HIGH + LOW + CLOSE)/3;   

CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));   

差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;   

CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));   

差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;   

CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));   

差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;   

CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));   

差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;   

CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));   

差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;   

CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;   

AAA:=(3*C+H+L+O)/6;   

VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)   

+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;   

VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;   

VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;   

VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;   

VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;   

VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;   

短线:VAR1,COLORWHITE;   

中线:VAR6,COLORYELLOW;   

下跌:IF(VAR1=VAR6,VAR6, DRAWNULL),COLORGREEN;   

TJ1:= CCI1>差值4;   

立桩量:=FILTER(TJ1,0),NODRAW;   

TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);   

STICKLINE(立桩量 !=1,REF(HIGH,BARSLAST(立桩量)),   

REF(HIGH,BARSLAST(立桩量)),1,1),COLORCYAN;   

{STICKLINE(立桩量 !=1,REF(LOW,BARSLAST(立桩量)),   

REF(LOW,BARSLAST(立桩量)),1,1),COLORCYAN;}   

成立1:=TJ2=1;   

条件成立1:=FILTER(成立1,5);   

DRAWTEXT(条件成立1, REF(HIGH,BARSLAST(立桩量)),'看跌'),COLORLIBLUE;   

TJ11:= CCI1<-差值4 ;   

立桩量2:=FILTER(TJ11,0),NODRAW;   

TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,0);   

突破2:=TJ22=1;   

{STICKLINE(CLOSE AND 下跌!= VAR6,REF(HIGH,BARSLAST(立桩量2)),   

REF(HIGH,BARSLAST(立桩量2)),1,1),COLORYELLOW;}   

STICKLINE(CLOSE AND 下跌!= VAR6,REF(LOW,BARSLAST(立桩量2)),   

REF(LOW,BARSLAST(立桩量2)),1,1),COLORYELLOW;   

TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);   

成立2:=TJ=1;   

条件成立2:=FILTER(成立2,5);   

DRAWTEXT(条件成立2,REF(LOW,BARSLAST(立桩量2)),'看涨'),COLORLIMAGENTA;   

TJ111:=ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5);   

立桩量3:=FILTER(TJ111,3);   

TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(LOW,3),1,0)));   

成立:=TJ3=1;   

条件成立:=FILTER(成立,5);   

DRAWTEXT(条件成立 AND 下跌!= VAR6,L*0.97,'☆成立');   

LC:=REF(CLOSE,1);   

RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);   

FF:=EMA(CLOSE,3);   

MA15:=EMA(CLOSE,21);   

DRAWTEXT(CROSS(FF,MA15),BBF,'底背离'),COLORA6E500;   

DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR1880FF;   

X1:=(C+L+H)/3;   

BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;   

EMA8:=EMA(C,8);   

DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),   

EMA8,'∠45'),COLORWHITE;   

STICKLINE(1,C,O,2.8,0),COLOR666600;   

STICKLINE(立桩量,C,O,2.8,0),COLOR0000FF;   

STICKLINE(1,C,O,0,0),COLORCCCCCC;   

AA:=IF((CLOSE < 100),CLOSE,(CLOSE / 100));    

A:=INTPART(((4 * (LOG(AA) / LOG(2))) + 1));   

B:=((A - 1) / 4);   

支撑:IF((CLOSE > 100),(POW(2,B) * 100),POW(2,B)),CIRCLEDOT,LINETHICK1,COLORBROWN;   

压力:IF((CLOSE > 100),(POW(2,(B + (1 / 4))) * 100),POW(2,(B + (1 / 4)))),CIRCLEDOT,LINETHICK1,COLORFF5500;   

DRAWICON(REF(压力,1)=支撑,L*0.95,1);    

{DRAWICON(支撑>HHV(H,15),H*1.05,2);};    

DRAWTEXT(ISLASTBAR,支撑,'----支撑'),COLOR00AAFF;   

DRAWTEXT(ISLASTBAR,压力,'----压力'),COLORFF5500; 
主图指标公式3 - 来生缘 - 来生缘

主图指标公式3 - 来生缘 - 来生缘

 6.压力支撑价位自动画线通达信源码公式

市场成本:DMA(AMOUNT/V/100,V/CAPITAL),COLORWHITE,NODRAW;

中:=EMA((HHV(H,20/2)+LLV(L,20/2))/2,20/3),COLORMAGENTA;

预测:IF((H+L+C+O)/4>=中,FORCAST(H,5),FORCAST(L,5)),COLORYELLOW,NODRAW;

心:=(HIGH + LOW + CLOSE+OPEN)/4;

阻:2*心-LOW,COLORMAGENTA,NODRAW;

阻Ⅰ:L+(心-L)+(H-L),COLORGREEN,NODRAW;

阻Ⅱ:H+(心-L)+(C-L),COLORLIRED,NODRAW;

撑:L+(C-心),COLORLIGREEN,NODRAW;

撑Ⅰ:2*心-HIGH,COLORLIMAGENTA,NODRAW;

撑Ⅱ:心-(H-L)COLORRED,NODRAW;

H1:=REFDATE(市场成本,DATE);

H2:=REFDATE(预测,DATE);

H3:=REFDATE(阻,DATE);

H4:=REFDATE(阻Ⅰ,DATE);

H5:=REFDATE(阻Ⅱ,DATE);

H6:=REFDATE(撑,DATE);

H7:=REFDATE(撑Ⅰ,DATE);

H8:=REFDATE(撑Ⅱ,DATE);

STICKLINE(CURRBARSCOUNT=1,H1,H1,10,-2),COLORWHITE,LINETHICK2;

STICKLINE(CURRBARSCOUNT=1,H2,H2,10,-2),COLORYELLOW,LINETHICK2;

STICKLINE(CURRBARSCOUNT=1,H3,H3,10,-2),COLORMAGENTA,LINETHICK2;

STICKLINE(CURRBARSCOUNT=1,H4,H4,10,-2),COLORGREEN,LINETHICK2;

STICKLINE(CURRBARSCOUNT=1,H5,H5,10,-2),COLORLIRED,LINETHICK2;

STICKLINE(CURRBARSCOUNT=1,H6,H6,10,-2),COLORLIGREEN,LINETHICK2;

STICKLINE(CURRBARSCOUNT=1,H7,H7,10,-2),COLORLIMAGENTA,LINETHICK2;

STICKLINE(CURRBARSCOUNT=1,H8,H8,10,-2),COLORRED,LINETHICK2; 
主图指标公式3 - 来生缘 - 来生缘


主图指标公式3 - 来生缘 - 来生缘

7.全仓买入选股公式十主图源码

全仓买入:((CROSS(MA(CLOSE,5),MA(CLOSE,30))) AND CLOSE<MA(CLOSE,60));

上线:=SMA(C,6.5,1);

下线:=SMA(C,13.5,1);

上线1:=SMA(C,3,1);

下线1:=SMA(C,8,1);

DRAWTEXT( CROSS(上线,下线),LOW *0.98,'◎全仓买' ),COLOR00FF00;

DRAWTEXT(CROSS(下线1,上线1),H*1.02,'●清仓'),COLORYELLOW;

买卖线:MA(CLOSE,5),COLORGREEN,LINETHICK2;

买:IF(买卖线>REF(买卖线,1),买卖线,DRAWNULL),COLORRED,LINETHICK2;

卖:IF(买卖线<REF(买卖线,1),买卖线,DRAWNULL),COLORGREEN,LINETHICK2;

BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

UPR:=BBI+3*STD(BBI,13),LINETHICK2;

DWN:=BBI-3*STD(BBI,13);

安全:=MA(CLOSE,60),LINETHICK2;

LC:=REF(CLOSE,1);

RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

DRAWTEXT( CROSS(82,RSI) , HIGH*1.02,'◆减仓') ,COLORFF9966,LINETHICK2;

A7:=(2*C+H+L)/4;

操作1:=MA(A7,5)*1.03,LINETHICK2;

操作2:=MA(A7,5)*0.97,LINETHICK2;

VAR1:LLV(A7,21);

VAR2:HHV(A7,21);

 SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);

SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);

DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND VOL>=1.5*MA(VOL,5) AND

COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW*0.98,'◇买进') ,COLOR0099FF;

DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND

COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND

REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND

OPEN>REF(CLOSE,1),1,0),LOW*0.98,'◇买进') ,COLORYELLOW;

D:=MA(CLOSE,80)-MA(CLOSE,10)/3;

DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08

AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.98,'◆抄底'),COLORYELLOW;

VARE1:=EMA(C,3);

VARE2:=EMA(C,5);

VARE3:=EMA(C,10);

VAR4:=EMA(C,20);

VAR5:=EMA(C,30);

买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;

买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);

STICKLINE(买进条件,H,L,0.5,1),COLORRED,LINETHICK2;STICKLINE(买进条件,O,C,6,0),COLORRED,LINETHICK2;

加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;

加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);

STICKLINE(加码条件,H,L,0.5,1),COLORYELLOW,LINETHICK2;STICKLINE(加码条件,O,C,6,0),COLORYELLOW,LINETHICK2;
主图指标公式3 - 来生缘 - 来生缘

主图指标公式3 - 来生缘 - 来生缘
 

8.  压力与支撑(MA5-----MA120可根据个人喜好进行删减)

MA5:MA(CLOSE,5);

MA10:MA(CLOSE,10);

MA20:MA(CLOSE,20);

MA30:MA(CLOSE,30);

MA60:MA(CLOSE,60);

MA120:MA(CLOSE,120);

HIGHN:=10;

LOWN:=10;

HIGHDISPLAY:=0;

LOWDISPLAY:=0;

ZGDISPLAY:=0;

MADISPLAY:=0;

AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);

QY:=BACKSET(AA,HIGHN+1);

CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);

DRAWICON(CC,H*1.02,2);

DDD:=BARSLAST(CC);

GDTS:=IF(CC,CURRBARSCOUNT,0);

DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);

DINGBU1:=REF(DINGBU,DDD+1);

GDCS1:=CONST(DINGBUTS);

DINGBUTS1:=REF(DINGBUTS,DDD+1);

GDCS2:=CONST(DINGBUTS1);

DINGBU2:=REF(DINGBU1,DDD+1);

MM:=IF(CURRBARSCOUNT>GDCS2,0,1);

DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;

DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;

AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);

QY1:=BACKSET(AA1,LOWN+1);

CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);

DRAWICON(CC1,L*0.98,1);

DD1:=BARSLAST(CC1);

DDTS:=IF(CC1,CURRBARSCOUNT,0);

YDB:=IF(DD1,REF(L,DD1),L);

DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);

DDCS1:=CONST(DDTS1);

ZDB:=REF(YDB,DD1+1);

DDTS2:=REF(DDTS1,DD1+1);

DDCS2:=CONST(DDTS2);

DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,;

DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;

主图指标公式   压力与支撑 - 来生缘 - 来生缘

 

主图指标公式   压力与支撑 - 来生缘 - 来生缘

 

主图指标公式   压力与支撑 - 来生缘 - 来生缘

 

主图指标公式   压力与支撑 - 来生缘 - 来生缘

 

 9.短线压力与支撑

 

VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);

VAR2:=CROSS(VAR1,0.9);

VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);

VAR4:=CROSS(VAR3,0.9);

压力: REF(HIGH,BARSLAST(VAR2)), POINTDOT,COLORRED;

STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),5,0),COLORRED;

支撑: REF(LOW,BARSLAST(VAR4)), POINTDOT,COLORMAGENTA;

STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),5,0),COLORMAGENTA;

现价:CLOSE,POINTDOT,COLORWHITE;

主图指标公式   压力与支撑 - 来生缘 - 来生缘

  

 10.长线压力与支撑

MA5:MA(CLOSE,5);

MA10:MA(CLOSE,10);

MA20:MA(CLOSE,20);

MA30:MA(CLOSE,30);

MA60:MA(CLOSE,60);

MA120:MA(CLOSE,120);

HIGHN:=10;

LOWN:=10;

HIGHDISPLAY:=0;

LOWDISPLAY:=0;

ZGDISPLAY:=0;

MADISPLAY:=0;

AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);

QY:=BACKSET(AA,HIGHN+1);

CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);

DRAWICON(CC,H*1.02,2);

DDD:=BARSLAST(CC);

GDTS:=IF(CC,CURRBARSCOUNT,0);

DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);

DINGBU1:=REF(DINGBU,DDD+1);

GDCS1:=CONST(DINGBUTS);

DINGBUTS1:=REF(DINGBUTS,DDD+1);

GDCS2:=CONST(DINGBUTS1);

DINGBU2:=REF(DINGBU1,DDD+1);

MM:=IF(CURRBARSCOUNT>GDCS2,0,1);

DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;

DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;

AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);

QY1:=BACKSET(AA1,LOWN+1);

CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);

DRAWICON(CC1,L*0.98,1);

DD1:=BARSLAST(CC1);

DDTS:=IF(CC1,CURRBARSCOUNT,0);

YDB:=IF(DD1,REF(L,DD1),L);

DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);

DDCS1:=CONST(DDTS1);

ZDB:=REF(YDB,DD1+1);

DDTS2:=REF(DDTS1,DD1+1);

DDCS2:=CONST(DDTS2);

DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,;

DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;

 主图指标公式   压力与支撑 - 来生缘 - 来生缘

  

11.长短期压力与支撑相结合(如果不加参数,看到的是系统自带的颜色)

参数  最小     最大      缺省
        M1   2.00   300.00     5.00
        M2   2.00   300.00    10.00
        M3   2.00   300.00    20.00
        M4   2.00   300.00    30.00  
        M5   2.00   300.00    60.00
        M6   2.00   300.00   120.00

MA5:MA(CLOSE,5);

MA10:MA(CLOSE,10);

MA20:MA(CLOSE,20);

MA30:MA(CLOSE,30);

MA60:MA(CLOSE,60);

MA120:MA(CLOSE,120);

HIGHN:=10;

LOWN:=10;

HIGHDISPLAY:=0;

LOWDISPLAY:=0;

ZGDISPLAY:=0;

MADISPLAY:=0;

AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);

QY:=BACKSET(AA,HIGHN+1);

CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);

DRAWICON(CC,H*1.02,2);

DDD:=BARSLAST(CC);

GDTS:=IF(CC,CURRBARSCOUNT,0);

DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);

DINGBU1:=REF(DINGBU,DDD+1);

GDCS1:=CONST(DINGBUTS);

DINGBUTS1:=REF(DINGBUTS,DDD+1);

GDCS2:=CONST(DINGBUTS1);

DINGBU2:=REF(DINGBU1,DDD+1);

MM:=IF(CURRBARSCOUNT>GDCS2,0,1);

DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;

DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;

AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);

QY1:=BACKSET(AA1,LOWN+1);

CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);

DRAWICON(CC1,L*0.98,1);

DD1:=BARSLAST(CC1);

DDTS:=IF(CC1,CURRBARSCOUNT,0);

YDB:=IF(DD1,REF(L,DD1),L);

DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);

DDCS1:=CONST(DDTS1);

ZDB:=REF(YDB,DD1+1);

DDTS2:=REF(DDTS1,DD1+1);

DDCS2:=CONST(DDTS2);

DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,;

DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;

 

VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);

VAR2:=CROSS(VAR1,0.9);

VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);

VAR4:=CROSS(VAR3,0.9);

压力: REF(HIGH,BARSLAST(VAR2)), POINTDOT,COLORRED;

STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),5,0),COLORRED;

支撑: REF(LOW,BARSLAST(VAR4)), POINTDOT,COLORMAGENTA;

STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),5,0),COLORMAGENTA;

现价:CLOSE,POINTDOT,COLORWHITE;

 


主图指标公式   压力与支撑 - 来生缘 - 来生缘

 


12. 均线压力与支撑提示

市场成本:DMA(AMOUNT/V/100,V/CAPITAL),COLORWHITE,NODRAW;
中:=EMA((HHV(H,20/2)+LLV(L,20/2))/2,20/3),COLORMAGENTA;
预测:IF((H+L+C+O)/4>=中,FORCAST(H,5),FORCAST(L,5)),COLORYELLOW,NODRAW;
心:=(HIGH + LOW + CLOSE+OPEN)/4;
阻:2*心-LOW,COLORMAGENTA,NODRAW;
阻Ⅰ:L+(心-L)+(H-L),COLORGREEN,NODRAW;
阻Ⅱ:H+(心-L)+(C-L),COLORLIRED,NODRAW;
撑:L+(C-心),COLORLIGREEN,NODRAW;
撑Ⅰ:2*心-HIGH,COLORLIMAGENTA,NODRAW;
撑Ⅱ:心-(H-L)COLORRED,NODRAW;
H1:=REFDATE(市场成本,DATE);
H2:=REFDATE(预测,DATE);
H3:=REFDATE(阻,DATE);
H4:=REFDATE(阻Ⅰ,DATE);
H5:=REFDATE(阻Ⅱ,DATE);
H6:=REFDATE(撑,DATE);
H7:=REFDATE(撑Ⅰ,DATE);
H8:=REFDATE(撑Ⅱ,DATE);
STICKLINE(CURRBARSCOUNT=1,H1,H1,10,-2),COLORWHITE,LINETHICK2;
STICKLINE(CURRBARSCOUNT=1,H2,H2,10,-2),COLORYELLOW,LINETHICK2;
STICKLINE(CURRBARSCOUNT=1,H3,H3,10,-2),COLORMAGENTA,LINETHICK2;
STICKLINE(CURRBARSCOUNT=1,H4,H4,10,-2),COLORGREEN,LINETHICK2;
STICKLINE(CURRBARSCOUNT=1,H5,H5,10,-2),COLORLIRED,LINETHICK2;
STICKLINE(CURRBARSCOUNT=1,H6,H6,10,-2),COLORLIGREEN,LINETHICK2;
STICKLINE(CURRBARSCOUNT=1,H7,H7,10,-2),COLORLIMAGENTA,LINETHICK2;
STICKLINE(CURRBARSCOUNT=1,H8,H8,10,-2),COLORRED,LINETHICK2;

MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);

主图指标公式   压力与支撑 - 来生缘 - 来生缘

 

博庄的“黑马全息图”源码如下: (主副图上的显示都很小,未作图)

STICKLINE(C>0,0,100,100,0),COLOR334400;

上:=(SMA(HIGH,21,2) * 1.05);

DRAWTEXT(FILTER(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上)) AND (CLOSE < 上)),5),(HIGH + 0.05),'-减仓'),COLORFFFFFF;

下轨道:(SMA(LOW,21,2) * 0.969),POINTDOT,COLOR00FFFF;

BMA:=MA(CLOSE,118);

阻挡:=(SMA(HIGH,21,2) * 1.05);

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))));

压力位:IF(CROSS(J24,J),HIGH,REF(HIGH,BARSLAST(CROSS(J24,J)))),COLOR00FF00;

{U2L:=IF((CLOSE >= MA(CLOSE,20)),80,50);

L2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);

RH1:=IF(((J < U2L) AND (REF(J,1) >= U2L)),HHV(REF(HIGH,1),(BARSLAST(((J >= U2L) AND (REF(J,1) < U2L))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((J >= U2L) AND (REF(J,1) < U2L))) - 1)),BARSLAST(((J < U2L) AND REF(J,1)))));

RH4:=IF((HIGH > RH1),LOW,REF(LOW,BARSLAST((HIGH > RH1))));

RH42:=IF((HIGH > RH1),J,REF(J,BARSLAST((HIGH > RH1))));

RH5:=IF((((HIGH > RH4) AND (J < RH42)) AND (J < J24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH4) AND (J < RH42)) AND (J < J24)))));

RL1:=IF(((J > L2L) AND (REF(J,1) <= L2L)),LLV(REF(LOW,1),(BARSLAST(((J <= L2L) AND (REF(J,1) > L2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((J <= L2L) AND (REF(J,1) > L2L))) - 1)),BARSLAST(((J > L2L) AND REF(J,1)))));

RL4:=IF((LOW < RL1),HIGH,REF(HIGH,BARSLAST((LOW < RL1))));

RL42:=IF((LOW < RL1),J,REF(J,BARSLAST((LOW < RL1))));

RL5:=IF((((LOW < RL4) AND (J > RL42)) AND (J > J24)),LOW,REF(LOW,BARSLAST((((LOW < RL4) AND (J > RL42)) AND (J > J24)))));}

CB:=((AMOUNT / VOL) / 100);

CD:=((CB > HIGH) OR (CB < LOW));

黑马趋势:=MA(CLOSE,3);

MAP:=MA(CLOSE,8);

AA5:=MA(CLOSE,21);

AA10:MA(CLOSE,8),COLOR0000FF;

AA12:MA(CLOSE,12),COLOR0000FF;

BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);

BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);

MA13:=MA(CLOSE,13);

DRAWTEXT(FILTER(((((((CLOSE / OPEN) > 1.04) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (CLOSE > 下轨道)) AND ((AA10 - REF(AA10,1)) > 0)) AND (CLOSE < 上)),3),(LOW - 0.07),'追击'),COLORD1E768;

{STICKLINE((((AA12 <= AA10) AND (BB12 >= 1)) AND (BB10 >= 1)),AA10,AA12,4,0),COLOR0000FF;

STICKLINE((((AA12 >= AA10) AND (BB10 <= 1)) AND (BB10 <= 1)),AA10,AA12,4,0),COLOR00FF00;}

VARD:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);

支撑:=EMA(VARD,5);

短期底部:=LLV(OPEN,30);

{DRAWTEXT(((((((CROSS(黑马趋势,短期底部) AND ((RL5 - REF(RL5,1)) > 0)) AND ((黑马趋势 - REF(黑马趋势,1)) > 0)) AND (黑马趋势 > 1)) AND (LOW <= 支撑位)) AND (CLOSE > 支撑位)) AND (HIGH < 压力位)),(LOW - 0.15),'←黑马发现'),COLOR00FFFF;

DRAWTEXT((((((((CROSS(黑马趋势,RL5) AND ((黑马趋势 - REF(黑马趋势,1)) > 0)) AND (HIGH < 压力位)) AND (LOW <= 短期底部)) AND (CLOSE > 支撑位)) AND (CD < 1)) AND (CLOSE > OPEN)) AND (CLOSE > RL5)),LOW,'←短买'),COLOR00FF00;

DRAWTEXT(FILTER((((((((LOW <= 短期底部) AND ((CLOSE - REF(CLOSE,1)) > CLOSE)) AND ((MA(CLOSE,10) - REF(MA(CLOSE,10),1)) > 0)) AND (WINNER(CLOSE) < 0.05)) AND (短期底部 = RL5)) AND (LOW <= RL5)) AND (HIGH < 压力位)),3),LOW,'★机会难得'),COLORFFFFFF;

历史大底:DRAWTEXT(FILTER((((((LLV(LOW,0) AND (WINNER(CLOSE) < 0.08)) AND (LOW <= 短期底部)) AND (CLOSE > 短期底部)) AND (J < 80)) AND ((CLOSE / OPEN) > 1.08)),20),(LOW - 0.45),'★★历史大底');

DRAWTEXT(FILTER(((((((((LOW <= 短期底部) AND (CLOSE > 压力位)) AND ((AA5 - REF(AA5,1)) > 0)) AND (J < 80)) AND (CLOSE > 支撑位)) AND ((黑马趋势 - REF(黑马趋势,1)) > 0)) AND (WINNER(CLOSE) < 0.1)) AND (CLOSE > OPEN)),5),(LOW - 0.15),'★黑马登天'),COLORCDEEC5; }

X1:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);

X2:=EMA(X1,10);

X3:=REF(X2,1);

X4:=((REF(HIGH,1) + REF(LOW,1)) / 2);

X5:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));

X6:=REF(CLOSE,1);

X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);

X8:=CROSS(79,X7);

X9:=FILTER(X8,4);

MAP1:=MA(CLOSE,60);

均线30:=MA(CLOSE,30);

均线89:=MA(CLOSE,89);

均线:=MA(CLOSE,16);

 均线34:=MA(CLOSE,34);

均线55:=MA(CLOSE,55);

VAR1:=EMA(CLOSE,8);

VAR2:=EMA(VAR1,20);

VAR3:=CROSS(VAR1,VAR2);

VAR4:=(VAR1 < MA(CLOSE,60));

VAR5:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);

VAR6:=SMA(VAR5,5,1);

VAR7:=SMA(VAR6,8,1);

VAR8:=(CROSS(VAR6,VAR7) AND (VAR7 < 16));

VAR9:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR8);

VARA:=IF((CLOSE > 1000),VAR8,VAR9);

黑马起步:=(VAR3 AND VAR4);

逃遁:=VARA;

均线20:=MA(CLOSE,20);

均线120:=MA(CLOSE,120);

牛熊线:=MA(CLOSE,250);

VA:=CROSS(MA(CLOSE,19),MA(CLOSE,120));

VB:=(MA(CLOSE,20) > MA(CLOSE,120));

VC:=CROSS(MA(CLOSE,120),MA(CLOSE,89));

VD:=(MA(CLOSE,20) < MA(CLOSE,120));

VE:=CROSS(MA(CLOSE,20),MA(CLOSE,250));

VF:=(MA(CLOSE,20) > MA(CLOSE,250));

VG:=CROSS(MA(CLOSE,250),MA(CLOSE,20));

{DRAWTEXT(FILTER(((((((((OPEN > 均线120) AND (均线20 < 均线120)) AND (LOW <= 均线120)) AND ((均线20 - REF(均线20,1)) > 0)) AND (CLOSE > OPEN)) AND ((均线120 - REF(均线120,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE >= 均线120)),15),LOW,'★120跳马'),COLOR0089E0;

DRAWTEXT((((VA AND ((均线120 - REF(均线120,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE > OPEN)),LOW,'★宝马望月'),COLORFFFFFF;}

DRAWTEXT((((((均线 - REF(均线,1)) > 0) AND CROSS(均线20,均线120)) AND (LOW <= 均线120)) AND (CLOSE >= 均线120)),LOW,'三线开花'),COLORFFFFFF;

短期底部2:LLV(HIGH,30),LINETHICK2,COLOR0000FF;

上轨:(SMA(HIGH,21,2) * 1.092),POINTDOT,COLORFFFFFF;

中轨道:(SMA(HIGH,21,2) * 1.017),POINTDOT,COLORFFFFFF;

DRAWTEXT(FILTER(((((LOW < 下轨道) AND (CLOSE > MA(CLOSE,15))) AND (CLOSE > 短期底部2)) AND (HIGH < 压力位)),10),LOW,'★短线5%'),COLOR9DC522;

DRAWTEXT(((((((HIGH >= 均线120) AND (CLOSE < REF(CLOSE,1))) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上)) AND (CLOSE < 上)) AND (CLOSE < 均线120)),(HIGH + 0.05),'减仓'),COLOR00FF00;

DRAWTEXT(FILTER(((HIGH > 阻挡) AND (CLOSE < 阻挡)),5),(HIGH + 0.15),'←逃命');

DRAWTEXT(((VE > VG) AND (HIGH < 阻挡)),(LOW - 0.65),'★黑马短线'),COLOR00FFFF;

DRAWTEXT(FILTER(((((((((((OPEN < X2) AND (CLOSE > X2)) AND ((支撑 - REF(支撑,1)) > 0)) AND ((支撑 - REF(支撑,1)) > 0)) AND (CLOSE < 阻挡)) AND ((均线 - REF(均线,1)) > 0)) AND (CLOSE >= 均线)) AND (HIGH < 阻挡)) AND ((AA10 - REF(AA10,1)) > 0)) AND ((阻挡 - REF(阻挡,2)) > 0)),11),(LOW - 0.11),'★快马加鞭'),COLOR0000FF;

DRAWTEXT(FILTER(((((((OPEN < X2) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE > X2)) AND ((X2 - REF(X2,1)) > 0)) AND (HIGH < 阻挡)) AND ((CLOSE - REF(CLOSE,1)) > 0.35)),4),(LOW - 0.05),'★黑马狂奔'),COLORD18073;

DRAWTEXT((((((((CROSS(支撑,均线) AND (HIGH < 中轨道)) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE < 阻挡)) AND (CLOSE > OPEN)) AND (LOW <= X2)) AND (CLOSE >= X2)) AND CROSS(支撑,X2)),LOW,'★黑马起步'),COLOR00FFFF;

DRAWTEXT(CROSS(X4,X5),HIGH,'●减仓'),COLOR00B4FF;

DRAWTEXT(X9,(HIGH * 1.03),'出货'),COLOR9000F5;

DRAWTEXT((((黑马起步 > 0) AND (LOW <= X2)) AND ((均线 - REF(均线,1)) > 0)),(LOW - 0.11),'★黑马起步'),COLOR00FF00;

DRAWTEXT((逃遁 > 0),(HIGH * 1.14),'●逃命'),COLOR0000FF;

RDV:=SMA(LOW,8,1);

DRAWTEXT(((((CROSS(K,D) AND (CLOSE >= OPEN)) AND ((X2 - REF(X2,1)) > 0)) AND ((RDV - REF(RDV,1)) > 0)) AND (K <= 33)),(LOW - 0.08),'★黑马初现'),COLOR8500DE;

DRAWTEXT(FILTER((((((((LOW <= 短期底部) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE < 牛熊线)) AND (HIGH < 阻挡)) AND ((X2 - REF(X2,1)) > 0)) AND (CLOSE > OPEN)) AND (HIGH >= X3)),5),(LOW - 0.03),'←黑马筑底'),COLOR85B256;

RCK:=(SMA(LOW,21,2) * 0.95);

趋势线:=SMA(LOW,5,1);

大胆买入:DRAWTEXT(((CROSS(趋势线,RCK) AND (LOW <= X2)) AND ((X2 - REF(X2,1)) > 0)),LOW,'←★大胆买入'),COLORE50000;

B1:=(((HIGH + LOW) + CLOSE) / 3);

B6:=HHV(B1,(4 * 15));

B7:=LLV(B1,(4 * 15));

B8:=(B6 - B7);

飞龙顶底线:=(MA(((B1 - B7) / B8),2) * 80);

DRAWTEXT(FILTER(((((((飞龙顶底线 <= 1) AND (WINNER(CLOSE) < 0.02)) AND (HIGH < 趋势线)) AND (CLOSE > OPEN)) AND (LOW <= 短期底部)) AND (CLOSE > 短期底部)),8),(LOW - 0.02),'←黑马寻底'),COLORE7DD1F;

DRAWTEXT(FILTER((((((((LOW <= 短期底部) AND (WINNER(CLOSE) < 0.015)) AND ((OPEN / CLOSE) > 0.99)) AND ((J - REF(J,1)) > 0)) AND (CLOSE > OPEN)) AND (HIGH < 支撑位)) AND (CLOSE > 短期底部)),25),(LOW - 0.09),'←开始建仓'),COLOR00FFFF;

DRAWTEXT(FILTER((((((((LOW <= 均线30) AND ((AA10 - REF(AA10,1)) > 0)) AND ((均线 - REF(均线20,1)) > 0)) AND ((趋势线 - REF(趋势线,1)) > 0)) AND (CLOSE >= 均线30)) AND (WINNER(CLOSE) < 0.15)) AND ((CLOSE / OPEN) > 1.01)),3),LOW,'★天马奔月'),COLOR76B0FC;

DRAWTEXT((((((OPEN <= 均线) AND ((均线30 - REF(均线30,1)) > 0)) AND (CLOSE > 均线89)) AND (BB10 > 1)) AND ((CLOSE / OPEN) > 1.04)),LOW,'★天马过桥'),COLORCC99FF;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,9,0),COLORFF5B00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8,0),COLORFF6C00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),COLORFF7B00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),COLORFF9C00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),COLORFFBE00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3.5,0),COLORFFCC00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),COLORFFFF00;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,9,0),COLOR070084;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,8,0),COLOR0000A3;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7,0),COLOR0000B7;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),COLOR0000CD;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),COLOR0000E9;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),COLOR0754E9;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),COLOR076EF3;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),COLOR077BF3;

STICKLINE((CLOSE > OPEN),OPEN,LOW,1,0),COLOR0726CA;

STICKLINE((CLOSE > OPEN),CLOSE,HIGH,1,0),COLOR0726CA;

STICKLINE((OPEN > CLOSE),CLOSE,LOW,1,0),COLORDE9100;

STICKLINE((OPEN > CLOSE),OPEN,HIGH,1,0),COLORDE9100;

STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 阻挡)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,9,0),COLOR0090FF;

STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 阻挡)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,8,0),COLOR009FFF;

我理解的用法:

1、粗红线附近是最佳买点

2、上轨道和压力位是可以短出的位置

3、如果突破了上轨道和压力位,再次回踩并且不破的时候可以再次买入

 


  评论这张
 
阅读(9157)| 评论(2)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018