分享

通达信公式备份

 顺势而为2520 2011-06-26

通达信公式备份

 1.Q8899E操盘

A:=AMOUNT/V/100;VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);

操盘线:=EMA(((VARA/10)+EMA(A,10)),3);

行情线:=EMA(A,3);

重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;

趋势线:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK2;红升:IF(重心>=趋势线,趋势线,DRAWNULL),COLORRED,LINETHICK2;

蓝降:IF(重心<趋势线,趋势线,DRAWNULL),COLORBLUE,LINETHICK2;STICKLINE(行情线<操盘线,H,L,0,1),COLORGREEN;

STICKLINE(行情线<操盘线,C,O,2,1),COLORGREEN;STICKLINE(行情线>=操盘线,H,L,0,1),COLORRED;

STICKLINE(行情线>=操盘线,C,O,2,1),COLORRED;

压力:MA(REF(HHV(C,30),1),2),COLORWHITE;

支撑:MA(REF(LLV(C,30),1),2),COLORGRAY;

DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;

DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;

DRAWTEXT(CROSS(DA-DB,0),L*0.98,'★B'),COLORGRAY;

JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;DRAWTEXT(CROSS(84,JH),H*1.02,'☆S'),COLORMAGENTA;

涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);STICKLINE(涨停,O,C,2,0),COLORRED;

跌停:=IF((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);STICKLINE(跌停,O,C,2,1),COLORGREEN;

========================================== 

2.Q8899E买卖

{N 1,50,6.5  M 1,100,13.5  X 1,30,8  Q 1,30,6}

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

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

STICKLINE(上线>下线 , 上线,下线 ,2.5, 0),COLORRED,LINETHICK2;

STICKLINE(下线>上线,上线,下线,2.5,0),COLORYELLOW,LINETHICK2;

DRAWTEXT( CROSS(上线,下线),LOW *0.98,'☆买入' ),COLOR00FF00;

DRAWTEXT(CROSS(下线,上线),H*1.02,'☆卖出'),COLORMAGENTA;

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;

VAR1:=LLV(LOW,34);

VAR2:=HHV(HIGH,34);

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

3.Q8899E搏杀线

FD:=(H-L)/3;

OPEN1:=O>FD*2+L;

OPEN3:=O<FD+L;

OPEN2:=NOT(OPEN1 OR OPEN3);

CLOSE1:=C>FD*2+L;

CLOSE3:=C<FD+L;

CLOSE2:=NOT(CLOSE1 OR CLOSE3);

DFZD:=CLOSE1 OR (OPEN3 AND CLOSE2);

WQS1:=OPEN2 AND CLOSE2;

KFZD:=NOT(DFZD OR WQS1);

ZD:=(H+L)/2;

QSXS:=ZD>REF(H,1);

QSXX:=ZD<REF(L,1);

WQS2:=NOT(QSXS OR QSXX);

S1:=DFZD AND QSXS ;

S2:=KFZD AND QSXX ;

S3:=DFZD AND QSXX;

S4:=KFZD AND QSXS;

S5:=DFZD AND WQS2;

S6:=KFZD AND WQS2;

S7:=WQS1 AND (QSXS OR QSXX OR WQS2);

CG:MA(C,17),COLOR00AA00,LINETHICK2;

FL:HHV(CG,2),COLOR00AA00;

FS:IF(CG<FL,(CG-(FL-CG)),FL),COLOR00AA00,LINETHICK2;

IF(CG>=FL AND BARSCOUNT(C)>17,CG,DRAWNULL),COLORYELLOW,LINETHICK2;

IF(CG>=FL AND BARSCOUNT(C)>17,FS,DRAWNULL),COLORYELLOW,LINETHICK2;

AMV0:=VOL*(O+C)/2;

VAR0:=(CLOSE*2+HIGH+LOW)/4*VOL;

VAR1:=SUM(VAR0,89)/SUM(VOL,89);

VAR2:=IF(COUNT(VAR0>0,2)>=2,MA(CLOSE,89)*(1+(MA(VAR0,89)/REF(MA(VAR0,89),1)-1)/21),MA(CLOSE,89));

VAR3:=IF(COUNT(ABS(CLOSE-VAR1)>21,8)>=1 AND COUNT(CLOSE/REF(CLOSE,1)<0.8,8)<1 AND COUNT(VAR0>0,2)>=2,10,0);

VAR4:=IF(CLOSE>=VAR1 AND COUNT(VAR0>0,2)>=2,VAR1*1.001,IF(VAR0<0.1 AND COUNT(VAR0>0,2)<1.5,MA(CLOSE,89),VAR1*0.999));

VAR5:=IF(VAR3>0,VAR2,VAR4);

VAR6:=MA(CLOSE,89);

搏杀生命线:IF(VAR5/REF(VAR5,1)>1.1 OR VAR5/REF(VAR5,1)<0.9,VAR6,VAR5),COLORFF80FF,LINETHICK2;

=======================================

4.Q8899E操盘线2

工作线:=EMA(C,14);

止盈线:EMA(C,7),LINETHICK1,COLORGRAY;

工作区:IF(C>=工作线 AND EMA(C,14)>=EMA(C,25),工作线,DRAWNULL), COLORRED, LINETHICK2;

准备区:IF(C>=工作线 AND EMA(C,14)<EMA(C,25),工作线,DRAWNULL), COLORMAGENTA, LINETHICK2;

休息区:IF(C<工作线,工作线,DRAWNULL), COLORGREEN, LINETHICK2;

生命线:EMA(C,25),COLORYELLOW,LINETHICK2;

DRAWICON(CROSS(工作线,生命线),工作线*0.95,5);

DRAWICON(CROSS(C,生命线) AND C>EMA(C,14),L*0.96,1);

DRAWICON(COUNT(C<EMA(C,7),2)=2 AND EMA(C,7)>EMA(C,14) AND COUNT(C>止盈线,6)>=3,H*1.08,2);

DRAWTEXT(CROSS(工作线,C) AND EMA(C,14)>EMA(C,25),H*1.05,'止损'),COLORYELLOW;

DRAWICON(CROSS(生命线,工作线),HIGH*1.04,4);

=======================================

5.Q8899E红多绿

EMA13:=EMA(C,13),COLORWHITE;

EMA21:=EMA(C,21),COLORYELLOW;

EMA34:=EMA(C,34),COLORFF00FF;

EMA60:=MA(C,60),COLORFFCC66;

VAR2:=(2*CLOSE+HIGH+LOW)/4;

VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);

VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);

散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;

庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;

DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED;

DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;

DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);

DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);

VAR9:=CLOSE-REF(CLOSE,5);

VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);

VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);

卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);

DRAWICON(卖出<0,H+0.05,2); 买线:=EMA(CLOSE,2);

卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);

B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;

S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;

VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;

S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;

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

A1:EMA(A0,14)COLORBLUE,LINETHICK2;

A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;

A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;

A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;

看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};

逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};

买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;

卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;

STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;

STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;

STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;

STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;

===========================================

6.工作线/生命线

MA7:MA(C,7),COLOR00FF00,LINETHICK3;

MA14:MA(C,14),COLOR00FF00,LINETHICK3;

MA18:MA(C,18),COLOR00FF00,LINETHICK3;

MA25:MA(C,25),COLORFF6633,LINETHICK2;

MA56:MA(C,56),COLOR66DD66,LINETHICK2;

MA120:MA(C,120),COLOR00FF00,LINETHICK3;

IF(MA(C,7)>=REF(MA(C,7),1),MA(C,7),DRAWNULL),COLORRED,LINETHICK3;

IF(MA(C,14)>=REF(MA(C,14),1),MA(C,14),DRAWNULL),COLORRED,LINETHICK3;

IF(MA(C,18)>=REF(MA(C,18),1),MA(C,18),DRAWNULL),COLORRED,LINETHICK3;

IF(MA(C,25)>=REF(MA(C,25),1),MA(C,25),DRAWNULL),COLORYELLOW,LINETHICK2;

IF(MA(C,56)>=REF(MA(C,56),1),MA(C,56),DRAWNULL),COLORBC10FF,LINETHICK2;

IF(MA(C,120)>=REF(MA(C,120),1),MA(C,120),DRAWNULL),COLORRED,LINETHICK3;

========================================

7.牛熊分界线

MA30:MA(C,30),COLOR00FF00,LINETHICK3;

MA40:MA(C,40),COLOR00FF00,LINETHICK3;

MA181:MA(C,181),COLORFF6633,LINETHICK2;

MA200:MA(C,200),COLOR66DD66,LINETHICK2;

IF(MA(C,30)>=REF(MA(C,30),1),MA(C,30),DRAWNULL),COLORRED,LINETHICK3;

IF(MA(C,40)>=REF(MA(C,40),1),MA(C,40),DRAWNULL),COLORRED,LINETHICK3;

IF(MA(C,181)>=REF(MA(C,181),1),MA(C,181),DRAWNULL),COLORYELLOW,LINETHICK2;

IF(MA(C,200)>=REF(MA(C,200),1),MA(C,200),DRAWNULL),COLORBC10FF,LINETHICK2;

=========================================

8.金玉良缘

AA1:=MA(CLOSE,1);

AA2:=SMA(SMA(SMA(AA1,2,1),2,1),2,1);

AA3:=MA(AA2,3);

止损线:IF(LLV(MA(AA2,8),3)<AA2,LLV(MA(AA2,8),3),AA2),POINTDOT,LINETHICK1,COLORWHITE;

工作区:IF(AA2>AA3,AA2,DRAWNULL),COLOR0000DD,LINETHICK5;

休息区:IF(AA2<AA3,AA2,DRAWNULL),COLOR009900,LINETHICK4;

撑压线:HHV(MA(AA2,1),13),COLOR00FFFF;

AA4:=(2*CLOSE+HIGH+LOW)/4;

AA5:=MA(AA4,7);

AA6:=AA5-MA(AA4,7/2)<0;

AA7:=AA5-MA(AA4,7/2)>0;

AA8:=BARSLAST(AA6);

AA9:=0-BARSLAST(AA7);

STICKLINE(撑压线>AA2 AND AA2>AA3,撑压线,AA2,0,0),COLORBLUE;

STICKLINE(撑压线>AA3 AND AA2<AA3,撑压线,AA3,0,0),COLORBLUE;

AA0:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);

BB1:=REF(AA0,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

BB2:=REF(BB1,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

BB3:=REF(BB2,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

BB4:=REF(BB3,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

BB5:=REF(BB4,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

BB6:=REF(BB5,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

BB7:=REF(BB6,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

BB8:=REF(BB7,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

BB9:=REF(BB8,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

BB0:=REF(BB9,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

CC1:=REF(BB0,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

CC2:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);

CC3:=REF(CC2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

CC4:=REF(CC3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

CC5:=REF(CC4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

CC6:=REF(CC5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

CC7:=REF(CC6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

CC8:=REF(CC7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

CC9:=REF(CC8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

CC0:=REF(CC9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

DD1:=REF(CC0,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

DD2:=REF(DD1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

DD3:=REF(DD2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

DD4:=(REF((((((((((((CC2 OR CC3) OR CC4) OR CC5) OR CC6) OR CC7)

OR CC8) OR CC9) OR CC0) OR DD1) OR DD2) OR DD3),1) AND AA0);

DD5:=XMA(HIGH,21);

DD6:=MA(HIGH,9);

DD7:=LONGCROSS(DD5,DD6,1);

DD8:=(REF((((((((((((AA0 OR BB1) OR BB2) OR BB3) OR BB4) OR BB5) OR BB6)

OR BB7) OR BB8) OR BB9) OR BB0) OR CC3),1) AND CC4);

STICKLINE(DD8,OPEN,CLOSE,2,0),COLOR00FF00;

DD9:=AMOUNT/(VOL);

DD0:=MA(DD9,13);

EE1:=(CLOSE-DD0)/DD0*100;

EE2:=MA(CLOSE,22);

EE3:=EE2+2*STD(CLOSE,22);

EE4:=EE2-2*STD(CLOSE,22);

EE5:=(CLOSE-EE4)/(EE3-EE4);

EE6:=REF(EE1,1)<-15 AND REF(EE5,1)<0 AND EE1>REF(EE1,1);

EE7:=DD4 OR DD7;

STICKLINE(EE6>0,CLOSE,OPEN,4,0),COLOR0044CC;

STICKLINE(EE6>0,CLOSE,OPEN,2,0),COLOR3377DD;

STICKLINE(EE6>0,CLOSE,OPEN,1,0),COLOR66AAEE;

STICKLINE(EE6>0,CLOSE,OPEN,0,0),COLOR99DDFF;

STICKLINE(EE7,OPEN,OPEN+(CLOSE-OPEN)/3,5,0),COLOR003333;

STICKLINE(EE7,OPEN,OPEN+(CLOSE-OPEN)/3,4,0),COLOR116666;

STICKLINE(EE7,OPEN,OPEN+(CLOSE-OPEN)/3,3,0),COLOR229999;

STICKLINE(EE7,OPEN,OPEN+(CLOSE-OPEN)/3,2,0),COLOR33CCCC;

STICKLINE(EE7,OPEN,OPEN+(CLOSE-OPEN)/3,1,0),COLOR44FFFF;

====================================================

9.神密均线

B1:=EMA((2*CLOSE+HIGH+LOW)/4,5);

A1:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)>REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1,DRAWNULL),COLOR0000FF;

A2:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)<REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1,DRAWNULL),COLOR00FF00;

B2:=EMA((2*CLOSE+HIGH+LOW)/4,13);

A3:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)>REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2,DRAWNULL),COLOR0000FF;

A4:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)<REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2,DRAWNULL),LINETHICK2,COLOR00FF00;

B3:=REF(EMA((LOW+CLOSE+OPEN)/3,25),1);

A5:IF(EMA((LOW+CLOSE+OPEN)/3,28)>REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3,DRAWNULL),LINETHICK3,COLOR0000FF;

A6:IF(EMA((LOW+CLOSE+OPEN)/3,28)<REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3,DRAWNULL),LINETHICK3,COLOR00FF00;

B4:=(EMA(LOW,125)+EMA((CLOSE+LOW)/2,125))/2;

A7:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2>REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4,DRAWNULL),POINTDOT,COLOR0000FF;

A8:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2<REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4,DRAWNULL),POINTDOT,COLOR00FF00;

=======================================================

10.一招赢

MA5:MA(C,5);

MA10:MA(C,10);

MA30:MA(C,30);

MA60:MA(C,60);

MA250:MA(C,250);

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);

MACD1:=CROSS(DIFF,DEA) AND COUNT(MACD>0,1)=1;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

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

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

J:=3*K-2*D;

KDJ1:=CROSS(K,D) AND CROSS(J,D);

均线:=CROSS(MA(C,5),MA(C,10));

量线:=CROSS(MA(V,5),MA(V,10));

SCC:=MACD1 AND KDJ1 AND 均线 AND 量线;

SC1:=MACD1 AND KDJ1;

SC2:=均线 AND 量线;

SC3:=均线 AND MACD1;

SC4:=量线 AND KDJ1;

SC5:=均线 AND KDJ1;

SC6:=MACD1 AND 量线;

DRAWICON(SC1 OR SC2 OR SC3 OR SC4 OR SC5 OR SC6,L-0.20,9);{两个以上指标同时金叉显示9号图标}

DRAWICON(SCC,L-0.20,3);{四个指标同时金叉显示3号图标,便于区别};

======================================================

 

11.超准完美买卖

DRAWTEXT(CROSS(MA(C,10),MA(C,20)),H,'-------------'),LINETHICK2;

DRAWBAND(MA(C,3),RGB(230,0,250),HHV(MA(C,5),10),RGB(0,100,150));

MA5:MA(CLOSE,5);

MA10:MA(CLOSE,10);

MA20:MA(CLOSE,20);

MA30:MA(CLOSE,30);

MA60:MA(CLOSE,60),CIRCLEDOT;

MA120:MA(CLOSE,120),CIRCLEDOT;

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;

X:=LLV(J,2)=LLV(J,8);

Y:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,30,0);

主力:=EMA( (CLOSE-MA(CLOSE,3))/MA(CLOSE,3),2);

散户:=EMA( (CLOSE-MA(CLOSE,20))/MA(CLOSE,20),7);

VAR2:=LLV(LOW,10);

VAR3:=HHV(HIGH,25);

动能趋势线:=100*EMA((CLOSE-VAR2)/(VAR3-VAR2),4);

DRAWTEXT(CROSS(动能趋势线,70),HIGH*1.02,'险'),COLORGREEN;

DRAWTEXT(CROSS(动能趋势线,80),HIGH*1.02,'减'),COLOR00FF00;

DRAWTEXT(CROSS(动能趋势线,87.5),HIGH*1.02,'出局'),COLORWHITE;

DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20,LOW,'短进'),COLORFF00FF;

DRAWTEXT(CROSS(主力,散户) AND 主力<0 AND 散户<0,LOW,'见底'),COLORRED;

DRAWICON(CROSS(主力,散户) AND 主力<0 AND 散户<0,LOW,1);

涨家数:INDEXADV,NODRAW,COLORRED;

跌家数:INDEXDEC,NODRAW,COLORGREEN;

{涨跌停显示}

涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);

STICKLINE(涨停,O,C,3,0),COLORYELLOW;

ZDF:=(C-REF(C,1))/REF(C,1)*100;

STICKLINE(ZDF<-9.9,O,C,3,0),COLORGREEN;

{以下为K线上色}

STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;

STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR000055;

STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000077;

STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099;

STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;

STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;

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

STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;

STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;

STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;

STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;

STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;

STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;

STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;

STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;

STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR990000;

STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLORCC0000;

STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;

STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;

STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;

STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCYAN;

=======================================================

12.主图DXDD 

VAR1:=SMA(MAX(OPEN-REF(OPEN,1),0),6,1)/SMA(ABS(OPEN-REF(OPEN,1)),6,1)*100;

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

VAR3:=SMA(MAX(HIGH-REF(HIGH,1),0),6,1)/SMA(ABS(HIGH-REF(HIGH,1)),6,1)*100;

VAR4:=SMA(MAX(LOW- REF(LOW,1),0),6,1)/SMA(ABS(LOW- REF(LOW,1)),6,1)*100;

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

短:SMA(VAR5,5,1),COLORWHITE;

中:SMA(短,3,1),COLORYELLOW;

领先:3*短-2*中,COLORLIMAGENTA;

DRAWKLINE(VAR3,VAR1,VAR4,VAR2);

STICKLINE(短>0 AND 短-中>=0,79,80,6,0),COLORRED;

STICKLINE(短>0 AND 短-中<0,79,80,6,0),COLORYELLOW;

STICKLINE(短>0 AND 短-中>=0,49,50,6,0),COLORRED;

STICKLINE(短>0 AND 短-中<0,49,50,6,0),COLORYELLOW;

STICKLINE(短>0 AND 短-中>=0,9,10,6,0),COLORRED;

STICKLINE(短>0 AND 短-中<0,9,10,6,0), COLORYELLOW;

顶:95, LINETHICK2 ,COLOR55AA77;

底:10, LINETHICK2 ,COLOR55AA77;

============================

13.飘零盯庄

{N1 1 300 5  N2 1 300 10  N3 1 300 21  N4 1 300 60}

强支撑:EMA(CLOSE,N3)COLORRED,LINETHICK2;

牛熊线:EMA(CLOSE,N4),COLORGREEN,LINETHICK3;

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

操作: MA(VAR4,5),LINETHICK2,COLORMAGENTA;

拉升:HHV(操作,13),COLORBLUE,LINETHICK1;

压力:HHV(操作,60),COLORBLUE;

买卖:LLV(操作,13),LINETHICK1,COLOR00FF00;

底部支撑: LLV(LOW,60)*1.02,COLOR00CCFF;

顶部: HHV(HIGH,60)*0.98,COLORFFFFCC;

STICKLINE(操作>REF(操作,1),操作,操作+0.018,5,0),COLORYELLOW,LINETHICK4;

STICKLINE(拉升>REF(拉升,1),拉升,拉升+0.018,5,0),COLORYELLOW,LINETHICK2;

STICKLINE(拉升=REF(拉升,1),拉升,拉升,1,1),COLORRED;

STICKLINE(买卖=REF(买卖,1),买卖,买卖,1,1),COLORRED;

STICKLINE(买卖>REF(买卖,1),买卖,买卖+0.028,4,1),COLORF00FF0,LINETHICK2;

STICKLINE(顶部=REF(顶部,1),顶部,顶部,7,1),COLORRED;

STICKLINE(压力=REF(压力,1),压力,压力,7,1),COLORBLUE;

STICKLINE(底部支撑=REF(底部支撑,1),底部支撑,底部支撑,1,1),COLORRED;

===================

14.TDX攻防六线

估:=(2*CLOSE+LOW+HIGH)/4;

界:=SLOPE(CLOSE,21)*20+CLOSE;

文:=EMA(估,40)*0.85;

快线:EMA(CLOSE,3),COLORDDDDDD;

慢线:EMA(界,55),COLOR3300FF;

风险线:EMA(估,40)*1.15,POINTDOT,COLORFF33FF;

必卖线:EMA(估,55)*1.3,CIRCLEDOT,COLORYELLOW;

捞钱线:EMA(估,55),COLORWHITE,POINTDOT;

保本线:(捞钱线+文)/2,CIRCLEDOT,COLOR00FF33;

STICKLINE(C>=保本线 AND REF(C,1)<保本线 AND REF(C,2)>保本线,O,C,3,0),COLORRED;

STICKLINE(C>=保本线 AND REF(C,1)<保本线 AND REF(C,2)>保本线,L,H,0.2,0),COLORRED;

STICKLINE(FILTER(C>=捞钱线 AND L<捞钱线,2),O,C,3,0),COLORYELLOW;

STICKLINE(FILTER(C>=捞钱线 AND L<捞钱线,2),L,H,0.2,0),COLORYELLOW;

STICKLINE(FILTER(CROSS(必卖线,CLOSE),3),O,C,3,0),COLORGREEN;

STICKLINE(FILTER(CROSS(必卖线,CLOSE),3),L,H,0.2,0),COLORGREEN;

DRAWICON(C>=保本线 AND REF(C,1)<保本线 AND REF(C,2)>保本线,L*0.96,9);

DRAWICON(FILTER(C>=捞钱线 AND L<捞钱线,2),L*0.96,1);

DRAWICON(FILTER(CROSS(必卖线,CLOSE),3),H*1.03,2);

DRAWICON(FILTER(CROSS(风险线,CLOSE),2),H*1.01,8);

============================================

15.趋势的好指标

短趋势线:MA(CLOSE,13),COLORRED,LINETHICK3;

中线:=MA(CLOSE,33),LINETHICK1;

中趋势线:MA(CLOSE,55),LINETHICK1,COLORGRAY;

年线:MA(CLOSE,250),LINETHICK1,COLORLIGRAY,POINTDOT;

涨:IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),COLORRED,LINETHICK3;

平:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL),COLOR00FFFF,LINETHICK3;

跌:IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),COLORGREEN,LINETHICK3;

上极限:=((C-REF(MA(CLOSE,20),1))/20+短趋势线)*1.20;

 

DRAWTEXT(CROSS(短趋势线,C) AND INDEXC>MA(INDEXC,13) AND 短趋势线>REF(短趋势线 ,1) AND V<REF(V,1) AND 短趋势线>中趋势线 ,L*0.97,'买入'),COLORRED;

STICKLINE(CROSS(短趋势线,C) AND 短趋势线>REF(短趋势线 ,1) AND V<REF(V,1) AND 短趋势线>中趋势线 ,L,L*0.99,2,0),COLORYELLOW;

VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;

DRAWTEXT(VAR1>9 AND V<REF(V,1) AND FILTER(VAR1<REF(VAR1,1),5),H*1.02,'风险'),COLORYELLOW;

DRAWTEXT(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),H*1.06,'卖出'),COLORYELLOW;

VAR2:=HHV(VAR1>20,10);

DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18) AND V>REF(V,1),L*0.98,'反弹'),COLORRED;

DRAWTEXT(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),L*0.95,'抄底'),COLORYELLOW;

DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),H*1.1,'危险'),COLORYELLOW;

VAR12:=(HIGH - LOW);

VAR3:=ABS((OPEN - CLOSE));

VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));

VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);

VAR6:=((VAR3 / VAR12) * VOL);

VAR7:=((VAR4 / VAR12) * VOL);

VAR8:=((VAR5 / VAR12) * VOL);

VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));

VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);

DRAWTEXT((((((VAR6 > (MA(VOL,5) * 2)) AND 短趋势线>REF(短趋势线 ,1) AND (VAR6 >= VAR7)) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)) OR ((VOL > (MA(VOL,5) * 3)) AND VARB)) ,L*0.98,'主力介入'),COLORMAGENTA;

===========================

16.凯恩斯黄金线

七天线:EMA(C,7),COLORWHITE;

黄金线:(EMA(C,18)),POINTDOT,LINETHICK4,COLORYELLOW;

生命线:(MA(C,28)),COLORMAGENTA;

姊妹线:(EMA(C,56)),COLORCYAN;

多空线:(MA(C,120)),COLOR0099FF;

A3:=EMA((((SLOPE(C,21)) * 20) + C),68);

A4:=EMA(C,10);

A5:=REF(C,2);

A6:=((SMA((MAX((C - A5),0)),6,1)) / (SMA(ABS((C - A5)),6,1))) * 100;

A7:=IF(((A6 < (REF(A6,1))) AND (A6 > 79)),A6,0);

A8:=LLV(L,21);

A9:=HHV(H,21);

A10:=EMA((((CLOSE - A8) / (A9 - A8)) * 100),5);

A11:=EMA((((CLOSE - A8) / (A9 - A8)) * 50),13);

A12:=EMA(((0.667 * (REF(A10,1))) + (0.333 * A10)),2);

A13:=LLV(L,55);

A14:=HHV(H,34);

A15:=EMA((((C - A13) / (A14 - A13)) * 100),3);

A16:=(A11 + A15) / 2;

A17:=EMA(((0.667 * (REF(A15,1))) + (0.333 * A10)),2);

A18:=EMA(A16,5);

A19:=EMA(((0.667 * (REF(A18,1))) + (0.333 * A18)),2);

A20:=CROSS(A10,A11);

A21:=(CROSS(A10,A19)) AND (A19 < 30);

A22:=A21 * 0.6;

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

A24:=EMA(A23,6);

A25:=EMA(A24,5);

A26:=CROSS(A24,A25);

DRAWICON(A26,(LOW / 1.030),1),LINETHICK2,COLORMAGENTA;

DRAWTEXT(CROSS(A4,A3),L*0.88,'买!'),LINETHICK4,COLORYELLOW;

STICKLINE(((C >= 黄金线) AND (C >= O)),H,L,0,1),COLORRED;

STICKLINE(((C >= 黄金线) AND (C >= O)),O,C,2,1),COLORRED;

STICKLINE(((C >= 黄金线) AND (C <= O)),H,L,0,0),COLORRED;

STICKLINE(((C >= 黄金线) AND (C <= O)),O,C,2,0),COLORRED;

STICKLINE(((C < 黄金线) AND (C >= O)),H,L,0,1),COLORGREEN;

STICKLINE(((C < 黄金线) AND (C >= O)),O,C,2,1),COLORGREEN;

STICKLINE(((C < 黄金线) AND (C <= O)),H,L,0,0),COLORGREEN;

STICKLINE(((C < 黄金线) AND (C <= O)),O,C,2,0),COLORGREEN;

=================================================

17.天机均线

EMA250:MA(C,250),COLORRED;

EMA6:MA(C,6),COLORRED LINETHICK2;

EMA18:MA(C,18),COLORYELLOW;

EMA55:MA(C,55),COLORFF00FF;

EMA144:MA(C,144),COLORGREEN;

EMA288:MA(C,288),COLORBLUE;

中线【买入】:=COUNT(CLOSE<EMA18,5)=4 AND

CLOSE/EMA18>1.004 AND CROSS(CLOSE,EMA18) AND EMA18>=

REF(EMA18,1),LINETHICK,COLORRED;

DRAWTEXT(中线【买入】,LOW*0.95,' 中线【买入】'),COLORRED;

VL:=REF(LOW,1);

VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;

VAR14:=MA(VAR12,13);

VAR15:=LLV(LOW,34);

VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);

VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);

VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;

T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20);

DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;

DRAWTEXT(T,LOW-0.2,'|'),COLORFF00FF;

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

VAR22:=SMA(VAR21,3,1);

VAR23:=SMA(VAR22,3,1);

VAR24:=SMA(VAR23,3,1);

VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;

DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←抄底'),COLORRED;

DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'|'),COLORRED;

VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;

DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃顶'),COLORBLUE;

DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'|'),COLORBLUE;

================================================

18.四方力道

V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);

HY1:=REF(EMA(V1,3),1);

实时线:MA(CLOSE,1),COLOR006400;

神秘线:HY1,COLOR400080;

DRAWTEXT(CROSS(CLOSE,HY1),LOW*0.95,'B'),LINETHICK2,COLORYELLOW;

DRAWTEXT(CROSS(HY1,CLOSE),HIGH*1.08,'S'),LINETHICK3,COLORWHITE;

APP:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));

ZL:=IF((CLOSE > OPEN),(APP * (HIGH - LOW)),IF((CLOSE < OPEN),(APP * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));

SF:=IF((CLOSE > OPEN),(0 - (APP * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (APP * (HIGH - LOW))),(0 - (VOL / 2))));

库存能量:=MA((ZL + SF),2);

库存平均:=MA((ZL + SF),5);

DRAWTEXT(CROSS(库存能量,库存平均),L*0.97,''),COLORFF00FF,LINETHICK4;

====================================

 

19.黑马王2

N:=20;

N1:=7;

N2:=69;

T1:=IF((DATE<=1090314),1,0);

M3:=MA(CLOSE,3);

M8:MA(CLOSE,8),COLOR008000;

M13:MA(M8,13),COLOR0000FF;

M62:MA(M8,55),COLORF0F000;

VAR1:=MA(M13,62);

M81:MA(M62,81),COLOR00FFFF;

M144:MA(VAR1,144),LINETHICK2,COLOR0000FF;

M250:MA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;

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

VAR3:=(MA(VAR2,10))*(T1);

VAR4:=(REF(VAR3,1))*(T1);

STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF;

STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),COLORFF0000;

VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);

VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);

DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),'★'),COLOR00FFFF;

DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),'↓卖'),COLOR008000;

VAR7:=REF(CLOSE,1);

VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);

VAR9:=CROSS(N2,VAR8);

VARA:=(FILTER(VAR9,4))*(T1);

DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),COLORFFFFFF;

VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);

VARC:=LLV(LOW,34);

VARD:=HHV(HIGH,34);

VARE:=(MA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);

VARF:=(MA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);

DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),COLORFF00FF;

DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((VARE>VARF),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,'●买进'),COLOR00FFFF;

VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);

DRAWTEXT(IF((CLOSE<VAR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF;

=================================

20.一招定乾坤

MA5:MA(C,5);

MA10:MA(C,10);

MA30:MA(C,30);

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);

MACD1:=CROSS(DIFF,DEA) AND COUNT(MACD>0,1)=1;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

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

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

J:=3*K-2*D;

KDJ1:=CROSS(K,D) AND CROSS(J,D);

均线:=CROSS(MA(C,5),MA(C,10));

量线:=CROSS(MA(V,5),MA(V,10));

SCC:=MACD1 AND KDJ1 AND 均线 AND 量线;

SC1:=MACD1 AND KDJ1;

SC2:=均线 AND 量线;

SC3:=均线 AND MACD1;

SC4:=量线 AND KDJ1;

SC5:=均线 AND KDJ1;

SC6:=MACD1 AND 量线;

DRAWICON(SC1 OR SC2 OR SC3 OR SC4 OR SC5 OR SC6,L*0.92,25);

DRAWICON(SCC,L*0.92,3);

=======================

21.黄金黑牛

买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);

DRAWICON(BU,L-0.1,5);DRAWICON(SEL,H+0.1,6);

STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;

STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;

STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN;

STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORGREEN;

散户:EMA(CLOSE,5),COLORWHITE;操盘:MA(CLOSE,9),COLORCYAN,LINETHICK2;

界点:MA(CLOSE,20),COLORMAGENTA;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);日:=150;昨前:=3;高1:=REF(HHV(H,日),昨前);

低1:=REF(LLV(L,日),昨前);H1:=高1-(高1-低1)*0.191; H2:=高1-(高1-低1)*0.382;

H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618; H5:=高1-(高1-低1)*0.809;

顶:REFDATE(高1,DATE),COLORRED;一0.809:REFDATE(H1,DATE),COLORYELLOW;

二0.618:REFDATE(H2,DATE),COLORMAGENTA;三0.500:REFDATE(H3,DATE),COLORWHITE;

四0.382:REFDATE(H4,DATE),COLORGREEN;五0.191:REFDATE(H5,DATE),COLORYELLOW;

低:REFDATE(低1,DATE),COLORRED;

==============================

22.山还是山

山还是山:SMA(C,125,1),COLORYELLOW;

B1:=MA(C,1);

B2:SMA(SMA(SMA(B1,2,1),2,1),2,1),COLORRED;

SMA2:MA(B2,2),COLORCYAN;

箱顶:HHV(MA(B2,2),58),COLOR00AAFF;

IF(B2<SMA2,SMA2,DRAWNULL),COLORFFA93F,LINETHICK2;

10:=EMA(CLOSE,10);

25:EMA(CLOSE,25),COLORWHITE;

40:EMA(CLOSE,40),COLOR00AA00;

80:EMA(CLOSE,80),COLORFFFF00;

125:SMA(C,125,1),COLORYELLOW;

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

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

少爷分水岭:SMA(MA(C,5),430,1),COLORB48F33,LINETHICK2;

买:DRAWTEXT(CROSS(VAR1,MA(VAR3,VAR1)) AND B2>SMA2,(LOW * 0.97),'←⊙买'),COLORRED;

DRAWTEXT(CROSS(C,10) AND VAR3>1 AND B2>SMA2,L*0.99,'←※'),COLORWHITE,LINETHICK2;

DRAWTEXT(CROSS(C,25) AND VAR3>1 AND B2>SMA2,L*0.99,'←◇'),COLORGREEN,LINETHICK2;

DRAWTEXT(CROSS(C,40) AND VAR3>1 AND B2>SMA2,L*0.99,'←□'),COLORRED,LINETHICK2;

DRAWTEXT(CROSS(C,80) AND VAR3>1 AND B2>SMA2,L*0.99,'←○'),COLORCCFF66,LINETHICK2;

DRAWTEXT(CROSS(C,125) AND VAR1>1,L*0.99,'←△'),COLORYELLOW,LINETHICK2;

{牛熊界:MA(CLOSE,49),LINETHICK2,COLORGRAY;};

============================================

23.市场成本主图

市场成本1:="MCST";

DRAWICON(CROSS(C,市场成本1),L-0.20,1);{1号图标显示红箭头}

K1:=BACKSET(市场成本1>REF(市场成本1,1),2);

市场成本:IF(K1,市场成本1,DRAWNULL),COLORRED;

J1:MA(C,5);

J2:MA(C,20);

DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);

A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));

B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));

A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));

B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));

DRAWICON(B1>0,L-0.20,3);{MACD底背}

DRAWICON(B2>0,L-0.20,3);{KDJ底背}

DRAWICON(B1>0,L-0.20,3);{RSI底背}

DRAWICON(CROSS(DIFF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),L-0.20,4);

DRAWICON(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),L-0.20,5);

 

=====================================================

 

24.三线开花

MA20:MA(C,20),COLORWHITE,LINETHICK2;

MA120:MA(C,120),COLORFFCCCC,LINETHICK2;

MA250:MA(C,250),COLORFFCC66,LINETHICK2;

乖离线:=((C-REF(MA20,1))/20+MA20)*1.20;

TT1:=CROSS(MA20,MA120)  AND CROSS(MA20,MA250) AND V>REF(V,1);

TT2:=MA20>REF(MA20,2) AND V>REF(V,1) AND CROSS(C,MA20);

STICKLINE(TT1,L,L-0.09,4,0),COLORYELLOW;

DRAWTEXT(TT1,L-0.13,'金叉'),COLORYELLOW;

STICKLINE(CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20),L,L-0.09,4,0),COLORYELLOW;

DRAWTEXT(CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20),L-0.13,'并线开花'),COLORYELLOW;

STICKLINE(TT2,L,L-0.09,4,0),COLORYELLOW;

DRAWTEXT(TT2,L-0.13,'买点1'),COLORYELLOW;

STICKLINE(CROSS(C,乖离线),H,H+0.09,4,0),COLOR00FF00;

DRAWTEXT(CROSS(C,乖离线) ,H+0.13,'卖点'),COLOR00FF00;

STICKLINE(MA250>=REF(MA250,1) AND MA20>=REF(MA20,1) AND CROSS(C,MA250),L,L-0.09,4,0),COLORFFCC66;

DRAWTEXT(MA250>=REF(MA250,1) AND  MA20>=REF(MA20,1) AND CROSS(C,MA250),L-0.13,'牛象'),COLORFFCC66;

STICKLINE(MA120>=REF(MA120,1) AND CROSS(C,MA20) AND CROSS(C,MA120) AND V>REF(V,1),L,L-0.09,4,0),COLORFF00FF;

DRAWTEXT(MA120>=REF(MA120,1) AND CROSS(C,MA20) AND CROSS(C,MA120) AND V>REF(V,1),L-0.13,'买点2'),COLORFF00FF ;

A1:=SUM(AMOUNT,3)/SUM(VOL,3)/100;

A2:=SUM(AMOUNT,8)/SUM(VOL,8)/100;

A3:=SUM(AMOUNT,21)/SUM(VOL,21)/100;

DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));

DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);

V1:=C-(A1+MA(C,3))/2;

V2:=C-(A2+MA(C,8))/2;

V3:=C-(A3+MA(C,21))/2;

VA1:=(C+V3-V1+MACD);

VA4:=(C+V2-V1+MACD);

短线:EMA(VA1,6),LINETHICK2,COLORYELLOW;

=====================================

25.试金石

{试金石}{主图,参数缺省M为13,N为21}

M:=13; N:=21;

WH01:=MA(CLOSE,M)+MA(CLOSE,M)-REF(MA(CLOSE,M),1),COLORF4E202,LINETHICK2;

WH02:=IF(MA(CLOSE,M)<WH01,WH01,MA(CLOSE,M)),COLORF4E202,LINETHICK2;

WH03:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));

WH04:=MA(WH03,N);

WH05:=REF(CLOSE,1)-REF(WH04,1);

试金石:WH02-(EMA(CLOSE,3)-WH02),LINETHICK2,COLORFF8080;

生命线:HHV(WH05,N),COLORWHITE,LINETHICK2;

洗盘线:EMA(SLOPE(CLOSE,21)*20+CLOSE,55),COLORMAGENTA;

成本线:EMA((2*CLOSE+LOW+HIGH)/4,55),COLORYELLOW;

================================================

26.霸王庄

主力持仓:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);

指数趋势:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3);

强弱分界:=80;

主力筹码集中度:=WINNER(C)*100;

散筹筹码集中度:=(WINNER(C*1.1)-WINNER(C*0.9))*100;

{强势时候放心买}

QIANG:=(主力持仓-散筹筹码集中度)>20 AND (主力筹码集中度-散筹筹码集中度)>0 AND 主力持仓>50;

强庄坐镇:IF(QIANG,1,0);

DRAWTEXT(强庄坐镇,(LOW * 0.99),'●'),COLORYELLOW;

霸王庄:IF(QIANG AND 主力筹码集中度-散筹筹码集中度>20,1,0);

DRAWTEXT(霸王庄,(LOW * 0.97),'●'),COLORRED;

===========================================

27.东方求败

X311:=XMA(C,3);

J311:=(XMA(C,3)*3-(C+REF(C,1))/2+C)/3;

Y311:=IFF(CURRBARSCOUNT=1,J311,XMA(C,3));

X312:=XMA(Y311,3);

J312:=(XMA(Y311,3)*3-(Y311+REF(Y311,1))/2+Y311)/3;

Y312:=IFF(CURRBARSCOUNT=1,J312,X312);

X313:=XMA(Y312,3);

J313:=(XMA(Y312,3)*3-(Y312+REF(Y312,1))/2+Y312)/3;

Y313:=IFF(CURRBARSCOUNT=1,J313,X313);

X314:=XMA(Y313,3);

J314:=(XMA(Y313,3)*3-(Y313+REF(Y313,1))/2+Y313)/3;

Y314:=IFF(CURRBARSCOUNT=1,J314,X314);

X315:=XMA(Y314,3);

J315:=(XMA(Y314,3)*3-(Y314+REF(Y314,1))/2+Y314)/3;

Y315:=IFF(CURRBARSCOUNT=1,J315,X315);

X316:=XMA(Y315,3);

J316:=(XMA(Y315,3)*3-(Y315+REF(Y315,1))/2+Y315)/3;

Y316:=IFF(CURRBARSCOUNT=1,J316,X316);

X317:=XMA(Y316,3);

J317:=(XMA(Y316,3)*3-(Y316+REF(Y316,1))/2+Y316)/3;

Y317:=IFF(CURRBARSCOUNT=1,J317,X317);

X318:=XMA(Y317,3);

J318:=(XMA(Y317,3)*3-(Y317+REF(Y317,1))/2+Y317)/3;

Y318:=IFF(CURRBARSCOUNT=1,J318,X318);

X319:=XMA(Y318,3);

J319:=(XMA(Y318,3)*3-(Y312+REF(Y318,1))/2+Y318)/3;

Y319:=IFF(CURRBARSCOUNT=1,J319,X319);

X320:=XMA(Y319,3);

J320:=(XMA(Y319,3)*3-(Y319+REF(Y319,1))/2+Y319)/3;

Y320:=IFF(CURRBARSCOUNT=1,J320,X320);

X321:=XMA(Y320,3);

J321:=(XMA(Y320,3)*3-(Y320+REF(Y320,1))/2+Y320)/3;

Y321:=IFF(CURRBARSCOUNT=1,J321,X321);

X322:=XMA(Y321,3);

J322:=(XMA(Y321,3)*3-(Y321+REF(Y321,1))/2+Y321)/3;

Y322:=IFF(CURRBARSCOUNT=1,J322,X322);

X323:=XMA(Y322,3);

J323:=(XMA(Y322,3)*3-(Y322+REF(Y322,1))/2+Y322)/3;

Y323:=IFF(CURRBARSCOUNT=1,J323,X323);

X324:=XMA(Y323,3);

J324:=(XMA(Y323,3)*3-(Y323+REF(Y323,1))/2+Y323)/3;

Y324:=IFF(CURRBARSCOUNT=1,J324,X324);

X325:=XMA(Y324,3);

J325:=(XMA(Y324,3)*3-(Y324+REF(Y324,1))/2+Y324)/3;

Y325:=IFF(CURRBARSCOUNT=1,J325,X325);

X326:=XMA(Y325,3);

J326:=(XMA(Y325,3)*3-(Y325+REF(Y325,1))/2+Y325)/3;

Y326:=IFF(CURRBARSCOUNT=1,J326,X326);

X327:=XMA(Y326,3);

J327:=(XMA(Y326,3)*3-(Y326+REF(Y326,1))/2+Y326)/3;

Y327:=IFF(CURRBARSCOUNT=1,J327,X327);

X328:=XMA(Y327,3);

J328:=(XMA(Y327,3)*3-(Y327+REF(Y327,1))/2+Y327)/3;

Y328:=IFF(CURRBARSCOUNT=1,J328,X328);

X329:=XMA(Y328,3);

J329:=(XMA(Y328,3)*3-(Y328+REF(Y328,1))/2+Y328)/3;

Y329:=IFF(CURRBARSCOUNT=1,J329,X329);

X330:=XMA(Y329,3);

J330:=(XMA(Y329,3)*3-(Y329+REF(Y329,1))/2+Y329)/3;

Y330:=IFF(CURRBARSCOUNT=1,J330,X330);

X331:=XMA(Y330,3);

J331:=(XMA(Y330,3)*3-(Y330+REF(Y330,1))/2+Y330)/3;

Y331:=IFF(CURRBARSCOUNT=1,J331,X331);

X332:=XMA(Y331,3);

J332:=(XMA(Y331,3)*3-(Y331+REF(Y331,1))/2+Y331)/3;

Y332:=IFF(CURRBARSCOUNT=1,J332,X332);

X333:=XMA(Y332,3);

J333:=(XMA(Y332,3)*3-(Y332+REF(Y332,1))/2+Y332)/3;

Y333:=IFF(CURRBARSCOUNT=1,J333,X333);

X334:=XMA(Y333,3);

J334:=(XMA(Y333,3)*3-(Y333+REF(Y333,1))/2+Y333)/3;

Y334:=IFF(CURRBARSCOUNT=1,J334,X334);

X335:=XMA(Y334,3);

J335:=(XMA(Y334,3)*3-(Y334+REF(Y334,1))/2+Y334)/3;

Y335:=IFF(CURRBARSCOUNT=1,J335,X335);

X336:=XMA(Y335,3);

J336:=(XMA(Y335,3)*3-(Y335+REF(Y335,1))/2+Y335)/3;

Y336:=IFF(CURRBARSCOUNT=1,J336,X336);

X337:=XMA(Y336,3);

J337:=(XMA(Y336,3)*3-(Y336+REF(Y336,1))/2+Y336)/3;

Y337:=IFF(CURRBARSCOUNT=1,J337,X337);

X338:=XMA(Y337,3);

J338:=(XMA(Y337,3)*3-(Y337+REF(Y337,1))/2+Y337)/3;

Y338:=IFF(CURRBARSCOUNT=1,J338,X338);

X339:=XMA(Y338,3);

J339:=(XMA(Y338,3)*3-(Y338+REF(Y338,1))/2+Y338)/3;

Y339:=IFF(CURRBARSCOUNT=1,J339,X339);

X340:=XMA(Y339,3);

J340:=(XMA(Y339,3)*3-(Y339+REF(Y339,1))/2+Y339)/3;

Y340:=IFF(CURRBARSCOUNT=1,J340,X340);

X341:=XMA(Y340,3);

J341:=(XMA(Y340,3)*3-(Y340+REF(Y340,1))/2+Y340)/3;

Y341:=IFF(CURRBARSCOUNT=1,J341,X341);

X342:=XMA(Y341,3);

J342:=(XMA(Y341,3)*3-(Y341+REF(Y341,1))/2+Y341)/3;

Y342:=IFF(CURRBARSCOUNT=1,J342,X342);

X343:=XMA(Y342,3);

J343:=(XMA(Y342,3)*3-(Y342+REF(Y342,1))/2+Y342)/3;

Y343:=IFF(CURRBARSCOUNT=1,J343,X343);

X344:=XMA(Y343,3);

J344:=(XMA(Y343,3)*3-(Y343+REF(Y343,1))/2+Y343)/3;

Y344:=IFF(CURRBARSCOUNT=1,J344,X344);

X345:=XMA(Y344,3);

J345:=(XMA(Y344,3)*3-(Y344+REF(Y344,1))/2+Y344)/3;

Y345:=IFF(CURRBARSCOUNT=1,J345,X345);

X346:=XMA(Y345,3);

J346:=(XMA(Y345,3)*3-(Y345+REF(Y345,1))/2+Y345)/3;

Y346:=IFF(CURRBARSCOUNT=1,J346,X346);

X347:=XMA(Y346,3);

J347:=(XMA(Y346,3)*3-(Y346+REF(Y346,1))/2+Y346)/3;

Y347:=IFF(CURRBARSCOUNT=1,J347,X347);

X348:=XMA(Y347,3);

J348:=(XMA(Y347,3)*3-(Y347+REF(Y347,1))/2+Y347)/3;

Y348:=IFF(CURRBARSCOUNT=1,J348,X348);

X349:=XMA(Y348,3);

J349:=(XMA(Y348,3)*3-(Y348+REF(Y348,1))/2+Y348)/3;

Y349:=IFF(CURRBARSCOUNT=1,J349,X349);

X350:=XMA(Y349,3);

J350:=(XMA(Y349,3)*3-(Y349+REF(Y349,1))/2+Y349)/3;

Y350:=IFF(CURRBARSCOUNT=1,J350,X350);

X351:=XMA(Y350,3);

J351:=(XMA(Y350,3)*3-(Y350+REF(Y350,1))/2+Y350)/3;

Y351:=IFF(CURRBARSCOUNT=1,J351,X351);

X352:=XMA(Y351,3);

J352:=(XMA(Y351,3)*3-(Y351+REF(Y351,1))/2+Y351)/3;

Y352:=IFF(CURRBARSCOUNT=1,J352,X352);

X353:=XMA(Y352,3);

J353:=(XMA(Y352,3)*3-(Y352+REF(Y352,1))/2+Y352)/3;

Y353:=IFF(CURRBARSCOUNT=1,J353,X353);

X354:=XMA(Y353,3);

J354:=(XMA(Y353,3)*3-(Y353+REF(Y353,1))/2+Y353)/3;

Y354:=IFF(CURRBARSCOUNT=1,J354,X354);

X355:=XMA(Y354,3);

J355:=(XMA(Y354,3)*3-(Y354+REF(Y354,1))/2+Y354)/3;

Y355:=IFF(CURRBARSCOUNT=1,J355,X355);

X356:=XMA(Y355,3);

J356:=(XMA(Y355,3)*3-(Y355+REF(Y355,1))/2+Y355)/3;

Y356:=IFF(CURRBARSCOUNT=1,J356,X356);

X357:=XMA(Y356,3);

J357:=(XMA(Y356,3)*3-(Y356+REF(Y356,1))/2+Y356)/3;

Y357:=IFF(CURRBARSCOUNT=1,J357,X357);

X358:=XMA(Y357,3);

J358:=(XMA(Y357,3)*3-(Y357+REF(Y357,1))/2+Y357)/3;

Y358:=IFF(CURRBARSCOUNT=1,J358,X358);

X359:=XMA(Y358,3);

J359:=(XMA(Y358,3)*3-(Y358+REF(Y358,1))/2+Y358)/3;

Y359:=IFF(CURRBARSCOUNT=1,J359,X359);

X360:=XMA(Y359,3);

J360:=(XMA(Y359,3)*3-(Y359+REF(Y359,1))/2+Y359)/3;

Y360:=IFF(CURRBARSCOUNT=1,J360,X360);

X361:=XMA(Y360,3);

J361:=(XMA(Y360,3)*3-(Y360+REF(Y360,1))/2+Y360)/3;

Y361:=IFF(CURRBARSCOUNT=1,J361,X361);

X362:=XMA(Y361,3);

J362:=(XMA(Y361,3)*3-(Y361+REF(Y361,1))/2+Y361)/3;

Y362:=IFF(CURRBARSCOUNT=1,J362,X362);

X363:=XMA(Y362,3);

J363:=(XMA(Y362,3)*3-(Y362+REF(Y362,1))/2+Y362)/3;

Y363:=IFF(CURRBARSCOUNT=1,J363,X363);

X364:=XMA(Y363,3);

J364:=(XMA(Y363,3)*3-(Y363+REF(Y363,1))/2+Y363)/3;

Y364:=IFF(CURRBARSCOUNT=1,J364,X364);

X365:=XMA(Y364,3);

J365:=(XMA(Y364,3)*3-(Y364+REF(Y364,1))/2+Y364)/3;

Y365:=IFF(CURRBARSCOUNT=1,J365,X365);

X366:=XMA(Y365,3);

J366:=(XMA(Y365,3)*3-(Y365+REF(Y365,1))/2+Y365)/3;

Y366:=IFF(CURRBARSCOUNT=1,J366,X366);

X367:=XMA(Y366,3);

J367:=(XMA(Y366,3)*3-(Y366+REF(Y366,1))/2+Y366)/3;

Y367:=IFF(CURRBARSCOUNT=1,J367,X367);

X368:=XMA(Y367,3);

J368:=(XMA(Y367,3)*3-(Y367+REF(Y367,1))/2+Y367)/3;

Y368:=IFF(CURRBARSCOUNT=1,J368,X368);

X369:=XMA(Y368,3);

J369:=(XMA(Y368,3)*3-(Y368+REF(Y368,1))/2+Y368)/3;

Y369:=IFF(CURRBARSCOUNT=1,J369,X369);

X370:=XMA(Y369,3);

J370:=(XMA(Y369,3)*3-(Y369+REF(Y369,1))/2+Y369)/3;

Y370:=IFF(CURRBARSCOUNT=1,J370,X370);

X371:=XMA(Y370,3);

J371:=(XMA(Y370,3)*3-(Y370+REF(Y370,1))/2+Y370)/3;

Y371:=IFF(CURRBARSCOUNT=1,J371,X371);

X372:=XMA(Y371,3);

J372:=(XMA(Y371,3)*3-(Y371+REF(Y371,1))/2+Y371)/3;

Y372:=IFF(CURRBARSCOUNT=1,J372,X372);

X373:=XMA(Y372,3);

J373:=(XMA(Y372,3)*3-(Y372+REF(Y372,1))/2+Y372)/3;

Y373:=IFF(CURRBARSCOUNT=1,J373,X373);

X374:=XMA(Y373,3);

J374:=(XMA(Y373,3)*3-(Y373+REF(Y373,1))/2+Y373)/3;

Y374:=IFF(CURRBARSCOUNT=1,J374,X374);

X375:=XMA(Y374,3);

J375:=(XMA(Y374,3)*3-(Y374+REF(Y374,1))/2+Y374)/3;

Y375:=IFF(CURRBARSCOUNT=1,J375,X375);

X376:=XMA(Y375,3);

J376:=(XMA(Y375,3)*3-(Y375+REF(Y375,1))/2+Y375)/3;

Y376:=IFF(CURRBARSCOUNT=1,J376,X376);

X377:=XMA(Y376,3);

J377:=(XMA(Y376,3)*3-(Y376+REF(Y376,1))/2+Y376)/3;

Y377:=IFF(CURRBARSCOUNT=1,J377,X377);

X378:=XMA(Y377,3);

J378:=(XMA(Y377,3)*3-(Y377+REF(Y377,1))/2+Y377)/3;

Y378:=IFF(CURRBARSCOUNT=1,J378,X378);

X379:=XMA(Y378,3);

J379:=(XMA(Y378,3)*3-(Y378+REF(Y378,1))/2+Y378)/3;

Y379:=IFF(CURRBARSCOUNT=1,J379,X379);

X380:=XMA(Y379,3);

J380:=(XMA(Y379,3)*3-(Y379+REF(Y379,1))/2+Y379)/3;

Y380:=IFF(CURRBARSCOUNT=1,J380,X380);

X381:=XMA(Y380,3);

J381:=(XMA(Y380,3)*3-(Y380+REF(Y380,1))/2+Y380)/3;

Y381:=IFF(CURRBARSCOUNT=1,J381,X381);

X382:=XMA(Y381,3);

J382:=(XMA(Y381,3)*3-(Y381+REF(Y381,1))/2+Y381)/3;

Y382:=IFF(CURRBARSCOUNT=1,J382,X382);

X383:=XMA(Y382,3);

J383:=(XMA(Y382,3)*3-(Y382+REF(Y382,1))/2+Y382)/3;

Y383:=IFF(CURRBARSCOUNT=1,J383,X383);

X384:=XMA(Y383,3);

J384:=(XMA(Y383,3)*3-(Y383+REF(Y383,1))/2+Y383)/3;

Y384:=IFF(CURRBARSCOUNT=1,J384,X384);

X385:=XMA(Y384,3);

J385:=(XMA(Y384,3)*3-(Y384+REF(Y384,1))/2+Y384)/3;

Y385:=IFF(CURRBARSCOUNT=1,J385,X385);

X386:=XMA(Y385,3);

J386:=(XMA(Y385,3)*3-(Y385+REF(Y385,1))/2+Y385)/3;

Y386:=IFF(CURRBARSCOUNT=1,J386,X386);

X387:=XMA(Y386,3);

J387:=(XMA(Y386,3)*3-(Y386+REF(Y386,1))/2+Y386)/3;

Y387:=IFF(CURRBARSCOUNT=1,J387,X387);

X388:=XMA(Y387,3);

J388:=(XMA(Y387,3)*3-(Y387+REF(Y387,1))/2+Y387)/3;

Y388:=IFF(CURRBARSCOUNT=1,J388,X388);

X389:=XMA(Y388,3);

J389:=(XMA(Y388,3)*3-(Y388+REF(Y388,1))/2+Y388)/3;

Y389:=IFF(CURRBARSCOUNT=1,J389,X389);

X390:=XMA(Y389,3);

J390:=(XMA(Y389,3)*3-(Y389+REF(Y389,1))/2+Y389)/3;

Y390:=IFF(CURRBARSCOUNT=1,J390,X390);

X391:=XMA(Y390,3);

J391:=(XMA(Y390,3)*3-(Y390+REF(Y390,1))/2+Y390)/3;

Y391:=IFF(CURRBARSCOUNT=1,J391,X391);

X392:=XMA(Y391,3);

J392:=(XMA(Y391,3)*3-(Y391+REF(Y391,1))/2+Y391)/3;

Y392:=IFF(CURRBARSCOUNT=1,J392,X392);

X393:=XMA(Y392,3);

J393:=(XMA(Y392,3)*3-(Y392+REF(Y392,1))/2+Y392)/3;

Y393:=IFF(CURRBARSCOUNT=1,J393,X393);

X394:=XMA(Y393,3);

J394:=(XMA(Y393,3)*3-(Y393+REF(Y393,1))/2+Y393)/3;

Y394:=IFF(CURRBARSCOUNT=1,J394,X394);

X395:=XMA(Y394,3);

J395:=(XMA(Y394,3)*3-(Y394+REF(Y394,1))/2+Y394)/3;

Y395:=IFF(CURRBARSCOUNT=1,J395,X395);

X396:=XMA(Y395,3);

J396:=(XMA(Y395,3)*3-(Y395+REF(Y395,1))/2+Y395)/3;

Y396:=IFF(CURRBARSCOUNT=1,J396,X396);

X397:=XMA(Y396,3);

J397:=(XMA(Y396,3)*3-(Y396+REF(Y396,1))/2+Y396)/3;

Y397:=IFF(CURRBARSCOUNT=1,J397,X397);

X398:=XMA(Y397,3);

J398:=(XMA(Y397,3)*3-(Y397+REF(Y397,1))/2+Y397)/3;

Y398:=IFF(CURRBARSCOUNT=1,J398,X398);

X399:=XMA(Y398,3);

J399:=(XMA(Y398,3)*3-(Y398+REF(Y398,1))/2+Y398)/3;

Y399:=IFF(CURRBARSCOUNT=1,J399,X399);

X400:=XMA(Y399,3);

J400:=(XMA(Y399,3)*3-(Y399+REF(Y399,1))/2+Y399)/3;

Y400:=IFF(CURRBARSCOUNT=1,J400,X400);

X401:=XMA(Y400,3);

J401:=(XMA(Y400,3)*3-(Y400+REF(Y400,1))/2+Y400)/3;

Y401:=IFF(CURRBARSCOUNT=1,J401,X401);

X402:=XMA(Y401,3);

J402:=(XMA(Y401,3)*3-(Y401+REF(Y401,1))/2+Y401)/3;

Y402:=IFF(CURRBARSCOUNT=1,J402,X402);

X403:=XMA(Y402,3);

J403:=(XMA(Y402,3)*3-(Y402+REF(Y402,1))/2+Y402)/3;

Y403:=IFF(CURRBARSCOUNT=1,J403,X403);

X404:=XMA(Y403,3);

J404:=(XMA(Y403,3)*3-(Y403+REF(Y403,1))/2+Y403)/3;

Y404:=IFF(CURRBARSCOUNT=1,J404,X404);

X405:=XMA(Y404,3);

J405:=(XMA(Y404,3)*3-(Y404+REF(Y404,1))/2+Y404)/3;

Y405:=IFF(CURRBARSCOUNT=1,J405,X405);

X406:=XMA(Y405,3);

J406:=(XMA(Y405,3)*3-(Y405+REF(Y405,1))/2+Y405)/3;

Y406:=IFF(CURRBARSCOUNT=1,J406,X406);

=====================================

28.一招绝

{ N,1,100,30  M,1,300,95}

V1:=EMA(CLOSE,5),COLORYELLOW;

V2:=EMA(EMA(CLOSE,29)*1.01,10),COLORFFCC66;

DRAWICON(CROSS(V1,V2),V2,1);

V3:=EMA(CLOSE,10),COLORFF00FF;

V4:=EMA(EMA(CLOSE,60)*0.99,10),COLOR0099FF;

DRAWICON(CROSS(V3,V4),V4,1);

VAR1:=AMOUNT/VOL/100;

庄家运作成本: MA(CLOSE,18),COLORWHITE;

庄家平均成本: EMA(EMA(VAR1,2),N),COLOR00FF00;

庄家底仓成本: EMA(EMA(VAR1,13),M),COLORBLUE;

无穷成本均线: DMA(CLOSE,VOL/CAPITAL),COLORFF00FF;

STICKLINE(C>=O,C,O,3,0),COLORRED;

STICKLINE(C>=O,C,O,2,0),COLOR7070FF{B0B0FF};

STICKLINE(C>=O,C,O,1,0),COLORYELLOW;

STICKLINE(C>=O,H,L,0,0),COLORYELLOW;

STICKLINE(C<=O,C,O,3,0),COLORFF2020;

STICKLINE(C<=O,C,O,2,0),COLORFF6600;

STICKLINE(C<=O,C,O,1,0),{COLORCYAN;}COLORFFCC66;

STICKLINE(C<=O,H,L,0,0),{COLORCYAN}COLORFFCC66;

VAR326:=IF(CLOSE>REF(CLOSE,1),88,0);

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

STICKLINE(VAR327>90,L*0.99,L*0.95,3,0),COLORFF00FF;

DRAWTEXT(VAR327>90,LOW*0.95,'追涨'),COLORYELLOW;

 

=================================================== 

 29.绝杀

MA6:=MA(CLOSE,6);

MA18:=MA(CLOSE,18);

MA3:(3)*(MA18) - (2)*(MA6),LINETHICK1,COLORD39D91;

MA4:(3)*(MA6) - (2)*(MA18),LINETHICK2,COLOR87B08B;

M1:SUM((EMA((CLOSE + LOW)/(2),2))/(2.98),3),POINTDOT,COLORFFFFFF;

M2:EMA(M1,21),COLORFF00FF;

M30:MA(CLOSE,30),LINETHICK1,COLORFF0000;

VAR1:=(2)*(MA((LLV((CLOSE + LOW)/(2),8))*(1.1),13)) - EMA((CLOSE + LOW)/(2),3) - ((CLOSE + LOW)/(2))*(0.1);

VAR2:=IF(((EMA((CLOSE + LOW)/(2),3) - VAR1)*(5) > 0),(POW((EMA((CLOSE + LOW)/(2),3) - VAR1)*(5),2))/(10),(((-1))*(POW((EMA((CLOSE + LOW)/(2),3) - VAR1)*(5),2)))/(10));

VAR3:=IF((VAR2 > 0),VAR2 - 0,(-1));

DRAWTEXT(CROSS(VAR3,0) AND ((CLOSE + LOW)/(2) > MA((CLOSE + LOW)/(2),8)),(M2)*(1.01),'绝杀'),LINETHICK2,COLORYELLOW;

STICKLINE(CROSS(VAR3,0) AND ((CLOSE + LOW)/(2) > MA((CLOSE + LOW)/(2),8)),(LOW)*(0.99),(LOW)*(0.95),4,0),COLORYELLOW;

================================================ 

30.寻股公式

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

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

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

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

DRAWTEXT(CROSS(上线,下线),LOW,'全仓买'),COLOR0000FF;

DRAWTEXT(CROSS(下线1,上线1),LOW,'清仓'),COLOR00FFFF;

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),LOW,'减仓'),COLOR00FF00;

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

操作:MA(A7,5);

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

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

底:LLV(A7,21);

顶:HHV(A7,21);

SK:=EMA((A7-底)/(顶-底)*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,'买进'),COLORFF00FF;

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,'抄底'),COLORFF0000;

====================================================== 

31.一品三浪启动

MA5:MA(CLOSE,5);

MA10:MA(CLOSE,10);

MA30:MA(CLOSE,30);

MA60:=MA(CLOSE,60);

MA65:MA(CLOSE,65);

MA250:MA(CLOSE,250),COLORRED;

突破线:MIN(MA60*1.1,MA250*1.3),POINTDOT,COLOR0066FF;

{差幅:C/MIN(MA60*1.1,MA250*1.3)-1,POINTDOT,COLOR0066FF,LINETHICK1;}

均线流:=(MA5>MA65 AND MA10>MA65 AND MA30>MA65 AND MA5<MA30)*0.3,POINTDOT,COLOR00FF00,LINETHICK3;

PL1:=(CLOSE - MA60) / MA60 < 0.1;

PL2:=(CLOSE - MA250) / MA250 < 0.3;

偏离率:=(PL1 = 1 AND PL2 = 1) * 0.2,STICK,COLORFF00FF,LINETHICK1;

DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);

DEA :=EMA(DIFF,9);

MACD超跌:=COUNT((DIFF<DEA),10)=10;

MACD:=MACD超跌 * "MACD.MACD"(26,12,9)*(-1),STICK,COLORFFFF00,LINETHICK2;

目标:=IF(均线流=0.3 AND MACD超跌 AND 偏离率=0.2 ,0.8,0),COLORWHITE,LINETHICK2;

MBSJ:=BARSLAST(目标 = 0.8);

放量上涨:=V/REF(V,1) >= 1.1 AND C/REF(C,1) >= 1.01;

SZSJ:=BARSLAST(放量上涨 = 1);

MACD金叉:=CROSS(DIFF,DEA);

JCSJ:=BARSLAST(MACD金叉 = 1);

关注:=(MACD金叉 AND REF(MACD,1) < 0)*-0.1,COLOR00FF00;

启动:=(MBSJ <= 20 AND SZSJ <= 1 AND JCSJ <= 1) * 1,COLORYELLOW,LINETHICK2;

突破:=(偏离率 = 0 AND REF(COUNT(偏离率 = 0.2,10) = 10,1) = 1) * -0.1,COLORRED;

{以下设置主图显示方式}

DRAWTEXT(目标=0.8 ,L,'▲'),COLORWHITE;

DRAWTEXT(关注=-0.1,L,'◆'),COLOR00FF00;

DRAWTEXT(启动,L,'●'),COLORYELLOW;

DRAWTEXT(突破=-0.1,L,'★'),COLORYELLOW;

 

=============================================== 

32.东湖听雨

主线:=(MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,36))/4,LINETHICK2,COLORFF00FF;

股价重心:=DMA(AMOUNT/VOL/100,VOL/CAPITAL),COLORGREEN,LINETHICK2;

MA14:=EMA(CLOSE,14);

MA34:=EMA(CLOSE,26);

MA54:=EMA(CLOSE,54);

MA90:=EMA(CLOSE,90);

MA120:EMA(CLOSE,120),POINTDOT,LINETHICK2,COLORWHITE;

年线:EMA(C,250),COLORYELLOW,LINETHICK2;

{中短波}

HZ:=EMA(CLOSE,13);

短波:EMA(HZ,1),COLOR00DD00,LINETHICK1;

中波:EMA(HZ,26),COLORRED,LINETHICK1;

均线148天:=EMA(C,148),POINTDOT,LINETHICK1,COLORGREEN;

成本:=SUM(AMOUNT,0)/SUM(VOL,0)/100,COLORYELLOW ,LINETHICK2 ;

HZ2:EMA(HZ,8),COLORGREEN,LINETHICK2;

HZ4:EMA(HZ,39),COLORFF00FF,LINETHICK2;

A1:STICKLINE(HZ2<HZ4,短波,HZ4,1.5,0),COLORBLUE ;

A2:STICKLINE(短波>HZ2,短波,HZ2,3,0),COLORGREEN;

A3:STICKLINE(中波>HZ4,中波,HZ4,2,0),COLORFF00FF;

{慢速KDJ}

RSV:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;

FASTK:=SMA(RSV,12,1);

K:=SMA(FASTK,9,1),COLORYELLOW;

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

J:=3*K-2*D,LINETHICK1,COLORGREEN;

{中波}

VAR11:=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);

VAR22:=100-VAR11;

中势线:=(-1)*(EMA(VAR22,1)-50)+42,COLORYELLOW,LINETHICK2;

TZ:=(CLOSE-LLV(LOW,331))/(HHV(HIGH,331)-LLV(LOW,331))*100;

强势线:=SMA(TZ,5,1),LINETHICK2,COLORRED;

大盘线:=70*(HHV(HIGH,39)-CLOSE)/(HHV(HIGH,39)-LLV(LOW,39)),LINETHICK1,COLOR009900;

{量选}

AA:=VOL/SUM(VOL,13);

BB:=DMA(C,AA);

CC:=VOL/SUM(VOL,34);

DD:=DMA(C,CC);

{背离}

VAR00:=WINNER(CLOSE);

VAR1:=FORCAST(VAR00,10);

VAR2:=MA(VAR1,3);

VAR3:=MA(VAR2,12);

VAR4:=MA(VAR3,16);

VAR5:=MA(VAR4,31);

VAR6:=MA(VAR5,55);

VAR7:=VAR5;

VAR8:=VAR4>VAR2*1.11 AND VAR3>VAR2*1.095;

A:=VAR4/VAR2;

B:=VAR3/VAR2;

VAR9:=VAR2>VAR1*0.95;

TD:=VAR2/VAR1;

VAR1H:=INDEXC;

VAR2H:=MA(VAR1H,6);

VAR3H:=MA(VAR1H,24);

VAR4H:=MA(VAR1H,32);

VAR5H:=MA(VAR1H,62);

VAR6H:=MA(VAR1H,105);

VAR7H:=VAR5H;

VAR8H:=VAR4H>VAR2H*1.11 AND VAR3H>VAR2H*1.095;

VAR9H:=VAR2H>VAR1H*0.95;

PT:=(IF(H=L AND C=O AND L=C AND C>0 AND REF(H,1)=REF(L,1) AND REF(C,1)=REF(O,1)

AND REF(H,1)=REF(C,1) AND REF(C,1)>0,0,1))>0;

G:=(VAR7H AND VAR8H AND VAR9H AND CLOSE/COST(8)<=0.7985

AND (COUNT(C=L,4)<3 OR C>REF(C,1)))AND PT OR

VAR7 AND VAR8 AND VAR9 AND CLOSE/COST(5)<=0.8 AND

((VAR1>OPEN OR VAR1>REF(OPEN,1) OR

REF(VAR1,1)));

背离:=VAR2<REF(VAR2,1) AND A>REF(A,1);

买入信号1:=VAR1>A AND  VAR2>B;

买入信号2:=B>A AND  1>B AND A<1 AND H=HHV(H,21);

BUY:=COUNT(背离,20)>1 AND 买入信号2=1 AND C>O OR CROSS(BB,DD);

DRAWICON(CROSS(短波,HZ2),中波,1);

DRAWTEXT(CROSS(短波,HZ2) AND C>O AND J>K  AND J>D AND 大盘线<36 AND C>HZ4,L*1.09,'●'),COLORYELLOW;

DRAWTEXT(CROSS(短波,HZ2) AND C>O AND J>K  AND J>D AND 大盘线<36 AND C>HZ4,L*1.12,'做趋势'), COLORYELLOW;

DRAWTEXT(CROSS(短波,HZ2),C,'♂');

DRAWTEXT(CROSS ( 中波,HZ4),C,'♂');

DRAWTEXT(CROSS ( 中波,MA120),C,'♂');

DRAWTEXT(CROSS (HZ4,MA120),C,'♂');

======================================

33.登高望远Z

{N:1,10,5}

MA5:MA(C,5);

MA10:MA(C,10);

MA20:MA(C,20);

MA30:MA(C,30);

MA60:MA(C,60);

MA90:MA(C,90);

MA120:MA(C,120);

MA240:MA(C,240);

MAA:=MAX(MAX(MA5,MA10),MAX(MA20,MA30));

MAB:=MAX(MAX(MA60,MA90),MAX(MA120,MA240));

MA1:=MAX(MAA,MAB);

登高:CROSS(C,MA1),COLORFF00FF,LINETHICK2;

DTPL:=MA5>MA10 AND MA10>MA20 AND MA20>MA30 AND MA30>MA60 AND MA60>MA90 AND MA90>MA120;

望远:(登高 AND DTPL)*2,COLOR00FF00,LINETHICK2;

MAC:=MIN(MIN(MA5,MA10),MIN(MA20,MA30));

MAD:=MIN(MIN(MA60,MA90),MIN(MA120,MA240));

MA8:=MIN(MAA,MAB);

JXZH:=(MA1/MA8-1)*100<=N;

牛股:(登高 AND JXZH)*2,COLORYELLOW,LINETHICK2;

{以下设置主图显示方式}

DRAWTEXT(登高>0 ,L*0.99 , '▲'),COLOR00FF00;

DRAWTEXT(牛股>0 ,L*0.97 , '●'),COLORYELLOW;

DRAWTEXT(牛股>0 ,L*0.96 , '*牛股!'),COLORFF00FF;

DRAWICON(望远>0,L*0.99,1);

================================= 

34.黑马王1

N:=20;

N1:=7;

N2:=69;

T1:=IF((DATE<=1090314),1,0);

M3:=EMA(CLOSE,3);

M8:EMA(CLOSE,8),COLOR008000;

M13:EMA(M8,13),COLOR0000FF;

M62:EMA(M8,55),COLORF0F000;

VAR1:=EMA(M13,62);

M81:EMA(M62,81),COLOR00FFFF;

M144:EMA(VAR1,144),LINETHICK2,COLOR0000FF;

M250:EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;

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

VAR3:=(EMA(VAR2,10))*(T1);

VAR4:=(REF(VAR3,1))*(T1);

STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF;

STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),COLORFF0000;

VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);

VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);

DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),'★'),COLOR00FFFF;

DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),'↓卖'),COLOR008000;

VAR7:=REF(CLOSE,1);

VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);

VAR9:=CROSS(N2,VAR8);

VARA:=(FILTER(VAR9,4))*(T1);

DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),COLORFFFFFF;

VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);

VARC:=LLV(LOW,34);

VARD:=HHV(HIGH,34);

VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);

VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);

DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),COLORFF00FF;

DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((VARE>VARF),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,'●买进'),COLOR00FFFF;

VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);

DRAWTEXT(IF((CLOSE<VAR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF;

=========================================

35.收费指标

{N 1 100 20  M 1 100 32  P1 1 100 80  P2 1 100 100}

VAR1:=(C+H+O+L)/4;

卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;

买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;

幅度:100*(卖出-买入)/买入,NODRAW;

MA1:=MA(VAR1,3);

STICKLINE(卖出>LOW

AND

卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;

STICKLINE(卖出>MIN(C,O)

AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;

STICKLINE(卖出>LOW AND

卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;

STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;

STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;

STICKLINE(买入>LOW

AND

买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;

STICKLINE(买入>MIN(C,O)

AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;

STICKLINE(买入>LOW

AND

买入<HIGH,买入,LOW,0,0),COLORMAGENTA;

STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;

STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;

DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'B'),COLORRED,LINETHICK2;

DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'S'),COLORGREEN; 

=======================================================

36.九生一死

{M 1 300 88  N1 1 100 6}

VAR0A:=EMA(EMA(EMA(CLOSE,2),2),2);MA13:(MA(VAR0A,13)*0.99);

(MA(VAR0A,13)*0.999);

TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW)));

ATR:=MA(TLAMSENR,13);VAR1A:=(REF(CLOSE,1)-REF(ATR,1));

生命线:(HHV(VAR1A,12)),LINETHICK4,COLOR0080FF;

VAR1:=EMA(AMOUNT/VOL/100,3);控盘成本:EMA(VAR1,M),LINETHICK2;

低吸伏击:EMA(VAR1,M)*0.85,LINETHICK2,COLORFFFF00;

走势铁底:低吸伏击*0.87,LINETHICK3,COLORFF00FF;

VAR2:=LOW<=走势铁底 AND CLOSE>REF(CLOSE,1)*1.02;DRAWICON(FILTER(VAR2,N1),L,5);

================================

37.分时专用

STICKLINE(C>0,H,L,6,1),COLOR000000;

今收盘:C,COLOR8800FF,LINETHICK1;

MA(C,36),COLOR663636,NODRAW;

A:=CURRBARSCOUNT;

A1:=DAY!=REF(DAY,1);

A2:=BARSLAST(A1)+1;

A3:=MA(C,A2);

A4:=SUM(AMO,A2)/SUM(VOL,A2)/100;

A5:=IF(CAPITAL>0,A4,A3);

现价:IF(A<=CONST(A2),CLOSE,DRAWNULL)COLORWHITE,LINETHICK2;

均价:IF(A<=CONST(A2),A5,DRAWNULL),COLORYELLOW,LINETHICK2;

前收盘:IF(A<=CONST(A2),DYNAINFO(3),DRAWNULL),COLORRED,LINETHICK2;

RC:=DYNAINFO( 3);

S2:=SMA(C,2,1);       

S6:=SMA(C,6,1);

DK:=2*(S2-S6);

STICKLINE(DK>0,RC,RC+DK,0,1),COLOR000036;

==============================================

38.神秘磁力线

磁力线:(MA(CLOSE,30)+MA(CLOSE,72))/2,COLORGREEN;

多空线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

DRAWTEXT(CROSS(多空线,磁力线),多空线,'进场'),COLORGREEN,LINETHICK2;

DRAWTEXT(CROSS(磁力线,多空线),磁力线,'走人'),COLORRED,LINETHICK2;

DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;

DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;

DRAWTEXT(CROSS(DA-DB,0),L*0.95,'★B'),COLORRED;

JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;

DRAWTEXT(CROSS(84,JH),H*1.02,'☆S'),COLORGREEN;

=====================================================

39.魔环A

临界线:= (13*C+12*REF(C,1)+11*REF(C,2)+10*REF(C,3)+9*REF(C,4)+8*REF(C,5)+7*REF(C,6)+ 6*REF(C,7)+5*REF(C,8)+4*REF(C,9)+3*REF(C,10)+2*REF(C,11)+1*REF(C,12))/(13+12+11+10+9+8+7+6+5+4+3+2+1);

VAR1:=POW(CLOSE-临界线,1);

VAR2:=MA(VAR1,13);

VAR3:=SQRT(VAR2);

阻力线:临界线+1.96*VAR3;

支撑线:临界线-1.96*VAR3;

IF(临界线>REF(临界线,1) AND 阻力线!=支撑线,临界线,DRAWNULL),COLORRED,LINETHICK2;

IF(临界线<REF(临界线,1),临界线,DRAWNULL),COLORGREEN,LINETHICK2;

IF(阻力线=支撑线,临界线,DRAWNULL),COLORBLUE,LINETHICK2;

===========================================================

40.股市上涨1

{N:1 100 5  M:1 100 13}

MA5:MA(C,N),COLORWHITE;

MA18:=MA(CLOSE,18);

MA13:MA(C,M),COLORGREEN,LINETHICK2;

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

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

VAR3:=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);

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

VAR4:=(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(VAR4,13);

{红}

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

STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;

{蓝}

STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3,0),COLORFF9900;

STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.5,0),COLORFFCC00;

{粉}

STICKLINE(VAR1,C,(O+C)/2,3,0),COLORFF11FF; 

STICKLINE(VAR1,C,(O+C)/2,0.5,0),COLORFFDDFF;

{灰} 

STICKLINE(VAR2,C,(O+C)/2,3,0),COLOR999999;   

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

{绿} 

STICKLINE(VAR3,O,(O+C)/2,3,0),COLOR00BB00;

STICKLINE(VAR3,O,(O+C)/2,0.5,0),COLOR00FF00;

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

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

买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));

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

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

DRAWTEXT(FILTER((CROSS(加仓,0) OR CROSS(CLOSE,CB)) AND 买=1,3),LOW-0.03,'加'),COLORWHITE;

跟:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);

DRAWTEXT(跟,LOW*0.96,'跟'),COLORCC66FF;

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多