超短买卖 副图指标 通达信指标公式

合集下载

通达信副图指标公式源码大全

通达信副图指标公式源码大全

副图指标公式源码1、百万踏浪(相传为杨百万看图公式)N1:=9;N:=3;V AR1:=REF(CLOSE,1);标尺: SMA(MAX(CLOSE-V AR1,0),5,1)/SMA(ABS(CLOSE-V AR1),5,1)*100;V AR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;V AR3:=SMA(V AR2,3,1);V AR4:=SMA(V AR3,3,1);V AR5:=SMA(V AR4,3,1);浪: V AR3,COLORBLUE;波: V AR4, COLORRED;段: V AR5 ,COLORYELLOW;V AR6:=CROSS(V AR3,VAR4) AND V AR4<25;STICKLINE(V AR6,0,V AR4+15,5,0), COLORGREEN;V AR7:=CROSS(V AR4,VAR5) AND V AR4<25;V AR8:=V AR7 AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2; STICKLINE(V AR7,0,V AR4+55,5,0),COLORWHITE;DRAWTEXT(V AR7 AND COUNT(V AR7,10)=1,V AR4+25,'抄底'),COLORYELLOW; STICKLINE(V AR8,0,V AR4+15,5,0),COLORBLUE;DRAWTEXT(V AR8 AND COUNT(V AR8,10)=1,V AR4-1,'放量'),COLORGREEN;V AR9:=CROSS(V AR3,VAR4) AND V AR4>80 AND V AR4>VAR5;STICKLINE(V AR9 AND COUNT(V AR9,5)=1,V AR4-5,100,5,0),COLORYELLOW;V ARA:=CROSS(V AR5,V AR4) AND REF(V AR4,1)>80;STICKLINE(V ARA,V AR4-15,100,15,0), COLORYELLOW;DRAWTEXT(V ARA AND COUNT(V ARA,10)=1,V AR4-25,'逃顶'), COLORYELLOW; V AR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;V AR1B:=SMA((SMA(V AR1A,4,1)-50)*2,3,1);V AR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; V AR1D:=SMA(V AR1C,4,1);V AR1E:=SMA(V AR1D,3,1);V AR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;V ARE:=REF(LOW,1)*0.9;V ARF:=LOW*0.9;V AR10:=(V ARF*VOL+V ARE*(CAPITAL-VOL))/CAPITAL;V AR11:=EMA(V AR10,30);V AR12:=CLOSE-REF(CLOSE,1);V AR13:=MAX(V AR12,0);V AR14:=ABS(V AR12);V AR15:=SMA(VAR13,7,1)/SMA(V AR14,7,1)*100;V AR16:=SMA(VAR13,13,1)/SMA(V AR14,13,1)*100;V AR17:=BARSCOUNT(CLOSE);V AR18:=SMA(MAX(V AR12,0),6,1)/SMA(ABS(V AR12),6,1)*100;V AR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;V AR20:=V AR18<=25 AND V AR19<-95 AND V AR1F>20 AND V AR1B<-30 AND V AR1E<30 AND V AR11-CLOSE>=-0.25 AND V AR15<22 AND V AR16<28 AND V AR17>50; STICKLINE(V AR20,0,50,10,0),LINETHICK2,COLORBLUE;DRAWTEXT(CROSS(V AR20,0.5) AND COUNT(V AR20=1,10)=1,60,'百万导弹?'),LINETHICK7,COLORWHITE;2、分类资金A:=IF((CLOSE>126.32),(AMOUNT)/(100000),VOL);主力:MA(A,4),LINETHICK0,COLORYELLOW;游资:MA(A,8),LINETHICK0,COLOR00FF00;大户:MA(A,16),LINETHICK0,COLORRED;散户:MA(A,32),LINETHICK0,COLORF0F000;主比:ABS(((主力)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORYELLOW;游比:ABS(((游资)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLOR00FF00;大比:ABS(((大户)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORRED;散比:ABS(((散户)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORF0F000;警戒线:MA(A,180),COLORFF66FF,LINETHICK1;STICKLINE((主力> 0),0,主力,3,0),COLOR009CFF;STICKLINE((主力> 0),0,主力,2.8,0),COLOR009CFF;STICKLINE((主力> 0),0,主力,2.5,0),COLOR00C0FF;STICKLINE((主力> 0),0,主力,1.5,0),COLOR00D1FF;STICKLINE((主力> 0),0,主力,1,0),COLOR00EAFF;STICKLINE((主力> 0),0,主力,0.7,0),COLORYELLOW;STICKLINE((游资> 0),0,游资,3,0),COLOR00C100;STICKLINE((游资> 0),0,游资,2.8,0),COLOR00CA00;STICKLINE((游资> 0),0,游资,2.5,0),COLOR00D300;STICKLINE((游资> 0),0,游资,1.5,0),COLOR00DB00;STICKLINE((游资> 0),0,游资,1,0),COLOR00EA00;STICKLINE((游资> 0),0,游资,0.7,0),COLORGREEN;STICKLINE((大户> 0),0,大户,3,0),COLOR1020AA;STICKLINE((大户> 0),0,大户,2.8,0),COLOR1020BB;STICKLINE((大户> 0),0,大户,2.5,0),COLOR1020CC;STICKLINE((大户> 0),0,大户,1.5,0),COLOR1020DD;STICKLINE((大户> 0),0,大户,1,0),COLOR1020EE;STICKLINE((大户> 0),0,大户,0.7,0),COLORRED;STICKLINE((散户> 0),0,散户,3,0),COLORFF7700;STICKLINE((散户> 0),0,散户,2.8,0),COLORFF8800;STICKLINE((散户> 0),0,散户,2.5,0),COLORFF9900;STICKLINE((散户> 0),0,散户,1.5,0),COLORFFAA00; STICKLINE((散户> 0),0,散户,1,0),COLORFFBB00;STICKLINE((散户> 0),0,散户,0.7,0),COLORLIBLUE;3、黑马起爆点V AR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;V AR2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;V AR3:=SMA(V AR2,2,1);天:100+(-ABS(V AR1)),COLORRED;下:SMA(V AR3,2,1);无:ABS(V AR1),COLORGREEN;敌:50,COLORFFAA00,LINETHICK3;A:80;B:20;买:STICKLINE(CROSS(下,无),3,20,2,0),COLORRED,LINETHICK1;STICKLINE(CROSS(下,无),20,25,2,0),COLORFF9900,LINETHICK1;DRAWTEXT(CROSS(下,无),30,' '),COLORFFFFCC;卖:STICKLINE(CROSS(下,天),70,90,2,0),COLORRED,LINETHICK1;STICKLINE(CROSS(下,天),90,99,2,0),COLORFF9900,LINETHICK1;DRAWTEXT(CROSS(下,天),70,' '),COLORFFFFCC;选股2:IF(CROSS(下,20),1,0);DRAWICON((CROSS(下,20) ),20,1);DRAWICON((CROSS(下,20) ),-20,25);4、宁波绝密(相传为宁波涨停敢死队的绝密指标)WOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORFFFFFF; VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V135:MA(VOLUME,135);V AR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),VOL/2)),COLORRED,POINTDOT;主卖:IF(CLOSE>OPEN,V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,V AR1*(HIG H-LOW),VOL/2)),COLOR00FF00,POINTDOT;STICKLINE(主买>0,0,主买,2,0),COLORRED;{STICKLINE(主卖>0,主买,VOL,2,1),COLOR00FF80;}STICKLINE(主买<REF(主买,1)AND 主买>0,0,主买,2,0),COLOR00FFFF;换手:VOL/CAPITAL*100,POINTDOT;二十日换手:SUM(换手,20);5、起涨点换手率%:VOL/CAPITAL*100,LINETHICK0,COLORYELLOW;量比:V/(REF(MA(V,5),1)),LINETHICK0,COLORRED;VVOL:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;虚拟量比:VVOL/(REF(MA(V,5),1)),LINETHICK0,COLORRED;获利比例%:WINNER(C)*100,COLORLIBLUE;涨幅%:(C-REF(C,1))/REF(C,1)*100,LINETHICK0;换手率%1:=换手率%>5;量比1:=量比>1.5 OR 虚拟量比>1.5;获利比例%1:=获利比例%>70;涨幅%1:=涨幅%>3;启动:=换手率%1 AND 量比1 AND 获利比例%1 AND 涨幅%1 ;起涨点:IF(启动,101,0)COLORRED,LINETHICK2;6、庄家建仓V AR1:=REF(LOW,1);V AR2:=SMA(ABS(LOW-V AR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*4;V AR3:=EMA(VAR2,13);V AR4:=LLV(LOW,34);V AR5:=EMA(IF(LOW<=V AR4,V AR3,0),3);主力进场:STICKLINE(V AR5>REF(V AR5,1),0,V AR5,7,0 ),COLORRED;7、出色超赢JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;V AR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));V AR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V ARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V ARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V ARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V ARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));V ARE:=(REF(V ARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V ARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V AR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V AR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V AR19:=((REF(VARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR VAR16 OR V AR17 OR V AR18,1)) AND V AR1);V AR1A:=((REF(VAR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,1)) AND V ARD);红色持股:V AR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOR0000FF,NODRAW;青色观望:V ARD OR V ARE OR V ARF OR VAR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR VAR16 OR V AR17 OR V AR18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLORFF0000,NODRAW;黄色低买:V AR19,COLOR33AACC,NODRAW;洋红离场:V AR1A,COLORMAGENTA,NODRAW;急跌关注:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORWHITE,NODRAW;上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;STICKLINE(C>=O,L,H,0,0),COLOR0000CC;STICKLINE(C<O,L,H,0,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;CO:=(C-O);STICKLINE(急跌关注,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急跌关注,O,C-CO/2,2,0),COLOR888888;STICKLINE(急跌关注,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急跌关注,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急跌关注,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(黄色低买,O,O+CO/3,2.8,0),COLOR335555;STICKLINE(黄色低买,O,O+CO/3,2,0),COLOR338888;STICKLINE(黄色低买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE(黄色低买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(黄色低买,O,O+CO/3,0,0),COLOR33EEEE;STICKLINE(洋红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE(洋红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE(洋红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE(洋红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(洋红离场,O,O+CO/3,0.5,0),COLOREE00EE;压力:MA(REF(HHV(C,30),1),2),POINTDOT,COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),POINTDOT,COLORABFF46;PMA:MA(C,5),COLORWHITE,LINETHICK2;IF(PMA>REF(PMA,1),PMA,DRAWNULL),COLORRED,LINETHICK2;IF(PMA<REF(PMA,1),PMA,DRAWNULL),COLORGREEN,LINETHICK2;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X, 6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+REF(X,20))/210,COLORFF00FF,LINETHICK2;DD:=多空线<REF(多空线,1);IF(DD,多空线,DRAWNULL),COLOR00FFFF,LINETHICK2;A:=(PMA>多空线);IF(A,多空线,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;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;X2:=LLV(J,2)=LLV(J,8);Y:=IF(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,30,0);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.98,'★'),COLORYELLOW;8、彩色成交量STICKLINE(VOL > 0,VOL,0,3,0),COLOR333333;STICKLINE(VOL > 0,VOL,0,2.5,0),COLOR998855;STICKLINE(VOL > 0,VOL,0,1.7,0),COLORBBAA77;STICKLINE(VOL > 0,VOL,0,0.9,0),COLORDDCC99;STICKLINE(VOL > 0,VOL,0,0.04,0),COLORFFEEBB;换手:=VOL/CAPITAL*100,COLORRED;STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,3,0),COLOR00AAAA; STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,2.5,0),COLOR00CCCC; STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,1.7,0),COLOR00EEEE; STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,0.08,0),COLOR00FFFF; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,3,0 ),COLOR009900; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,2.5,0 ),COLOR00BB00; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,1.7,0 ),COLOR00DD00; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,0.8,0 ),COLOR00FF00; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,3,0),COLORBROWN; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,2.5,0),COLOR0000AA; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,1.7,0),COLOR0000CC; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,0.8,0),COLOR0000DD;五天均量:MA(VOL,5),COLORRED,LINETHICK0.01;廿天均量:MA(VOL,20),COLORWHITE,LINETHICK0.01;HSS:=V/CAPITAL*100,NODRAW;{显示当日换手}五天换手率:SUM(HSS,5),NODRAW;廿天换手率:SUM(HSS,20),NODRAW;抛压:STICKLINE(CROSS(84,RSI),0 ,VOL,1.5,0),COLORBLUE,LINETHICK5; V24:MA(VOL,24),COLORLIBLUE;V10:MA(VOL,10),COLORRED;V3:MA(VOL,3),COLORLIGRAY;9、涨停回马枪(有主图)均价线:=AMOUNT/V/100;C2:=REF(C,1);涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);STICKLINE(涨停,0,5,6,0),COLORYELLOW;DRAWTEXT(涨停,8,'涨停'),COLORYELLOW;MA13:=MA(C,13),COLORGRAY;MA21:=MA(C,21),COLORWHITE;支撑线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; 震仓线:=45;震仓线2:=50;逃命线:=80;抄底线:=20;绝底线:=5;PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;PP:=操作线<震仓线AND REF(操作线,1)>震仓线;PP3:=操作线<抄底线AND REF(操作线,1)>抄底线;HH:=COUNT(涨停,13)>=1;STICKLINE(PP2 AND HH,0,5,3,0),COLORRED;STICKLINE(PP AND HH,0,5,3,0),COLORRED;STICKLINE(PP3 AND HH,0,5,3,0),COLORRED;DRAWTEXT(PP2 AND HH,8,'预警'),COLORRED;DRAWTEXT(PP AND HH,8,'预警'),COLORRED;DRAWTEXT(PP3 AND HH,8,'预警'),COLORRED;A:=SMA(L,4,3) ;绿色买入:IF (((A AND REF(PP,1) AND HH) OR (A AND REF(PP3,1) AND HH)),1,0 ); STICKLINE(A AND REF(PP,1) AND HH ,0,10,1,0),COLORGREEN;DRAWICON(A AND REF(PP,1) AND HH,12,1);STICKLINE(A AND REF(PP3,1) AND HH ,0,10,1,0)COLORGREEN;DRAWICON(A AND REF(PP3,1) AND HH,12,1);10、海风3号M1:=MA(CLOSE,1);M2:=(LOW+HIGH+CLOSE)/3;M3:= MA(M2,5);M4:= HHV(M3,10);Z:=HHV((M1<M4),10) OR HHV((M1<M4),10);S:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,35)-LLV(LOW,34)),3); DRAWTEXT( FILTER(CROSS(S ,60 ),20),L*0.98,'▲'),COLORYELLOW ; {DRAWTEXT(FILTER( Z,9),H*1.028,'★') ,COLORBLUE;STICKLINE( S>60,O,C,4,0) ,COLORFF9BFB;}STICKLINE( S>60,O,C,2,0) ,COLORRED;{STICKLINE( S>60,O,C,1.5,0) ,COLORFD9BFB; }STICKLINE( S>60,H,L,0,0) ,COLORRED;{STICKLINE( S<60,O,C,4,0) ,COLOR01DC38;STICKLINE( S<60,O,C,2.5,0) ,COLOR01FE41;}STICKLINE( S<60,O,C,2,0) ,COLORGREEN;STICKLINE( S<60,H,L,0,0) ,COLORGREEN;V AR1:MA(CLOSE,5);V AR2:MA(CLOSE,10);V AR3:MA(CLOSE,20);V AR60:MA(CLOSE,60);V AR120:MA(CLOSE,120);V AR4:=OPEN<V AR1 OR OPEN<V AR2 OR OPEN<V AR3;V AR5:=CLOSE>MAX(V AR1,MAX(V AR2,MAX(V AR3,V AR60)));V AR6:=VOL/MA(VOL,30)>1.2;V AR7:=CLOSE/REF(CLOSE,1)>1.049;V AR8:=V AR4 AND V AR5 AND V AR6 AND V AR7;V AR9:=V AR8 AND (REF(BARSLAST(V AR8),1)>60 OR BARSSINCE(V AR8)=0); DRAWICON(V AR9 ,L*0.98,1) ;STICKLINE( VAR9,O,C,6,0) ,COLORYELLOW;STICKLINE( VAR9,H,L,0.6,0) ,COLORYELLOW;11、涨停时间窗(通达信金融终端副图)N:=13;WR大于80考虑买:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),LINETHICK0;均价:AMOUNT/(VOL*100),LINETHICK0,COLORYELLOW;ZT:=C/REF(C,1)>1.097;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);STICKLINE(ZT,0,L*1,3,0),COLORYELLOW;DRAWTEXT(ZT,L*1.1,'涨停'),COLORF00FF0;V ARZT:=BARSLAST(C/REF(C,1)>1.097);AA:=BETWEEN(C,REF(L,BH)*1.01,REF(L,BH)*0.987);STICKLINE(AA,0,L*0.5,2,0),COLORBLUE;DRAWTEXT(AA,L*0.6,'警戒'),COLORWHITE;STICKLINE(AA AND V ARZT=2,0,L*0.8,2,0),COLORRED;DRAWTEXT(AA AND V ARZT=2,L*0.9,'时间窗'),COLORWHITE;STICKLINE(AA AND V ARZT=4,0,L*0.8,2,0),COLORRED;DRAWTEXT(AA AND V ARZT=4,L*0.9,'时间窗'),COLORWHITE;STICKLINE(AA AND V ARZT=7,0,L*0.8,2,0),COLORRED;DRAWTEXT(AA AND V ARZT=7,L*0.9,'时间窗'),COLORWHITE;STICKLINE(AA AND V ARZT=12,0,L*0.8,2,0),COLORRED;DRAWTEXT(AA AND V ARZT=12,L*0.9,'时间窗'),COLORWHITE;STICKLINE(AA AND V ARZT=20,0,L*0.8,2,0),COLORRED;DRAWTEXT(AA AND V ARZT=20,L*0.9,'时间窗'),COLORWHITE;。

通达信指标公式源码黄金超短副图

通达信指标公式源码黄金超短副图

X_1:=1151230;X_2:=IF(DATE<X_1,1,0);X_3:=1;X_4:=MA((2*CLOSE+HIGH+LOW)/4,5);X_5:=X_4*1.02;X_6:=X_4*0.98;X_7:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);X_8:=DMA(CLOSE,X_7);X_9:=1.07*X_8;X_10:=0.93*X_8;X_11:=(X_5-REF(X_5,5))/REF(X_5,5)*1000;X_12:=(X_9-REF(X_9,5))/REF(X_9,5)*1000;X_13:=MA(CLOSE,9);X_14:=X_5>X_9;X_15:=COUNT(X_12>=REF(X_12,1),2)>=2;X_16:=MA(VOL,10)>=MA(VOL,55);X_17:=COUNT(CLOSE>OPEN,7)>=4;X_18:=X_14 AND X_15 AND X_16 AND X_17;X_19:=LLV(LOW,10);X_20:=HHV(HIGH,25);X_21:=EMA((CLOSE-X_19)/(X_20-X_19)*4,4);X_22:=(LOW+HIGH+CLOSE*2)/4;X_23:=EMA(X_22,14);X_24:=(X_6-X_13)/X_13*100;X_25:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;X_26:=REF((X_6-X_25)/X_25*100,1);X_27:=REF(X_18,1) OR REF(X_18,2);X_28:=REF(COUNT(VOL>MA(VOL,5) OR VOL>MA(VOL,20) OR VOL>MA(VOL,135) AND CLOSE>OPEN,10),1)>=6;X_29:=REF(X_5>REF(X_5,1) AND X_9>REF(X_9,1) AND X_5>X_9 ANDCOUNT(CLOSE>OPEN,7)>=4,1);X_30:=X_5>X_9 AND X_9>=REF(X_9,1);X_31:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1) AND MA(CLOSE,55)>=REF(MA(CLOSE,55),1);X_32:=LOW<X_6*1 AND LOW<X_13*1.006;X_33:=X_24<=1.5 OR (X_24>1.5 AND LOW<X_23);X_34:=X_26<=1 OR (X_26>1 AND LOW<X_23);X_35:=CLOSE>DTPRICE(REF(CLOSE,1),0.09);X_36:=X_27 AND X_30 AND X_28 AND X_31 AND X_32 AND X_29 AND X_33 AND X_34 AND X_35;X_37:=IF(REF(EXIST(REF(X_36,1) AND HIGH>ZTPRICE(REF(LOW,1),0.04),4),1),0,1);X_38:=IF(NAMELIKE(55) OR NAMELIKE(56) OR NAMELIKE(10),0,1);X_39:=IF(CODELIKE(57),0,1);阶段卖出:3.2,COLORCYAN;顶部清仓:3.5,COLORGREEN;强弱分界:1.85,DOTLINE,COLORYELLOW;重点关注:0.5,COLORRED;底部介入:0.2,COLORGREEN;乖离1:X_24,NODRAW,COLORYELLOW;乖离2:X_26,NODRAW,COLORYELLOW;STICKLINE(X_21>REF(X_21,1),X_21,REF(X_21,1),3,1),COLORRED;STICKLINE(X_21<=REF(X_21,1),X_21,REF(X_21,1),3,1),COLORGREEN;DRAWICON(FILTER(CROSS(X_21,重点关注),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(顶部清仓,X_21),20),X_21+0.02,2);DRAWICON(FILTER(CROSS(X_21,底部介入),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(阶段卖出,X_21),20),X_21+0.02,2);DRAWNUMBER(ISLASTBAR,2.5,X_21),COLORGREEN;DRAWICON(FILTER(CROSS(X_21,重点关注),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(0.5,X_21),20),0.6,2);STICKLINE(X_21>REF(X_21,1),X_21,REF(X_21,1),3,1),COLORRED;STICKLINE(X_21<=REF(X_21,1),X_21,REF(X_21,1),3,1),COLORGREEN;DRAWICON(FILTER(CROSS(X_21,重点关注),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(顶部清仓,X_21),20),X_21+0.02,2);DRAWICON(FILTER(CROSS(X_21,底部介入),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(阶段卖出,X_21),20),X_21+0.02,2);DRAWNUMBER(ISLASTBAR,2.5,X_21),COLORGREEN;DRAWICON(FILTER(CROSS(X_21,重点关注),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(0.5,X_21),20),0.6,2);X_40:=X_36 AND X_37 AND X_3;超短:IF(X_40,2.5,0),STICK,COLORMAGENTA,LINETHICK4;X_41:=EXIST(X_40,5) AND EXIST(CROSS(MA(CLOSE,9),X_6),2) AND (CLOSE>REF(CLOSE,1) AND CLOSE>OPEN) AND CLOSE>X_6 AND LOW<MA(CLOSE,9) AND CLOSE/OPEN>1.009;持股:FILTER(X_41,2),NODRAW,COLORYELLOW;DRAWICON(持股,1,23);。

通达信指标公式源码 精准波段买卖副图指标

通达信指标公式源码 精准波段买卖副图指标

Z1:=STRCAT('【',STRCAT(CODE,STKNAME));Z2:=STRCAT(' 行业:',HYBLOCK);Z3:=STRCAT(' 地域:',DYBLOCK);Z4:=STRCAT(STRCAT(' 概念:',GNBLOCK),'】');Z5:=STRCAT(Z1,Z2);Z6:=STRCAT(Z3,Z4);Z7:=STRCAT(Z5,Z6);DRAWTEXT_FIX(1,0,0.0,0,Z7),COLOR00EEEE;DRAWTEXT_FIX(1,0,0.06,0,STRCAT('【风格:',STRCAT(FGBLOCK,'】'))),COLOREEEE00; 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;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;DRAWTEXT(CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),(LOW*0.99),'加点仓准备吃肉'),LINETHICK3,COLORF00FF0;DRAWTEXT(CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2)),(HIGH* 1.01),'↓猪八戒背媳妇跑'),LINETHICK3,COLORFFFFFF;STICKLINE((EMA(CLOSE,2) >=EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLOR0000FF; STICKLINE((EMA(CLOSE,2)>=EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLOR0000AA; STICKLINE((EMA(CLOSE,2)>=EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLOR0000CC; STICKLINE((EMA(CLOSE,2)<EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLORCCCC00; STICKLINE((EMA(CLOSE,2)<EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLORAAAA00; STICKLINE((EMA(CLOSE,2)<EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLORFFFF00; STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42))ORCROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),LOW,HIGH,0.1,0),COLOR00FFFF;STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42))ORCROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN,CLOSE,3,0),CO LOR00AAAA;STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42))ORCROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN,CLOSE,2,0),CO LOR00CCCC;MAA5:MA(C,5),COLORFF00FF,LINETHICK5;MAA10:=MA(C,10);MAA30:MA(C,30),COLORRED;KS:IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.05,'猪八戒买入'),COLORYELLOW;。

主力买卖 资金进出(副图 指标)通达信指标公式源码

主力买卖 资金进出(副图 指标)通达信指标公式源码

主力买卖资金进出(副图指标)DRAWRECTREL(0,0,400,988,IF(120,RGB(10,0,0),0));超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;主买A:=ACTINVOL,COLORRED,NODRAW;主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED;主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));【量能饱和】:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;主力净买量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORYELLOW,NODRAW;大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW;主力资金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLORCYAN,NO DRAW;DRAWRECTREL(100,0,90+CONST(主买*300/100),40,RGB(230,65,0)); DRAWRECTREL(100,60,90+CONST(主卖*300/100),100,RGB(0,104,0)); DRAWRECTREL(100,120,390,160,RGB(0,0,100));DRAWRECTREL(100,120,90+CONST(【量能饱和】*300/100),160,RGB(250,104,0));大单动向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW;T1:=IF (大单动向>0 AND REF(大单动向,1)<0,1,0);T2:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)<0,2,T1);T3:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)<0,3,T2);T4:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)<0,4,T3);T5:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)<0,5,T4);T6:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)<0,6,T5); T7:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)<0,7,T6);T8:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)<0,8,T7);T9:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)<0,9,T8);T:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)>0,10,T9);D:=COUNT(大单动向>0,10),NODRAW;DRAWTEXT_FIX(1,0.005,0.01,0,STRCAT(STRCAT('【主买比】:',CON2STR(主买,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.07,0,STRCAT(STRCAT('【主卖比】:',CON2STR(主卖,1)),' %')),COLORGREEN;DRAWTEXT_FIX(1,0.005,0.13,0,STRCAT(STRCAT('【量能饱和】:',CON2STR(【量能饱和】,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.19,0,STRCAT(STRCAT('【主力资金差】: ',CON2STR(主力资金差,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.19,0,STRCAT(STRCAT('【大宗净流入】: ',CON2STR(大宗净流入,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.25,0,STRCAT(STRCAT('【主力净买量】: ',CON2STR(主力净买量,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.25,0,STRCAT(STRCAT('【主动买卖差】: ',CON2STR(主动买卖差,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.31,0,STRCAT(STRCAT('【DDX连红天数】: ',CON2STR(T,0)),' 天')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.31,0,STRCAT(STRCAT('【DDX两周红天数】: ',CON2STR(D,0)),' 天')),COLORYELLOW;PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2))))); ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FFFF; STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FF00;资金流入:=IF((HSL*0.4+LLJX)>0,(HSL*0.4+LLJX),DRAWNULL),COLORRED;资金流出:=IF((HSL*0.4+LLJX)<0,(HSL*0.4+LLJX),DRAWNULL),COLOR00FF00;资金进出:=(HSL*0.4+LLJX),LINETHICK0;万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF;资金净进出:IF((HSL*0.4+LLJX)>0,资金流入,资金流出),COLORWHITE,POINTDOT;进出比例%:IF((HSL*0.4+LLJX)>0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;连红天1:=BARSLASTCOUNT(资金净进出>0),,COLORA20FFD,NODRAW;连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),,COLORA20FFD,NODRAW;连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),,COLORA20FFD,NODRAW;连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),,COLORA20FFD,NODRAW;近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),,COLORYELLOW,NODRAW;最多连红天1:=MAX(REF(近期连红天,1),近期连红天),COLORYELLOW,NODRAW;最多连红天2:=MAX(最多连红天1,REF(近期连红天,2)),COLORYELLOW,NODRAW;最多连红天3:=MAX(最多连红天2,REF(近期连红天,3)),COLORYELLOW,NODRAW;最多连红天4:=MAX(最多连红天3,REF(近期连红天,4)),COLORYELLOW,NODRAW;最多连红天5:=MAX(最多连红天4,REF(近期连红天,5)),COLORYELLOW,NODRAW;最多连红天:MAX(最多连红天5,REF(近期连红天,6)),COLORYELLOW,NODRAW;三日资金:SUM(资金进出,3),COLORWHITE,NODRAW;五日资金:SUM(资金进出,5),COLORFF00FF,NODRAW;十日资金:SUM(资金进出,10),COLOR0000FF,NODRAW;资金流量:=LLJX,LINETHICK0,COLOR0000FF;STICKLINE((资金流量> 0),资金流量,0,3,0),COLOR0000FF;STICKLINE((资金流量< 0),资金流量,0,3,0),COLORFF3300;黄柱初出蓝:=REF(资金流出,1)<0 AND 资金流入>30 AND C>O AND C>REF(C,1) AND C>MA(C,3);X:=(3*C+2*L+O+H)/7;多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*RE F(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12) +7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210;长黄柱:= 资金流入>300 AND CROSS(C,多空线);DRAWTEXT(黄柱初出蓝,-30,'★'),COLORFF00FF;DRAWTEXT(长黄柱,((HSL * 0.4) * 1.5)*1.4 ,'★'),COLORRED;。

通达信指标公式源码通达信主买卖盘控盘力度资金副图指标

通达信指标公式源码通达信主买卖盘控盘力度资金副图指标

通达信主买卖盘控盘力度资金副图指标AB1:=VOL*CLOSE;{A} AB2:=SUM(AB1,1)/SUM(VOL,1);{B} AB3:=EMA(AB2,17);{B1}AB4:=(C*2+H+L)/4*10;{V1B} AB5:=EMA(AB4,13)-EMA(AB4,34);{V2B}AB6:=EMA(AB5,5);{V3B} AB7:=2*(AB5-AB6)*5.5;{V4B}AB8:=(INDEXC*2+INDEXH+INDEXL)/4;{V8B} AB9:=EMA(AB8,13)-EMA(AB8,34);{V9B} AB10:=EMA(AB9,3);{VA} AB11:=(AB9-AB10)/2;{VB} 个股资金:=(AB2-AB3)*100/AB2;主力资金:=AB7; 大资金:=AB11; 红点主力进场:IF(个股资金>0 AND 主力资金>0 AND 大资金>0,-10,DRAWNULL),COLORRED,CIRCLEDOT,LINETHICK1;V1:=EMA(EMA(CLOSE,20),20);{V1} 力度:=(V1-REF(V1,1))/REF(V1,1)*1000,COLORFF00FF,LINETHICK2;{控盘力度} 开始控盘:IF(CROSS(力度,0),20,0),LINETHICK2,COLORYELLOW; 【庄控盘】:IF(力度>REF(力度,1) AND 力度>0,8,0),LINETHICK2,COLORRED; 白线主力减仓:IF(力度< REF(力度,1) AND 力度>0,力度,0),LINETHICK2,COLORWHITE; 绿点主力出场:IF(个股资金<=0 AND 主力资金<=0 AND 大资金<=0,-10,DRAWNULL),COLORGREEN,CIRCLEDOT,LINETHICK1; 主力动态:(个股资金+主力资金+大资金),COLORYELLOW,NODRAW; STICKLINE(主力动态>0,0,主力动态,1,0),COLORFF00FF; STICKLINE(主力动态<=0,0,ABS(主力动态),1,0),COLORGREEN; 比例:(主力动态-REF(主力动态,1))/REF(主力动态,1),NODRAW;底部:0,COLORFFCC66,LINETHICK2; 虚:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚,0,-1,-1),COLOR00C0C0;实:VOL,VOLSTICK; 换手:=VOL/CAPITAL*100; 贰换:SUM(V/CAPITAL*100,20),NODRAW,COLORMAGENTA; 动态市盈:=C/FINANCE(33),COLOR16CDEC,LINETHICK0 ;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK2; 主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*( HIGH-LOW),0-VOL/2)),LINETHICK2; 买卖盘:=-(主动买盘/主动卖盘),NODRAW,COLORYELLOW; 日净入(WS):(主动买盘+主动卖盘)/10000,NODRAW,COLORMAGENTA; STICKLINE(主动买盘>0,0,主动买盘,1,0),COLORRED; STICKLINE(主动卖盘<0,VOL,主动买盘,1,0),COLOR00FF00; STICKLINE(换手>0 ,0, 主动买盘,0,0),COLORYELLOW; STICKLINE(换手>0,VOL, 主动买盘, 0,0) ,COLORRED; AHC2:=(HIGH - LOW); AHC3:=ABS((OPEN - CLOSE));AHC4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN)); AHC5:=(IF((CLOSE >OPEN),OPEN,CLOSE) - LOW); AHC6:=((AHC3 / AHC2) * VOL); AHC7:=((AHC4 / AHC2) * VOL); AHC8:=((AHC5 / AHC2) * VOL); AHCA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100); AHCB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60))); AHCC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30))); AB601:=HHV(V,5); AB602:=O>C; AB702:=C>O;AB703:=C=O; AB704:=((SUM(V,5)/AB601)); AB705:=IF(AB704>0.3,1,0);AB706:=IF(AB602 AND AB705,V,0); AB707:=IF(AB702 AND AB705,V,0); 钱出A:=SUM(AB706,5),COLORGREEN,LINETHICK2; 钱入A:=SUM(AB707,5),COLORRED,LINETHICK2; 钱出:=SUM(AB706,20),COLORGREEN,LINETHICK2; 钱入:=SUM(AB707,20),COLORRED,LINETHICK2; 伍净入(SW):(钱入A-钱出A)/100000,COLORYELLOW,NODRAW; 贰净入:(钱入-钱出)/100000,COLORRED,NODRAW; P5:MA(实,5),COLORMAGENTA,LINETHICK2; P35:MA(实,35),COLORBLUE,LINETHICK2;P135:MA(实,135),COLORWHITE,LINETHICK2; DRAWTEXT(CROSS(P5,P135),(V *1.05),'★'),COLORYELLOW; 0,COLORBROWN;。

通达信超级资金副图指标

通达信超级资金副图指标

通达信超级资金副图指标DDX指标是根据大单买入量和卖出量的差值计算而来,公式为(LARGEINTRDVOL-LARGEOUTTRDVOL)*/FINANCE(7)。

为了更好地展示该指标,我们可以使用绘图函数DRAWRECTREL来绘制一个矩形框架。

具体来说,我们可以使用一系列的DRAWRECTREL函数来绘制不同颜色的矩形,以突出显示DDX的变化。

DDY和DDZ是与DDX相似的指标,它们分别表示交易量的买入占比和大单交易的买入占比。

我们可以使用IF函数来计算这些指标,然后使用DRAWTEXT_FIX函数来将它们显示在图表中。

最后,在图表的左上角,我们可以使用DRAWTEXT_FIX 函数来显示“DDX”、“DDY”和“DDZ”这三个项目的名称。

在每个项目名称的下方,我们可以使用DRAWTEXT_FIX函数来显示相应的数据。

如果数据是正数,则将其显示为蓝色;如果是负数,则将其显示为红色。

特大单:计算方式为当前K线的成交量中,买入量和卖出量均超过手的部分之和。

用DRAWTEXT_FIX函数在图表上显示“特大单”的标签,并将颜色设置为蓝色。

大单:计算方式为当前K线的成交量中,买入量和卖出量均超过1000手但不足手的部分之和。

用DRAWTEXT_FIX 函数在图表上显示“大单”的标签,并将颜色设置为蓝色。

中单:计算方式为当前K线的成交量中,买入量和卖出量均超过100手但不足1000手的部分之和。

用DRAWTEXT_FIX函数在图表上显示“中单”的标签,并将颜色设置为蓝色。

小单:计算方式为当前K线的成交量中,买入量和卖出量均不足100手的部分之和。

用DRAWTEXT_FIX函数在图表上显示“小单”的标签,并将颜色设置为蓝色。

主力力度是指大资金的买卖力量,可以通过大单、特大单等指标来衡量。

大单是指单笔成交金额超过100万元的交易,特大单则是指单笔成交金额超过500万元的交易。

如果特大单买入,则主力力度为正,如果特大单卖出,则主力力度为负。

通达信指标公式源码 超跌底部大胆买进副图

通达信指标公式源码 超跌底部大胆买进副图

{主力建仓}V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V4:=2*(V2-EMA(V2,5))*5.5;主力撤:IF(V4<=0,V4,0),COLORGREEN;主力进:IF(V4>=0,V4,0),COLORRED,LINETHICK3;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;大资金进场:IF(VB>=0,VB*2,0),COLORYELLOW,LINETHICK3;大资金撤走:IF(VB<=0,VB,0),COLORWHITE;{V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:=EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现金: STICKLINE(趋势线<=13,0,20,2,0),COLORCC9900;AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);DRAWTEXT (AA,30,'准备现金'),COLORCC9900;买入股票: STICKLINE(趋势线<=13 AND V12>13,0,18,2,0),COLOR0099FF;BB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) ; DRAWTEXT (BB,30,'买入股票'),COLOR0099FF;见顶清仓: STICKLINE(趋势线>=90 AND V12,0,10,2,0),COLORGRAY;CC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);DRAWTEXT (CC,40,'见顶清仓'),COLORGRAY;}主力进A:=IF(V4>=0,-10,DRAWNULL),COLORRED,LINETHICK2;大盘资金进场A:=IF(VB>=0,-20,DRAWNULL),COLORYELLOW,LINETHICK2;AKPA1:=主力进-REF(主力进,1);DRAWICON (AKPA1>0,主力进,1);BKPA1:=大资金进场-REF(大资金进场,1);DRAWICON (BKPA1>0,大资金进场,1);{}{超跌底部}VAR1:=MA(HHV(HIGH,485),17);VAR2:=MA(HHV(HIGH,222),17);VAR3:=MA(HHV(HIGH,96),17);VAR4:=MA(LLV(LOW,485),17);VAR5:=MA(LLV(LOW,222),17);VAR6:=MA(LLV(LOW,96),17);VAR7:=MA(((VAR4)*(0.96)+(VAR5)*(0.96)+(VAR6)*(0.96)+(VAR1)*(0.558)+(VAR2)*(0. 558)+(VAR3)*(0.558))/(6),17);VAR8:=MA(((VAR4)*(1.25)+(VAR5)*(1.23)+(VAR6)*(1.2)+(VAR1)*(0.55)+(VAR2)*(0.55 )+(VAR3)*(0.65))/(6),17);VAR9:=MA(((VAR4)*(1.3)+(VAR5)*(1.3)+(VAR6)*(1.3)+(VAR1)*(0.68)+(VAR2)*(0.68)+ (VAR3)*(0.68))/(6),17);VARA:=MA((((VAR7)*(3)+(VAR8)*(2)+VAR9)/(6))*(1.738),17);VARB:=IF((DATE<=1341231),VARA,(VARA)*(DAY));VARE:=((SMA(ABS(LOW-REF(LOW,1)),3,1))/(SMA(MAX(LOW-REF(LOW,1),0),3,1)))*(100); VARF:=MA(IF(((CLOSE)*(1.35)<=VARB),(VARE)*(10),(VARE)/(10)),3);超跌底部:=IF((DATE<=1341231),MA(IF((LOW<=LLV(LOW,30)),(VARF+(HHV(VARF,30))*(2))/(2 ),0),3),100000000),COLORFF00FF;该出手时就出手:=EMA(IF(LOW<=VARE,(REF(LOW,1)+VARF*2)/2,0),3)/618*LLV(LOW,30); DRAWTEXT(REF(超跌底部,1)>REF(超跌底部,2) AND 超跌底部<REF(超跌底部,1),主力撤,'底'),COLORYELLOW;DRAWTEXT(REF(该出手时就出手,1)>REF(该出手时就出手,2) AND 该出手时就出手<REF(该出手时就出手,1),大资金撤走,'出手'),COLORWHITE;。

通达信指标公式源码 短线买卖指标组合

通达信指标公式源码 短线买卖指标组合

1.投机指标投机5:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORred;投机10:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORwhite;投机20:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORFF8000;投机30:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLOR00FFFF;抄底: IF(TROUGHBARS(2,5,1)=0 ANDHIGH>LOW+0.01,20,0),COLORFF66FF ,LINETHICK2 ;卖出: IF(投机20>=100,30,0),LINETHICK2,COLORGREEN;2.收藏很久(N 1 100 5)趋势线:3*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,N,1),3,1);见底: 10;准备: IF(趋势线<=20,40,0);买入: IF(CROSS(趋势线,见底),60,0),colorred;卖出: IF(趋势线>=80,100,0);3.绝对稳赚(N 1 100 5)Var1:=REF(CLOSE,2);A2: SMA(MAX(CLOSE-Var1,0),N,1)/SMA(ABS(CLOSE-Var1),N,1)*100, COLORyellow;买1: IF(A2<16,30,0); DRAWTEXT(A2<10,60,'买'),COLORF0F000;Var2:=REF(CLOSE,1);Var3:=SMA(MAX(CLOSE-Var2,0),5,1)/SMA(ABS(CLOSE-Var2),5,1)*100;抄底: IF(Var3<10,30,0);DRAWTEXT(Var3<10,40,'底'),COLORF0F000;逢高派发区: STICKLINE(A2>=80,A2+1,A2-1,1.5,0), COLORRED,LINEthICK3; VAR1J:=close/(ema(ema((c+l+h)/3,3),26)*0.9)<0.95 ;放箭:IF(VAR1J,15,0),STICK,linethick3,COLORRED;DRAWTEXT(VAR1J ,10,'箭'),COLORF0F000;Vare1:=(INDEXC-REF(INDEXC, 1))/REF(INDEXC, 1);Vare2:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1);Vare3:=IF(Vare1>0.010, 0.900, 1) AND IF(Vare1>(-0.025), 1, 1.200);Vare4:=Vare3*(Vare2-Vare1)*100;Vare5:=SUM(Vare4, 10);Vare6:=SMA(Vare5, 40, 1);Vare7:=IF(CLOSE and MA(VOL, 5)/240 AND CLOSE>REF(CLOSE, 1)*1.0 AND CLOSE,88,0);{Var38>Var39;}Vare8:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND VOL/CAPITAL*100<10 AND CLOSE<17 AND HIGH/CLOSE<1.010 AND Vare7>0, 91, 0);追击:IF(Vare8>90,40,0),STICK,linethick3,COLORyellow;DRAWTEXT(Vare8>90,30,'追击'),COLORyellow;4.抄底逃顶王(P1 1 100 10 P2 1 100 3)80, POINTDOT,LINETHICK2;20, POINTDOT,LINETHICK2;VAR1:=LLV(LOW,P1);VAR2:=HHV(HIGH,P1);K: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,P2),COLORRED,LINETHICK2 , ; D: EMA(0.667*REF(K,1)+0.333*K,3),LINETHICK1 ,;VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1); VARD:=EMA(IF(C< EMA(C,250),VARC*1000,VARC*10),3);火焰山:EMA(IF(L<=LLV(L,30),VARD/2+HHV(VARD,30),0),3)/618; STICKLINE(火焰山>100,0,火焰山*1.2,8,0);STICKLINE(火焰山>100,0,火焰山,4,1);抄底: IF(TROUGHBARS(2,5,1)=0 ANDHIGH>LOW+0.01,20,0),COLORYELLOW ,LINETHICK2 ;VAR3:=PEAKBARS(3,15,1)<10;VAR5:=IF(VAR3=1,2,0);顶:= IF(VAR5=2,2,0);顶A:IF(顶>REF(顶,1),45,0),COLORGREEN,LINETHICK2;DRAWTEXT(顶A=50,45,'逃顶'),COLOR00FF00;DRAWTEXT(抄底=20,30,'抄底'),COLORRED;抓牛股:LS:=C/REF(C,1)>1.048 AND C=H ANDBETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));抓牛:FILTER(LS,28);波段阻击AA05:MA(C,5),LINETHICK3,COLOR00CCFF;五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB05>30 AND AA05>REF(AA05,1),AA05,DRAWNULL),LINETHICK3,COLORRED;AA10:MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;IF(BB05<0 AND AA05<REF(AA05,1),AA05,DRAWNULL),LINETHICK3,COLORGREEN;AA30:MA(C,30);三拾日乖离率:(C-AA30)/AA30*100,NODRAW;VAR1:=(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);VAR2:=(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;IF(BB30>15 AND AA30>REF(AA30,1),AA30,DRAWNULL),LINETHICK3,COLORFF00FF;波段狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>AA30 OR O>AA30) AND AA05<REF(AA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDAA10<REF(AA10,1),10);DRAWTEXT(加仓,LOW*0.98,'←加仓'),COLORRED;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND AA10>REF(AA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 ANDREF(C,1)<AA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'←减仓'),COLORCYAN;DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW;DRAWTEXT(清仓,HIGH*1.02,'←清仓'),COLORGREEN;DRAWTEXT(波段狙击,LOW*0.98,'←波段狙击'),COLORYELLOW;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW)); VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;短线上涨极限:(H-MA(C,5))/MA(C,5)>0.1;短期下跌极限:(MA(C,5)-L)/L>0.1;智能KDJ: 特点抄底很灵验,底部三根线,顶部二根线,-10、0、10、90、105,抢钱轴-10,见顶105N : 2 90 9M1: 2 30 3M2: 2 30 3{KDJ}RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,M1,1);D:SMA(K,M2,1);J:3*K-2*D;顶轴:105, POINTDOT;上轴:90, POINTDOT;下轴:10, POINTDOT;底轴:0, POINTDOT;抢钱轴:-10, POINTDOT;DRAWTEXT(CROSS(J,顶轴) ,100,'大出'), COLORYELLOW;DRAWTEXT(CROSS(J,上轴) ,90,'小出'), COLOR99FFCC;DRAWTEXT(CROSS(下轴,J) ,10,'小进'), COLORBLUE;DRAWTEXT(CROSS(底轴,J) ,0,'大进'), COLORRED;DRAWTEXT(CROSS(抢钱轴,J) ,-5,'狂进'), COLORWHITE;{黄金方块}RA:=LLV(LOW,35);RB:=HHV(HIGH,30);RC:=EMA((CLOSE-RA)/(RB-RA)*4,4)*19;近日均价:=MA(CLOSE,5),COLORYELLOW,LINETHICK2;STICKLINE(RC<6 AND100*(HHV(HIGH,19)-CLOSE)/(HHV(HIGH,19)-LLV(LOW,19))>97 ,0 ,近日均价*1.15 ,2 , 0),COLORYELLOW;{提示}VAR1:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100+50;VAR2:=EMA(VAR1,9);VAR3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10; VAR4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;VAR5:=SMA(VAR4,13,8);Q1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);趋势:=3*Q3-2*Q4;Q5:=趋势>1*REF(趋势, 1);Q6:=LLVBARS(LOW, 50);Q7:=SUM(VOL, Q6);Q8:=HHVBARS(HIGH, 50);Q9:=SUM(VOL, Q8);Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;Q11:=HHV(趋势,5);A1:=EMA(Q3, 3);A2:=EMA(A1, 3);A3:=EMA(A2, 3);A4:=EMA(A3, 3);A5:=EMA(A4, 3);A6:=EMA(A5, 3);A:=EMA(A4, 3);DRAWTEXT(CROSS(趋势, 20) AND Q10<-13,10,'看量入场'), COLORRED; DRAWTEXT(CROSS(趋势, A5) AND REF(趋势,1)<34,REF(趋势,1),'盯紧'), COLORWHITE;DRAWTEXT(CROSS(趋势, A1) AND Q5 AND A1<20 AND Q1>9 ORA1>1*REF(A1, 1)AND Q1>4 AND A1<60, 45, '调'), COLOR00FF00;黄金分割提示; 可提示分割点,安装在任意主图高:=REF(HHV(H,60),3);低:=REF(LLV(L,60),3);H19:=高-(高-低)*0.191;H38:=高-(高-低)*0.382;H50:=高-(高-低)*0.500;H61:=高-(高-低)*0.618;H80:=高-(高-低)*0.809;TOP:REFDATE(高,DATE),POINTDOT,COLORWHITE,NODRAW;%80.9:REFDATE(H19,DATE),POINTDOT,COLORYELLOW,NODRAW;%61.8:REFDATE(H38,DATE),POINTDOT,COLORMAGENTA,NODRAW;{%50.0:REFDATE(H50,DATE),POINTDOT,COLORGREEN,NODRAW;}%38.2:REFDATE(H61,DATE),POINTDOT,COLORMAGENTA,NODRAW;%19.8:REFDATE(H80,DATE),POINTDOT,COLORYELLOW,NODRAW; BOTTOM:REFDATE(低,DATE),POINTDOT,COLORWHITE,NODRAW; DRAWTEXT(ISLASTBAR,TOP,' ←%顶点'),COLORWHITE;DRAWTEXT(ISLASTBAR,%80.9,' ←%80.9'),COLORYELLOW; DRAWTEXT(ISLASTBAR,%61.8,' ←%61.8'),COLORMAGENTA; {DRAWTEXT(ISLASTBAR,%50.0,' ←%50.0'),COLORGREEN;} DRAWTEXT(ISLASTBAR,%38.2,' ←%38.2'),COLORMAGENTA; DRAWTEXT(ISLASTBAR,%19.8,' ←%19.1'),COLORYELLOW; DRAWTEXT(ISLASTBAR,BOTTOM,' ←%低点'),COLORWHITE;黑码启动组合{东方求败}股价:=(H+L+C)/3;股价运动:=股价,LINETHICK2,COLORBLUE;运动趋势:=XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA (XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XM A(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(X MA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA( XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(股价,3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3), 3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3), 3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3);良机区1:=运动趋势*0.9;良机区2:=运动趋势*0.875;良机区3:=运动趋势*0.85;涨1:=O<良机区3;求败1:IF(涨1,0.3,0),COLOR0000FF;涨2:=L<良机区2 AND 运动趋势>REF(运动趋势,1);求败2:IF(涨2,0.5,0),COLOR008000;涨3:=L<良机区3 AND 运动趋势>REF(运动趋势,1);求败3:IF(涨3,1,0),COLOR00FFFF;VAR6:=REF(LOW,1)*0.83;VAR7:=LOW*0.1;VAR8:=(VAR7*VOL+VAR6*(CAPITAL-VOL))/CAPITAL;VAR9:=EMA(VAR8,60);VARA:=EMA(VAR6,60);VARB:=VARA-2;VARC:=IF(C<=VAR9,VARB,VARA);{VARD:=MA(C,80)-MA(C,10)/17;}启动:=FILTER(VARC-VARB=0 ANDCROSS((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF (EMA(EMA(EMA(C,2),2),2),1)*100,MA((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF(EMA(EMA(EMA(C,2),2),2),1)*100,3)), 4);马启:IF(启动,1.5,0),COLORFFFFFF;{理想实现}VARS2:=IF(MONTH<12,1,1);VARS3:=(2.28*CLOSE+HIGH+LOW)/4;VARS4:=LLV(LOW,34);VARS5:=HHV(HIGH,34);理想:=EMA((VARS3-VARS4)/(VARS5-VARS4)*100,13)*VARS2,LINETHICK4,COL ORRED;论坛:=EMA(0.667*REF(理想,1)+0.333*理想,2),LINETHICK2,COLORFF9933; 理想实现:(CROSS(理想,论坛) AND 理想<22),LINETHICK2,COLOR0099FF; {横盘放量选股}横盘放量:LAST((H-L)/REF(C,1)<0.1,20,0) AND VOL>REF(VOL,1)*2 AND C>REF(C,1)*1.03AND "DMI.PDI">"DMI.MDI" AND CROSS("DMI.ADX","DMI.ADXR") AND"DMI.ADXR">"DMI.MDI" AND "DMI.PDI">"DMI.ADX"AND"KDJ.D">REF("KDJ.D",1);{STICKLINE(横盘放量,0,0.5,1,0),COLOR000099;}{笑傲江湖}DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可}DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA),COLORSTICK;A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);笑傲江湖:IF(SSS-SSB=2 AND SSS>REF(SSS,1),1.3,0),COLORFFFF00;{终结者}X:=1;LGL:=IF(EMA(C,5)/EMA(EMA(C,9),16)<=0.85 AND C/REF(C,1)>0.905 ANDC/REF(C,1)<1.05 AND VOL/CAPITAL*100<5,50,0);WR1:=-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100*X; WR2:=-100*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100; WR3:=-100*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100*X; BIAS1:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;BIAS2:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;BIAS3:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;S1:=(WR1+WR2+WR3+BIAS1+BIAS2+BIAS3)/6*X;S2:=EMA(S1,3);S3:=ABS(BIAS1-BIAS3);SX:=(S1+S3)/2;XC1:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;CCC:=XC1+SX;ZJZ:=IF( LGL>0 AND CCC<0,200,0)*X;LXL:=IF(SX<0 AND C=LLV(C,5) AND C/REF(C,1)>0.905 AND C/REF(C,1)<1.05 ANDVOL/CAPITAL*100<5,-50,0);JBJ:=IF(CCC<0 AND LXL=-50,100,0)*X;MA3:= MA(C,3);C0:=REF(C,2)*0.865;C1:=REF(C,13)*0.772;BOT:=MIN(C0,C1);HSL:=100*VOL/CAPITAL*X;MA13:=MA(C,13)*X;CXC:=IF((C-BOT)/C<3/100 AND SUM(HSL,5)/5<1.8,1,0);VMC:=IF(CXC>0 AND (LXL<0 OR LGL>0),100,0);V满仓:=VMC;V半仓A:=IF(((ZJZ>0 AND JBJ>0 AND SUM(VOL/CAPITAL*100,5)/5<1) OR (CXC>0 AND REF(C,1)/REF(C,2)>0.902)) OR(((ZJZ>0 AND JBJ>0 AND SUM(VOL/CAPITAL*100,5)/5<1) OR CXC>0) AND (LXL<0 OR LGL>0)) AND VMC<10 ,50,0) ;V93:=(((ZJZ>0 AND JBJ>0 AND SUM(VOL/CAPITAL*100,5)/5<1) OR CXC>0) AND (LXL<0 OR LGL>0)) ;V90:=((ZJZ>0 AND JBJ>0 AND SUM(VOL/CAPITAL*100,5)/5<1) OR (CXC>0 AND REF(C,1)/REF(C,2)>0.902));V半仓:=V93 OR V90;XMM87:=V满仓OR V半仓;XMM91:=VMC;G:=MA(CLOSE,80)-MA(CLOSE,10)/3*X;初级:=IF(XMM87>0,1.5,0),STICK,LINETHICK2;中级:IF(XMM91>0,1,0),STICK,COLORFF0080;高级:IF(VMC>0 AND CLOSE<G,1.5,0),STICK,LINETHICK2;{黑码底}DIFF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA1:=EMA(DIFF1,9),COLORFFFF00;A01:=BARSLAST(REF(CROSS(DIFF1,DEA1),1));底背离:=REF(CLOSE,A01+1)>CLOSE AND DIFF1>REF(DIFF1,A01+1) AND CROSS(DIFF1,DEA1);DEA0:=EMA(DIFF1*100,9);MACD0:=2*(DIFF1*100-DEA0);黑码:=(MACD0>REF(MACD0,1)*2.5 AND MACD0>15);黑码0:(底背离AND 黑码),COLORFF8000;。

通达信副图指标公式源码大全

通达信副图指标公式源码大全

通达信副图指标公式源码大全
一、MA(X,N)
MA:(MA(C,X);N)
MA:MA.CALC(C,X)
公式描述:
MA(X,N)表示计算最近X天的移动平均线,其中N为移动平均线的天数。

二、MACD
MACD:(EMA(C,SHORT);EMA(C,LONG);SIGNAL)
MACD:MACD.CALC(C,SHORT,LONG,SIGNAL)
公式描述:
MACD表示计算MACD指标,其中SHORT代表快速移动平均线的天数,LONG代表慢速移动平均线的天数,SIGNAL代表信号线的天数。

三、KD
KD:(K;D)
KD:KD.CALC(K,D)
公式描述:
KD表示计算KD指标,其中K、D分别代表K值和D值,取值范围为9
到100。

四、BOLL
BOLL:(MID;UP;DOWN)
BOLL:BOLL.CALC(MID,UP,DOWN)
公式描述:
BOLL表示计算布林线指标,其中MID代表中轨线,UP代表上轨线,DOWN代表下轨线。

五、RSI
RSI:(RSI1;RSI2;RSI3;RSI4)
RSI:RSI.CALC(RSI1,RSI2,RSI3,RSI4)
公式描述:
RSI表示计算RSI指标,其中RSI1、RSI2、RSI3、RSI4分别代表RSI 指标的1、2、3、4参数。

通达信精准抄底副图指标公式

通达信精准抄底副图指标公式

M:=-15;P:=-20;VAR1:=((LLV(LOW,5) = LLV(LOW,45)) AND (CLOSE >= (OPEN * 1.04)));VAR2:=(CLOSE > ((REF(HIGH,1) + REF(LOW,1)) / 2));VAR3:=REF(CLOSE,1);VAR4:=((SMA(MAX((CLOSE - VAR3),0),6,1) / SMA(ABS((CLOSE - VAR3)),6,1)) * 100);红白出现可追涨:(VAR1 AND VAR2)*80,STICK,COLORFFFFFF;R1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;R2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;R3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;R4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;R5:=(R2+2*R3+3*R4)/6;R6:=MA(R5,3);VAR1A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2A:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR3A:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;VAR4A:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5A:=(VAR2A+2*VAR3A+3*VAR4A)/6;VAR6A:=MA(VAR5A,3);绿白出现可以买: STICKLINE(VAR6A<=P,60,0,2,0),COLORGREEN;BIAS := (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*100;ENTERLONG:=CROSS(-14,BIAS);青白出现可以买:STICKLINE(ENTERLONG,0,99,1,0),COLORCYAN;MID := MA(CLOSE,26);LOWER:= MID - 2*STD(CLOSE,26);EN:=CROSS(CLOSE,LOWER);紫白出现可追涨:STICKLINE(EN,0,40,4,0),COLORFF00FF;VAR2W:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));MW:= EMA(VAR2W,3);VAR3W:=EMA(VAR2W,7);M1:= EMA(VAR3W,5);MB1:=CROSS(MW,M1) AND M1<20;黄白出现可追涨:IF((MB1),90,0),STICK,COLORYELLOW;VAD1:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,5);VAD2:=INDEXC;VAD3:=INDEXC;VAD4:=CLOSE/MA(CLOSE,50)<0.74;VAD5:=(CLOSE/MA(CLOSE,40)<0.78 OR CLOSE/MA(CLOSE,60)<0.74) AND HIGH>LOW*1.049;VAD6:=EMA(WINNER(CLOSE)*70,3);VAD7:=CLOSE/MA(CLOSE,40);VAD8:=MA(VAD2,6);VAD9:=MA(VAD3,6);VAD10:=HIGH>LOW*1.048;VAD11:=MA(CLOSE,27)/CLOSE>1.169 AND MA(CLOSE,17)/CLOSE>1.158 ANDCLOSE/COST(5)<=0.8;VAD12:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);VAD13:=LOW*1.051<HIGH;VAD14:=MA(VAD2,24);VAD15:=MA(VAD3,24);VAD16:=VAD10 AND COUNT(VAD10,4)>2;VAD17:=EMA(CLOSE,30);VAD18:=CLOSE/MA(CLOSE,40)*100<76;VAD19:=VAD13 AND COUNT(VAD13,5)>1;VAD20:=MA(VAD2,32);VAD21:=MA(VAD3,32);VAD22:=VAD16 AND (VAD4 OR VAD4);VAD23:=VAD5 AND VAD11 AND VAD17;VAD24:=CLOSE/MA(CLOSE,60)*100<74;VAD25:=INDEXC;VAD26:=MA(VAD2,62);VAD27:=MA(VAD3,62);VAD28:=DMA(EMA(CLOSE,10),SUM(VOL,5)/3/CAPITAL);VAD29:=HIGH>LOW*1.051;VAD30:=MA(VAD25,5);VAD31:=MA(VAD2,105);VAD32:=MA(VAD3,105);VAD33:=REF(HIGH,10)/CLOSE>1.26;VAD34:=VAD29 AND COUNT(VAD29,5)>1;VAD35:=MA(VAD25,20);VAD36:=VAD26<REF(VAD26,1) AND VAD31<REF(VAD31,1) AND VAD26<VAD31*0.98; VAD37:=VAD27<REF(VAD27,1) AND VAD32<REF(VAD32,1) AND VAD27<VAD32*0.98; VAD38:=CLOSE/VAD28<0.65 AND VAD33;VAD39:=VAD34 AND (VAD18 OR VAD24) AND VAD12<20 AND VAD6<20 AND (WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5;VAD40:=(VAD1<6 AND VAD7<0.76 AND VAD19)*70;VAD41:=VAD20>VAD8*1.11 AND VAD14>VAD8*1.095;VAD42:=VAD21>VAD9*1.11 AND VAD15>VAD9*1.095;VAD43:=REF(CLOSE,8);VAD44:=VAD8>VAD2*0.95;VAD45:=VAD9>VAD3*0.95;VAD46:=VOL/CAPITAL;VAD47:=VAD36 AND VAD41 AND VAD44 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)); VAD48:=CLOSE/MA(CLOSE,48)*100<67;VAD49:=(EMA(CLOSE,28)-EMA(CLOSE,13))/EMA(CLOSE,28);VAD50:=CLOSE/MA(CLOSE,50)*100<69;VAD51:=CLOSE/VAD43<0.79 AND MA(VAD46,5)<0.02 AND VAD49>0.06;VAD52:=HIGH>LOW*1.078;VAD53:=VAD22 AND (VAD38 OR VAD51);VAD54:=VAD52 AND COUNT(VAD52,4)>2;VAD55:=VAD54 AND (VAD48 OR VAD50) OR VAD37 AND VAD42 AND VAD45 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1));AA:=VAD23 OR VAD39 OR VAD40 OR VAD47 OR VAD53 OR VAD55 OR (CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100<-15 AND (MIN(OPEN,CLOSE)-LOW)/LOW*100>0.1 AND MA((HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100,5)<60;STICKLINE(AA,0,99,1,0),COLORCYAN;VAR1B:=INDEXC;VAR2B:=MA(VAR1B,6);VAR3B:=MA(VAR1B,24);VAR4B:=MA(VAR1B,32);VAR5B:=MA(VAR1B,62);VAR6B:=MA(VAR1B,105);VAR7B:=VAR5B<REF(VAR5B,1) AND VAR6B<REF(VAR6B,1) AND VAR5B<VAR6B*0.98; VAR8B:=VAR4B>VAR2B*1.11 AND VAR3B>VAR2B*1.095;VAR9B:=VAR2B>VAR1B*0.95;中:=VAR7B AND VAR8B AND VAR9B AND CLOSE/COST(10)<=1 AND(CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) ORREF(CLOSE,1)<REF(OPEN,1));VAR1N:=MA(CLOSE,5);VAR2N:=MA(CLOSE,10);VAR3N:=(VAR1N-CLOSE)/CLOSE>3/100;VAR4N:=(VAR2N-VAR1N)/VAR1N>0.03;VAR5N:=LLV(CLOSE,30)=LLV(CLOSE,120);部:=VAR3N AND VAR4N AND VAR5N;{绿白出现可以买}门:=中=1 AND 部=1 ;STICKLINE(门,60,0,2,0),COLORGREEN;底部:IF(R6<M,20,0),LINETHICK1 , COLORWHITE;。

通达信指标公式源码 未来买卖点副图指标

通达信指标公式源码 未来买卖点副图指标

EMA10:EMA(C,10),COLOR0000FF;A1:=REF(HIGH,3)=HHV(HIGH,2*6+1);B1:=FILTER(A1,3);C1:=BACKSET(B1,3+1);D1:=FILTER(C1,3+1);{高点}A2:=REF(LOW,3)=LLV(LOW,2*6+1);B2:=FILTER(A2,3+1);C2:=BACKSET(B2,3+1);D2:=FILTER(C2,3);{低点}E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;L1:=(D2 AND NOT(D1 AND E1<E2));H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1)); G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);{过滤后高点}DRAWLINE(LD,L,HD,H,0),COLORWHITE;DRAWLINE(HD,H,LD,L,0),COLORWHITE;J1:=BACKSET(BARSTATUS=2 ,MIN(BARSLAST(HD),BARSLAST(LD))+1);J2:=J1>REF(J1,1);DRAWLINE(J2,IF(HD,H,L),BARSTATUS=2 ,IF(BARSLAST(HD)>BARSLAST(LD), H,L),0),COLORWHITE;C点:=BARSLAST(LD);DRAWTEXT(LD AND BARSLAST(HD)<BARSLAST(REF(LD,1)) ,L*0.992,'买入'),COLORRED;DRAWTEXT(HD,H*1.005,'卖点'),COLORYELLOW;A11:=REF(L,BARSLAST(LD));B11:=REF(H,BARSLAST(HD));TA11:=BARSLAST(LD);TB11:=BARSLAST(HD);KF:=SQRT(B11/A11);ZKF:=SQRT(SQRT(B11/A11));C测低1:=B11/(KF+ZKF-1);C测高1:=B11/ZKF;C测中1:=B11/KF;选C31:=L>0.93*C测低1 AND L<1.03*C测低1 AND LLV(L,3)=LLV(L,10) AND B1>1.1*C AND B1>1.1*A1 AND L>1.1*A1 ;选C21:=L>0.93*C测中1 AND L<1.03*C测中1 AND LLV(L,3)=LLV(L,10) AND B1>1.1*C AND B1>1.1*A1 AND L>1.1*A1 ;选C11:=L>0.9*C测高1 AND L<1.05*C测高1 AND LLV(L,5)=LLV(L,10) AND B1>1.1*C AND B1>1.1*A1 AND L>A1 AND COUNT(选C21,30)>=1;选C2:=COUNT(选C21,3)>=1 AND C>1.02*C测中1 AND C>1.02*REF(C,1) AND LLV(L,3)>=0.93*C测中1;C1预选:=L>0.96*C测高1 AND L<1.04*C测高1;C2预选:=L>0.96*C测中1 AND L<1.04*C测中1;C3预选:=L>0.96*C测低1 AND L<1.04*C测低1;N:=8;HHD:=FILTER(BACKSET(FILTER(REF(H,N)=HHV(H,2*N+1),N),N+1),N); LLD:=FILTER(BACKSET(FILTER(REF(L,N)=LLV(L,2*N+1),N),N+1),N); DRAWNUMBER(HHD,1.025*HIGH,HIGH),COLORFF00FF,LINETHICK6; DRAWNUMBER(LLD,0.98*LOW,LOW),COLORGREEN,LINETHICK6; DRAWNUMBER(ISLASTBAR,C测高1,C测高1),COLOR0000FF,LINETHICK7; DRAWNUMBER(ISLASTBAR,C测中1,C测中1),COLOR0000FF,LINETHICK7; DRAWNUMBER(ISLASTBAR,C测低1,C测低1),COLOR0000FF,LINETHICK7; STICKLINE(C/REF(C,1)>=1.096 AND H=C,O,C,1,0),COLORYELLOW;上趋势线:"CYX.NOTEXT1"DOTLINE,COLOR0000FF;下趋势线:"CYX.NOTEXT2"DOTLINE,COLOR00FFFF;。

通达信买卖指标公式

通达信买卖指标公式

通达信买卖指标公式
1. 均线指标:
(1)MA(X,Y)= X日收盘价之和÷Y
(2)MA5=5日收盘价之和÷5
(3)MA10=10日收盘价之和÷10
(4)MA20=20日收盘价之和÷20
(5)MA30=30日收盘价之和÷30
2. MACD指标:
(1)DIF=12日EMA-26日EMA
(2)DEA=9日DIF的EMA
(3)MACD=(DIF-DEA)×2
3. KDJ指标:
(1)K=100×(最近N日收盘价的最高价N日未破前的天数÷N))
(2)D=100×(最近N日K的平均值÷N)
(3)J=3K-2D
4. RSI指标:
(1)RS=N日内收盘价上涨总幅度÷N日内收盘价下跌总幅度
(2)RSI=100-[100÷(1+RS)]
5. BOLL指标:
(1)MA=N日收盘价之和÷N
(2)MD=(N日收盘价-MA)X2之和÷N
(3)UP=MA+K×MD
(4)MB=MA
(5)DN=MA-K×MD
6. SAR指标:
(1)SAR=上一个SAR值+AF×(上一个EP-上一个SAR值)
(2)EP=最高价或最低价
(3)AF=初始值+0.01
7. 威廉%R指标:
(1)%R=(N日内最高价-收盘价)÷(N日内最高价-最低价)×-100
8. 成交量指标:
(1)MAVOL=N日成交量之和÷N。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档