神熬指标源码
通达信指标公式源码 专抓起爆稳赢剑副图指标
稳赢剑参数描述:N(1,100,12)M(1,100,20)}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;STICKLINE(REF(J,7)<0 AND J>1,10,0,10,0),COLOR00FF00;VAR1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);贵:=N,COLOR00FF00;VAR4:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);VAR5:=CROSS(VAR4,10) AND VAR3<N;抄底:IF(VAR5,90,1),COLORRED;DRAWICON(VAR5,65,1);DRAWTEXT(VAR5,30,'抄底'),COLORYELLOW;备钱:IF(CROSS(10,VAR4),40,1),COLORFF00FF;DRAWICON(CROSS(10,VAR4),45,1);DRAWTEXT(IF(CROSS(10,VAR4),1,0),20,'$备钱'),COLORWHITE;危机线: 80,COLORRED,POINTDOT,LINETHICK2;中间线: 50,COLORFFCCCC,POINTDOT,LINETHICK2;安全线: 10,COLORFF00FF,POINTDOT,LINETHICK2;VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=LLV(LOW,M);VAR8:=HHV(HIGH,M);VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);战术线: VAR9,COLORYELLOW,LINETHICK2;战略线: EMA(0.382*REF(VAR9,2)+0.618*VAR9,12),COLORBLUE;STICKLINE(VAR9>VARA,VAR9,VARA,6,0),COLORRED;STICKLINE(VAR9<=VARA,VAR9,VARA,6,0),COLOR00FF00;VARB:=SUM(IF(CLOSE>REF(CLOSE,7),VOL,IF(CLOSE<REF(CLOSE,7),0-VOL,0)),0); VARC:=SUMBARS(VOL,CAPITAL);VARD:=IF(CLOSE>LLV(CLOSE,VARC),1,-1);VARE:=IF(VARB>LLV(VARB,VARC),1,-1);VARF:=VARD*VARE;VAR10:=IF(VARF=-1,1,0);关注:IF(VAR10 AND CLOSE=LLV(CLOSE,20) AND VAR3<N,70,1),COLORFFCC66;A1:=EMA(CLOSE,5);A2:=EMA(CLOSE,10);A3:=EMA(CLOSE,20);A4:=EMA(CLOSE,40);A5:=EMA(CLOSE,60);{上穿月线:IF({CROSS(A1,A2) AND }{CROSS(C,A3),50,0),COLORYELLOW,LINETHICK2;} {上穿季线:IF({CROSS(A3,A4) AND }{CROSS(C,A5),50,0),COLORRED,LINETHICK2;}I:=MA(BARSLAST(HIGH=HHV(HIGH,16))*IF(CLOSE<OPEN,VOL,1),3);R:=MA(BARSLAST(LOW=LLV(LOW,18))*IF(CLOSE>OPEN,VOL,1),4);短线逃顶:=IF(I,0,1),COLORGREEN;DRAWICON(短线逃顶,90,2);。
通达信副图指标公式源码大全
副图指标公式源码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;。
通达信指标公式源码大全
通达信指标公式源码大全 Revised by BLUE on the afternoon of December 12,2020.【通达信】魔鬼操盘(主图)-指标公式源码均5:MA(CLOSE,5)COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30:MA(CLOSE,30)COLORMAGENTA;均60:MA(CLOSE,60)COLORREDPOINTDOTLINETHICK3;均250:MA(CLOSE,250)COLORBLUELINETHICK2;魔鬼通道上:均30+2*STD(CLOSE,60)COLORYELLOWPOINTDOTLINETHICK2;魔鬼通道下:均30-2*STD(CLOSE,60)COLORYELLOWPOINTDOTLINETHICK2;VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=VAR1*;VAR5:=MA(CLOSE,5);VAR6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR7:=SMA(VAR6,5,1);VAR8:=VOL>REF(VOL,1);VAR9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);【通达信】平均价格(主图)-指标公式源码A:=(3*C+H+L+O)/6;XJ:=(A+*REF(A,1)+*REF(A,2)+*REF(A,3)+*REF(A,4))/;YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32))/4; YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A,2),32))/4; SMH:EMA(YCZXH,21),COLOR004000;SML:EMA(YCZXL,21),COLOR004000;SMJ:(SML+SMH)/2,COLOR004000;PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*REF(A,6)+3*R EF(A,7)+2*REF(A,8)+REF(A,9))/55;A1:=EMA(PJ,3),COLOR004000;A2:=EMA(PJ,5),COLOR004000;A3:=EMA(PJ,7),COLOR004000;A4:=EMA(PJ,9),COLOR004000;A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;KX1:=(CLOSE>=OPEN)ANDZD>=50;KX2:=(CLOSE<OPEN)ANDZD>=50;KX3:=(CLOSE>=OPEN)ANDZD<50;KX4:=(CLOSE<OPEN)ANDZD<50;IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;STICKLINE(KX1,C,O,4,1),COLOR4440FF;STICKLINE(KX1,C,H,,1),COLOR4440FF;STICKLINE(KX1,O,L,,1),COLOR4440FF;STICKLINE(KX2,C,O,4,0),COLOR4440FF;STICKLINE(KX2,O,H,,0),COLOR4440FF;STICKLINE(KX2,C,L,,0),COLOR4440FF;STICKLINE(KX3,C,O,4,1),COLORFFFF33;STICKLINE(KX3,C,H,,1),COLORFFFF33;STICKLINE(KX3,O,L,,1),COLORFFFF33;STICKLINE(KX4,C,O,4,0),COLORFFFF33;STICKLINE(KX4,O,H,,0),COLORFFFF33;STICKLINE(KX4,C,L,,0),COLORFFFF33;【通达信】牛劲十足(副图)-指标公式源码VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;SG:=MMB>0ANDREF(MMB,1)<MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:=上攻周期<1;DBQD:=FILTER(COUNT(JSC,5)>3ANDNOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAND(上攻周期,RGB(255,120,120),3,RGB(0,0,0));DRAWBAND(JSC,RGB(0,0,255),,RGB(0,0,0));STICKLINE(COUNT(上攻周期>3,5)>=3ANDSG,0,上攻周期,,0),COLORRED;XG:COUNT(COUNT(上攻周期>3,5)>=3ANDSG,20)>4;【通达信】魔鬼K线(副图)-指标公式源码VAR1:=REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:=REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;VAR7:=REF(LOW,1);VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100;STICKLINE(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN,;STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED,;STICKLINE(VAR4>VAR2ANDVAR6>VAR8ANDVAR8>VAR4,VAR4,VAR6,,1),COLORRED,; STICKLINE(VAR4>VAR2ANDVAR6>VAR8ANDVAR8<VAR4,VAR4,VAR6,,1),COLORRED,; STICKLINE(VAR4>VAR2ANDVAR6<VAR8ANDVAR6>VAR4,VAR4,VAR8,,1),COLORRED,; STICKLINE(VAR4>VAR2ANDVAR6>VAR8ANDVAR6<VAR2,VAR2,VAR8,,1),COLORRED,; STICKLINE(VAR4>VAR2ANDVAR6>VAR8ANDVAR6>VAR2,VAR2,VAR8,,1),COLORRED,; STICKLINE(VAR4>VAR2ANDVAR6<VAR8ANDVAR8<VAR2,VAR2,VAR6,,1),COLORRED,; STICKLINE(VAR4>VAR2ANDVAR6<VAR8ANDVAR8>VAR2,VAR2,VAR6,,1),COLORRED,; STICKLINE(VAR4<VAR2ANDVAR6>VAR8ANDVAR6<VAR4,VAR4,VAR8,,1),COLORGREEN,; STICKLINE(VAR4<VAR2ANDVAR6<VAR8ANDVAR8<VAR4,VAR4,VAR6,,1),COLORGREEN,; STICKLINE(VAR4<VAR2ANDVAR6<VAR8ANDVAR6>VAR4,VAR4,VAR8,,1),COLORGREEN,; STICKLINE(VAR4<VAR2ANDVAR6>VAR8ANDVAR6<VAR4,VAR2,VAR8,,1),COLORGREEN,; STICKLINE(VAR4<VAR2ANDVAR6>VAR8ANDVAR6>VAR4,VAR2,VAR8,,1),COLORGREEN,; STICKLINE(VAR4<VAR2ANDVAR6<VAR8ANDVAR8<VAR2,VAR2,VAR6,,1),COLORGREEN,; STICKLINE(VAR4<VAR2ANDVAR6<VAR8ANDVAR8>VAR2,VAR2,VAR6,,1),COLORGREEN,;【通达信】牛熊分界(立桩量、中线)-指标公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AA A,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+H HV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2, 5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3 ;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;DRAWBAND(VAR1,RGB(155,50,50),VAR 6,RGB(250,250,0));短线:VAR1,COLORWHITE;中线:VAR6,COLORYELLOW;金叉:短线>中线ANDREF(短线,1)=REF(中线,1),NODRAW;下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)ANDVOL>2*REF(VOL,1)ANDCLOSE>VAR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE>REF(HIGH,3),1,0)));突破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C>=O,C,O,,0 ),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,,0),COLOR0 000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,,0),COLOR0000E5;ST ICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,,0 ),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,,0),COLOR858 500;STICKLINE(C<O,H,L,0,0),COLOR959500;ZRR:=(YEAR-1992)*365+INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(MONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:=BARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+T,NODRAW;T2:=REF(T,T1)+T1,NODRAW;T3:=REF( T,T2)+T2,NODRAW;T4:=REF(T,T3)+T3,NODRAW;T5:=REF(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;周10:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE,T4)+REF(CL OSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10,LINETHICK2;【通达信】牛准反弹(快线、慢线)-指标公式源码N:=9;M1:=3;M2:=3;P:=9;快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;慢线:=SMA(快线,M1,1);ELI空:=SMA(慢线,M2,1);ELI牛股:=IF(BARSLAST(CROSS(慢线,ELI空))<PANDCROSS(慢线,ELI空)AND慢线<20,90,0); LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),,1)/SMA(ABS(CLOSE-LC),,1)*100;牛准反弹:=CROSS(RSI,11)*80;XG:牛准反弹ORELI牛股;【通达信】启动提示(平台线、启动线)-指标公式源码启动线:SUM(EMA((C+L)/2,2),5)/,COLORRED;平衡线:LLV(SUM(EMA((C+L)/2,2),5)/,4),COLORFF00FF;平台线:LLV(SUM(EMA((C+L)/2,2),5)/,10),COLORFFFFFF;强弱线:EMA(启动线,21),COLORYELLOW;STICKLINE(平台线<启动线,启动线,平台线,,0),COLORFFCCAA;STICKLINE(平衡线<启动线,启动线,平衡线,,0),COLORRED;VAR1:=2*MA(LLV((C+L)/2,8)*,13)-EMA((C+L)/2,3)-((C+L)/2)*;VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5,2)/10,-1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR2>0,VAR2-0,0);STICKLINE(VAR3>0ANDREF(VAR3,1)=0AND(C+L)/2>MA((C+L)/2,8),强弱线,强弱线+,4,0),COLORFFAACC;DRAWTEXT(VAR3>0ANDREF(VAR3,1)=0AND(C+L)/2>MA((C+L)/2,8),强弱线+,'注意控制'),LINETHICK3,COLORFFAACC;【通达信】平台启动(主图)-指标公式源码圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;石:=SMA(灵,13,8);仙:=CEILING(SMA(石,13,8));编着:=SMA(圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE(仙-编着>75,AABB,AABB*,15,1),COLOR0000FF;VARZT:=BARSLAST(平台启动);DRAWTEXT(VARZT=1,*(AABB+AABB*/2,'平台启动'),COLORYELLOW;【通达信】牛熊线分水岭(中线强弱拐点)-指标公式源码JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M1:=EMA(CLOSE,3);M2:EMA(CLOSE,8);分水岭:SMA(M2,,,LINETHICK2,COLORRED;牛线:3*M2-2*分水岭,LINETHICK2,COLORFF00FF;熊线:4*分水岭-3*M2,LINETHICK2,COLORGREEN;IF(牛线<=熊线,牛线,熊线),COLORGREEN,LINETHICK2;IF(分水岭<=熊线,分水岭,熊线),COLORGREEN,LINETHICK2;IF(牛线>REF(熊线,1),熊线,DRAWNULL),COLORFF2200,LINETHICK2;M3:EMA(M2,13);M4:EMA(M2,55);VAR1:=EMA(M3,55);M5:EMA(M4,81),COLORRED,LINETHICK1;股道:=(1-C/SMA(C,13,1))*100;基础:=EMA(C,43);中线强弱拐点:EMA(股道*C/100+基础,3),COLORGRAY,LINETHICK1;。
神獒赢富决策系统
第一部分:神獒赢富决策系统简介一、认识神獒赢富-主力机构资金动向及持仓分析选股决策系统神獒赢富是在大智慧Level2新一代平台上深度开发的监控指标组。
它是基于Level-2行情数据的基础上,利用科学模型,成功将原始真实委托单情况还原出来,在精确数据的基础上进行模型和指标的研发的成果!神獒赢富是结合多位实战高手经验技术,神獒决策系统最大的优势就是能够“简洁、直观、精确、完整”的反映出市场潜在的重要信息!1.趋势方向、2.波动状态、3.上方阻力、4.下挡支撑、5.精确研究机构,主力,散户力行为。
通过客观真实的数据深入研究主力,散户,机构的仓位变化,提供科学的买卖决策依据。
是目前先进的炒股利器!神獒赢富可以帮助您建立起一套适合您的交易系统。
可以通过神獒赢富确定买点和卖点,通过神獒赢富可以帮助您制定计划去完成买入和卖出这一过程,克服交易过程中的随意性,盲目性。
股市盈利需要些什么?严格的资金仓位控制+一套适合自己的股票操作系统+严格的止盈止损纪律+良好的心态+适合自己的炒股理念+刻苦的实盘训练。
“大家都知道任何股票软件都不是万能的,但是没有好的股软就等于自己手中没有一把让你在这个残酷的市场血拼的武器,所以若你没有强大的股软在这个风云变化的股市中是万万不能的。
”十二星座神獒赢富股票决策系统的使用者只要学好十二星座的投资理念,学好软件的使用方法,遵守十二星座神獒团队操作原则,在实战中做到灵活应用是可以战胜这个市场的!十二星座教给您的是实战决策,而不是所谓的专业分析师的预测!准确的持仓数据不用猜测各种资金的行为和动向,真实准确的反映了各类资金的交易状态。
帮助投资者识别市场中的虚假消息,不再为庄家抬轿,神獒赢富行情是按上交所的交割单数据提供的,全部交割单以查记账的方式直接翻看主力庄家的底牌,使数据准确性得到保障。
一些主力庄家为了逃避监管,故意采用了小仓买、分仓买等方法。
然而,再狡猾的主力也是主力,因为它的行为方式是主力的。
龙腾四海指标公式源码
龙腾四海指标公式源码以下是一个简单的龙腾四海指标的公式的源码示例:```pythonimport pandas as pdimport numpy as npdef long_teng_si_hai(data):#计算最高价和最低价的滚动平均价data['rolling_high_avg'] =data['high'].rolling(window=5).meandata['rolling_low_avg'] = data['low'].rolling(window=5).mean #计算买入和卖出的信号data['buy_signal'] = np.where(data['high'] >data['rolling_high_avg'].shift(, 1, 0)data['sell_signal'] = np.where(data['low'] <data['rolling_low_avg'].shift(, -1, 0)#计算持仓信号data['hold_signal'] = 0data.loc[data['buy_signal'] == 1, 'hold_signal'] = 1data.loc[data['sell_signal'] == -1, 'hold_signal'] = -1#计算持仓信号的累计和data['cum_hold_signal'] = data['hold_signal'].cumsumreturn data#读取数据并应用指标data = pd.read_csv('data.csv')data = long_teng_si_hai(data)#输出结果print(data)```这个源码使用pandas和numpy库来进行计算。
神准买卖亿万富豪主图通达信指标公式源码
神准买卖亿万富豪主图通达信指标公式源码N:=5;A1:=REF(H,N)=HHV(H,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);D1:=FILTER(C1,N);{高点}A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);D2:=FILTER(C2,N);{低点}E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;E2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=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,L,10000),X1));G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点}R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);S1:=R1>REF(R1,1); {前一高}T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);U1:=T1>REF(T1,1); {前一低}R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2>REF(R2,1); {前二高}T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2>REF(T2,1); {前二低}T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2);U3:=T3>REF(T3,1); {前三低}T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2);U4:=T4>REF(T4,1); {前四低}R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2);S3:=R3>REF(R3,1); {前三高}R4:=BACKSET(S3,REF(BARSLAST(HD),1)+2);S4:=R4>REF(R4,1); {前四高}高手1:DRAWLINE(S2,H,S1,H,1),COLORRED,DOTLINE;高手2:DRAWLINE(U2,L,U1,L,1),COLORGREEN,DOTLINE;高高手:DRAWLINE(S3,H,S2,H,1),COLORYELLOW,DOTLINE;高手8:DRAWLINE(U3,L,U2,L,0),COLORGREEN,DOTLINE;高手9:DRAWLINE(S4,H,S3,H,1),COLORFF00FF,DOTLINE;长期支撑:DRAWLINE(U4,L,U3,L,0),COLORGREEN,DOTLINE;DRAWICON(S1,H*1.01,6);DRAWICON(S2,H*1.01,6);DRAWICON(S3,H*1.01,6);DRAWICON(S4,H*1.01,6);DRAWICON(U1,L*0.99,9);DRAWICON(U2,L*0.99,9);DRAWICON(U3,L*0.99,9);DRAWICON(U4,L*0.99,9);。
通达信指标公式源码缠论主神优化主图指标
NAA:=10;{源码120.调整时间长短。
最底10、21;}TA:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-L OW));ATR:=EMA(TA,5);{筹码峰高度调整线,源码181。
参数最低21.如果抓大牛把参数加大。
}VAR81:=REF(CLOSE,NAA)-REF(ATR,1);仙界线:=HHV(VAR81,5),COLORYELLOW;{筹码峰高度调整线,最低21.源码181}上:=(1+1/100)*仙界线;下:=(1-1/100)*仙界线;{上:=(1+7/100)*仙界线;下:=(1-7/100)*仙界线;中:=(上+下)/2;}XGD:DRAWBAND(上,RGB(258,88,0),下,RGB(258,88,0));{颜色亮度};{箱体}TC1S:=IF(H=HHV(H,48),H,DRAWNULL);TC2S:=CONST(BARSLAST(TC1S=H))+1;UPPERS:=CONST(IF(TC2S=1,H,REF(H,TC2S-1)));BC1S:=IF(L=LLV(L,48),L,DRAWNULL);BC2S:=CONST(BARSLAST(BC1S=L))+1;LOWERS:=CONST(IF(BC2S=1,L,REF(L,BC2S-1)));LPS:=CURRBARSCOUNT<=BC2S AND L=LOWERS;HPS:=CURRBARSCOUNT<=TC2S AND H=UPPERS;AB1S:=EMA(((2*C+H+L)/4-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8);BA1S:=EMA(AB1S,5);上轨:=REFDATE(REF(HHV(MAX(C,O),96),5),DATE);下轨:=REFDATE(REF(LLV(MIN(C,O),96),5),DATE);中轨:=((上轨)+(下轨))/2;YXHX:=DATE>=REF(DATE,BARSLAST(IF(BC2S>TC2S,LPS,HPS)));上沿:IF(AB1S>0 AND AB1S-BA1S<=0 AND YXHX,上轨,上轨),COLOR555555,LINETHICK2;中枢:IF(AB1S>0 AND AB1S-BA1S<=0 AND YXHX,中轨,中轨),COLOR555555,LINETHICK2;下沿:IF(AB1S>0 AND AB1S-BA1S<=0 AND YXHX,下轨,下轨),COLOR555555,LINETHICK2;{三K线}三K线:=IF(三K线,1,DRAWNULL);DG:=MAX(MAX(REFX(L,1),REFX(L,2)),REFX(L,3));GD:=MIN(MIN(REFX(H,1),REFX(H,2)),REFX(H,3));AA11:=(DG+GD)/2;A11:=AA11>REFX(L,3) AND REFX(L,2)< AA11 AND REFX(L,1) <AA11 ;A21:=FILTER(A11,BARSLAST(A11)+2);A41:=A11 AND A21;A51:=IF(REF(A41,1),H,0),NODRAW;STICKLINE(三K线=1 &&REF(A41,2),REF(GD,2),REF(DG,2),13,-1),COLORMAGENTA; DRAWKLINE(H,O,L,C);{峰谷}峰谷:=IF(峰谷,1,DRAWNULL);PA:=10;PB:=REF(HIGH,PA)=HHV(HIGH,2*PA+1);PC:=FILTER(PB,PA);PD:=BACKSET(PC,PA+1);PE:=FILTER(PD,PA);{高点}峰线:(REF(HIGH,BARSLAST(PE)))*峰谷,COLORRED,POINTDOT,LINETHICK2; AA21:=REF(LOW,PA)=LLV(LOW,2*PA+1);BB21:=FILTER(AA21,PA);CC21:=BACKSET(BB21,PA+1);DD21:=FILTER(CC21,PA);{低点}谷线:(REF(LOW,BARSLAST(DD21)))*峰谷,COLORGREEN,POINTDOT,LINETHICK2;{三角形中枢}时间:=4;A:=H=HHV(H,时间*5) AND HHV(H,时间*5)>REF(HHV(H,时间*5),1);B:=L=LLV(L,时间*5) AND LLV(L,时间*5)<REF(LLV(L,时间*5),1);CCA:DRAWLINE(A,H,B,L,0),COLORGREEN,LINETHICK2;CCB:DRAWLINE(B,L,A,H,0),COLORRED,LINETHICK2;N:=(0,1,1);{缠论高低点}局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0); 局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0); 缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0); 距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0); 高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0); 低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) ANDH>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) ORREF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:=IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)),CIRCLEDOT,COLORLIMAGENTA;C1:DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0),COLORMAGENTA;C2:DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0),COLORWHITE;DRAWTEXT(极点保留=1,局部极点,'卖'),COLORGREEN;DRAWTEXT(极点保留=-1,局部极点,'买'),LINETHICK2,COLORRED;{均线}{MA1:EMA(C,M1),LINETHICK2,COLORWHITE;MA2:EMA(C,M2),LINETHICK2,COLORYELLOW;MA3:EMA(C,M3),LINETHICK2,COLORRED;}MC:=100;NN:=0.4;MIDZ:MA(CLOSE,MC),COLORWHITE,LINETHICK3;AN:=EMA((EMA(C,29)+EMA(C,31)+EMA(C,33))/3,3);A1:=EMA((EMA(C,1)+EMA(C,3)+EMA(C,5))/3,3),COLOR1010FF;A15D:IF(K2!=2, AN-(A1-AN*0.977),DRAWNULL),COLORBLUE,LINETHICK3; M5:=MA(C,3),COLORRED,LINETHICK3;{11、变色下插线}B55:=ATAN((A15D/REF(A15D,1)-1)*100)*180/3.1416;IF(55>30 AND A15D>REF(A15D,1),A15D,DRAWNULL),COLORCYAN,LINETHICK3;B100:=ATAN((M5/REF(M5,1)-1)*100)*180/3.1416;IF(B55<0 AND A15D<REF(A15D,1),A15D,DRAWNULL),COLORRED,LINETHICK3;{12、黄色起飞跑道};{13、飓风眼启爆,K线下方蓝色柱,股价启动信号,无函数}AHC1:=CLOSE*VOL;AHC2:=EMA((EXPMA(AHC1,2)/EXPMA(VOL,2)+EXPMA(AHC1,5)/EXPMA(VOL,5 )+EXPMA(AHC1,10)/EXPMA(VOL,10)+EXPMA(AHC1,20)/EXPMA(VOL,20))/4,10),COLOR YELLOW;风向R:=1.06*AHC2,LINETHICK2,COLORWHITE;吹:=1.13*AHC2,LINETHICK2,COLORWHITE;ZT:=REF(C,1)*1.1-C<0.01 AND H=C;飓风:=CROSS(C,风向R) AND ZT;STICKLINE(飓风,L*0.98,L*0.80,2,0),COLORBLUE;OUT1:=CROSS(M5,A15D);DRAWICON(OUT1,L*1.02,13);{红球};。
懒人跟庄神器指标源码公式
懒人跟庄神器指标源码公式摘要:一、引言二、懒人跟庄神器指标源码公式介绍1.指标概念2.公式构成3.使用方法三、懒人跟庄神器指标源码公式的优势1.简化选股过程2.提高准确率3.降低风险四、注意事项1.技术指标并非万能2.结合其他分析方法3.谨慎投资五、总结正文:在投资领域,技术指标一直是投资者关注的焦点,其中“懒人跟庄神器指标源码公式”备受关注。
本文将详细介绍这一指标,以及它的源码公式,帮助投资者更好地理解和运用这一神器。
一、懒人跟庄神器指标源码公式介绍1.指标概念懒人跟庄神器指标是一种简化选股过程、提高准确率和降低风险的技术指标。
它通过分析庄家的操作行为,帮助投资者找到具有上涨潜力的股票。
庄家是指在股市中拥有大量资金、能操纵股价的投资者,他们的操作往往会对股票价格产生重大影响。
2.公式构成懒人跟庄神器指标源码公式由多组数据构成,包括庄家成本、庄家持仓、庄家意图等。
通过对这些数据的分析,投资者可以了解到庄家的操作动向,进而制定相应的投资策略。
3.使用方法投资者只需将懒人跟庄神器指标源码公式应用于股票分析软件中,即可轻松获得相关数据。
在获得数据后,投资者可以根据指标的提示,判断股票的走势,从而决定是否买入或卖出。
二、懒人跟庄神器指标源码公式的优势1.简化选股过程懒人跟庄神器指标源码公式可以帮助投资者快速筛选出具有潜力的股票,从而简化选股过程。
投资者无需花费大量时间和精力去研究各种股票,只需关注这一指标即可。
2.提高准确率懒人跟庄神器指标源码公式通过对庄家操作行为的分析,提高了选股的准确性。
投资者可以根据指标的提示,找到庄家正在操作的股票,提高投资的成功率。
3.降低风险懒人跟庄神器指标源码公式可以帮助投资者规避风险。
通过对庄家操作意图的分析,投资者可以避免介入庄家出货的股票,降低投资风险。
三、注意事项1.技术指标并非万能虽然懒人跟庄神器指标源码公式具有较高的准确性,但投资者仍需谨慎对待。
技术指标并非万能,不能完全预测股票的走势。
神准共振主图通达信指标公式源码
DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;DEA:EMA(DIF,9);MACD:(DIF-DEA)*2,COLOSTICK;DRAWICON(CROSS(DIF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIF),DEA,2);IF(DIF<DEA,DIF,DRAWNULL),COLORGREEN;DD:=C=HHV(C,180);EE:=DEA< RIF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;顶背离:=(DD AND EE AND DEA< HHV(DEA,180))*DEA;A2:=BARSLAST(REF(CROSS(DEA,DIF),1));{顶背:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);} DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORRED,LINETHICK2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,9,3),COLORYELLOW;D:SMA(K,9,3),COLRWHITE;J:3*K-2*D,COLORMAGENTA;IF(J<D,J,DRAWNULL),COLORFFEE44;A1:=BARSLAST(REF(CROSS(DIF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIF,A1+1)<DIF AND CROSS(DIF,DEA);A22:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A22+1)>C AED REF("KDJ.K"(9,3,3),A22+1)<"KDJ.K"(9,3,3) ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));DRAWTEXT(B1,DEA-0.20,'▲MACD底背'),COLORWHITE;DRAWTEXT(B2,D-0.20,'●KDJ底背'),COLORFF00FF;{DJ:=CROSS(J,D) AND D<20;DRAWTEXT(DJ,J-0.3,'低金叉'),COLORCYAN;MDJ:=CROSS(DIF,DEA) AND DEA<0;DRAWTEXT(MDJ,DEA-0.3,'低金叉'),COLORGREEN;DRAWTEXT(CROSS(DEA,DIF),DIF+0.3,'死叉'),COLOYELLOW;DRAWTEXT(CROSS(D,J),J+0.3,'死叉'),COLORRED;}A:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D);DRAWICON(A,LOW*0.98,1);B4:CROSS(DIF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));。
神獒星座轨迹选股指标公式源码编程思路破译及成功率回测数据
神獒星座轨迹选股指标公式源码编程思路破译及成功率回测数据编程思路破译输出INPUT:N1(5,1,20),N2(5,1,20)VAR1赋值:收盘价-1日前的收盘价VAR2赋值:开盘价-1日前的开盘价VAR3赋值:最高价-1日前的最高价VAR4赋值:最低价-1日前的最低价VAR5赋值:(VAR1*7+VAR2+VAR3+VAR4)/10MTM赋值:VAR5*成交量(手)ZLGJ赋值:100*MTM的N1日指数移动平均的N1日指数移动平均/MTM的绝对值的N1日指数移动平均的N1日指数移动平均MAZL赋值:ZLGJ的N2日简单移动平均ZLGJ上穿MAZL条件选股:大智慧神獒星座轨迹(0.00,0.00)[日线]成功率测试测试股票数:5028共发出信号:0 成功信号:0 失败信号:0 未完成信号:0信号发出率:0.00% 平均成功率:0.00% 成功率达到50%的股票数有:0.00%利润1总平均:0.00% 最大平均利润1: 0.00% 最小平均利润1: 0.00%利润2总平均:0.00% 最大平均利润2: 0.00% 最小平均利润2: 0.00%程序源码INPUT:N1(5,1,20),N2(5,1,20);VAR1:=C-REF(C,1);VAR2:=O-REF(O,1);VAR3:=H-REF(H,1);VAR4:=L-REF(L,1);VAR5:=(VAR1*7+VAR2+VAR3+VAR4)/10;MTM:=VAR5*VOL;ZLGJ:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N 1),N1);MAZL:=MA(ZLGJ,N2);CROSS(ZLGJ,MAZL);。
神獒指标源码,直接粘贴保存即可使用!
神獒指标源码,直接粘贴保存即可使用!神獒系列指标:1.神獒霸气{45度异动}x1:=(C+L+H)/3;bb13:=atan(ema(x1,13)-ref(ema(x1,13),1))*3.1416*10;ema8:=ema(c,8);DRAWTEXT(filter(bb13>1 and ema(x1,13)>ref(ema(x1,8),1),10),ema8,'∠45上升'),coloryellow;ah:hhvall(h); al:llvall(l);ahl:=ah-al;a23:al+ahl*0.236,COLORYELLOW,POINTDOT;a38:al+ahl*0.382,COLOREE00EE,POINTDOT;a50:al+ahl*0.50,COLORYELLOW,POINTDOT;a61:al+ahl*0.618,COLOREE00EE,POINTDOT;a76:al+ahl*0.764,COLORYELLOW,POINTDOT;{标注数字}y:=999;DRAWTEXTREL(500,0,'100% '+ah),COLOREE00EE;DRAWTEXTREL(500,y*0.236,'76.4% '+a76),COLORYELLO W;DRAWTEXTREL(500,y*0.382,'61.8% '+a61),COLOREE00E E;DRAWTEXTREL(500,y*0.50,'50% '+a50),COLORYELLOW;DRAWTEXTREL(500,y*0.618,'38.2% '+a38),COLOREE00E E;DRAWTEXTREL(500,y*0.764,'23.6% '+a23),COLORYELLO W;DRAWTEXTREL(500,y-30,'最低 '+al),COLOREE00EE;DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));varl13:=("macd.diff#WEEK"(26,12,9));varl14:=("macd.dea#WEEK"(26,12,9));VL:=REF(LOW,1); VH:=REF(H,1);Var1:=SMA(ABS(H-Vh),13,1)/SMA(MAX(H-Vh,0),13,1)*100;Var2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;Var3:=MA(Var1,13);Var4:=MA(Var2,13);Var5:=LLV(L,34);Var6:=HHV(H,34);Var7:=EMA(IF(H>=Var6,Var3,0),3);Var8:=EMA(IF(L<=Var5,Var4,0),3);var9:=(SMA(SMA((((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54))) * 100),7,1),5,1));var10:=((SMA(((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54)) * 100),7,1)) * 16.18) - (var9* 10.9);Var11:=FILTER(IF(var10<=var9 AND Var8>REF(Var8,1),Var8*8,0),55);Var21:=LLV(LOW,60);Var31:=HHV(HIGH,60);Var41:=EMA((CLOSE-Var21)/(Var31-Var21)*100,13);Var51:=EMA(0.667*REF(Var41,1)+0.333*Var41,21);varl2:=FILTER(CROSS(Var51,Var41) AND Var41>84,13);持股线:MA(C,26),LINETHICK3,coloryellow;趋势线:MA(CLOSE,13),linethick5,colorred;qjj:FILTER((CROSS(varl13,varl14) and varl14<0 and CROSS(c,持股线)),90),LINETHICK0;DRAWTEXTREL(10,900,'㊣十二星座*神獒赢富㊣'),linethick1,COLOR00EEff;DD:=FINANCE2(35);SS:=FINANCE2(37);GG:=FINANCE2(3);TH:=DYNAINFO(39);DRAWTEXTREL(10,720,'总股本:'+NUMTOSTRn(DD,0)+'万股' +' 流通A股:'+NUMTOSTRn(SS,0)+'万股'+'市盈率:'+NUMTOSTRn(TH,2)+' 倍'+' 每股收益:'+NUMTOSTRn(GG,3)+' 元'),ColorFFFF00;DRAWTEXT(var11,C*0.98,'㊣'),linethick4,ColorFFFF00;DRAWICON(qjj,C*1.09,1);DRAWTEXT(qjj,l*0.78,'霸占大牛股'),COLOR00FFFF;DRAWTEXT(varl2,C*1.04,'逃跑'),Colorgreen;获利比例:=(WINNER(C)*1000)/10;平均成本:=(COST(50)*100)/100;穿透力:=(winner(C)-winner(ref(C,1)))/v*capital;90%成本:=FLOOR(COST(50-90/2)*100)/100;~:=CEILING(COST(50+90/2)*100)/100;90集中度:=INTPART((~-90%成本)/(~+90%成本)*1000)/10;70%成本:=FLOOR(COST(50-70/2)*100)/100;~~:=CEILING(COST(50+70/2)*100)/100;70集中度:=INTPART((~~-70%成本)/(~~+70%成本)*1000)/10;DRAWTEXTABS(0,12,' 获利比例:'+STR(获利比例)),COLOR44bbff;DRAWTEXTABS(0,24,' 平均成本:'+STR(平均成本)),COLOR44bbff;DRAWTEXTABS(0,36,' 穿透力:'+STR(穿透力)),COLOR44bbff;DRAWTEXTABS(0,48,'90%成本:'+STR(90%成本)+'-'+STR(~)),COLOR44bbff;DRAWTEXTABS(0,60,'90集中度:'+STR(90集中度)),COLOR44bbff;DRAWTEXTABS(0,72,'70%成本:'+STR(70%成本)+'-'+STR(~~)),COLOR44bbff;DRAWTEXTABS(0,84,'70集中度:'+STR(70集中度)),COLOR44bbff;gj:=if(c=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4, AMOUNT/(v+0.01)/100);明日阻力:=l+(gj-l)+(c-l);明日支撑:=l+(c-gj);今日阻力:=REF(明日阻力 , 1);今日支撑:=REF(明日支撑 , 1);STICKLINE(DISPSTATUS=2 and c>=今日阻力,今日阻力,今日阻力,20,0),Color0000FF;STICKLINE(DISPSTATUS=2 and c<今日阻力,今日阻力,今日阻力,20,0),Color00FF00;STICKLINE(DISPSTATUS=2 and c>=今日支撑,今日支撑,今日支撑,20,0),ColorFF00FF;STICKLINE(DISPSTATUS=2 and c<今日支撑,今日支撑,今日支撑,20,0),ColorFF9900;DRAWTEXTREL(770,5,'今日支撑:'+NUMTOSTRN(今日支撑 ,2 )),Colorred;DRAWTEXTREL(630,5,'今日阻力:'+NUMTOSTRN(今日阻力 ,2 )),ColorGREEN;DRAWTEXTREL(1,800,'所属板块:'+BKNAME),ColorAFFF00;DRAWTEXTREL(1,850,'每股收益:'+NUMTOSTRN(FINANCE2(3),3)+'元'+' 市盈率:'+NUMTOSTRN(DYNAINFO(39),2)+'元'+' 市净率:'+NUMTOSTRN((CLOSE / FINANCE2(4)),2)+'元'+' 净资产:'+NUMTOSTRN(FINANCE2(4),2)+'元'),Color00C0FF;2.神獒波段:input:N(5,1,111),N1(10,1,111),P(3,0.1,30),M(21,0,100);DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));a1:=(IF((DATE <= 1091025),1,0)) * (IF((CURRENTDATE <= 1091025),1,0));DRAWGBK((CLOSE > 0),'5');a2:=IF((CLOSE < 800),((AMOUNT / VOL) / 100),((((CLOSE * 2) + HIGH) + LOW) / 4));a3:=((HHV(HIGH,15)) + (LLV(LOW,30))) / 2;a4:=EMA((MA(a2,5)),10);a5:=EMA((MA(a2,15)),10);a6:=EMA((MA(a2,13)),21);a7:=((a4 + a5) + a6) / 3;a8:=(((REF(a7,1)) + a7) + (REF(a7,2))) / 3;决策线:EMA((MA(CLOSE,5)),3),colorGreen;PARTLINE(决策线,决策线> (REF(决策线,3)),RGB(255,0,0)),linethick1,colorRed;UPR:决策线 + (3 * (STD(决策线,10))),Color808000;DWN:决策线 - (3 * (STD(决策线,10))),ColorA10000;多空价:a8 * a1,linethick2,Color008E00;半年线:MA(CLOSE,120),POINTDOT,linethick4,colorGray;年线:MA(CLOSE,250),CROSSDOT,Color717143;STICKLINE((CLOSE > OPEN),HIGH,LOW,0.0001,1),colorRed;STICKLINE((CLOSE > OPEN),OPEN,CLOSE,8,1),Color5050FF;STICKLINE((CLOSE <OPEN),OPEN,CLOSE,8,0),ColorFFFF85;STICKLINE((CLOSE < OPEN),HIGH,LOW,0.0001,0),colorCyan;a9:=((EMA((MA(a2,3)),3)) + (WMA(a2,5))) / 2;a10:=REF(a9,1);a11:=BARSCOUNT(CLOSE);a12:=IF((a11 = 1),0,(((a9 - a10) / a10) * 100));a13:=REF(CLOSE,1);a14:=IF((a11 = 1),0,(((CLOSE - a13) / a13) * 100));a15:=IF((a11 = 1),((CLOSE + OPEN) / 2),a10);a16:=REF(a9,2);a17:=((a9 + a10) + a16) / 3;a18:=((ABS((a9 - a17)) + ABS((a10 - a17))) + ABS((a16 - a17))) / 3;a19:=IF((a11 < 3),0,((a18 / a9) * 100));a20:=IF((((a12 > 0.5) AND ((a19 > 0.215) OR (LOW > a15))) AND (CLOSE >= OPEN)),1,0);a21:=IF((((a12 < (0 - 0.3)) AND ((a19 > 0.2) OR (HIGH < a15))) AND ((OPEN >= CLOSE) OR (a14 < -1))),1,0);B:((COUNT(a20,BARSLAST(a21))) = 1) AND a20,linethick0;D:((COUNT(a21,BARSLAST(a20))) = 1) AND a21,linethick0;a22:=BARSLAST(B);a23:=((SUM(D,a22)) = 0) * a22;a24:=a23 > 0;a25:=a23 = 0;STICKLINE(a24,CLOSE,OPEN,8,0),colorMagenta;STICKLINE(a24,CLOSE,OPEN,7,0),ColorFF28FF;STICKLINE(a24,CLOSE,OPEN,6,0),ColorFF3DFF;STICKLINE(a24,CLOSE,OPEN,5,0),ColorFF51FF;STICKLINE(a24,CLOSE,OPEN,4,0),ColorFF65FF;STICKLINE(a24,CLOSE,OPEN,3,0),ColorFF7AFF;STICKLINE(a24,CLOSE,OPEN,2,0),ColorFF8EFF;STICKLINE(a24,CLOSE,OPEN,1,0),ColorFFA2FF;STICKLINE(a25,CLOSE,OPEN,8,0),ColorFFFD02;STICKLINE(a25,CLOSE,OPEN,7,0),ColorF8FF24;STICKLINE(a25,CLOSE,OPEN,6,0),ColorFDFF4A;STICKLINE(a25,CLOSE,OPEN,5,0),ColorFCFF69;STICKLINE(a25,CLOSE,OPEN,4,0),ColorFDFD97;STICKLINE(a25,CLOSE,OPEN,3,0),ColorFFFFA2;STICKLINE(a25,CLOSE,OPEN,2,0),ColorFFFFB6;STICKLINE(a25,CLOSE,OPEN,1,0),ColorFFFFCC;STICKLINE(B,CLOSE,OPEN,8,0),colorYellow;STICKLINE(D,CLOSE,OPEN,8,0),Color00BE00;DRAWTEXT(B,(LOW * 0.98),'㊣'),linethick2,ALIGN1,colorWhite;DRAWTEXT(D,(HIGH * 1.035),'S'),linethick2,ALIGN1,colorGreen;PARTLINE(决策线,决策线> (REF(决策线,3)),RGB(255,0,0)),linethick1,colorRed;a26:=(((CLOSE / a13) - 1) * 100) >= (7 * a1);a27:=HIGH - ((HIGH - LOW) / 3);a28:=LOW + ((HIGH - LOW) / 3);PARTLINE(多空价,多空价> (REF(多空价,3)),RGB(255,0,0)),linethick2,colorRed;DRAWTEXTREL(10,800,'㊣十二星座*神獒赢富㊣'),linethick1,COLOR00EEff;DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;3.神獒底部:{参数名缺省最小最大N 21 0 100N1 34 0 100}input:n(21),n1(34);主筹估算:EMA(WINNER(CLOSE)*70,3),STICK,LINETHICK3,COLORRED;散筹估算:EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*70,3),LINETHICK2,color009900;筹码锁定:散筹估算-主筹估算, COLORFFBB00;总股本:=FINANCE2( 35);动态底部:EMA(IF(LOW<= LLV(LOW,99),SMA(ABS(LOW-REF(LOW,1)),99,1)/SMA(MAX(LOW-REF(LOW,1),0),99,1),0)*5,3),COLOR62B3FF;FILLRGN(筹码锁定,散筹估算,筹码锁定>0),color009900;FILLRGN(筹码锁定,散筹估算,筹码锁定<=0),color009900;FILLRGN(0,筹码锁定,筹码锁定>0),COLORFFBB00;FILLRGN(0,筹码锁定,筹码锁定<=0),COLORFFBB00;FILLRGN(0,动态底部,动态底部>0),COLOR62B3FF;主筹估算,LINETHICK2,COLORRED;VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=VAR2/VAR1*100-70;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=SMA(VAR3/VAR1*100,3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VARA:=IF(VAR9>100,VAR9-100,0);VARB:=HHV(HIGH,34);AA:= VARA*2;BB:= EMA((VAR6-VAR8)/(VARB-VAR8)*100,13);VARC:=EMA(0.667*REF(BB,1)+0.333*BB,2);CC:= SMA(VAR5,20,1);VARD:=SMA(AA,2,1)-AA;VARE:=EMA(0.667*REF(BB,1)+0.333*BB,2)-BB;VAR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2A:=SMA(VAR1A,9,1)+100;VAR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4A:=SMA(VAR3A,3,1);VAR5A:=SMA(VAR4A,3,1)+100;VAR6A:=VAR5A-VAR2A;低抄:=IF(VAR6A>N,VAR6A-N,0);端庄窝:=IF(VAR6A>N1,VAR6A-N1,0);抄底:IF(CROSS(低抄,0.01),8,0),STICK,COLOR0000CC,LINETHICK2;起步:CROSS(主筹估算,筹码锁定),COLORWHITE;跑步:CROSS(主筹估算,散筹估算),COLORYELLOW;锁定拉升:CROSS(0,筹码锁定),COLORCYAN;DRAWICON(锁定拉升>0,0,7),LAYER0,ALIGN1;STICKLINE(起步,0,筹码锁定,4,0),COLORWHITE;STICKLINE(跑步,0,散筹估算,4,0),COLORYELLOW;主力筹码:=EMA(WINNER(CLOSE)*70,10);散户筹码:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,10);开始高控:CROSS(主力筹码,散户筹码),COLORMAGENTA;STICKLINE(开始高控,0,主力筹码,4,0),COLORMAGENTA;CD1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))-0.7;CD2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));CD3:=SMA(SMA(CD2,3,1),3,1);CD4:=(CD3-SMA(CD1,9,1))-0.5;CD5:=IF(CD4>0.00,CD4,0.00);CD6:=REF(CD5,1);VAR81:=MA(CLOSE,9);空头:=IF(CD6-CD5,CD6,CD5);减仓空仓:IF(CROSS(CD6,CD5),18,0),STICK ,COLORGREEN;DRAWICON(减仓空仓>0,18,8),LAYER0,ALIGN1;DRAWFLAGTEXT(抄底,C,'关注[抄底]信号,底部已确认,赶快抄底,做波小行情!'),COLORYELLOW;DRAWFLAGTEXT(减仓空仓,C,'形态变坏,股价要回调了,重仓者建议减仓或空仓!'),COLORGREEN;DRAWFLAGTEXT(1,C,'======================== ====================='),Color326C2C;DRAWFLAGTEXT(1=1,C,'★☆使用者,请注意:本指标的买卖提示和解盘建议,只作参考,据此入市,风险自负!'),COLOR4682B4;DRAWFLAGTEXT(1,C,'======================== ====================='),Color326C2C;DRAWFLAGTEXT(起步,C,'关注[起步]信号,该信号是主力准备拉升提示,可适量建仓!'),COLORCYAN;DRAWFLAGTEXT(跑步,C,'关注[跑步]信号,通常是锁定和加速拉升的提示,可考虑加仓,若遇上主升段要耐心持股!。
神獒赢富指标源码大全
神獒赢富指标源码大全{神獒波段}{主图叠加}{大智慧L2新一代公式}input:N(5,1,111),N1(10,1,111),P(3,0.1,30),M(21,0,100);DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));a1:=(IF((DATE <= 1091025),1,0)) * (IF((CURRENTDATE <= 1091025),1,0)); DRAWGBK((CLOSE > 0),'5');a2:=IF((CLOSE < 800),((AMOUNT / VOL) / 100),((((CLOSE * 2) + HIGH) + LOW) / 4));a3:=((HHV(HIGH,15)) + (LLV(LOW,30))) / 2;a4:=EMA((MA(a2,5)),10);a5:=EMA((MA(a2,15)),10);a6:=EMA((MA(a2,13)),21);a7:=((a4 + a5) + a6) / 3;a8:=(((REF(a7,1)) + a7) + (REF(a7,2))) / 3;决策线:EMA((MA(CLOSE,5)),3),colorGreen;PARTLINE(决策线,决策线> (REF(决策线,3)),RGB(255,0,0)),linethick1,colorRed; UPR:决策线+ (3 * (STD(决策线,10))),Color808000;DWN:决策线- (3 * (STD(决策线,10))),ColorA10000;多空价:a8 * a1,linethick2,Color008E00;半年线:MA(CLOSE,120),POINTDOT,linethick4,colorGray;年线:MA(CLOSE,250),CROSSDOT,Color717143;STICKLINE((CLOSE > OPEN),HIGH,LOW,0.0001,1),colorRed;STICKLINE((CLOSE > OPEN),OPEN,CLOSE,8,1),Color5050FF;STICKLINE((CLOSE < OPEN),OPEN,CLOSE,8,0),ColorFFFF85;STICKLINE((CLOSE < OPEN),HIGH,LOW,0.0001,0),colorCyan;a9:=((EMA((MA(a2,3)),3)) + (WMA(a2,5))) / 2;a10:=REF(a9,1);a11:=BARSCOUNT(CLOSE);a12:=IF((a11 = 1),0,(((a9 - a10) / a10) * 100));a13:=REF(CLOSE,1);a14:=IF((a11 = 1),0,(((CLOSE - a13) / a13) * 100));a15:=IF((a11 = 1),((CLOSE + OPEN) / 2),a10);a16:=REF(a9,2);a17:=((a9 + a10) + a16) / 3;a18:=((ABS((a9 - a17)) + ABS((a10 - a17))) + ABS((a16 - a17))) / 3;a19:=IF((a11 < 3),0,((a18 / a9) * 100));a20:=IF((((a12 > 0.5) AND ((a19 > 0.215) OR (LOW > a15))) AND (CLOSE >= OPEN)),1,0);a21:=IF((((a12 < (0 - 0.3)) AND ((a19 > 0.2) OR (HIGH < a15))) AND ((OPEN >= CLOSE) OR (a14 < -1))),1,0);B:((COUNT(a20,BARSLAST(a21))) = 1) AND a20,linethick0;D:((COUNT(a21,BARSLAST(a20))) = 1) AND a21,linethick0;a22:=BARSLAST(B);a23:=((SUM(D,a22)) = 0) * a22;a24:=a23 > 0;a25:=a23 = 0;STICKLINE(a24,CLOSE,OPEN,8,0),colorMagenta;STICKLINE(a24,CLOSE,OPEN,7,0),ColorFF28FF;STICKLINE(a24,CLOSE,OPEN,6,0),ColorFF3DFF;STICKLINE(a24,CLOSE,OPEN,5,0),ColorFF51FF;STICKLINE(a24,CLOSE,OPEN,4,0),ColorFF65FF;STICKLINE(a24,CLOSE,OPEN,3,0),ColorFF7AFF;STICKLINE(a24,CLOSE,OPEN,2,0),ColorFF8EFF;STICKLINE(a24,CLOSE,OPEN,1,0),ColorFFA2FF;STICKLINE(a25,CLOSE,OPEN,8,0),ColorFFFD02;STICKLINE(a25,CLOSE,OPEN,7,0),ColorF8FF24;STICKLINE(a25,CLOSE,OPEN,6,0),ColorFDFF4A;STICKLINE(a25,CLOSE,OPEN,5,0),ColorFCFF69;STICKLINE(a25,CLOSE,OPEN,4,0),ColorFDFD97;STICKLINE(a25,CLOSE,OPEN,3,0),ColorFFFFA2;STICKLINE(a25,CLOSE,OPEN,2,0),ColorFFFFB6;STICKLINE(a25,CLOSE,OPEN,1,0),ColorFFFFCC;STICKLINE(B,CLOSE,OPEN,8,0),colorYellow;STICKLINE(D,CLOSE,OPEN,8,0),Color00BE00;DRAWTEXT(B,(LOW * 0.98),'㊣'),linethick2,ALIGN1,colorWhite;DRAWTEXT(D,(HIGH * 1.035),'S'),linethick2,ALIGN1,colorGreen;PARTLINE(决策线,决策线> (REF(决策线,3)),RGB(255,0,0)),linethick1,colorRed;a26:=(((CLOSE / a13) - 1) * 100) >= (7 * a1);a27:=HIGH - ((HIGH - LOW) / 3);a28:=LOW + ((HIGH - LOW) / 3);PARTLINE(多空价,多空价> (REF(多空价,3)),RGB(255,0,0)),linethick2,colorRed; DRAWTEXTREL(10,800,'㊣十二星座*神獒赢富㊣'),linethick1,COLOR00EEff; DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;神獒密钥DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));A1:=(25);A2:=(26);A3:=(3 * (SMA((((CLOSE - (LLV(LOW,A1))) / ((HHV(HIGH,A1)) - (LLV(LOW,A1)))) * 100),5,1))) - (2 * (SMA((SMA((((CLOSE - (LLV(LOW,A2))) / ((HHV(HIGH,A2)) - (LLV(LOW,A2)))) * 100),5,1)),3,1)));A4:=(3 * (SMA((((INDEXC - (LLV(INDEXL,A1))) / ((HHV(INDEXH,A1)) - (LLV(INDEXL,A1)))) * 100),5,1))) - (2 * (SMA((SMA((((INDEXC -(LLV(INDEXL,A2))) / ((HHV(INDEXH,A2)) - (LLV(INDEXL,A2)))) * 100),5,1)),3,1))); 星座趋势:EMA(A3,5),linethick0;A5:=REF(星座趋势,1);A6:=EMA(A3,3);大盘线:EMA(A4,3),colorMagenta;A7:=星座趋势> A5;A8:=星座趋势< A5;A9:=((CLOSE / (REF(CLOSE,1))) - 1) * 100;A10:=(IF((DATE <= 1091025),1,0)) * (IF((CURRENTDATE <= 1091025),1,0));A11:=BIGORDER(1,3);A12:=BIGORDER(2,3);A13:=BIGORDER(1,2);A14:=BIGORDER(2,2);A15:=((((A13 - A14) * VOL) / CAPITAL) * 500) * A10;A16:=((((A11 - A12) * VOL) / CAPITAL) * 500) * A10;A17:=IF(((A15 >= 0) AND (A16 >= 0)),(MAX(A15,A16)),(MIN(A15,A16)));A18:=IF((A9 > 0),A9,ABS(A9));A19:=IF(((A17 > 0) AND (A9 < 0)),A9,A18);A20:=A17 - A19;爆破:IF((A20 > 0),A20,0),linethick0,colorRed;A21:=((CLOSE - (EMA(CLOSE,25))) / (EMA(CLOSE,25))) * 100;A22:=((CLOSE - CYC(13)) / CYC(13)) * 100;A23:=IF((CLOSE < 800),((AMOUNT / VOL) / 100),((((CLOSE * 2) + HIGH) + LOW) / 4));A24:=((EMA((MA(A23,3)),3)) + (WMA(A23,5))) / 2;A25:=REF(A24,1);A26:=BARSCOUNT(CLOSE);A27:=IF((A26 = 1),0,(((A24 - A25) / A25) * 100));神獒密钥①:(((A20 > 6) AND (A27 < -3.5)) AND (A22 < -18)) AND (A21 > -20),linethick0,ColorFF4398;STICKLINE(神獒密钥①,10,0,2,0),linethick0,ColorFF4398;DRAWTEXT(神獒密钥①,A20,'神獒密钥①成功率93%'),ColorFF4398;神獒密钥②:(((A20 >= 5) AND (A27 < -3)) AND (A21 < -22)) AND (A22 < -22),linethick0,ColorFFFF98;STICKLINE(神獒密钥②,12,0,2,0),linethick0,ColorFFFF98;DRAWTEXT(神獒密钥②,A20,'神獒密钥②成功率97%'),ColorFFFF98;神獒密钥●:((((A20 >= 8) AND (A27 < -5)) AND (A21 < -13)) AND (A22 < -16)) AND (A15 >= 1),linethick0,Color00FDFF;STICKLINE(神獒密钥●,14,0,2,0),linethick0,Color00FDFF;DRAWTEXT(神獒密钥●,A20,'神獒密钥●成功率99%'),Color00FDFF;神獒密钥④:((((A20 >= 4) AND (A27 < -4)) AND (A21 < -10)) AND (A22 < -12)) AND (A15 >= 0.5),linethick0,ColorFFF6FF;STICKLINE(神獒密钥④,14,0,2,0),linethick0,ColorFFF6FF;DRAWTEXT(神獒密钥④,A20,'神獒密钥④成功率90%'),ColorFFF6FF;神獒密钥⑤:((((A20 >= 4) AND (A27 < -3)) AND (A21 < -10)) AND (A22 < -13)) AND (A15 >= 0.5),linethick0,ColorFFF6FF;STICKLINE(神獒密钥⑤,14,0,2,0),linethick0,ColorFFF6FF;DRAWTEXT(神獒密钥⑤,A20,'神獒密钥⑤成功率90%'),ColorFFF6FF;二级:((((A20 >= 4) AND (A15 > 0.2)) AND (A27 < -4)) AND (A22 < -14)) AND (A21 > -10),linethick0,colorGreen;三级:((((A20 >= 6) AND (A27 < -2.5)) AND (A22 < -18)) AND (A21 < -14)) AND (A15 > 0.2),linethick0,colorMagenta;四级:((A20 >= 8) AND (A27 < -5)) AND (A22 < -18),linethick0,colorRed;五级:((A20 >= 10) AND ((A15 > 1) OR (A16 > 2.5))) AND (A15 > 0.2),linethick0,ColorFF0000;DRAWTEXTREL(0,0,' 密钥爆破级数越高意味着成功率越高。
通达信一劳永逸指标源码
通达信一劳永逸指标源码摘要:1.通达信指标源码简介2.指标源码的安装方法3.指标源码的使用技巧4.一劳永逸的意义和优势5.总结与建议正文:【1】通达信指标源码简介通达信指标源码,是一款功能强大、易于使用的技术分析工具。
它可以帮助投资者更好地把握市场趋势,提高决策准确性。
通过使用通达信指标源码,投资者可以一目了然地看到股票、期货、外汇等金融市场的实时数据和分析结果,为投资决策提供有力支持。
【2】指标源码的安装方法要使用通达信指标源码,首先需要安装通达信软件。
在官网下载对应的版本,并根据提示完成安装。
安装完成后,打开通达信软件,在“功能”菜单中找到“公式编辑器”,点击进入。
在公式编辑器中,可以编写、修改和删除指标源码。
【3】指标源码的使用技巧1.在编写指标源码时,要遵循一定的规范。
例如,使用拼音首字母缩写作为指标名称,以方便记忆和查找。
2.指标源码可以基于收盘价、开盘价、最高价、最低价等不同数据进行计算。
根据个人投资风格和需求,选择合适的数据源。
3.善用循环、条件判断等编程逻辑,使指标源码更加智能化。
例如,设置某一条件时,指标会自动发出买入、卖出信号。
4.结合其他技术指标和市场信息,提高分析的准确性。
如:结合成交量、市盈率、宏观经济数据等,进行全面分析。
【4】一劳永逸的意义和优势1.省时省力:一旦编写好指标源码,通达信软件会自动实时计算和显示分析结果,无需手动操作。
2.高效智能:指标源码可以根据市场变化自动调整,提高分析的准确性。
3.个性化定制:根据个人投资策略和需求,编写适合自己的指标源码,实现个性化投资分析。
4.持续优化:随着市场环境和投资理念的不断变化,可以随时对指标源码进行优化和调整,保持分析能力的领先。
【5】总结与建议通达信一劳永逸指标源码为投资者提供了便捷、高效的投资分析工具。
要想充分发挥其优势,需要投资者具备一定的编程基础和投资经验。
建议大家在实际操作中,不断学习、尝试和总结,找到适合自己的指标源码,助力投资之路。
主力流入大于3000万指标源码
主力流入大于3000万指标源码以下是一种可能的源码实现,用于计算主力流入大于3000万的指标。
这个例子假设你已经有一个名为`main_inflows`的列表,其中存储了每天的主力流入数据。
pythonmain_inflows = [5000, 10000, 2000, 8000, 2500, 6000, 15000, 3000, 4000, 1000]def calculate_main_inflow_indicator(main_inflows):total_inflows = 0days_above_threshold = 0for inflow in main_inflows:total_inflows += inflowif inflow > 3000:days_above_threshold += 1average_inflow = total_inflows / len(main_inflows)percentage_above_threshold = days_above_threshold /len(main_inflows) * 100return average_inflow, percentage_above_thresholdaverage_inflow, percentage_above_threshold =calculate_main_inflow_indicator(main_inflows)print("平均主力流入:", average_inflow)print("主力流入大于3000万的天数占总天数的百分比:",percentage_above_threshold)在上面的例子中,`calculate_main_inflow_indicator`函数接收一个`main_inflows`列表,并在循环中对每个主力流入数据进行累加。
懒人跟庄神器指标源码公式
懒人跟庄神器指标源码公式(原创版)目录1.懒人跟庄神器指标源码公式概述2.懒人跟庄神器指标源码公式的构成3.如何使用懒人跟庄神器指标源码公式4.懒人跟庄神器指标源码公式的优缺点5.总结正文一、懒人跟庄神器指标源码公式概述懒人跟庄神器指标源码公式是一种通过股票市场的技术分析,帮助投资者判断庄家动向,以便更好地决策买卖的一种工具。
庄家是指在股市中通过大量资金运作,影响股票价格的投资者或者机构。
跟庄,即跟随庄家的脚步,抓住其操作的机会,以获取更高的收益。
二、懒人跟庄神器指标源码公式的构成懒人跟庄神器指标源码公式主要包括以下几个部分:1.趋势判断:通过分析股价的涨跌情况,判断股票的趋势是上涨还是下跌。
2.庄家资金流入:分析庄家资金的流入情况,判断庄家是否在操作某只股票。
3.压力位和支撑位:通过计算股票价格的压力位和支撑位,判断股票价格是否达到庄家的预期。
4.买卖点判断:根据以上分析,给出买入和卖出的建议。
三、如何使用懒人跟庄神器指标源码公式1.首先,需要学习并掌握懒人跟庄神器指标源码公式中各个部分的含义和计算方法。
2.收集股票市场的数据,包括股票价格、成交量等。
3.运用懒人跟庄神器指标源码公式,对收集到的数据进行分析。
4.根据分析结果,制定投资策略。
四、懒人跟庄神器指标源码公式的优缺点优点:1.帮助投资者判断庄家动向,提高投资成功率。
2.适用于各种市场行情,具有较强的实用性。
缺点:1.懒人跟庄神器指标源码公式是一种技术分析方法,并不能保证 100% 的准确性。
2.需要投资者具备一定的技术分析能力,才能正确运用。
五、总结懒人跟庄神器指标源码公式是一种有效的投资工具,可以帮助投资者提高投资收益。
小妖指标通达信指标公式源码
①主图指标:小妖线:EMA(CLOSE,20),COLORCYAN,DOTLINE;MID:(3*CLOSE+LOW+OPEN+HIGH)/6;QD:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED; 小妖:=CROSS(C,小妖线) AND CROSS(C,QD) AND QD<小妖线;STICKLINE(小妖,C,O,2.1,0)COLORYELLOW;STICKLINE(小妖,C,O,2.8,0)COLORYELLOW;STICKLINE(小妖,C,O,1.5,0)COLORFF00FF;DRAWTEXT(小妖,L*0.98,'★小妖'),COLOR00FF00;②选股指标小妖线:=EMA(CLOSE,20);MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;QD:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210; 小妖:CROSS(C,小妖线) AND CROSS(C,QD) AND QD<小妖线;选股源码:小妖线:=EMA(CLOSE,20);MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;QD:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+ 16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210; 小妖:CROSS(C,小妖线) AND CROSS(C,QD) AND QD<小妖线;。
通达信指标公式源码 猎刀传奇 主图源码
熊迹:MA(CLOSE,49),LINETHICK2,COLORYELLOW;KS:=((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13))*(-100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:= - 100 *(趋势线- CLOSE)/趋势线;AC:=EMA(AA,5);AG:=SUM((VOL / FINANCE(7)),1);SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,2);SA:=(MM * 0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));动态:IF(((SSL > MM)),SSL,SA),LINETHICK1,COLORGREEN;熊掌:IF(((SSL > MM) ),MM,SA),LINETHICK1,COLORGREEN;猎刀:IF(((SSL > MM)),MM,SA),LINETHICK2,COLORWHITE;VAR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);VAR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);VAR4Y:=REF(CLOSE,1);VAR5Y:=((SMA(MAX((CLOSE - VAR4Y),0),6,1) / SMA(ABS((CLOSE -VAR4Y)),6,1)) * 100);VAR6Y:=((SMA(MAX((CLOSE - VAR4Y),0),12,1) / SMA(ABS((CLOSE -VAR4Y)),12,1)) * 100);VAR7Y:=((SMA(MAX((CLOSE - VAR4Y),0),24,1) / SMA(ABS((CLOSE -VAR4Y)),24,1)) * 100);VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100); VAR9Y:=SMA(VAR8Y,3,1);VARAY:=SMA(VAR9Y,3,1);VARBY:=((3 * VAR9Y) - (2 * VARAY));VARCY:=(CROSS(VAR5Y,10) AND (VAR3Y < (0 - (28 * 20))));VARDY:=((100 - CROSS(76,VAR5Y)) AND (VAR3Y > (5 * 20))); DRAWICON(((CROSS(76,VAR5Y) AND (VAR3Y > 5)) ),(HIGH *1.0099),6),COLORFFFFFF;VAREY:=((((CROSS(VAR9Y,VARAY) AND (VARAY < 10)) AND (VAR3Y < (0 - 30))) AND (VAR2Y > 3)) * 30);VARFY:= - ((((VARAY < 11) AND (VAR5Y < 15)) AND (VAR3Y < (0 - 26))) * 10); DRAWICON((CROSS(VARFY,(0 - 9))),(LOW * 0.998),5);能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));VAR3C:=EMA(能量线,1);VAR4C:=REF(能量线,1);X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);LL:=REF(CLOSE,2);MD:=((SMA(MAX((CLOSE - LL),0),6,1) / SMA(ABS((CLOSE - LL)),6,1)) * 100); DB:=IF(((MD < REF(MD,1)) AND (MD > 79)),MD,0);DRAWICON(CROSS(Y,X),(LOW * 0.985),1),LINETHICK3,COLORRED; DRAWICON(CROSS(X,Y),(HIGH * 1.02),2),LINETHICK2,COLOR00FF00; DRAWTEXT(DB,(HIGH * 1.02),'抛'),LINETHICK2,COLOR00FF00;VAR1:=LLV(LOW,21);VAR2:=HHV(HIGH,21);AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);VAR3:=LLV(LOW,55);VAR4:=HHV(HIGH,34);VAR5:=EMA((((CLOSE - VAR3) / (VAR4 - VAR3)) * 100),3);VAR6:=((AK + VAR5) / 2);VAR8:=EMA(VAR6,5);BB:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * VAR8)),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);DRAWICON((CD = 0.6),(LOW * 0.99),9),LINETHICK1,COLOR33CC99;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
平均成本:=(COST(50)*100)/100;
穿透力:=(winner(C)-winner(ref(C,1)))/v*capital;
90%成本:=FLOOR(COST(50-90/2)*100)/100;
~:=CEILING(COST(50+90/2)*100)/100;
SS:=FINANCE2(37);
GG:=FINANCE2(3);
TH:=DYNAINFO(39);
DRAWTEXTREL(10,720,'总股本:'+NUMTOSTRn(DD,0)+'万股' +' 流通A股:'+NUMTOSTRn(SS,0)+'万股'+'市盈率:'+NUMTOSTRn(TH,2)+' 倍'+' 每股收益:'+NUMTOSTRn(GG,3)+' 元'),ColorFFFF00;
今日阻力:=REF(明日阻力 , 1);
今日支撑:=REF(明日支撑 , 1);
STICKLINE(DISPSTATUS=2 and c>=今日阻力,今日阻力,今日阻力,20,0),Color0000FF;
STICKLINE(DISPSTATUS=2 and c<今日阻力,今日阻力,今日阻力,20,0),Color00FF00;
STICKLINE(DISPSTATUS=2 and c>=今日支撑,今日支撑,今日支撑,20,0),ColorFF00FF;
STICKLINE(DISPSTATUS=2 and c<今日支撑,今日支撑,今日支撑,20,0),ColorFF9900;
DRAWTEXTREL(770,5,'今日支撑:'+NUMTOSTRN(今日支撑 ,2 )),Colorred;
Var2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;
Var3:=MA(Var1,13);
Var4:=MA(Var2,13);
Var5:=LLV(L,34);
Var6:=HHV(H,34);
Var7:=EMA(IF(H>=Var6,Var3,0),3);
90集中度:=INTPART((~-90%成本)/(~+90%成本)*1000)/10;
70%成本:=FLOOR(COST(50-70/2)*100)/100;
~~:=CEILING(COST(50+70/2)*100)/100;
70集中度:=INTPART((~~-70%成本)/(~~+70%成本)*1000)/10;
Var8:=EMA(IF(L<=Var5,Var4,0),3);
var9:=(SMA(SMA((((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54))) * 100),7,1),5,1));
var10:=((SMA(((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54)) * 100),7,1)) * 16.18) - (var9* 10.9);
2.神獒波段:
input:N(5,1,111),N1(10,1,111),P(3,0.1,30),M(21,0,100);
DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));
a1:=(IF((DATE <= 1091025),1,0)) * (IF((CURRENTDATE <= 1091025),1,0));
DRAWTEXT(var11,C*0.98,'㊣'),linethick4,ColorFFFF00;
DRAWICON(qjj,C*1.09,1);
DRAWTEXT(qjj,l*0.78,'霸占大牛股'),COLOR00FFFF;
DRAWTEXT(varl2,C*1.04,'逃跑'),Colorgreen;
DRAWTEXTABS(0,12,' 获利比例:'+STR(获利比例)),COLOR44bbff;
DRAWTEXTABS(0,24,' 平均成本:'+STR(平均成本)),COLOR44bbff;
DRAWTEXTABS(0,36,' 穿透力:'+STR(穿透力)),COLOR44bbff;
a9:=((EMA((MA(a2,3)),3)) + (WMA(a2,5))) / 2;
a10:=REF(a9,1);
a11:=BARSCOUNT(CLOSE);
a12:=IF((a11 = 1),0,(((a9 - a10) / a10) * 100));
a13:=REF(CLOSE,1);
a5:=EMA((MA(a2,15)),10);
a6:=EMA((MA(a2,13)),21);
a7:=((a4 + a5) + a6) / 3;
a8:=(((REF(a7,1)) + a7) + (REF(a7,2))) / 3;
决策线:EMA((MA(CLOSE,5)),3),colorGreen;
DRAWTEXTABS(0,84,'70集中度:'+STR(70集中度)),COLOR44bbff;
gj:=if(c=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(v+0.01)/100);
明日阻力:=l+(gj-l)+(c-l);
明日支撑:=l+(c-gj);
DRAWTEXTABS(0,48,'90%成本:'+STR(90%成本)+'-'+STR(~)),COLOR44bbff;
DRAWTEXTABS(0,60,'90集中度:'+STR(90集中度)),COLOR44bbff;
DRAWTEXTABS(0,72,'70%成本:'+STR(70%成本)+'-'+STR(~~)),COLOR44bbff;
多空价:a8 * a1,linethick2,Color008E00;
半年线:MA(CLOSE,120),POINTDOT,linethick4,colorGray;
年线:MA(CLOSE,250),CROSSDOT,Color717143;
STICKLINE((CLOSE > OPEN),HIGH,LOW,0.0001,1),colorRed;
ema8,'∠45上升'),coloryellow;
ah:hhvall(h); al:llvall(l);
ahl:=ah-al;
a23:al+ahl*0.236,COLORYELLOW,POINTDOT;
a38:al+ahl*0.382,COLOREE00EE,POINTDOT;
a50:al+ahl*0.50,COLORYELLOW,POINTDOT;
DRAWTEXTREL(630,5,'今日阻力:'+NUMTOSTRN(今日阻力 ,2 )),ColorGREEN;
DRAWTEXTREL(1,800,'所属板块:'+BKNAME),ColorAFFF00;
DRAWTEXTREL(1,850,'每股收益:'+NUMTOSTRN(FINANCE2(3),3)+'元'+' 市盈率:'+NUMTOSTRN(DYNAINFO(39),2)+'元'+' 市净率:'+NUMTOSTRN((CLOSE / FINANCE2(4)),2)+'元'+' 净资产:'+NUMTOSTRN(FINANCE2(4),2)+'元'),Color00C0FF;
STICKLINE((CLOSE > OPEN),OPEN,CLOSE,8,1),Color5050FF;
STICKLINE((CLOSE < OPEN),OPEN,CLOSE,8,0),ColorFFFF85;
STICKLINE((CLOSE < OPEN),HIGH,LOW,0.0001,0),colorCyan;
a61:al+ahl*0.618,COLOREE00EE,POINTDOT;
a76:al+ahl*0.764,COLORYELLOW,POINTDOT;
{标注数字}y:=999;
DRAWTEXTREL(500,0,'100% '+ah),COLOREE00EE;
DRAWTEXTREL(500,y*0.236,'76.4% '+a76),COLORYELLOW;
a14:=IF((a11 = 1),0,(((CLOSE - a13) / a13) * 100));
a15:=IF((a11 = 1),((CLOSE + OPEN) / 2),a10);