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

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

副图指标公式源码
1、百万踏浪(相传为杨百万看图公式)
N1:=9;N:=3;
V AR1:=REF(CLOSE,1);
标尺: SMA(MAX(CLOSE-V AR1,0),5,1)/SMA(ABS(CLOSE-V AR1),5,1)*100;
V AR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
V AR3:=SMA(V AR2,3,1);
V AR4:=SMA(V AR3,3,1);
V AR5:=SMA(V AR4,3,1);
浪: V AR3,COLORBLUE;
波: V AR4, COLORRED;
段: V AR5 ,COLORYELLOW;
V AR6:=CROSS(V AR3,VAR4) AND V AR4<25;
STICKLINE(V AR6,0,V AR4+15,5,0), COLORGREEN;
V AR7:=CROSS(V AR4,VAR5) AND V AR4<25;
V AR8:=V AR7 AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2; STICKLINE(V AR7,0,V AR4+55,5,0),COLORWHITE;
DRAWTEXT(V AR7 AND COUNT(V AR7,10)=1,V AR4+25,'抄底'),COLORYELLOW; STICKLINE(V AR8,0,V AR4+15,5,0),COLORBLUE;
DRAWTEXT(V AR8 AND COUNT(V AR8,10)=1,V AR4-1,'放量'),COLORGREEN;
V AR9:=CROSS(V AR3,VAR4) AND V AR4>80 AND V AR4>VAR5;
STICKLINE(V AR9 AND COUNT(V AR9,5)=1,V AR4-5,100,5,0),COLORYELLOW;
V ARA:=CROSS(V AR5,V AR4) AND REF(V AR4,1)>80;
STICKLINE(V ARA,V AR4-15,100,15,0), COLORYELLOW;
DRAWTEXT(V ARA AND COUNT(V ARA,10)=1,V AR4-25,'逃顶'), COLORYELLOW; V AR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
V AR1B:=SMA((SMA(V AR1A,4,1)-50)*2,3,1);
V AR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; V AR1D:=SMA(V AR1C,4,1);
V AR1E:=SMA(V AR1D,3,1);
V AR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
V ARE:=REF(LOW,1)*0.9;
V ARF:=LOW*0.9;
V AR10:=(V ARF*VOL+V ARE*(CAPITAL-VOL))/CAPITAL;
V AR11:=EMA(V AR10,30);
V AR12:=CLOSE-REF(CLOSE,1);
V AR13:=MAX(V AR12,0);
V AR14:=ABS(V AR12);
V AR15:=SMA(VAR13,7,1)/SMA(V AR14,7,1)*100;
V AR16:=SMA(VAR13,13,1)/SMA(V AR14,13,1)*100;
V AR17:=BARSCOUNT(CLOSE);
V AR18:=SMA(MAX(V AR12,0),6,1)/SMA(ABS(V AR12),6,1)*100;
V AR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
V AR20:=V AR18<=25 AND V AR19<-95 AND V AR1F>20 AND V AR1B<-30 AND V AR1E<30 AND V AR11-CLOSE>=-0.25 AND V AR15<22 AND V AR16<28 AND V AR17>50; STICKLINE(V AR20,0,50,10,0),LINETHICK2,COLORBLUE;
DRAWTEXT(CROSS(V AR20,0.5) AND COUNT(V AR20=1,10)=1,60,'百万导弹?'),LINETHICK7,COLORWHITE;
2、分类资金
A:=IF((CLOSE>126.32),(AMOUNT)/(100000),VOL);
主力:MA(A,4),LINETHICK0,COLORYELLOW;
游资:MA(A,8),LINETHICK0,COLOR00FF00;
大户:MA(A,16),LINETHICK0,COLORRED;
散户:MA(A,32),LINETHICK0,COLORF0F000;
主比:ABS(((主力)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORYELLOW;
游比:ABS(((游资)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLOR00FF00;
大比:ABS(((大户)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORRED;
散比:ABS(((散户)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORF0F000;
警戒线:MA(A,180),COLORFF66FF,LINETHICK1;
STICKLINE((主力> 0),0,主力,3,0),COLOR009CFF;
STICKLINE((主力> 0),0,主力,2.8,0),COLOR009CFF;
STICKLINE((主力> 0),0,主力,2.5,0),COLOR00C0FF;
STICKLINE((主力> 0),0,主力,1.5,0),COLOR00D1FF;
STICKLINE((主力> 0),0,主力,1,0),COLOR00EAFF;
STICKLINE((主力> 0),0,主力,0.7,0),COLORYELLOW;
STICKLINE((游资> 0),0,游资,3,0),COLOR00C100;
STICKLINE((游资> 0),0,游资,2.8,0),COLOR00CA00;
STICKLINE((游资> 0),0,游资,2.5,0),COLOR00D300;
STICKLINE((游资> 0),0,游资,1.5,0),COLOR00DB00;
STICKLINE((游资> 0),0,游资,1,0),COLOR00EA00;
STICKLINE((游资> 0),0,游资,0.7,0),COLORGREEN;
STICKLINE((大户> 0),0,大户,3,0),COLOR1020AA;
STICKLINE((大户> 0),0,大户,2.8,0),COLOR1020BB;
STICKLINE((大户> 0),0,大户,2.5,0),COLOR1020CC;
STICKLINE((大户> 0),0,大户,1.5,0),COLOR1020DD;
STICKLINE((大户> 0),0,大户,1,0),COLOR1020EE;
STICKLINE((大户> 0),0,大户,0.7,0),COLORRED;
STICKLINE((散户> 0),0,散户,3,0),COLORFF7700;
STICKLINE((散户> 0),0,散户,2.8,0),COLORFF8800;
STICKLINE((散户> 0),0,散户,2.5,0),COLORFF9900;
STICKLINE((散户> 0),0,散户,1.5,0),COLORFFAA00; STICKLINE((散户> 0),0,散户,1,0),COLORFFBB00;
STICKLINE((散户> 0),0,散户,0.7,0),COLORLIBLUE;
3、黑马起爆点
V AR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
V AR2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
V AR3:=SMA(V AR2,2,1);
天:100+(-ABS(V AR1)),COLORRED;
下:SMA(V AR3,2,1);
无:ABS(V AR1),COLORGREEN;
敌:50,COLORFFAA00,LINETHICK3;
A:80;
B:20;
买:STICKLINE(CROSS(下,无),3,20,2,0),COLORRED,LINETHICK1;
STICKLINE(CROSS(下,无),20,25,2,0),COLORFF9900,LINETHICK1;
DRAWTEXT(CROSS(下,无),30,' '),COLORFFFFCC;
卖:STICKLINE(CROSS(下,天),70,90,2,0),COLORRED,LINETHICK1;
STICKLINE(CROSS(下,天),90,99,2,0),COLORFF9900,LINETHICK1;
DRAWTEXT(CROSS(下,天),70,' '),COLORFFFFCC;
选股2:IF(CROSS(下,20),1,0);
DRAWICON((CROSS(下,20) ),20,1);
DRAWICON((CROSS(下,20) ),-20,25);
4、宁波绝密(相传为宁波涨停敢死队的绝密指标)
WOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORFFFFFF; VOLUME:VOL,VOLSTICK;
V5:MA(VOLUME,5);
V10:MA(VOLUME,10);
V135:MA(VOLUME,135);
V AR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

买:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),VOL/2)),COLORRED,POINTDOT;

卖:IF(CLOSE>OPEN,V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,V AR1*(HIG H-LOW),VOL/2)),COLOR00FF00,POINTDOT;
STICKLINE(主买>0,0,主买,2,0),COLORRED;
{STICKLINE(主卖>0,主买,VOL,2,1),COLOR00FF80;}
STICKLINE(主买<REF(主买,1)AND 主买>0,0,主买,2,0),COLOR00FFFF;
换手:VOL/CAPITAL*100,POINTDOT;
二十日换手:SUM(换手,20);
5、起涨点
换手率%:VOL/CAPITAL*100,LINETHICK0,COLORYELLOW;
量比:V/(REF(MA(V,5),1)),LINETHICK0,COLORRED;
VVOL:=IF(CURRBARSCOUNT=1 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、庄家建仓
V AR1:=REF(LOW,1);
V AR2:=SMA(ABS(LOW-V AR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*4;
V AR3:=EMA(VAR2,13);
V AR4:=LLV(LOW,34);
V AR5:=EMA(IF(LOW<=V AR4,V AR3,0),3);
主力进场:
STICKLINE(V AR5>REF(V AR5,1),0,V AR5,7,0 ),COLORRED;
7、出色超赢
JRH:=HHV(C,2);
JRL:=LLV(C,2);
MA3:=MA(CLOSE,3);
YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
V AR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
V AR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V ARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V ARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V ARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V ARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));
V ARE:=(REF(V ARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V ARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
V AR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
V AR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
V AR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
V AR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
V AR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
V AR19:=((REF(VARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR VAR16 OR V AR17 OR V AR18,1)) AND V AR1);
V AR1A:=((REF(VAR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,1)) AND V ARD);
红色持股:V AR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,COLOR0000FF,NODRAW;
离场:=IF(红色持股,JRL,DRAWNULL);
明离场价:=离场,COLORFF99FF,NODRAW;
今离场价:=REF(离场,1)COLOR0000FF,NODRAW;
青色观望:V ARD OR V ARE OR V ARF OR VAR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR VAR16 OR V AR17 OR V AR18,COLORFFFF00,NODRAW;
进:=IF(青色观望,JRH,DRAWNULL);
明进场价:=进,COLOR33AACC,NODRAW;
今进场价:=REF(明进场价,1),COLORFF0000,NODRAW;
黄色低买:V AR19,COLOR33AACC,NODRAW;
洋红离场:V AR1A,COLORMAGENTA,NODRAW;
急跌关注:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORWHITE,NODRAW;
上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;
月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;
日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;
STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;
STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;
STICKLINE(C>=O,L,H,0,0),COLOR0000CC;
STICKLINE(C<O,L,H,0,0),COLOR999900;
STICKLINE(1,C,O,3.5,0),COLOR858500;
STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;
STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;
STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;
STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;
STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;
STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;
STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500;
STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;
STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;
STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;
STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;
CO:=(C-O);
STICKLINE(急跌关注,O,C-CO/2,2.8,0),COLOR555555;
STICKLINE(急跌关注,O,C-CO/2,2,0),COLOR888888;
STICKLINE(急跌关注,O,C-CO/2,1.5,0),COLORAAAAAA;
STICKLINE(急跌关注,O,C-CO/2,1,0),COLORCCCCCC;
STICKLINE(急跌关注,O,C-CO/2,0.5,0),COLOREEEEEE;
STICKLINE(黄色低买,O,O+CO/3,2.8,0),COLOR335555;
STICKLINE(黄色低买,O,O+CO/3,2,0),COLOR338888;
STICKLINE(黄色低买,O,O+CO/3,1.5,0),COLOR33AAAA;
STICKLINE(黄色低买,O,O+CO/3,1,0),COLOR33CCCC;
STICKLINE(黄色低买,O,O+CO/3,0,0),COLOR33EEEE;
STICKLINE(洋红离场,O,O+CO/3,2.8,0),COLOR550055;
STICKLINE(洋红离场,O,O+CO/3,2,0),COLOR880088;
STICKLINE(洋红离场,O,O+CO/3,1.5,0),COLORAA00AA;
STICKLINE(洋红离场,O,O+CO/3,1,0),COLORCC00CC;
STICKLINE(洋红离场,O,O+CO/3,0.5,0),COLOREE00EE;
压力:MA(REF(HHV(C,30),1),2),POINTDOT,COLOR9DFFFF;
支撑:MA(REF(LLV(C,30),1),2),POINTDOT,COLORABFF46;
PMA:MA(C,5),COLORWHITE,LINETHICK2;
IF(PMA>REF(PMA,1),PMA,DRAWNULL),COLORRED,LINETHICK2;
IF(PMA<REF(PMA,1),PMA,DRAWNULL),COLORGREEN,LINETHICK2;
X:=(3*C+L+O+H)/6;
多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X, 6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210,COLORFF00FF,LINETHICK2;
DD:=多空线<REF(多空线,1);
IF(DD,多空线,DRAWNULL),COLOR00FFFF,LINETHICK2;
A:=(PMA>多空线);
IF(A,多空线,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,9,1);
J:=3*K-2*D;
X2:=LLV(J,2)=LLV(J,8);
Y:=IF(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,30,0);
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.98,'★'),COLORYELLOW;
8、彩色成交量
STICKLINE(VOL > 0,VOL,0,3,0),COLOR333333;
STICKLINE(VOL > 0,VOL,0,2.5,0),COLOR998855;
STICKLINE(VOL > 0,VOL,0,1.7,0),COLORBBAA77;
STICKLINE(VOL > 0,VOL,0,0.9,0),COLORDDCC99;
STICKLINE(VOL > 0,VOL,0,0.04,0),COLORFFEEBB;
换手:=VOL/CAPITAL*100,COLORRED;
STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,3,0),COLOR00AAAA; STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,2.5,0),COLOR00CCCC; STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,1.7,0),COLOR00EEEE; STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,0.08,0),COLOR00FFFF; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,3,0 ),COLOR009900; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,2.5,0 ),COLOR00BB00; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,1.7,0 ),COLOR00DD00; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,0.8,0 ),COLOR00FF00; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,3,0),COLORBROWN; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,2.5,0),COLOR0000AA; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,1.7,0),COLOR0000CC; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,0.8,0),COLOR0000DD;
五天均量:MA(VOL,5),COLORRED,LINETHICK0.01;
廿天均量:MA(VOL,20),COLORWHITE,LINETHICK0.01;
HSS:=V/CAPITAL*100,NODRAW;{显示当日换手}
五天换手率:SUM(HSS,5),NODRAW;
廿天换手率:SUM(HSS,20),NODRAW;
抛压:STICKLINE(CROSS(84,RSI),0 ,VOL,1.5,0),COLORBLUE,LINETHICK5; V24:MA(VOL,24),COLORLIBLUE;
V10:MA(VOL,10),COLORRED;
V3:MA(VOL,3),COLORLIGRAY;
9、涨停回马枪(有主图)
均价线:=AMOUNT/V/100;
C2:=REF(C,1);
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
STICKLINE(涨停,0,5,6,0),COLORYELLOW;
DRAWTEXT(涨停,8,'涨停'),COLORYELLOW;
MA13:=MA(C,13),COLORGRAY;
MA21:=MA(C,21),COLORWHITE;
支撑线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; 震仓线:=45;
震仓线2:=50;
逃命线:=80;
抄底线:=20;
绝底线:=5;
PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;
PP:=操作线<震仓线AND REF(操作线,1)>震仓线;
PP3:=操作线<抄底线AND REF(操作线,1)>抄底线;
HH:=COUNT(涨停,13)>=1;
STICKLINE(PP2 AND HH,0,5,3,0),COLORRED;
STICKLINE(PP AND HH,0,5,3,0),COLORRED;
STICKLINE(PP3 AND HH,0,5,3,0),COLORRED;
DRAWTEXT(PP2 AND HH,8,'预警'),COLORRED;
DRAWTEXT(PP AND HH,8,'预警'),COLORRED;
DRAWTEXT(PP3 AND HH,8,'预警'),COLORRED;
A:=SMA(L,4,3) ;
绿色买入:IF (((A AND REF(PP,1) AND HH) OR (A AND REF(PP3,1) AND HH)),1,0 ); STICKLINE(A AND REF(PP,1) AND HH ,0,10,1,0),COLORGREEN;
DRAWICON(A AND REF(PP,1) AND HH,12,1);
STICKLINE(A AND REF(PP3,1) AND HH ,0,10,1,0)COLORGREEN;
DRAWICON(A AND REF(PP3,1) AND HH,12,1);
10、海风3号
M1:=MA(CLOSE,1);
M2:=(LOW+HIGH+CLOSE)/3;
M3:= MA(M2,5);
M4:= HHV(M3,10);
Z:=HHV((M1<M4),10) OR HHV((M1<M4),10);
S:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,35)-LLV(LOW,34)),3); DRAWTEXT( FILTER(CROSS(S ,60 ),20),L*0.98,'▲'),COLORYELLOW ; {DRAWTEXT(FILTER( Z,9),H*1.028,'★') ,COLORBLUE;
STICKLINE( S>60,O,C,4,0) ,COLORFF9BFB;}
STICKLINE( S>60,O,C,2,0) ,COLORRED;
{STICKLINE( S>60,O,C,1.5,0) ,COLORFD9BFB; }
STICKLINE( S>60,H,L,0,0) ,COLORRED;
{STICKLINE( S<60,O,C,4,0) ,COLOR01DC38;
STICKLINE( S<60,O,C,2.5,0) ,COLOR01FE41;}
STICKLINE( S<60,O,C,2,0) ,COLORGREEN;
STICKLINE( S<60,H,L,0,0) ,COLORGREEN;
V AR1:MA(CLOSE,5);
V AR2:MA(CLOSE,10);
V AR3:MA(CLOSE,20);
V AR60:MA(CLOSE,60);
V AR120:MA(CLOSE,120);
V AR4:=OPEN<V AR1 OR OPEN<V AR2 OR OPEN<V AR3;
V AR5:=CLOSE>MAX(V AR1,MAX(V AR2,MAX(V AR3,V AR60)));
V AR6:=VOL/MA(VOL,30)>1.2;
V AR7:=CLOSE/REF(CLOSE,1)>1.049;
V AR8:=V AR4 AND V AR5 AND V AR6 AND V AR7;
V AR9:=V AR8 AND (REF(BARSLAST(V AR8),1)>60 OR BARSSINCE(V AR8)=0); DRAWICON(V AR9 ,L*0.98,1) ;
STICKLINE( VAR9,O,C,6,0) ,COLORYELLOW;
STICKLINE( VAR9,H,L,0.6,0) ,COLORYELLOW;
11、涨停时间窗(通达信金融终端副图)
N:=13;
WR大于80考虑买:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),LINETHICK0;
均价:AMOUNT/(VOL*100),LINETHICK0,COLORYELLOW;
ZT:=C/REF(C,1)>1.097;
XH:=FILTER(ZT,13);
BH:=BARSLAST(ZT);
STICKLINE(ZT,0,L*1,3,0),COLORYELLOW;
DRAWTEXT(ZT,L*1.1,'涨停'),COLORF00FF0;
V ARZT:=BARSLAST(C/REF(C,1)>1.097);
AA:=BETWEEN(C,REF(L,BH)*1.01,REF(L,BH)*0.987);
STICKLINE(AA,0,L*0.5,2,0),COLORBLUE;
DRAWTEXT(AA,L*0.6,'警戒'),COLORWHITE;
STICKLINE(AA AND V ARZT=2,0,L*0.8,2,0),COLORRED;
DRAWTEXT(AA AND V ARZT=2,L*0.9,'时间窗'),COLORWHITE;
STICKLINE(AA AND V ARZT=4,0,L*0.8,2,0),COLORRED;
DRAWTEXT(AA AND V ARZT=4,L*0.9,'时间窗'),COLORWHITE;
STICKLINE(AA AND V ARZT=7,0,L*0.8,2,0),COLORRED;
DRAWTEXT(AA AND V ARZT=7,L*0.9,'时间窗'),COLORWHITE;
STICKLINE(AA AND V ARZT=12,0,L*0.8,2,0),COLORRED;
DRAWTEXT(AA AND V ARZT=12,L*0.9,'时间窗'),COLORWHITE;
STICKLINE(AA AND V ARZT=20,0,L*0.8,2,0),COLORRED;
DRAWTEXT(AA AND V ARZT=20,L*0.9,'时间窗'),COLORWHITE;。

相关文档
最新文档