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

合集下载

通达信指标公式源码主力资金副图指标

通达信指标公式源码主力资金副图指标

通达信指标公式源码主力资金副图指标通达信是一款常用的股票分析软件,其指标公式源码被广大投资者广泛使用。

主力资金副图指标是一种衡量市场主力资金流向的指标,通过计算买方力量与卖方力量之间的差异,从而判断市场的主力资金流入或流出情况。

以下是通达信主力资金副图指标的公式源码:```//主力资金指标公式AA:=C>REF(C,1)?(V-C):C<REF(C,1)?(V+C):V;//AA表示根据成交量和价格计算得到的主力资金V1:=SUM(V,5);//V1表示5日内的成交量合计V2:=SUM(V,10);//V2表示10日内的成交量合计AA1:=SUM(AA,5);//AA1表示5日内的主力资金合计AA2:=SUM(AA,10);//AA2表示10日内的主力资金合计MAV1:=MA(V,5);//MAV1表示成交量5日均线MAV2:=MA(V,10);//MAV2表示成交量10日均线MAAA1:=MA(AA,5);//MAAA1表示主力资金5日均线MAAA2:=MA(AA,10);//MAAA2表示主力资金10日均线COLORAA:IF(AA>0,4,7);//若主力资金大于0,则显示为绿色,否则显示为灰色COLORAA1:IF(AA1>0,4,7);COLORAA2:IF(AA2>0,4,7);//绘制主力资金副图Plot(AA,"AA",COLORAA,64);Plot(AA1,"AA1",COLORAA1,64);Plot(AA2,"AA2",COLORAA2,64);MAV1,MAV2,BARS,V1,V2,AA,AA1,AA2均为通达信中的基本指标函数,用来计算不同时间段内的成交量、主力资金、均线等数据。

以上的源码描述了主力资金指标的计算过程,包括根据成交量和价格计算得到主力资金、计算不同时间段内的主力资金合计、计算成交量和主力资金的均线等操作。

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

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

副图指标公式源码1、百万踏浪(相传为杨百万看图公式)N1:=9;N:=3;VAR1:=REF(CLOSE,1);标尺: SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100;VAR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1);浪: VAR3,COLORBLUE;波: VAR4, COLORRED;段: VAR5 ,COLORYELLOW;VAR6:=CROSS(VAR3,VAR4) AND VAR4<25;STICKLINE(VAR6,0,VAR4+15,5,0), COLORGREEN;VAR7:=CROSS(VAR4,VAR5) AND VAR4<25;VAR8:=VAR7 AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2; STICKLINE(VAR7,0,VAR4+55,5,0),COLORWHITE;DRAWTEXT(VAR7 AND COUNT(VAR7,10)=1,VAR4+25,'抄底'),COLORYELLOW; STICKLINE(VAR8,0,VAR4+15,5,0),COLORBLUE;DRAWTEXT(VAR8 AND COUNT(VAR8,10)=1,VAR4-1,'放量'),COLORGREEN; VAR9:=CROSS(VAR3,VAR4) AND VAR4>80 AND VAR4>VAR5; STICKLINE(VAR9 AND COUNT(VAR9,5)=1,VAR4-5,100,5,0),COLORYELLOW;VARA:=CROSS(VAR5,VAR4) AND REF(VAR4,1)>80;STICKLINE(VARA,VAR4-15,100,15,0), COLORYELLOW;DRAWTEXT(VARA AND COUNT(VARA,10)=1,VAR4-25,'逃顶'), COLORYELLOW; 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;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 ANDVAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;STICKLINE(VAR20,0,50,10,0),LINETHICK2,COLORBLUE;DRAWTEXT(CROSS(VAR20,0.5) AND COUNT(VAR20=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、黑马起爆点VAR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;VAR2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;VAR3:=SMA(VAR2,2,1);天:100+(-ABS(VAR1)),COLORRED;下:SMA(VAR3,2,1);无:ABS(VAR1),COLORGREEN;敌:50,COLORFFAA00,LINETHICK3;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);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLO SE-LOW)),VOL/2)),COLORRED,POINTDOT;主卖:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HI GH-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 AND PERIOD=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、庄家建仓VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*4;VAR3:=EMA(VAR2,13);VAR4:=LLV(LOW,34);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:STICKLINE(VAR5>REF(VAR5,1),0,VAR5,7,0 ),COLORRED;7、出色超赢JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOR0000FF,NODRAW;青色观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLORFF0000,NODRAW;黄色低买:VAR19,COLOR33AACC,NODRAW;洋红离场:VAR1A,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;VAR1:MA(CLOSE,5);VAR2:MA(CLOSE,10);VAR3:MA(CLOSE,20);VAR60:MA(CLOSE,60);VAR120:MA(CLOSE,120);VAR4:=OPEN<VAR1 OR OPEN<VAR2 OR OPEN<VAR3;VAR5:=CLOSE>MAX(VAR1,MAX(VAR2,MAX(VAR3,VAR60)));VAR6:=VOL/MA(VOL,30)>1.2;VAR7:=CLOSE/REF(CLOSE,1)>1.049;VAR8:=VAR4 AND VAR5 AND VAR6 AND VAR7;VAR9:=VAR8 AND (REF(BARSLAST(VAR8),1)>60 OR BARSSINCE(VAR8)=0); DRAWICON(VAR9 ,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;VARZT:=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 VARZT=2,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=2,L*0.9,'时间窗'),COLORWHITE; STICKLINE(AA AND VARZT=4,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=4,L*0.9,'时间窗'),COLORWHITE; STICKLINE(AA AND VARZT=7,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=7,L*0.9,'时间窗'),COLORWHITE; STICKLINE(AA AND VARZT=12,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=12,L*0.9,'时间窗'),COLORWHITE; STICKLINE(AA AND VARZT=20,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=20,L*0.9,'时间窗'),COLORWHITE;。

通达信指标公式源码 超级主力 副图指标 源码

通达信指标公式源码 超级主力 副图指标 源码

活筹: 100*WINNER(REF(CLOSE,1)*1.1)-100*WINNER(REF(CLOSE,1)*0.9);死筹: 100*WINNER(CLOSE);
主力筹码: 100*WINNER(CLOSE*0.9);
获利3: 100*WINNER(CLOSE*0.97);获利20: 100*WINNER(CLOSE*0.9*0.9); 获利30: 100*WINNER(CLOSE*0.9*0.9*0.9);
穿透筹码: 100*WINNER(CLOSE)-100*WINNER(REF(CLOSE,1)*1);
AA:REF(主力筹码<30,1) AND 主力筹码>30,color0099ff;
QW:LOW<COST(4) AND CLOSE>COST(4),color888888;
STICKLINE(获利3>85,0,获利3,8,0),coloryellow;
STICKLINE(主力筹码>30,0,主力筹码,8,1),colorff00ff;
STICKLINE(获利20>20,0,获利20,8,1),color00ff00;
STICKLINE(获利30>20,0,获利30,8,1),colorwhite;
{用法:以紫红色活筹为核心,当你在使用[主力建仓]发现股价在60日均线和建仓线上时以错过了股价的最佳买入时机,你可以立刻用现在的这个指标里的活筹来研判!当活筹出现时你可以考虑跟庄{因为活筹是庄家拉升的信号,当然这个指标里也有庄家筹码,要是庄家筹码出现{白色柱体]那可就是牛了!95%100是大牛股了!}。

通达信指标公式源码 自己用的KD副图指标

通达信指标公式源码 自己用的KD副图指标

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,M1,1);D:SMA(K,M2,1);金:BARSLAST(CROSS(K,D))NODRAW;死:BARSLAST(CROSS(D,K))NODRAW; DRAWICON(CROSS(K,D),D,1); {K上穿D做记号};DRAWICON(CROSS(D,K),K,2); {D下穿K做记号};A80:80,DOTLINE,COLORMAGENTA,LINETHICK1;VAR1:=C-REF(C,1);VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);MA5:=EMA(C,5);{好}MA13:=EMA(C,13);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAS T(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSL AST(CROSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BA RSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAS T(CROSS(MA13,MA5))+1),0),COLOR00FF00;BT:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) ANDCROSS(VAR2,MA(VAR2,2))) ANDREF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);STICKLINE(UP,0,3,2,0),COLOR0000FF;STICKLINE(DOWN,0,3,2,0),COLOR00FF00;STICKLINE(BT,0,30,2,0),COLOR000088;STICKLINE(BT,0,30,1,0),COLOR0000CC;STICKLINE(BT,0,30,0.22,0),COLOR0000FF;DRAWTEXT(BT,30,'短牛'),COLOR0000FF;TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) ANDC<HHV(H,21)*0.82;STICKLINE(TJ1,0,20,3,0),COLOR880088;STICKLINE(TJ1,0,20,1.5,0),COLORAA00AA;STICKLINE(TJ1,0,20,0.8,0),COLORCC00CC;STICKLINE(TJ1,0,20,0.2,0),COLORFF00FF;DRAWTEXT(TJ1,20,'中牛'),COLORFF00FF;HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33; STICKLINE(TJ2,0,10,3,0),COLOR008888;STICKLINE(TJ2,0,10,2,0),COLOR00AAAA;STICKLINE(TJ2,0,10,1,0),COLOR00CCCC;STICKLINE(TJ2,0,10,0.2,0),COLOR00FFFF;DRAWTEXT(TJ2,10,'大牛'),COLOR00FFFF;ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);STICKLINE(ST,100,90,2,0),COLOR008800;STICKLINE(ST,100,90,2,0),COLOR00AA00;STICKLINE(ST,100,90,1,0),COLOR00CC00;STICKLINE(ST,100,90,0.2,0),COLOR00FF00;DRAWTEXT(ST,90,'卖'),COLORFFFFFF;DRAWICON(BT AND TJ1 AND TJ2,5,25);上升:IF(K>REF(K,1),K,DRAWNULL),LINETHICK1,COLORRED;。

四量图副图的通达信指标公式源码全解

四量图副图的通达信指标公式源码全解

四量图副图的通达信指标公式源码全解引言本文档将介绍通达信指标公式源码解析,主要关注四量图副图的指标公式。

通达信是一种常用的股票分析软件,其指标公式源码是股票分析的重要工具。

通达信指标公式源码解析以下是四量图副图的通达信指标公式源码全解:1. 成交量指标(VOL)源码:VOL:=(MA(VOL,5)+MA(VOL,10)+MA(VOL,20))/3;该公式计算了成交量的均线,分别为5日、10日和20日的均线。

将这三个均线相加后除以3,得到最终的成交量指标。

2. 成交额指标(AMT)源码:AMT:=(MA(AMT,5)+MA(AMT,10)+MA(AMT,20))/3;该公式计算了成交额的均线,同样使用了5日、10日和20日的均线计算方法。

将这三个均线相加后除以3,得到最终的成交额指标。

3. 换手率指标(TURNOVER)源码:TURNOVER:=(MA(TURNOVER,5)+MA(TURNOVER,10)+MA( TURNOVER,20))/3;该公式计算了换手率的均线,同样使用了5日、10日和20日的均线计算方法。

将这三个均线相加后除以3,得到最终的换手率指标。

4. 持仓量指标(POSITION)源码:POSITION:=(MA(POSITION,5)+MA(POSITION,10)+MA(POSIT ION,20))/3;该公式计算了持仓量的均线,同样使用了5日、10日和20日的均线计算方法。

将这三个均线相加后除以3,得到最终的持仓量指标。

结论本文介绍了四量图副图的通达信指标公式源码全解。

通过对成交量、成交额、换手率和持仓量的均线计算,可以得到相应的指标,帮助进行股票分析和决策。

通达信指标公式源码是股票分析的重要工具,可以根据需要进行定制和优化。

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

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

通达信副图指标公式源码大全
一、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参数。

通达信副图指标源码【大全】

通达信副图指标源码【大全】

庄筹散筹(幅图)庄筹估算:EMA(WINNER(C)*70,5) COLORMAGENTA LINETHICK2;散筹估算:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5) COLORGREEN LINETHICK2; CC:=FILTER( (CROSS(5,庄筹估算) AND 散筹估算<20 )*60,10 );抄底:CC,COLORYELLOW;DRAWTEXT(CC ,11 ,'抄底' ) ,COLORYELLOW;AA:= REF(庄筹估算,30)>40 OR REF(庄筹估算,20)>40;BB:=CROSS(28,庄筹估算) AND 散筹估算>40 AND AA=1 {AND LLV(L ,60 )>LLV(L ,250 )}; 洗盘:IF(BB ,30 ,60 ) COLORCY AN;DRAWTEXT(FILTER(BB,4) ,66 ,'洗盘' ) COLORCY AN;DRAWTEXT(庄筹估算>60,58,'★'),COLORRED;STICKLINE(庄筹估算<散筹估算AND 散筹估算<60,散筹估算,55,1,0),COLORGREEN; STICKLINE(庄筹估算>散筹估算,散筹估算,50,1,0),COLORRED;STICKLINE(庄筹估算<散筹估算,庄筹估算,0,0,0),COLORYELLOW;操盘频率(幅图)V AR1:=MA(CLOSE,26);持仓线: V AR1, , ;V AR2:=V AR1-0.25;空仓线: V AR2, , ;操盘频率: EMA(CLOSE,3);操盘频率是一个趋势类的指标,它由三根线条组成,分别是:操盘趋势,持仓线,空仓线组成,通常这个指标为我们明确指出了一个中期趋势的大方向机构能量线(幅图){坐标线;20.00;50.00;80.00}V AR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线: SMA(V AR1,3,1),LINETHICK2,COLORGREEN;V AR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;机构做多能量线: SMA(V AR2,5,1)-8,LINETHICK2,COLORRED;弱势区:20,POINTDOT,COLORGREEN;强弱分水岭:50,POINTDOT,COLORWHITE;强势区:80,POINTDOT,COLORF00FF0;该指标共四根线,分别为机构做空能量线(绿色粗线)、机构做多能量线(红色粗线),这两条线代表中期趋势;能量超买线(红色细线)、能量超卖线(绿色细线),这两条线代表短期趋势。

通达信指标公式源码 战赢系列副图指标

通达信指标公式源码 战赢系列副图指标

1.战赢主力:VARA:=REF(LOW,1);VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100; VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);VARD:=LLV(LOW,30);VARE:=HHV(VARC,30);VARF:=IF(MA(CLOSE,58),1,0);VARG:=EMA(IF(LOW<=VARD,(VARC+VARE*2)/2,0),3)/618*VARF; VARH:=IF(VARG>28,28,VARG);吸筹:STICKLINE(VARH>-120,0,VARH,6,1),COLOR0FFFFF;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);跟庄买入: IF(CROSS(J,3),50,0),COLORRED,LINETHICK3;VA:=(2*C+H+L)/4;VB:=LLV(L,5);VC:=HHV(H,5);红线上穿买:EMA((VA-VB)/(VC-VB)*100,5),COLORRED;红线下穿卖:EMA(红线上穿买,3),COLORFFFF00;JL:=EMA(VOL,13);JE:=EMA(AMOUNT,13);JX:=((JE / JL) / 100);RGL:=(((CLOSE - JX) / JX) * 100);STICKLINE((RGL < (0 - 6)),0,20,2,0),COLORFF00CC;V1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; V2:=2*ABS(V1);粉军:IF(V1>0,V1,0),COLORFFCCFF, LINESTICK;绿军:IF(V1<0,V2,0),COLORGREEN,LINESTICK;K1:=SMA(RSV,3,1);DK1:=K1-REF(K1,1);出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,30,0), LINESTICK,COLORYELLOW;DRAWICON(出手就赢>0,30 ,1);2.战赢趋势: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,COLORWHITE,LINETHICK3;趋势线:EMA(Q3, 3),COLORRED,LINETHICK3;DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80, REF(长趋势,3), '顶'),COLORRED,LINETHICK5;逢低买: DRAWTEXT(REF(CROSS(趋势线,长趋势),82) AND 趋势线>1.3*长趋势,长趋势,'逢低买'),LINETHICK1;买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND 长趋势>1.3*趋势线,趋势线,'买'),COLORRED,LINETHICK1;VAR3:=PEAKBARS(3,15,1)<10;VAR5:=IF(VAR3=1,2,0);顶:= IF(VAR5=2,2,0);顶A:IF(顶>REF(顶,1),50,0),COLORGREEN;DRAWTEXT(顶A=50,45,'快逃'),COLOR00FF00;金叉: CROSS(长趋势,趋势线);DRAWTEXT(金叉,趋势线,'★'),COLORRED;3.战赢高低:VAR1:=IF(DATE<1340830 AND DATE>900101,1,0);VAR2:=IF(MONTH<12,1,100000);VAR3:=(2*CLOSE+HIGH+LOW)/4;VAR4:=LLV(LOW,34);VAR5:=HHV(HIGH,34);散户: EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),LINETHICK2,COLORRED;新庄: EMA(0.667*REF(散户,1)+0.333*散户,2),LINETHICK2,COLORYELLOW; DRAWTEXT(CROSS(散户,新庄) AND 散户<22,20,'绝望中诞生'),COLORWHITE,LINETHICK7 ;DRAWICON(CROSS(散户,新庄) AND 散户<22,25,0);DRAWTEXT(CROSS(散户,30) AND 新庄<散户,40,'犹豫中上扬'),COLORYELLOW, LINETHICK4;DRAWICON(CROSS(散户,30) AND 新庄<散户,40,0);DRAWTEXT(CROSS(散户,65) AND 新庄<散户,70,'无奈中叹息'),COLORRED ,LINETHICK4 ;DRAWICON(CROSS(散户,65) AND 新庄<散户,70,1);DRAWICON(CROSS(散户,75) AND 新庄<散户,80,1);DRAWICON(CROSS(新庄,散户) AND 新庄>75,85,2);逢低吸呐: IF(CROSS(散户,新庄) AND 散户<40,25,10),COLORRED,LINETHICK2;逢高减磅: IF(CROSS(新庄,散户) AND 新庄>75,75,90),COLORGREEN,LINETHICK2;高抛低吸界线: 50*VAR1, CROSSDOT;4.战赢风赢:FS:=MA(CLOSE,13)+MA(CLOSE,13)-REF(MA(CLOSE,13),1);CG:=IF(MA(CLOSE,13)<FS,FS,MA(CLOSE,13));A:=CG-(EMA(C,3)-CG);X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A ,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9 *REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF( A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);卖1:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) ANDCROSS(MA(DX,2),DX),1,0);DRAWICON(FILTER(卖1=1,1),H*1.01,6);买1:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);DRAWICON(FILTER(买1=1,5),L*0.96,5);日均价:=(C*3+H+L+O)/6;ZIA:=日均价;裁决:=(REF(ZIA,1)*0.5+REF(ZIA,2)+REF(ZIA,3)*0.5)/2;VAR1:=IF(C<裁决AND BETWEEN(裁决,C,O),1,0);VAR2:=IF(C<裁决AND REF(C,1)>裁决AND BETWEEN(裁决,C,O)=0,1,0); VAR3:=IF(C<裁决AND REF(C,1)>裁决,1,0);VAR4:=IF(C>=裁决AND BETWEEN(裁决,C,O),1,0);VAR5:=IF(C>=裁决AND REF(C,1)>裁决,1,0);VAR6:=IF(C>=裁决AND BETWEEN(裁决,C,O)=0 AND REF(C,1)>裁决,1,0); CO:=(C-O);捕风:MA(C,5)-MA(C,13)+MA(C,8),COLORYELLOW,LINETHICK1;修正:=SMA(SMA(EMA(日均价,5)*2-MA(日均价,5),3,1),3,1);补偿:=FLOOR(((修正-MA(修正,5))/MA(修正,5)*100));SA:=EMA(日均价,5)*2-MA(日均价,5);捉影:SMA(SMA((EMA(SA,(5+ABS(补偿)))),2,1),2,1),COLORMAGENTA,LINETHICK2;捉影角度:ATAN((捉影/REF(捉影,1)-1)*100)*57.3,NODRAW,COLORYELLOW; 分界:MA(C,64),COLORFF9900;分界角度:ATAN((分界/REF(分界,1)-1)*100)*57.3,NODRAW,COLORFF9900; 买点A:FILTER(买1=1,5),COLORGRAY,NODRAW;买点B:VAR4,COLORGRAY,NODRAW;涨幅:(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,COLORMAGENTA,NODRAW; 换手:SUM(100*V/CAPITAL,1),COLORFF9900,NODRAW;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; STICKLINE(VAR5 OR VAR6 ,OPEN,CLOSE,3,0 ),COLOR000055; STICKLINE(VAR5 OR VAR6 ,OPEN,CLOSE,2.7,0 ),COLOR000077; STICKLINE(VAR5 OR VAR6 ,OPEN,CLOSE,2.1,0 ),COLOR000099; STICKLINE(VAR5 OR VAR6 ,OPEN,CLOSE,1.5,0 ),COLOR0000BB; STICKLINE(VAR5 OR VAR6 ,OPEN,CLOSE,0.9,0 ),COLOR0000DD; STICKLINE(VAR5 OR VAR6 ,OPEN,CLOSE,0.3,0 ),COLOR0000FF; STICKLINE(VAR4,O,O+CO/3,2.7,0),COLOR335555;STICKLINE(VAR4,O,O+CO/3,2.1,0),COLOR338888;STICKLINE(VAR4,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE(VAR4,O,O+CO/3,0.9,0),COLOR33CCCC;STICKLINE(VAR4,O,O+CO/3,0.3,0),COLOR33EEEE;STICKLINE(VAR1,O,O+CO/3,2.7,0),COLOR550055;STICKLINE(VAR1,O,O+CO/3,2.1,0),COLOR880088;STICKLINE(VAR1,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE(VAR1,O,O+CO/3,0.9,0),COLORCC00CC;STICKLINE(VAR1,O,O+CO/3,0.3,0),COLOREE00EE;5.战赢背离:N1:=5;N2:=10;N3:=21;N4:=60;牛熊:EMA(CLOSE,N4),COLORGREEN,LINETHICK3;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,8);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA); DRAWTEXT(IF(B1>0,1,0),L-0.1,'MACD底背'),COLORGREEN;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);A2:=BARSLAST(REF(CROSS(K,D),1));B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D); DRAWTEXT(IF(B2>0,1,0),L-0.25,'KDJ底背'),COLORYELLOW;LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2); DRAWTEXT(IF(B3>0,1,0),L-0.4,'RSI底背'),COLORBLUE;C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF); DRAWTEXT(IF(D1>0,1,0),H+0.1,'MACD顶背'),COLORWHITE;C2:=BARSLAST(REF(CROSS(D,K),1));D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K); DRAWTEXT(IF(D2>0,1,0),H+0.25,'KDJ顶背'),COLORWHITE;C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1); DRAWTEXT(IF(D3>0,1,0),H+0.4,'RSI顶背'),COLORYELLOW;SG:EMA(HHV(H,1),8),COLORGRAY;X1:EMA(CLOSE,N1),COLORYELLOW;JJ:=(H+L+3*C)/5;。

通达信指标公式源码主力资金副图指标

通达信指标公式源码主力资金副图指标

通达信指标公式源码主力资金副图指标ZLCM:=EMA(WINNER(CLOSE)*70,3);SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3); ZSHTL:=SHCM/(ZLCM+SHCM)*100;ZZLKP:=ZLCM/(ZLCM+SHCM)*100;ZCMZL:=MA(ZLCM+SHCM,13);ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);ZSHJJ:=EMA(ZSHTL,89);ZZLJJ:=EMA(ZZLKP,89);ZJLRQD:=INTPART(ZZLKP-ZZLJJ);SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);STICKLINE(REF(ZSHTL,1)>90 AND ZSHTL<90,ZSHTL,0,4,0),COLOR9966FF;STICKLINE(C>0,ZSHTL,ZZLKP,0,0),COLOREEEEEE;STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,1,0),COLORAAA AAA; STICKLINE(C>0,ZZLKP,0,3,0),COLORBLUE;STICKLINE(ZZLKP>75,ZZLKP,0,3,0),COLORFFFFFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,3,0),COLORRED; STICKLINE(ZSHTL>=90,ZZLKP,0,3,0),COLORYELLOW;散户套牢系数:INTPART(ZSHTL),NODRAW;主力控盘系数:INTPART(ZZLKP),COLORCYAN,NODRAW;资金流入强度:ZJLRQD,NODRAW;RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;K1:=SMA(RSV,10,1);D1:=SMA(K1,5,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;TGLD:=MOD(TFXXS,10);TGLXS:=(TFXXS-REF(TFXXS,1))*10;TYCFX:=TFXXS+TGLXS;乖离系数:TGLXS,NODRAW,COLORGREEN;STICKLINE(TGLXS>0,150,150+TGLXS,3,0),COLOR000088;STICKLINE(TGLXS>0,150,150+TGLXS,2.5,0),COLOR000099;STICKLINE(TGLXS>0,150,150+TGLXS,2,0),COLOR0000AA;STICKLINE(TGLXS>0,150,150+TGLXS,1.5,0),COLOR0000BB;STICKLINE(TGLXS>0,150,150+TGLXS,1.0,0),COLOR0000DD; STICKLINE(TGLXS>0,150,150+TGLXS,0.5,0),COLOR0000FF;STICKLINE(TGLXS<0,150,150+TGLXS,3,0),COLOR008800;STICKLINE(TGLXS<0,150,150+TGLXS,2.5,0),COLOR00AA00;STICKLINE(TGLXS<0,150,150+TGLXS,2,0),COLOR00BB00;STICKLINE(TGLXS<0,150,150+TGLXS,1.5,0),COLOR00DD00; STICKLINE(TGLXS<0,150,150+TGLXS,1,0),COLOR00FF00;STICKLINE(TGLXS=0 ANDREF(TGLXS,1)>=0,150,150+TGLXS,8,0),COLORRED;STICKLINE(TGLXS=0 ANDREF(TGLXS,1)<0,150,150+TGLXS,8,0),COLORGREEN;风险系数:TFXXS,LINETHICK2,COLORYELLOW;预测风险:TYCFX,LINETHICK1,COLORCYAN;市场筹码总量:ZCMZL,COLORGREEN,LINETHICK1;上市:FINANCE(42)/10000,NODRAW,COLORYELLOW;STICKLINE(TGLXS>0 AND 100+TGLXS<="" p="">100+REF(TGLXS,1)>=REF(TYCFX,1),0,(100+ABS(TGLXS)),0,0), COLORYELLO W;STICKLINE(TGLXS<0 AND 100+TGLXS>=TYCFX AND100+REF(TGLXS,1)<="" p="">T1:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=1);T2:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=0);T3:=CONST( ZCMZL=REF(ZCMZL,1));T4:=CONST( ZCMZLT5:=CONST( ZCMZLT6:=CONST(TFXXS<=50 );T7:=CONST(TFXXS>=160 );T8:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS<=100 );T9:=CONST( TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS>100);T10:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS100 );T11:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<="" and="" p="" tfxxs<="100">T12:=CONST( ZSHTL>90 );T13:=CONST( ZZLKP>75 );T14:=CONST(CROSS(ZCMZL,ZZLJJ) AND ZZLKP>ZZLJJ AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T15:=CONST(CROSS(ZCMZL,ZZLKP) AND ZZLKP>ZZLJJ AND ZZLKP10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T16:=CONST( CROSS(ZCMZL,ZSHTL) AND ZSHTL>ZZLKP ANDZCMZL>REF(ZCMZL,1));T17:=CONST( CROSS(ZCMZL,100) ANDZCMZL>REF(ZCMZL,1));T18:=CONST(REF(ZSHTL,1)>90 AND ZSHTL<90 );TS1:=IF(T1=1,0+0.03,0);TS2:=IF(T2=1,TS1+0.03,TS1);TS3:=IF(T3=1,TS2+0.03,TS2);TS4:=IF(T4=1,TS3+0.03,TS3);TS5:=IF(T5=1,TS4+0.03,TS4);TS6:=IF(T6=1,0+0.73,0);TS7:=IF(T7=1,TS6+0.03,TS6);TS8:=IF(T8=1,TS7+0.03,TS7);TS9:=IF(T9=1,TS8+0.03,TS8);TS10:=IF(T10=1,TS9+0.03,TS9);TS11:=IF(T11=1,TS10+0.03,TS10);TS12:=IF(T12,0+0.03,0);TS13:=IF(T13=1,TS12+0.03,TS12);TS14:=IF(T14=1,TS13+0.03,TS13);TS15:=IF(T15=1,TS14+0.03,TS14);TS16:=IF(T16=1,TS15+0.03,TS15);TS17:=IF(T17=1,TS16+0.03,TS16);TS18:=IF(T8=1,TS17+0.03,TS17);DRAWTEXT_FIX(T1,0.58,TS1,0,'★主力动向监控:主力增仓'),COLORRED; DRAWTEXT_FIX(T2,0.58,TS2,0,'★主力动向监控:主力减仓'),COLORMAGENTA; DRAWTEXT_FIX(T3,0.58,TS3,0,'★主力动向监控:多空平衡'),COLORGRAY; DRAWTEXT_FIX(T4,0.58,TS4,0,'★主力动向监控:主力回补'),COLORFF9933; DRAWTEXT_FIX(T5,0.58,TS5,0,'★主力动向监控:主力出逃'),COLORGREEN; DRAWTEXT_FIX(T6,0.78,TS6,0,'★操作风险提示:买入风险'),COLORYELLOW; DRAWTEXT_FIX(T7,0.78,TS7,0,'★操作风险提示:卖出风险'),COLORCYAN; DRAWTEXT_FIX(T8,0.78,TS8,0,'★操作风险提示:追涨博弈'),COLORRED;DRAWTEXT_FIX(T9,0.78,TS9,0,'★操作风险提示:稳健持股'),COLORMAGENTA; DRAWTEXT_FIX(T10,0.76,TS10,0,'★操作风险提示:盘跌减仓'),COLORWHITE; DRAWTEXT_FIX(T11,0.76,TS11,0,'★操作风险提示:杀跌空仓'),COLORGREEN; DRAWTEXT_FIX(T12,0.36,TS12,0,'☆特别信号提示:筑底散兵坑'),COLOR66FFCC;DRAWTEXT_FIX(T13,0.36,TS13,0,'☆特别信号提示:铸顶风险区'),COLO RCYAN; DRAWTEXT_FIX(T14,0.36,TS14,0,'☆特别信号提示:穿越主力'),COLORRED; DRAWTEXT_FIX(T15,0.36,TS15,0,'☆特别信号提示:穿越主力'),COLORYELLOW;DRAWTEXT_FIX(T16,0.36,TS16,0,'☆特别信号提示:穿越散户'),COLORGREEN;DRAWTEXT_FIX(T17,0.36,TS17,0,'☆特别信号提示:全盘穿越'),COLOR3399FF;。

通达信指标公式源码 大小底结合副图+选股 公布源码 通达信指标

通达信指标公式源码 大小底结合副图+选股 公布源码 通达信指标

大小底结合: 副图X_1:=6;X_2:=80;X_3:=REF(CLOSE,1);X_4:=SMA(MAX(CLOSE-X_3,0),18,1)/SMA(ABS(CLOSE-X_3),13,1)*100; X_5:=SMA(MAX(CLOSE-X_3,0),24,1)/SMA(ABS(CLOSE-X_3),20,1)*100; X_6:=BARSLAST(X_5<48)<=3 AND CROSS(X_4,X_5);X_7:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,20)*100<(-12.5);X_8:=LLV(LOW,5);X_9:=HHV(HIGH,10);X_10:=EMA((CLOSE-X_8)/(X_9-X_8)*100,4);X_11:=EMA(0.667*REF(X_10,1)+0.333*X_10,2);X_12:=1011131;X_13:=IF(DATE<=X_12,X_7,0) OR IF(DATE<=X_12,X_2,0);X_15:=SMA(MAX(CLOSE-X_14,0),7,1)/SMA(ABS(CLOSE-X_14),7,1)*100;X_16:=SMA(MAX(CLOSE-X_14,0),13,1)/SMA(ABS(CLOSE-X_14),13,1)*100; X_17:=BARSLAST(X_16<43)<=3 AND CROSS(X_15,X_16);X_18:=(CLOSE-MA(CLOSE,43))/MA(CLOSE,20)*100<(-12.5);X_19:=LLV(LOW,5);X_20:=HHV(HIGH,10);X_21:=EMA((CLOSE-X_19)/(X_20-X_19)*100,4);X_22:=EMA(0.667*REF(X_21,1)+0.333*X_21,2);X_23:=1011131;X_24:=IF(DATE<=X_23,X_18,0) OR IF(DATE<=X_23,X_2,0);X_25:=0-(-1)*X_17 AND X_18 AND CROSS(X_21,X_22) AND X_21<=25;X_26:=REF(CLOSE,1);X_27:=SMA(MAX(CLOSE-X_26,0),7,1)/SMA(ABS(CLOSE-X_26),7,1)*100;X_28:=SMA(MAX(CLOSE-X_26,0),13,1)/SMA(ABS(CLOSE-X_26),13,1)*100; X_29:=BARSLAST(X_28<33)<=3 AND CROSS(X_27,X_28);X_30:=(CLOSE-MA(CLOSE,33))/MA(CLOSE,20)*100<(-12.5);X_31:=LLV(LOW,5);X_32:=HHV(HIGH,10);X_33:=EMA((CLOSE-X_31)/(X_32-X_31)*100,4);X_34:=EMA(0.667*REF(X_33,1)+0.333*X_33,2);X_35:=1011131;X_36:=IF(DATE<=X_35,X_30,0) OR IF(DATE<=X_35,X_2,0);小底小仓位:0-(-1)*X_29 AND X_30 AND CROSS(X_33,X_34) ANDX_33<=25,COLOR80FF00;DRAWICON(小底小仓位>0,0.8,23);X_37:=REF(CLOSE,1);X_38:=SMA(MAX(CLOSE-X_37,0),7,1)/SMA(ABS(CLOSE-X_37),7,1)*100;X_39:=SMA(MAX(CLOSE-X_37,0),13,1)/SMA(ABS(CLOSE-X_37),13,1)*100; X_40:=BARSLAST(X_39<23)<=3 AND CROSS(X_38,X_39);X_41:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<(-12.5);X_42:=LLV(LOW,5);X_43:=HHV(HIGH,10);X_44:=EMA((CLOSE-X_42)/(X_43-X_42)*100,4);X_45:=EMA(0.667*REF(X_44,1)+0.333*X_44,2);X_46:=1011131;X_47:=IF(DATE<=X_46,X_41,0) OR IF(DATE<=X_46,X_2,0);大底大仓位:0-(-1)*X_40 AND X_41 AND CROSS(X_44,X_45) ANDX_44<=25,COLORRED;DRAWTEXT_FIX(C>O,0.01,0.9,0,'室'),COLORyellow; DRAWICON(大底大仓位>0,0.8,24);大小底结合: 条件选股X_1:=6;X_2:=80;X_4:=SMA(MAX(CLOSE-X_3,0),18,1)/SMA(ABS(CLOSE-X_3),13,1)*100;X_5:=SMA(MAX(CLOSE-X_3,0),24,1)/SMA(ABS(CLOSE-X_3),20,1)*100;X_6:=BARSLAST(X_5<48)<=3 AND CROSS(X_4,X_5);X_7:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,20)*100<(-12.5);X_8:=LLV(LOW,5);X_9:=HHV(HIGH,10);X_10:=EMA((CLOSE-X_8)/(X_9-X_8)*100,4);X_11:=EMA(0.667*REF(X_10,1)+0.333*X_10,2);X_12:=1011131;X_13:=IF(DATE<=X_12,X_7,0) OR IF(DATE<=X_12,X_2,0);X_14:=REF(CLOSE,1);X_15:=SMA(MAX(CLOSE-X_14,0),7,1)/SMA(ABS(CLOSE-X_14),7,1)*100;X_16:=SMA(MAX(CLOSE-X_14,0),13,1)/SMA(ABS(CLOSE-X_14),13,1)*100; X_17:=BARSLAST(X_16<43)<=3 AND CROSS(X_15,X_16);X_18:=(CLOSE-MA(CLOSE,43))/MA(CLOSE,20)*100<(-12.5);X_19:=LLV(LOW,5);X_20:=HHV(HIGH,10);X_21:=EMA((CLOSE-X_19)/(X_20-X_19)*100,4);X_22:=EMA(0.667*REF(X_21,1)+0.333*X_21,2);X_23:=1011131;X_24:=IF(DATE<=X_23,X_18,0) OR IF(DATE<=X_23,X_2,0);X_25:=0-(-1)*X_17 AND X_18 AND CROSS(X_21,X_22) AND X_21<=25;X_26:=REF(CLOSE,1);X_27:=SMA(MAX(CLOSE-X_26,0),7,1)/SMA(ABS(CLOSE-X_26),7,1)*100;X_28:=SMA(MAX(CLOSE-X_26,0),13,1)/SMA(ABS(CLOSE-X_26),13,1)*100; X_29:=BARSLAST(X_28<33)<=3 AND CROSS(X_27,X_28);X_30:=(CLOSE-MA(CLOSE,33))/MA(CLOSE,20)*100<(-12.5);X_31:=LLV(LOW,5);X_32:=HHV(HIGH,10);X_33:=EMA((CLOSE-X_31)/(X_32-X_31)*100,4);X_34:=EMA(0.667*REF(X_33,1)+0.333*X_33,2);X_35:=1011131;X_36:=IF(1<=X_35,X_30,0) OR IF(1<=X_35,X_2,0);X_37:=0-(-1)*X_29 AND X_30 AND CROSS(X_33,X_34) AND X_33<=25;X_38:=REF(CLOSE,1);X_39:=SMA(MAX(CLOSE-X_38,0),7,1)/SMA(ABS(CLOSE-X_38),7,1)*100;X_40:=SMA(MAX(CLOSE-X_38,0),13,1)/SMA(ABS(CLOSE-X_38),13,1)*100; X_41:=BARSLAST(X_40<23)<=3 AND CROSS(X_39,X_40);X_42:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<(-12.5);X_43:=LLV(LOW,5);X_44:=HHV(HIGH,10);X_45:=EMA((CLOSE-X_43)/(X_44-X_43)*100,4);X_46:=EMA(0.667*REF(X_45,1)+0.333*X_45,2);X_47:=1011131;X_48:=IF(1<=X_47,X_42,0) OR IF(1<=X_47,X_2,0);X_49:=0-(-1)*X_41 AND X_42 AND CROSS(X_45,X_46) AND X_45<=25; XG:X_37 OR X_49;。

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

副图指标公式源码百万踏浪(相传为杨百万看图公式)、1N1:=9;N:=3;VAR1:=REF(CLOSE,1);标尺:SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)* 100;VAR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*10 0;VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1);浪:VAR3,COLORBLUE;波:VAR4,COLORRED;段:VAR5,COLORYELLOW;VAR6:=CROSS(VAR3,VAR4)ANDVAR4<25;STICKLINE(VAR6,0,VAR4+15,5,0),COLORGREEN;VAR7:=CROSS(VAR4,VAR5)ANDVAR4<25;VAR8:=VAR7ANDVOL>REF(VOL,1)*2ANDVOL>REF(MA(VOL,5),1)*2; STICKLINE(VAR7,0,VAR4+55,5,0),COLORWHITE;底抄DRAWTEXT(VAR7ANDCOUNT(VAR7,10)=1,VAR4+25,''),COLORYELLOW;STICKLINE(VAR8,0,VAR4+15,5,0),COLORBLUE;DRAWTEXT(VAR8ANDCOUNT(VAR8,10)=1,VAR4-1,'量放'),COLORGREEN;VAR9:=CROSS(VAR3,VAR4)ANDVAR4>80ANDVAR4>VAR5; STICKLINE(VAR9ANDCOUNT(VAR9,5)=1,VAR4-5,100,5,0),COLORY ELLOW;VARA:=CROSS(VAR5,VAR4)ANDREF(VAR4,1)>80;STICKLINE(VARA,VAR4-15,100,15,0),COLORYELLOW;顶逃DRAWTEXT(VARAANDCOUNT(VARA,10)=1,VAR4-25,''),COLORYELLO W;VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*1 00;VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDE XL,14))*100;VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100; VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LO W,60))+100;VAR20:=VAR18<=25ANDVAR19<-95ANDVAR1F>20ANDVAR1B<-30ANDV AR1E<30ANDVAR11-CLOSE>=-0.25ANDVAR15<22ANDVAR16<28ANDVA R17>50;STICKLINE(VAR20,0,50,10,0),LINETHICK2,COLORBLUE; DRAWTEXT(CROSS(VAR20,0.5)ANDCOUNT(VAR20=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; 警戒线,3,0),COLOR009CFF; 主力STICKLINE((主力>0),0,,2.8,0),COLOR009CFF; STICKLINE((主力>0),0,主力,2.5,0),COLOR00C0FF; STICKLINE((主力主力>0),0,,1.5,0),COLOR00D1FF; >0),0,主力主力STICKLINE((,1,0),COLOR00EAFF; 主力STICKLINE((主力>0),0,,0.7,0),COLORYELLOW; STICKLINE((主力>0),0,主力,3,0),COLOR00C100; >0),0,STICKLINE((游资游资,2.8,0),COLOR00CA00; >0),0,游资游资STICKLINE((,2.5,0),COLOR00D300; STICKLINE((游资>0),0,游资,1.5,0),COLOR00DB00; >0),0,游资游资STICKLINE((,1,0),COLOR00EA00; STICKLINE((游资>0),0,游资,0.7,0),COLORGREEN; 游资>0),0,游资STICKLINE((,3,0),COLOR1020AA;大户>0),0,大户STICKLINE((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,散散>0),0,散,1.5,0),COLORFFAA00;STICKLINE((户户户,1,0),COLORFFBB00;STICKLINE((散户>0),0,散户,0.7,0),COLORLIBLUE;3、黑马起爆点VAR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;VAR2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*10 0;VAR3:=SMA(VAR2,2,1);天:100+(-ABS(VAR1)),COLORRED;下:SMA(VAR3,2,1);无:ABS(VAR1),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=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAW NULL),NODRAW;STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,WOL,0,3,-1),COLORF FFFFF;VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V135:MA(VOLUME,135);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((H IGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;主卖:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOS E<OPEN,VAR1*(HIGH-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; 换手,20);换手二十日换手:SUM(5、起涨点换手率%:VOL/CAPITAL*100,LINETHICK0,COLORYELLOW;量比:V/(REF(MA(V,5),1)),LINETHICK0,COLORRED;VVOL:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DR AWNULL),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.5OR虚拟量比>1.5;获利比例%1:=获利比例%>70;涨幅%1:=涨幅%>3;启动:=换手率ND量比1AND获利比例ND涨幅%1;起涨点:IF(启动,101,0)COLORRED,LINETHICK2;6、庄家建仓VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1) *4;VAR3:=EMA(VAR2,13);VAR4:=LLV(LOW,34);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:STICKLINE(VAR5>REF(VAR5,1),0,VAR5,7,0),COLORRED;7、出色超赢JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(C.LOSE,2));VAR3:=(REF(VAR2,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(C LOSE,2));VAR4:=(REF(VAR3,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(C LOSE,2));VAR5:=(REF(VAR4,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(C LOSE,2));VAR6:=(REF(VAR5,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(C LOSE,2));VAR7:=(REF(VAR6,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(C LOSE,2));VAR8:=(REF(VAR7,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(C LOSE,2));VAR9:=(REF(VAR8,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(C LOSE,2));VARA:=(REF(VAR9,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(C LOSE,2));VARB:=(REF(VARA,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(C LOSE,2));VARC:=(REF(VARB,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2));VARD:=(CLOSE<REF(CLOSE,1)ANDCLOSE<REF(CLOSE,2)); VARE:=(REF(VARD,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(C LOSE,2));VARF:=(REF(VARE,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(C LOSE,2));VAR10:=(REF(VARF,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF( CLOSE,2));VAR11:=(REF(VAR10,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF (CLOSE,2));VAR12:=(REF(VAR11,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF (CLOSE,2));VAR13:=(REF(VAR12,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF (CLOSE,2));VAR14:=(REF(VAR13,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF (CLOSE,2));VAR15:=(REF(VAR14,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF (CLOSE,2));VAR16:=(REF(VAR15,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF (CLOSE,2));VAR17:=(REF(VAR16,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF (CLOSE,2));VAR18:=(REF(VAR17,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF (CLOSE,2));VAR19:=((REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR 13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18,1))ANDVAR1); VAR1A:=((REF(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR VAR8ORVAR9ORVARAORVARBORVARC,1))ANDVARD);红色持股:VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9 ORVARAORVARBORVARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOR0000FF,NODRAW;青色观望:VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14O RVAR15ORVAR16ORVAR17ORVAR18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLORFF0000,NODRAW;黄色低买:VAR19,COLOR33AACC,NODRAW;洋红离场:VAR1A,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(ISLASTBARAND(红色持股ORREF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBARAND(青色观望ORREF(青色观望,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))ANDX2ANDJ<20,30,0); DRAWTEXT(CROSS(J,REF(J+0.01,1))ANDX2ANDJ<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,LINET HICK5;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)*1线00;震仓线:=45;震仓线2:=50;逃命线:=80;抄底线:=20;绝底线:=5;PP2:=操作线<震仓线2ANDREF(操作线,1)>震仓线2;PP:=操作线<震仓线ANDREF(操作线,1)>震仓线;PP3:=操作线<抄底线ANDREF(操作线,1)>抄底线;HH:=COUNT(涨停,13)>=1;STICKLINE(PP2ANDHH,0,5,3,0),COLORRED;STICKLINE(PPANDHH,0,5,3,0),COLORRED;STICKLINE(PP3ANDHH,0,5,3,0),COLORRED;DRAWTEXT(PP2ANDHH,8,'预警'),COLORRED;DRAWTEXT(PPANDHH,8,'预警'),COLORRED;DRAWTEXT(PP3ANDHH,8,'预警'),COLORRED;A:=SMA(L,4,3);绿色买入:IF(((AANDREF(PP,1)ANDHH)OR(AANDREF(PP3,1)ANDHH)),1,0);STICKLINE(AANDREF(PP,1)ANDHH,0,10,1,0),COLORGREEN; DRAWICON(AANDREF(PP,1)ANDHH,12,1);STICKLINE(AANDREF(PP3,1)ANDHH,0,10,1,0)COLORGREEN; DRAWICON(AANDREF(PP3,1)ANDHH,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)ORHHV((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;'),COLORBLUE; ★{DRAWTEXT(FILTER(Z,9),H*1.028,'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;VAR1:MA(CLOSE,5);VAR2:MA(CLOSE,10);VAR3:MA(CLOSE,20);VAR60:MA(CLOSE,60);VAR120:MA(CLOSE,120);VAR4:=OPEN<VAR1OROPEN<VAR2OROPEN<VAR3;VAR5:=CLOSE>MAX(VAR1,MAX(VAR2,MAX(VAR3,VAR60)));VAR6:=VOL/MA(VOL,30)>1.2;VAR7:=CLOSE/REF(CLOSE,1)>1.049;VAR8:=VAR4ANDVAR5ANDVAR6ANDVAR7;VAR9:=VAR8AND(REF(BARSLAST(VAR8),1)>60ORBARSSINCE(VAR8) =0);DRAWICON(VAR9,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;VARZT:=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(AAANDVARZT=2,0,L*0.8,2,0),COLORRED; DRAWTEXT(AAANDVARZT=2,L*0.9,'时间窗'),COLORWHITE; STICKLINE(AAANDVARZT=4,0,L*0.8,2,0),COLORRED; DRAWTEXT(AAANDVARZT=4,L*0.9,'时间窗'),COLORWHITE; STICKLINE(AAANDVARZT=7,0,L*0.8,2,0),COLORRED; DRAWTEXT(AAANDVARZT=7,L*0.9,'时间窗'),COLORWHITE; STICKLINE(AAANDVARZT=12,0,L*0.8,2,0),COLORRED; DRAWTEXT(AAANDVARZT=12,L*0.9,'时间窗'),COLORWHITE; STICKLINE(AAANDVARZT=20,0,L*0.8,2,0),COLORRED; '),COLORWHITE;时间窗DRAWTEXT(AAANDVARZT=20,L*0.9,'。

相关文档
最新文档