通达信炒股软件牛熊轮回交易系统副图指标源码附图贴图通达信公式

2018-01-15    来源:原创    编辑:翔博软件
问:如何才能每天都能免费收到这种原创好指标呢? 答:只需加微信:396950280申请加入爱公式VIP微信群即可,天天有更新! 公式源码: {牛熊轮回交易系统副图指标(0)} VAR01:=1; V
问:如何才能每天都能免费收到这种原创好指标呢?

答:只需加微信:396950280申请加入爱公式VIP微信群即可,天天有更新!


 

公式源码:

 

{牛熊轮回——交易系统副图指标(0)}

VAR01:=1;

VAR02:=1/WINNER(CLOSE);

VAR03:=MA(CLOSE,13);

VAR04:=100-ABS((CLOSE-VAR03)/VAR03*100);

VAR05:=LLV(LOW,75);VAR06:=HHV(HIGH,75);

VAR07:=(VAR06-VAR05)/100;

VAR08:=SMA((CLOSE-VAR05)/VAR07,20,1);

VAR09:=SMA((OPEN-VAR05)/VAR07,20,1);VAR10:=REF(LOW,1);

VAR11:=SMA(ABS(LOW-VAR10),3,1)/SMA(MAX(LOW-VAR10,0),3,1)*100; VAR12:=EMA(IF(CLOSE*1.2,VAR11*10,VAR11/10),3); 

VAR13:=LLV(LOW,38); VAR14:=HHV(VAR12,38); 

VAR15:=IF(LLV(LOW,90),1,0); VAR16:=EMA(IF(LOW<=VAR13,(VAR12+VAR14*2)/2,0),3)/618*VAR15; 

VARA:=3*VAR08-2*SMA(VAR08,15,1);

VARB:=3*VAR09-2*SMA(VAR09,15,1);

VARC:=100-VARB;

有庄的影子:STICKLINE(VAR16,0,VAR16,1,0),COLORLIRED;

庄影:VAR16,NODRAW,COLORLIRED;

新庄:(100-IF(VAR02>5,IF(VAR02<100,VAR02,VAR04-10),0))*VAR01,COLORRED,POINTDOT;

新庄图标:STICKLINE(1,新庄,100,1,1),COLORRED;

短线:MA(WINNER(CLOSE*0.95)*100,3)*VAR01,COLORWHITE,DOTLINE;

收盘:MEMA((0+VARA)*VAR01,2),COLORRED,LINETHICK1;

开盘:MEMA((0+VARB)*VAR01,3),COLORGREEN,LINETHICK1;

趋势线:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLORRED;

VARD:=短线>VAR04;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;

VAR17:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR18:=EMA(VAR17,30);

VAR19:=CLOSE-REF(CLOSE,1);VAR20:=MAX(VAR12,0);

VAR21:=ABS(VAR12);VAR22:=SMA(VAR20,7,1)/SMA(VAR21,7,1)*100;

VAR23:=SMA(VAR20,13,1)/SMA(VAR21,13,1)*100;VAR24:=BARSCOUNT(CLOSE);

VAR25:=SMA(MAX(VAR19,0),6,1)/SMA(ABS(VAR19),6,1)*100;VAR26:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;

VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;

VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);

VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;

VAR1D:=SMA(VAR1C,4,1);

VAR1E:=SMA(VAR1D,3,1);

VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;

VAR27:=VAR25<=25 AND VAR26<-95 AND VAR1F>20 AND VAR1B<-30 AND 

VAR1E<30 AND VAR25-CLOSE>=-0.25 AND VAR22<22 AND VAR23<28 AND VAR24>50;

RSV91:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;

中线:=SMA(RSV91,5,1),COLORLIMAGENTA,LINETHICK2;

VARD图标:=STICKLINE(VARD,VAR04,短线,2.5,0),COLORGREEN;

VAR1控盘:=EMA(EMA(CLOSE,13),13);

控盘:=(VAR1控盘-REF(VAR1控盘,1))/REF(VAR1控盘,1)*1000;

控1:=STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00;

控2:=STICKLINE(控盘>REF(控盘,1) AND 控盘<0,控盘,0,1,1),COLORFF00FF;

无庄控盘:=控盘<0;

控3:=STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLOR0000FF;

有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;

VAR2控盘:=100*WINNER(CLOSE*0.95);

控4:=STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLORFFFF00;

主力出货:=控盘<REF(控盘,1) AND 控盘>0;

控5:=STICKLINE(VAR2控盘>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,1),COLOR00FFFF;

高度控盘:=VAR2控盘>50 AND COST(85)<CLOSE AND 控盘>0,COLOR00FFFF,LINETHICK2;

A101:=CROSS(控盘,0);

控盘B:=FILTER(IF(A101,1,0),5);

JJ:=DYNAINFO(11);

P:=55;S:=8;M11:=3;

财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;

神:=EMA(财,M11),COLORGREEN,LINETHICK1;

控6:=DRAWBAND(财,RGB(255,0,0),神,RGB(0,100,50));

BTJ1:=(C-JJ)/JJ<-0.03;

BTJ11:=(C-JJ)/JJ<-0.03;

BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;

STJ1:=(C-JJ)/JJ>0.005;

STJ01:=控盘<REF(控盘,1)  AND 控盘>0.5;

STJ02:=控盘>0;

BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;

BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;

BTJ3:=CROSS(财,神) AND  财<-0.3;

BTJ32:=CROSS(财,神) AND  财<-0.1;

STJ31:=CROSS(神,财);

STJ32:=CROSS(神,财) AND  财>1.618;

BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);

BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);

BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);

控7:=DRAWTEXT(BTJ81,神,'↑买底'),COLORRED;

控8:=DRAWTEXT(BTJ811,神*1.2,'↑有庄'),COLORWHITE;

STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);

STJ82:=FILTER(STJ02 AND STJ32 ,13);

STJ83:=STJ81 AND STJ82;

控9:=DRAWTEXT(STJ83,神,'↓卖'),COLOR00FF00;

DIFF值:=(EMA(CLOSE,8) - EMA(CLOSE,55))*10,COLORRED;

DEA值:=EMA(DIFF值,3),COLORGREEN;

庄:=BTJ11 AND BTJ2 AND BTJ3;

有庄买底:=FILTER(庄,55),COLORWHITE;

买底:DRAWTEXT(BTJ811 AND BTJ81 AND 收盘<=(15),-18.68,'买底'),COLORLIMAGENTA;

卖顶:DRAWTEXT(STJ81 AND STJ82 AND 收盘>=(85),104.38,'卖顶'),COLORLIBLUE;

AT:=IF(CAPITAL=0,AMOUNT/100000000,VOL/CAPITAL*100);

ATM1:=EMA(AT,5);

ATM2:=MA(AT,13);

阶段地量:=AT<REF(LLV(AT,25),1) && ATM1<ATM2;

地量1:=STICKLINE(阶段地量,0,HHV(V,15),2.21,1),COLORGREEN;

地量2:=STICKLINE(阶段地量,0,HHV(V,15),2.21,1),COLORGREEN;

VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL)COLORWHITE,NODRAW;

VVOL图标:=STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLORLIBLUE;

VAR2:=REF(LOW,1);

VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;

VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);

VAR5:=LLV(LOW,38);

VAR6:=HHV(VAR4,38);

VAR7:=IF(LLV(LOW,90),1,0);

VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;

DD:=VAR8>5;

VAR1S:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);

VAR2S:=SMA(ABS(LOW-VAR1S),13,1)/SMA(MAX(LOW-VAR1S,0),10,1);

VAR3S:=EMA(VAR2S,10);

VAR4S:=LLV(LOW,33);

VAR5S:=EMA(IF(LOW<=VAR4S,VAR3S,0),3);

主力进场:=IF(VAR5S>REF(VAR5S,1),VAR5S,0)*1.1,LINETHICK1,COLORRED;

进场图标:=STICKLINE(VAR5S>REF(VAR5S,1),0,VAR5S,1.80,1 ),COLORRED;

震仓:=IF(VAR5S<REF(VAR5S,1),VAR5S,0),COLORGREEN;

A:=(启动 CROSS 洗盘);

成交量:=VOL,VOLSTICK,COLORLIBLUE;

启动5日量:=MA(成交量,5)COLORWHITE;

洗盘35日量:=MA(成交量,35)COLORYELLOW;

异动135日量:=MA(成交量,135)COLORMAGENTA;

AB:=(启动 CROSS 洗盘);

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

主动买:=IF(CLOSE>OPEN,BB2*(HIGH-LOW),IF(CLOSE<OPEN,BB2*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));

主买:主动买/10000,COLORRED,LINETHICK1,NODRAW;

主动卖:=IF(CLOSE>OPEN,0-BB2*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB2*(HIGH-LOW),0-VOL/2));

主卖:-主动卖/10000,COLORGREEN,LINETHICK1,NODRAW;

参与:主买/(主买+主卖),NODRAW,COLORLIBLUE;

盘比:(主买/主卖),NODRAW,COLORYELLOW;

量比:DYNAINFO(17),NODRAW,COLORRED;

买入:=IF((COUNT(DD,2)=2),-20,0)COLORBLACK; 

底:IF((CROSS(震仓,主力进场)AND 买入=-20),100,0),STICK,COLORMAGENTA,LINETHICK1;

多头量1:=CROSS(REF(启动5日量,0),REF(洗盘35日量,0))COLORRED;

空头量:=CROSS(REF(洗盘35日量,0),REF(启动5日量,0))COLORLIBLUE;

多头量2:=CROSS(REF(洗盘35日量,0),REF(异动135日量,0))COLORYELLOW;

多量1:DRAWTEXT(多头量1,-3,'●')COLORRED;  

空量:DRAWTEXT(空头量,-3,'●')COLORLIBLUE;  

多量2:DRAWTEXT(多头量2,-3,'●')COLORYELLOW;   

底图标1:=STICKLINE(底,0,HHV(V,15),1.23,1),COLORMAGENTA;

底图标2:=STICKLINE(底,0,HHV(V,15),0.21,1),COLORMAGENTA;

V1:=(C*3+H+L)/5*10;V2:=EMA(V1,13)-EMA(V1,34);

V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;{分析家公式网WWW.70822.COM}

V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);

V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;

V9:=EMA(V8,13)-EMA(V8,34);

VA:=EMA(V9,3);VB:=(V9-VA)/2;

主力动向:=EMA(V4,2),COLORRED;

机构动向:=EMA(VB,2),COLORMAGENTA;

主力动向1:=(SLOPE(主力动向,2)>0 AND SLOPE(机构动向,2)>0,主力动向),COLORRED,LINETHICK1;

主力动向2:=(SLOPE(主力动向,2)<0,主力动向),COLORGREEN,LINETHICK1;

机构动向1:=(SLOPE(机构动向,2)>0 AND SLOPE(主力动向,2)>0,机构动向),COLORMAGENTA,LINETHICK1;

机构动向2:=(SLOPE(机构动向,2)<0,机构动向),COLORWHITE,LINETHICK1;

ZLCM:=EMA(WINNER(CLOSE)*70,3);

SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);

ZZLKP:=ZLCM/(ZLCM+SHCM)*100;ZZLJJ:=EMA(ZZLKP,89);ZJLRQD:=ZZLKP-ZZLJJ;

AAA:=EMA(ZJLRQD,1);BBB:=EMA(AAA,5);CCC:=AAA-BBB;

CCC图标1:=STICKLINE(CCC<REF(CCC,2),CCC,0,2,1), COLOR00FF00;

CCC图标2:=STICKLINE(CCC>REF(CCC,2),CCC,0,2,1), COLORRED;

主力资金试盘:=IF(CROSS(AAA,BBB),3,0),STICK,LINETHICK4,COLOR0080FF;

主力对倒出货:=IF(CROSS(BBB,AAA),-3,0),STICK,LINETHICK4,COLOR00FF00;

VAR881:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);

VAR82:=SMA(ABS(LOW-VAR881),13,1)/SMA(MAX(LOW-VAR881,0),10,1); 

VAR83:=EMA(VAR82,10);

VAR84:=LLV(LOW,33);

VAR85:=EMA(IF(LOW<=VAR84,VAR83,0),5);

惨跌:=STICKLINE(VAR85>REF(VAR85,1),0,VAR85,1,0),COLORGREEN;

洗盘阴:=STICKLINE(VAR85<REF(VAR85,1) AND C<O,0,VAR85,1,0),COLORLIBLUE; 

主力拉升:=STICKLINE(VAR85<REF(VAR85,1),0,VAR85,1,0),COLORLIMAGENTA; 

跌:STICKLINE(VAR85>REF(VAR85,1),0,VAR85,1,0),COLORGREEN;

洗:=STICKLINE(VAR85<REF(VAR85,1) AND C<O,0,VAR85,1,0),COLORWHITE;  

拉:STICKLINE(VAR85<REF(VAR85,1),0,VAR85,1,0),COLORRED; 

庄出没:=惨跌+洗盘阴+主力拉升;{主力动向之庄出没}

有庄:DRAWTEXT(主力进场 AND 庄出没 AND 收盘<=(20),-19.18,'△')COLORGREEN;

庄银1:=新庄<(90); 庄银2:=新庄>(96.80);   

庄银3:=庄影>(7.02); 庄银4:=庄影<(1.98);   

庄银5:=CROSS(REF(庄银2,0),REF(庄银1,0));{新庄}庄银6:=CROSS(REF(庄银4,0),REF(庄银3,0));{庄影}

庄银5图标:DRAWTEXT(庄银5,-19.18,'△')COLORRED;

庄银6图标:DRAWTEXT(庄银6,-19.18,'△')COLORLIRED;

有庄出没:=庄银5 OR 庄出没 OR 庄银6;

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

DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA),COLORSTICK;

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

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

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

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

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

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

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

MACD底背离:=IF(B1>0,-0.1,0),COLORRED;

KDJ底背离:=IF(B2>0,-0.1,0),COLORFF00FF;

RSI底背离:=IF(B3>0,-0.1,0),COLORYELLOW;

MACD顶背离:=IF(D101>0,0.1,0),COLOR00FF00;

KDJ顶背离:=IF(D20>0,0.1,0),COLORFFCC66;

RSI顶背离:=IF(D30>0,0.1,0),COLORWHITE;

图示01:DRAWTEXT(B1>0,39,'MACD底背离'),COLORRED;

图示02:DRAWTEXT(B2>0,31,'KDJ底背离'),COLORFF00FF;

图示03:DRAWTEXT(B3>0,23,'RSI底背离'),COLORYELLOW;

图示04:DRAWTEXT(D101>0,74,'MACD顶背离'),COLOR00FF00;

图示05:DRAWTEXT(D20>0,66,'KDJ顶背离'),COLORBROWN;

图示06:DRAWTEXT(D30>0,58,'RSI顶背离'),COLORCYAN;

图示07:=STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED;

图示08:=STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORYELLOW;

图示09:=STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORCYAN;

图示10:=STICKLINE(MACD>=REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORMAGENTA;

图示11:=STICKLINE(C>0,0,0,50,1),COLORBLUE;

图示12:=DIFF,COLORGREEN;

图示13:=DEA,COLORYELLOW;

强:=IF(DIFF>MA(DIFF,2),DIFF,DRAWNULL),COLORRED;

弱:=IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA;

MACD多头:=LONGCROSS(DIFF,0,10);

MACD空头:=LONGCROSS(0,DIFF,10);

MACD死叉:=CROSS(REF(DEA,0),REF(DIFF,0))AND 收盘>(80);

MACD死叉图标1:DRAWTEXT(MACD空头,104.38,'MACD空头')COLORLIBLUE;

MACD死叉图标2:DRAWTEXT(MACD死叉,104.38,'MACD死叉')COLORGREEN;

MACD金叉:=CROSS(REF(DIFF,0),REF(DEA,1))AND 收盘<(20);

MACD金叉图标1:DRAWTEXT(MACD多头,-10.68,'MACD多头')COLORYELLOW;

MACD金叉图标2:DRAWTEXT(MACD金叉,-10.68,'MACD金叉')COLORRED;

空头短线拐点:=短线>=97 AND CROSS(REF(短线,1),REF(短线,0));

短线拐点图标:DRAWICON(空头短线拐点,93.18,5);

多头1:=收盘<(0)AND LONGCROSS(REF(收盘,0),REF(收盘,1),20)AND EXIST(买底,1);

多头2:=收盘<(0)AND LONGCROSS(REF(收盘,0),REF(开盘,1),15)AND EXIST(买底,1);

多头3:=收盘<(10)AND LONGCROSS(REF(收盘,0),REF(收盘,1),10);

多头4:=收盘<(20)AND LONGCROSS(REF(收盘,0),REF(开盘,1),5);

多头5:=收盘<(24)AND LONGCROSS(REF(收盘,0),REF(收盘,1),10);

多头6:=收盘<(50)AND EXIST(庄银5 OR 庄银6,10)AND LONGCROSS(REF(收盘,0),REF(开盘,1),8);

空头1:=收盘>(100)AND LONGCROSS(开盘,收盘,5)OR 收盘>(100)AND CROSS(REF(开盘,0),REF(收盘,0));

空头2:=收盘>(80)AND LONGCROSS(开盘,收盘,5)OR 收盘>(80)AND CROSS(REF(开盘,0),REF(收盘,0));

多头1标识:DRAWICON(多头1,12,5);

多头2标识:DRAWICON(多头2,12,5);

多头3标识:DRAWICON(多头3,4,17);

多头4标识:=DRAWICON(多头4,4,17);

多头5标识:DRAWICON(多头5,-10.5,11);

多头6标识:=DRAWICON(多头6,-10.5,11);

空头1标识:DRAWICON(空头1,102.88,12);

空头2标识:DRAWICON(FILTER(空头2,5),95,17);

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

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

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

J:=3*K-2*D,COLORMAGENTA,LINETHICK;

VARK:=K,COLORRED;

上升K:=IF(VARK>REF(VARK,1),VARK,DRAWNULL),COLORRED;

走平K:=IF(VARK=REF(VARK,1),VARK,DRAWNULL),COLORYELLOW;

下降K:=IF(VARK<REF(VARK,1),VARK,DRAWNULL),COLORGREEN;

VARD1:=D,COLORGREEN;

上升D:=IF(VARD1>REF(VARD1,1),VARD1,DRAWNULL),COLORRED;

走平D:=IF(VARD1=REF(VARD1,1),VARD1,DRAWNULL),COLORYELLOW;

下降D:=IF(VARD1<REF(VARD1,1),VARD1,DRAWNULL),COLORGREEN;

VARJ:=J,COLORMAGENTA;

上升J:=IF(VARJ>REF(VARJ,1),VARJ,DRAWNULL),COLORRED;

走平J:=IF(VARJ=REF(VARJ,1),VARJ,DRAWNULL),COLORYELLOW;

下降J:=IF(VARJ<REF(VARJ,1),VARJ,DRAWNULL),COLORGREEN;

N:=9;M1:=3;M2:=3;

周金叉KDJ线:=CROSS(K>D,K),COLORMAGENTA;

周死叉KDJ线:=CROSS(K<D,K),COLORCYAN;

月金叉KDJ线:=CROSS(J>D,J),COLORRED,LINETHICK1;

月死叉KDJ线:=CROSS(J<D,J),COLORGREEN,LINETHICK1;

周K:=MA("KDJ.K#WEEK"(N,M1,M2),5),POINTDOT,LINETHICK4,COLORWHITE;

周D:=MA("KDJ.D#WEEK"(N,M1,M2),5),POINTDOT,LINETHICK4,COLORGREEN;

周J:=MA("KDJ.J#WEEK"(N,M1,M2),5),POINTDOT,LINETHICK4,COLORRED;

周金叉1:DRAWTEXT(CROSS("KDJ.K#WEEK"(N,M1,M2),"KDJ.D#WEEK"(N,M1,M2)),14,'KDJ周金叉'),COLORRED;

周死叉1:DRAWTEXT(CROSS("KDJ.D#WEEK"(N,M1,M2),"KDJ.K#WEEK"(N,M1,M2)),85,'KDJ周死叉'),COLORGREEN;

月金叉1:DRAWTEXT(CROSS("KDJ.K#MONTH"(N,M1,M2),"KDJ.D#MONTH"(N,M1,M2)),14,'KDJ月金叉'),COLOR0099FF;

月死叉1:DRAWTEXT(CROSS("KDJ.D#MONTH"(N,M1,M2),"KDJ.K#MONTH"(N,M1,M2)),85,'KDJ月死叉'),COLORLIBLUE;

周金叉2:=DRAWICON(CROSS("KDJ.K#WEEK"(N,M1,M2),"KDJ.D#WEEK"(N,M1,M2)),14,1),COLORRED;

周死叉2:=DRAWICON(CROSS("KDJ.D#WEEK"(N,M1,M2),"KDJ.K#WEEK"(N,M1,M2)),83.5,2),COLORGREEN;

月金叉2:=DRAWICON(CROSS("KDJ.K#MONTH"(N,M1,M2),"KDJ.D#MONTH"(N,M1,M2)),14,1),COLOR0099FF;

月死叉2:=DRAWICON(CROSS("KDJ.D#MONTH"(N,M1,M2),"KDJ.K#MONTH"(N,M1,M2)),83.5,2),COLORBLUE;

SWL:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10,COLORBROWN;

SWS:=DMA(EMA(CLOSE,12),MAX(1,100*(SUM(VOL,5)/(3*CAPITAL)))),COLORLICYAN;

值1:=MEMA(SWL,1),COLORRED;值2:=MEMA(SWL,3),COLORLIBLUE;值3:=(值1+值2)/2,COLORYELLOW;

多转空1:=CROSS(REF(值3,0),REF(值1,0))AND EXIST(收盘>100,5),COLORLIBLUE;

多转空1图标:DRAWICON(多转空1,103.98,10);

多转空2:=CROSS(REF(值3,0),REF(值1,0))AND 收盘>=(85),COLORLIBLUE;

多转空2图标:DRAWTEXT(FILTER(多转空2,5),113.58,'●')COLORGREEN;

空转多1:=CROSS(REF(值1,0),REF(值3,0))AND EXIST(买底,5),COLORLIMAGENTA;

空转多1图标:DRAWICON(空转多1,-19.08,9);

空转多2:=CROSS(REF(值1,0),REF(值3,0))AND EXIST(底,5),COLORLIMAGENTA;

空转多2图标:DRAWTEXT(FILTER(空转多2,5),-26.88,'●')COLORRED;

多空转折:=空转多1 AND 收盘<=(15) OR 空转多2 AND 收盘<=(15);

多空转折图标:DRAWICON(多空转折,-28.38,15);

MACD轴:=0,DOTLINE,COLORYELLOW;

MID:=(7*CLOSE+LOW+OPEN+HIGH)/10;

MA0:=MA(MID,40);

MA1:=MA(MID,1);A100:=MA1-MA0;MA2:=MA(MID,2);A200:=MA2-MA0;

MA3:=MA(MID,3);A300:=MA3-MA0;MA4:=MA(MID,4);A4:=MA4-MA0;

MA5:=MA(MID,5);A5:=MA5-MA0;MA6:=MA(MID,6);A6:=MA6-MA0;

MA7:=MA(MID,7);A7:=MA7-MA0;MA8:=MA(MID,8);A8:=MA8-MA0;

MA9:=MA(MID,9);A9:=MA9-MA0;MA10:=MA(MID,10);A10:=MA10-MA0;

MA11:=MA(MID,11);A11:=MA11-MA0;MA12:=MA(MID,12);A12:=MA12-MA0;

MA13:=MA(MID,13);A13:=MA13-MA0;MA14:=MA(MID,14);A14:=MA14-MA0;

MA15:=MA(MID,15);A15:=MA15-MA0;MA16:=MA(MID,16);A16:=MA16-MA0;

MA17:=MA(MID,17);A17:=MA17-MA0;MA18:=MA(MID,18);A18:=MA18-MA0;

MA19:=MA(MID,19);A19:=MA19-MA0;MA20:=MA(MID,20);A20:=MA20-MA0;

MA21:=MA(MID,21);A21:=MA21-MA0;MA22:=MA(MID,22);A22:=MA22-MA0;

MA23:=MA(MID,23);A23:=MA23-MA0;MA24:=MA(MID,24);A24:=MA24-MA0;

MA25:=MA(MID,25);A25:=MA25-MA0;MA26:=MA(MID,26);A26:=MA26-MA0;

MA27:=MA(MID,27);A27:=MA27-MA0;MA28:=MA(MID,28);A28:=MA28-MA0;

MA29:=MA(MID,29);A29:=MA29-MA0;MA30:=MA(MID,30);A30:=MA30-MA0;

MA31:=MA(MID,31);A31:=MA31-MA0;MA32:=MA(MID,32);A32:=MA32-MA0;

MA33:=MA(MID,33);A33:=MA33-MA0;MA34:=MA(MID,34);A34:=MA34-MA0;

MA35:=MA(MID,35);A35:=MA35-MA0;MA36:=MA(MID,36);A36:=MA36-MA0;

MA37:=MA(MID,37);A37:=MA37-MA0;MA38:=MA(MID,38);A38:=MA38-MA0;

MA39:=MA(MID,39);A39:=MA39-MA0;MA40:=MA(MID,40);A40:=MA40-MA0;

LC:=(A6+A7+A8+A9+A10+A11+A12+A13+A14+A15+A16+A17+A18+A19+A20)/15,LINETHICK0;

VAR1:=LC;

VAR200:=REF(LC,1);

VAR300:=VAR1>VAR200 AND REF(LC,1)<REF(LC,2);

VAR400:=VAR1<VAR200 AND REF(LC,1)>REF(LC,2);

均线发散:=STICKLINE(VAR1>VAR200,LC,REF(LC,1),2,0),COLORRED; 

均线粘合:=STICKLINE(VAR1<VAR200,LC,REF(LC,1),2,0),COLORGREEN; 

EMA5:=MA(VAR1,5),COLORLIGRAY;

EMA10:=MA(VAR1,10),COLORYELLOW;

B100:=BARSLAST(MA20>REF(MA20,1));

B11图标:=DRAWTEXT(VAR300  AND MA20<REF(MA20,1) AND COUNT(VAR300,B100)=1,0.95*REF(LC,1),'1'),COLORYELLOW;

B12图标:=DRAWTEXT(VAR300  AND MA20<REF(MA20,1) AND COUNT(VAR300,B100)=2,0.95*REF(LC,1),'2'),COLORYELLOW;

B13图标:=DRAWTEXT(VAR300  AND MA20<REF(MA20,1) AND COUNT(VAR300,B100)=3,0.95*REF(LC,1),'3'),COLORYELLOW;

B14图标:=DRAWTEXT(VAR300  AND MA20<REF(MA20,1) AND COUNT(VAR300,B100)=4,0.95*REF(LC,1),'4'),COLORYELLOW;

B15图标:=DRAWTEXT(VAR300  AND MA20<REF(MA20,1) AND COUNT(VAR300,B100)=5,0.95*REF(LC,1),'5'),COLORYELLOW;

B16图标:=DRAWTEXT(VAR300  AND MA20<REF(MA20,1) AND COUNT(VAR300,B100)=6,0.95*REF(LC,1),'6'),COLORYELLOW;

B200:=BARSLAST(MA20<REF(MA20,1));

B21图标:=DRAWTEXT(VAR400  AND MA20>REF(MA20,1) AND COUNT(VAR400,B200)=1 ,1.05*REF(LC,1),'1');

B22图标:=DRAWTEXT(VAR400  AND MA20>REF(MA20,1) AND COUNT(VAR400,B200)=2 ,1.05*REF(LC,1),'2');

B23图标:=DRAWTEXT(VAR400  AND MA20>REF(MA20,1) AND COUNT(VAR400,B200)=3 ,1.05*REF(LC,1),'3');

B24图标:=DRAWTEXT(VAR400  AND MA20>REF(MA20,1) AND COUNT(VAR400,B200)=4 ,1.05*REF(LC,1),'4');

B25图标:=DRAWTEXT(VAR400  AND MA20>REF(MA20,1) AND COUNT(VAR400,B200)=5 ,1.05*REF(LC,1),'5');

多1:=B11图标;多2:=B12图标;多3:=B13图标;多4:=B14图标;多5:=B15图标;

空1:=B21图标;空2:=B22图标;空3:=B23图标;空4:=B24图标;空5:=B25图标;

买:DRAWTEXT(多3 OR 多4 OR 多5,-26.88,'○')COLORYELLOW;

卖:DRAWTEXT(空3 OR 空4 OR 空5,113.58,'○')COLORLIBLUE;

价量:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)

-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)

,{COLOR00CCFF}COLORLIBLUE,NODRAW;

主线:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25)

,{COLORCYAN}COLORYELLOW,NODRAW;

快线:=(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25)

,{COLOR55AAFF}COLORWHITE,NODRAW;

价量走势:=价量,{COLOR0CC0FF}COLORLIBLUE;

主线走势:=主线,{COLOR00FFAA}COLORYELLOW;

快线走势:=快线,{COLORFF68DD}COLORLIBLUE,DOTLINE; 

同生共死1:=EXIST(收盘<=3,3)AND EXIST(快线走势<=0,2) AND CROSS(REF(价量走势,0),REF(价量走势,1))AND

   CROSS(REF(主线走势,0),REF(主线走势,1))AND CROSS(REF(快线走势,0),REF(快线走势,1));

同生共死1图标:DRAWICON(同生共死1,20,13);

同生共死2:=LONGCROSS(价量,20,8);

同生共死2图标:DRAWICON(同生共死2,-2.20.20,1);

RSV999:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;

K1999:=SMA(RSV999,3,1);

D1999:=SMA(K1999,3,1);

KK999:=INTPART(K1999);

DD999:=INTPART(D1999);

风险系数:=KK999+DD999;{变异KD风险系数TFXXS}

乖离系数:=(风险系数-REF(风险系数,1));{变异KD乖离系数TGLXS:资金流向}

红1:=STICKLINE(乖离系数>0 AND 乖离系数>REF(乖离系数,1),100,乖离系数+100,1,0),COLOR0000AA; 

红2:=STICKLINE(乖离系数>0 AND 乖离系数>REF(乖离系数,1),100,乖离系数+100,1,0),COLOR0022CC;

红3:=STICKLINE(乖离系数>0 AND 乖离系数>REF(乖离系数,1),100,乖离系数+100,1,0),COLOR0055FF;

粉1:=STICKLINE(乖离系数<0 AND 乖离系数>REF(乖离系数,1),100,乖离系数+100,1,0),COLORAA00BB;

粉2:=STICKLINE(乖离系数<0 AND 乖离系数>REF(乖离系数,1),100,乖离系数+100,1,0),COLORCC22BB;

粉3:=STICKLINE(乖离系数<0 AND 乖离系数>REF(乖离系数,1),100,乖离系数+100,1,0),COLORFF55BB;

黄1:=STICKLINE(乖离系数>0 AND 乖离系数<=REF(乖离系数,1),100,乖离系数+100,1,0),COLOR00AAFF; 

黄2:=STICKLINE(乖离系数>0 AND 乖离系数<=REF(乖离系数,1),100,乖离系数+100,1,0),COLOR00CCFF; 

黄3:=STICKLINE(乖离系数>0 AND 乖离系数<=REF(乖离系数,1),100,乖离系数+100,1,0),COLOR00FFFF;

蓝1:=STICKLINE(乖离系数<0 AND 乖离系数<=REF(乖离系数,1),100,乖离系数+100,1,0),COLORFF7700;

蓝2:=STICKLINE(乖离系数<0 AND 乖离系数<=REF(乖离系数,1),100,乖离系数+100,1,0),COLORFFAA22;

蓝3:=STICKLINE(乖离系数<0 AND 乖离系数<=REF(乖离系数,1),100,乖离系数+100,1,0),COLORFFFF55;

蓝4:=STICKLINE(乖离系数=0 AND REF(乖离系数,1)>=0,100,乖离系数+100,8,0),COLORBROWN;

蓝5:=STICKLINE(乖离系数=0 AND REF(乖离系数,1)<0,100,乖离系数+100,8,0),COLORWHITE;

主力筹码:=EMA(WINNER(CLOSE)*70,3);{主力筹码估算ZLCM}

散户筹码:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{散户筹码估算SHCM}

散户套牢:=散户筹码/(主力筹码+散户筹码)*100;{散户套牢筹码系数ZSHTL}

主力控盘:=主力筹码/(主力筹码+散户筹码)*100;{主力控盘筹码系数ZZLKP}

散户警戒:=EMA(散户套牢,55);{散户警戒ZSHJJ}

主力警戒:=EMA(主力控盘,55);{主力警戒ZZLJJ}

{散户套牢筹码}

套牢筹码:=STICKLINE(C>0,散户套牢,主力控盘,0.5,0),COLOR808080;

{散户筹码警戒}

散户筹码警戒:=STICKLINE(散户警戒>REF(散户警戒,1),散户套牢,散户警戒,1,0),COLORC0C0C0;

{主力控盘筹码}

主力控盘1粉:=STICKLINE(主力控盘>REF(主力控盘,1) AND 主力控盘>20,主力控盘,20,1,0 ),COLORAA00BB;

主力控盘2粉:=STICKLINE(主力控盘>REF(主力控盘,1) AND 主力控盘>20,主力控盘,20,1,0 ),COLORCC22BB; 

主力控盘3粉:=STICKLINE(主力控盘>REF(主力控盘,1) AND 主力控盘>20,主力控盘,20,1,0 ),COLOREE44BB; 

主力控盘1蓝:=STICKLINE(主力控盘<=REF(主力控盘,1) AND 主力控盘>20,主力控盘,20,1,0 ),COLORFF7700; 

主力控盘2蓝:=STICKLINE(主力控盘<=REF(主力控盘,1) AND 主力控盘>20,主力控盘,20,1,0 ),COLORFFAA22;

主力控盘3蓝:=STICKLINE(主力控盘<=REF(主力控盘,1) AND 主力控盘>20,主力控盘,20,1,0 ),COLORFFFF55;

主力控盘1亮红:=STICKLINE(主力控盘>REF(主力控盘,1) AND 主力控盘<20,主力控盘,0,1,0 ),COLOR131FFD;

主力控盘2亮红:=STICKLINE(主力控盘>REF(主力控盘,1) AND 主力控盘<20,主力控盘,0,1,0 ),COLOR5050FF;

主力控盘3亮红:=STICKLINE(主力控盘>REF(主力控盘,1) AND 主力控盘<20,主力控盘,0,1,0 ),COLOR7E7EFF;

主力控盘1深蓝:=STICKLINE(主力控盘<=REF(主力控盘,1) AND 主力控盘<20,主力控盘,0,1,0 ),COLORAA0000;

主力控盘2深蓝:=STICKLINE(主力控盘<=REF(主力控盘,1) AND 主力控盘<20,主力控盘,0,1,0 ),COLORCC0000;

主力控盘3深蓝:=STICKLINE(主力控盘<=REF(主力控盘,1) AND 主力控盘<20,主力控盘,0,1 ,0 ),COLORFF0000;

{主力筹码警戒}

主力警戒1黄:=STICKLINE(主力警戒>REF(主力警戒,1),主力控盘,主力警戒,1,0 ),COLOR00AAFF; 

主力警戒2黄:=STICKLINE(主力警戒>REF(主力警戒,1),主力控盘,主力警戒,1,0 ),COLOR00CCFF; 

主力警戒3黄:=STICKLINE(主力警戒>REF(主力警戒,1),主力控盘,主力警戒,1,0 ),COLOR00FFFF;

主力警戒1红:=STICKLINE(主力控盘>主力警戒 AND 主力警戒>50,主力控盘,主力警戒,1,0 ),COLOR0000AA; 

主力警戒2红:=STICKLINE(主力控盘>主力警戒 AND 主力警戒>50,主力控盘,主力警戒,1,0 ),COLOR0022CC;

主力警戒3红:=STICKLINE(主力控盘>主力警戒 AND 主力警戒>50,主力控盘,主力警戒,1 ,0 ),COLOR0055FF;

主力控盘红1图标:=STICKLINE(主力控盘>主力警戒 AND 主力警戒<50 AND 主力控盘>50 

AND 主力警戒>REF(主力警戒,1),主力控盘,50,1,0 ),COLOR0000AA; 

主力控盘红2图标:=STICKLINE(主力控盘>主力警戒 AND 主力警戒<50 AND 主力控盘>50 

AND 主力警戒>REF(主力警戒,1),主力控盘,50,1,0 ),COLOR0022CC;

主力控盘红3图标:=STICKLINE(主力控盘>主力警戒 AND 主力警戒<50 AND 主力控盘>50 

AND 主力警戒>REF(主力警戒,1),主力控盘,50,1,0 ),COLOR0055FF;

{铸顶风险区}

主力控盘绿1图标:=STICKLINE(主力控盘>80,主力控盘,主力控盘-(主力控盘-80)/2,1,0),COLOR00AA00;

主力控盘绿2图标:=STICKLINE(主力控盘>80,主力控盘,主力控盘-(主力控盘-80)/2,1,0),COLOR00CC00;

主力控盘绿3图标:=STICKLINE(主力控盘>80,主力控盘,主力控盘-(主力控盘-80)/2,1,0),COLOR00FF00;

散兵坑:=IF(主力控盘<=10,主力控盘,主力控盘),COLORMAGENTA,NODRAW;

{散兵坑}

散兵坑图标:STICKLINE(主力控盘<=10,-5,-0.38,1,0),{COLORDD00DD}COLOR0099FF;

{神奇DDE}

VAR001:=(2*CLOSE+HIGH+LOW+OPEN)/5;

A001:=(EMA(VAR001,3)+EMA(VAR001,6)+EMA(VAR001,12)+EMA(VAR001,24))/4;

A002:=EMA(A001,2);

A003:=EMA(A002,2);

A004:=EMA(A003,2);

A005:=EMA(A4,2);

A006:=EMA(A5,2);

A007:=EMA(A6,2);

A008:=EMA(VAR1,2.78)*1.028;

A009:=MA(OPEN,3.2)*1.028;

安全线:=EMA(CLOSE,55),COLORGREEN, POINTDOT,LINETHICK2;

MCST:=DMA((AMOUNT/(VOL*100)),VOL/CAPITAL),COLORRED,POINTDOT,LINETHICK4;

{V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));

V3:=(1+7/100)*(DMA(CLOSE,V1));

撑价:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCDCDCD;

阻价:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORYELLOW;}{箱体}{P,3,30,10}

阻力:=PEAK(CLOSE,10,1)*0.98,COLORWHITE;

支撑:=TROUGH(CLOSE,10,1)*1.02,COLORYELLOW;

买入05:=EXIST(REF(支撑,1)=REF(支撑,2),1) AND REF(支撑,0)>REF(支撑,1) AND 收盘<=(65)COLORRED;

卖出05:=EXIST(REF(阻力,1)=REF(阻力,2),1) AND REF(阻力,0)>REF(阻力,1) AND 收盘>=(70)COLORGREEN;

多头05:=EXIST(REF(支撑,1)=REF(支撑,2),1) AND REF(支撑,0)<REF(支撑,1) AND 收盘<=(65)COLORMAGENTA;

空头05:=EXIST(REF(阻力,1)=REF(阻力,2),1) AND REF(阻力,0)<REF(阻力,1) AND 收盘>=(70)COLORLIBLUE;

牛1:=买入05;

牛1图标1:DRAWICON(牛1,-9.88,5);

牛1图标2:DRAWTEXT(牛1,-28.08,'..牛耕田')COLOR0099FF;

熊2:=卖出05;

熊2图标1:DRAWICON(熊2,93.98,4);

熊2图标2:DRAWTEXT(熊2,113.68,'..熊冬眠')COLORLIBLUE;

牛3:=多头05;

牛3图标1:DRAWICON(牛3,-9.88,5);

牛3图标2:DRAWTEXT(牛3,-28.08,'..牛耕田')COLOR0099FF;

熊4:=空头05;

熊4图标1:DRAWICON(熊4,93.98,4);

熊4图标2:DRAWTEXT(熊4,113.18,'..熊冬眠')COLORLIBLUE;

附加卖出图标01:STICKLINE(卖出05,113.40,118.00,0.25,0)COLORLIBLUE;

附加买入图标02:STICKLINE(买入05,-17.98,-13.38,0.25,0)COLORYELLOW;

附加卖出图标03:STICKLINE(卖出05,108.80,113.40,0.25,0)COLORGREEN;

附加买入图标04:STICKLINE(买入05,-22.58,-17.98,0.25,0)COLORRED;

附加卖出图标05:STICKLINE(卖出05,104.20,108.80,0.25,0)COLORLIBLUE;

附加买入图标06:STICKLINE(买入05,-27.18,-22.58,0.25,0)COLORYELLOW;

附加卖出图标07:STICKLINE(卖出05,98.60,104.20,0.25,0)COLORGREEN;

附加买入图标08:STICKLINE(买入05,-31.78,-27.18,0.25,0)COLORRED;

附加卖出图标09:STICKLINE(空头05,113.40,118.00,0.25,0)COLORLIBLUE;

附加买入图标10:STICKLINE(多头05,-17.98,-13.38,0.25,0)COLORYELLOW;

附加卖出图标11:STICKLINE(空头05,108.80,113.40,0.25,0)COLORGREEN;

附加买入图标12:STICKLINE(多头05,-22.58,-17.98,0.25,0)COLORRED;

附加卖出图标13:STICKLINE(空头05,104.20,108.80,0.25,0)COLORLIBLUE;

附加买入图标14:STICKLINE(多头05,-27.18,-22.58,0.25,0)COLORYELLOW;

附加卖出图标15:STICKLINE(空头05,98.60,104.20,0.25,0)COLORGREEN;

附加买入图标16:STICKLINE(多头05,-31.78,-27.18,0.25,0)COLORRED;

{飞龙顶底}

攻击线5:=MA(C,5)LINETHICK1;

操盘线10:=MA(C,10)LINETHICK1;

生命线24:=MA(C,24)LINETHICK1;

决策线60:=MA(C,60)LINETHICK1;

年线251:=MA(C,251)LINETHICK1,COLORLICYAN,DOTLINE;

NFL:=20;MFL:=30;P1:=80;P2:=100;

VAR101:=(C+H+O+L)/4;

卖出FL:=XMA(VAR101,NFL)*(1+P1/1000),COLORRED,LINETHICK2;

买入FL:=XMA(VAR101,MFL)*(1-P2/1000),COLORLIBLUE,LINETHICK2;

幅度:=100*(卖出FL-买入FL)/买入FL,NODRAW;

MA1FL:=MA(VAR101,3);

飞龙图标01:=STICKLINE(卖出FL>LOW AND 卖出FL<HIGH,卖出FL,MAX(卖出FL,MAX(OPEN,CLOSE)),3,0),COLORGREEN;

飞龙图标02:=STICKLINE(卖出FL>MIN(C,O) AND 卖出FL<MAX(C,O),卖出FL,MAX(OPEN,CLOSE),3,0),COLORGREEN;

飞龙图标03:=STICKLINE(卖出FL>LOW AND 卖出FL<HIGH,卖出FL,HIGH,0,0),COLORGREEN;

飞龙图标04:=STICKLINE(卖出FL<LOW,OPEN,CLOSE,3,0),COLORGREEN;

飞龙图标05:=STICKLINE(卖出FL<LOW,HIGH,LOW,0,0),COLORGREEN;

飞龙图标06:=STICKLINE(买入FL>LOW AND 买入FL<HIGH,买入FL,MIN(MIN(OPEN,CLOSE),买入FL),3,0),COLORMAGENTA;

飞龙图标07:=STICKLINE(买入FL>MIN(C,O) AND 买入FL<MAX(C,O),买入FL,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;

飞龙图标08:=STICKLINE(买入FL>LOW AND 买入FL<HIGH,买入FL,LOW,0,0),COLORMAGENTA;

飞龙图标09:=STICKLINE(买入FL>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;

飞龙图标10:=STICKLINE(买入FL>HIGH,HIGH,LOW,0,0),COLORMAGENTA;

飞龙买入:=DRAWTEXT(CROSS(LOW,买入FL),LOW*0.95,'买'),COLORRED;

飞龙卖出:=DRAWTEXT(CROSS(卖出FL,HIGH),HIGH*1.02,'卖'),COLORYELLOW;

买入图标:DRAWTEXT(飞龙买入,-28.08,'飞龙买入'),COLORRED;

卖出图标:DRAWTEXT(飞龙卖出,113.68,'飞龙卖出'),COLORGREEN;

中线走势:=收盘<=(15)AND CROSS(REF(收盘,0),REF(开盘,0))OR 收盘<=(15)AND CROSS(REF(C,0),REF(生命线24,0));

中线多头建仓1:DRAWTEXT(FILTER(中线走势,10),30.98,'★')COLOR0099FF;

中线多头建仓2:DRAWTEXT(FILTER(中线走势,10),收盘-3.98,'中线★建仓')COLOR0099FF;

{庄 获 利}

设:=STICKLINE(C>0,0,0,10,0),COLORGRAY;

BC:=((H*0.5+L*0.5)*0.382+(O*0.382+C*0.618)*0.618);

LJ:=IF(INDEXC=C,BC,(BC+AMOUNT/(V*100))/2),COLORGRAY;

WQFS:=IF(INDEXC=C,48,SUMBARS(VOL,CAPITAL));

FSH:=MA(HHV(BC,WQFS),WQFS);

FSL:=MA(LLV(BC,WQFS),WQFS);

潮:=(LJ-FSL)/(FSH-FSL)*10,COLOR6600FF,LINETHICK2;

XP0:=BARSLAST(CROSS(潮,0));

乾坤线:=MA(LJ,XP0+1);{分析家公式网WWW.88GS.COM}

E:=LLV(L,XP0+1)=L;{完全换手最低价的位置}

E1:=BARSLAST(E);{求得完全换手最低价的位置到现在的周期}

建仓成本:=REF(LJ,BARSLAST(E)),COLORWHITE;

拉升成本:=REF(LJ,BARSLAST(CROSS(LJ,乾坤线)));

成本中枢:=EMA((建仓成本+拉升成本)/2,1);

庄获利:=(LJ-成本中枢)/成本中枢*100,COLORRED,DOTLINE;

进出线:=REF(HHV(庄获利,XP0+1),1),COLORGREEN;

底仓线:=REF(LLV(庄获利,XP0+1),1),COLORMAGENTA,DOTLINE;

盈亏线:=(进出线+底仓线)/2,COLORWHITE,DOTLINE;

趋势拐点:=EXIST(REF(底仓线,0)<=(REF(底仓线,1)),15) AND CROSS(REF(底仓线,0),REF(底仓线,1));

庄获利拐点:DRAWTEXT(趋势拐点 AND 收盘<=(10),45.98,'▲庄获利')COLORRED;

持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORYELLOW,{COLOR9955FF};

空仓:=IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN,{COLORDDFF00};

持仓图标:DRAWTEXT(CLOSE>=SAR(4,2,20),-36.8,'⊙'),COLORRED;

空仓图标:DRAWTEXT(CLOSE<=SAR(4,2,20),-36.8,'⊙'),COLORGREEN;

SAR图标:=STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW;

平均成本均线:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL)LINETHICK1; 

平均成本K线:=DRAWKLINE(H,O,L,C);

多头成本:=LONGCROSS(REF(平均成本K线,0),平均成本均线,10);

空头成本:=LONGCROSS(平均成本均线,REF(平均成本K线,0),10);

多头成本趋势:DRAWTEXT(多头成本,55,'成本均线多头')COLORRED;

空头成本趋势:DRAWTEXT(空头成本,45,'成本均线空头')COLORGREEN;

MID多空线:=(3*CLOSE+LOW+OPEN+HIGH)/6;

DKX:=(20*MID多空线+19*REF(MID多空线,1)+18*REF(MID多空线,2)+17*REF(MID多空线,3)+16*REF(MID多空线,4)+

15*REF(MID多空线,5)+14*REF(MID多空线,6)+13*REF(MID多空线,7)+12*REF(MID多空线,8)+11*REF(MID多空线,9)+

10*REF(MID多空线,10)+9*REF(MID多空线,11)+8*REF(MID多空线,12)+7*REF(MID多空线,13)+6*REF(MID多空线,14)+

5*REF(MID多空线,15)+4*REF(MID多空线,16)+3*REF(MID多空线,17)+2*REF(MID多空线,18)+REF(MID多空线,20))/210;

M:=10;

MADKX:=MA(DKX,M);

多空线多头:=LONGCROSS(REF(DKX,0),REF(MADKX,0),10);

多空线空头:=LONGCROSS(REF(MADKX,0),REF(DKX,0),10);

多:DRAWICON(多空线多头,46,1);

空:DRAWICON(多空线空头,54,2);

天际:130,COLORRED;

高山:120,COLORRED;

地界:=-40,COLORRED;

零轴:0,COLORLIRED;

高点线:=80,COLORGREEN,DOTLINE;

低点线:=20,COLORRED,DOTLINE;

界轴:=100,COLORGREEN;

辅助线1:-5,COLORLICYAN;辅助线2:-14,COLORLICYAN;辅助线3:-23,COLORLICYAN;辅助线4:=-32,COLORLICYAN;辅助线5:50,DOTLINE,COLORLIBLUE;辅助线6:110,COLORRED;

{个股短线交易,当使用多日济安分时主图并极品分时副图,同时,参考5分钟K线或15分钟K线走势进行操盘比较稳妥。}

 

D1:=1;

AA1:=DRAWGBK('六大核心指标:1.有大成交量量柱。2.成交量金叉死叉。3.KDJ金叉死叉。4.开盘线收盘线金叉死叉。5.MACD金叉死叉。6.牛耕田熊冬眠。','.','.','.','.','.');

AA1图标:DRAWTEXT_FIX(D1=1,0,0.0030.18,0,AA1),COLOR0099FF,LINETHICK2;


 

指标修改服务包括:大智慧 通达信 博易大师 文华财经 倚天财经等主流软件

1、将您提供的源码指标修改成: 选股 - 预警 公式

2、将多个指标合并在一起或者是分解指标

3、主图 副图修改

收费具体视修改内容多少和难易程度而定

特别提示:

选股预警指标编写 ,不同主流行情软件间指标转换。 请联系微信:396950280

 

一个聚百万原创指标公式圈子

	

	

原创价值分享公众号

ID:yungongshi
 

1
3
点击进入翔博软件旗下官方微店--指标超市