您好,欢迎访问三七文档
主图MA5:MA(C,5),COLORWHITE;MA7:MA(CLOSE,7),COLORYELLOW;MA10:MA(CLOSE,10),COLORFF00FF;MA20:MA(CLOSE,20),COLOR808020;MA30:MA(C,30),COLORRED,LINETHICK2;跌:IF(MA(CLOSE,30)=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),COLORGREEN,LINETHICK2;MA60:MA(CLOSE,60),COLORFFCC66;GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,7))/(HHV(C,7)-LLV(L,7));GJTJ3:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ4:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))2ANDBARSLAST(CROSS(GJTJ1,50))2;BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))2ANDGJTJ1GJTJ4;BAIJIN3:=GJTJ170ANDGJTJ460;DRAWTEXT(BAIJIN1ANDBAIJIN2ANDBAIJIN3,L-0.04,'白金'),COLORWHITE;HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))3ANDBARSLAST(CROSS(GJTJ1,50))3;HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))2ANDGJTJ1GJTJ4;DRAWTEXT(HUANGJIN1ANDHUANGJIN2,L,'黄金'),COLORYELLOW;XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))5ANDGJTJ1GJTJ4;DRAWTEXT(COUNT(XG,3)=1ANDXGANDCMA(C,20),L*0.99,'启动金三角'),COLORRED;ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))3ANDBARSLAST(CROSS(GJTJ1,GJTJ4))3;ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));ZHENCANG3:=GJTJ3GJTJ4ANDGJTJ2GJTJ4;ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))3ANDBARSLAST(CROSS(GJTJ1,GJTJ4))3;ZHENCANG5:=GJTJ2GJTJ3ANDGJTJ2GJTJ4ANDGJTJ2GJTJ1ANDGJTJ1=100;ZCB1:=ZHENCANG10ANDREF(ZHENCANG1,1)=0ANDREF(ZHENCANG1,2)0;DRAWTEXT(ZHENCANG1ANDZHENCANG2ANDZHENCANG3ANDZHENCANG4ANDZHENCANG5,L-0.05,'震仓启点');AA:=BARSLAST(CROSS(97,GJTJ1))=1ANDBARSLAST(CROSS(GJTJ1,85))=1;BB:=BARSLAST(CROSS(97,GJTJ2))=1ANDBARSLAST(CROSS(GJTJ2,85))=1;AA1:=AAANDBB;AAA:=BARSLAST(CROSS(97,GJTJ1))=2ANDBARSLAST(CROSS(GJTJ1,85))=1;BAA:=BARSLAST(CROSS(97,GJTJ2))=2ANDBARSLAST(CROSS(GJTJ2,85))=1;AA2:=AAAANDBAA;AAAA:=BARSLAST(CROSS(97,GJTJ1))=3ANDBARSLAST(CROSS(GJTJ1,85))=1;BAAA:=BARSLAST(CROSS(97,GJTJ2))=3ANDBARSLAST(CROSS(GJTJ2,85))=1;AA3:=AAAAANDBAAA;BB1:=REF(AA1,1);BB2:=REF(AA2,1);BB3:=REF(AA3,1);DD1:=GJTJ1=100ANDGJTJ2=100ANDAA1;DD2:=GJTJ1=100ANDGJTJ2=100ANDAA2;DD3:=GJTJ1=100ANDGJTJ2=100ANDAA3;DRAWTEXT(DD1ORDD2ORDD3,L-0.02,'短线追涨'),COLORFF00FF;AW:=BARSLAST(CROSS(95,GJTJ1))=2;BW:=BARSLAST(CROSS(95,GJTJ2))=2;EW:=GJTJ4GJTJ1ANDGJTJ1GJTJ2ANDGJTJ1GJTJ3;FW:=GJTJ250ANDGJTJ350;GW:=GJTJ1=100ANDGJTJ2=100;TXW:=COUNT(GW,2)=1;DRAWTEXT(AWANDBWANDEWANDFWANDTXW,L-0.03,'起涨首日');AQ:=GJTJ3=100;BQ:=GJTJ490;DRAWTEXT(COUNT(AQ,2)=2ANDBQ,L-0.02,'波启前兆');买:=EMA(CLOSE,5),COLORWHITE,LINETHICK3;A:=(REF(买,1));卖:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42),COLORYELLOW,LINETHICK3;B:=CROSS(买,卖);S:=CROSS(卖,买);DRAWTEXT(B,LOW-0.01,'←买'),COLORYELLOW,LINETHICK2;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;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT(CROSS(J,D),L*1.0019,'←加仓'),COLOR00FFFF,LINETHICK2;DRAWTEXT(CROSS(84,RSI),HIGH*1.009,'逃顶'),COLORGREEN;DRAWICON(CROSS(J,K)ANDK50,L*1,1);DRAWICON(CROSS(K,D)ANDK70,H*1.0009,2);VAR29:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR2A:=SMA(VAR29,5,1);VAR2B:=SMA(VAR2A,10,1);VAR2C:=CROSS(VAR2B,VAR2A);VAR2D:=VAR2B80ORVAR2A80;VAR2E:=VAR2CANDVAR2D;VAR33:=HIGH;VAR34:=LOW;DRAWTEXT(VAR2E,HIGH*1.002,'逃顶'),COLORWHITE;DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),HIGH*1.003,'-落袋为安'),COLORGREEN;X6:=REF(CLOSE,1);X7:=SMA(MAX(CLOSE-X6,0),7,1)/SMA(ABS(CLOSE-X6),7,1)*100;X8:=CROSS(79,X7);X9:=FILTER(X8,4);DRAWTEXT(X9,HIGH*1.002,'←出货'),COLOR9000F5;压力线:MA(REF(HHV(C,30),1),2),COLOR9DFFFF,LINETHICK2;支撑线:MA(REF(LLV(C,30),1),2),COLORABFF46,LINETHICK2;AA4:=AMOUNT/V;BB4:=LAA4*0.9;CC4:=(C-REF(C,1))/REF(C,1)*1001.2;DD4:=LMA(C,5)*0.921;EE4:=VMA(V,5)*1.5;FF4:=BB4ANDCC4ANDDD4ANDEE4;DRAWTEXT(FF4,(LOW*0.99),'老鼠仓'),COLOR4080FF;A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);黑马线:=EMA(A51,5);A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趋势线:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));DRAWTEXT(CROSS(趋势线,0)AND黑马线40,(HIGH*0.97),'▲大黑马'),COLORYELLOW;成交量VOLUME:VOL,VOLSTICK;主力启动线:MA(VOLUME,5),COLORRED,LINETHICK2;主力洗盘线:MA(VOLUME,35),COLORYELLOW,LINETHICK2;资金异动线:MA(VOLUME,135),COLORBLUE,LINETHICK2;出击:STICKLINE(CROSS(主力启动线,资金异动线)OR((主力洗盘线资金异动线)ANDCROSS(主力启动线,主力洗盘线)),0,VOL,2,0),COLORYELLOW;启动:STICKLINE(主力启动线REF(主力启动线,1)AND(CROSS(VOL,主力启动线)AND(REF(VOL,1)REF(资金异动线,1)ANDREF(VOL,2)REF(资金异动线,2))),0,VOL,3,0),COLORGREEN;DRAWTEXT(出击,VOLUME,'出击');DRAWTEXT(启动,VOLUME,'启动');V1:=CLOSE/REF(CLOSE,3)=1.1;V2:=BACKSET(V1,2);V3:=REF(CLOSE,3)*1.1;V4:=CROSS(C,V3);OK:STICKLINE((V2ANDCOUNT(V2,2)=1),VOL,0,5,0),COLORRED;COND:(CROSS(主力启动线,资金异动线)OR((主力洗盘线资金异动线)ANDCROSS(主力启动线,主力洗盘线)))OR(主力启动线REF(主力启动线,1)AND(CROSS(VOL,主力启动线)AND(REF(VOL,1)REF(资金异动线,1)ORREF(VOL,2)REF(资金异动线,2))))OR(V2ANDCOUNT(V2,2)=1),LINETHICK0;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);长期线:=A+100;短期线:=B+100;中期线:=D+100;见顶:=((REF(中期线,1)85ANDREF(短期线,1)85ANDREF(长期线,1)65)ANDCROSS(长期线,短期线));顶部区域:=(中期线=80)AND(REF(短期线,1)95ORREF(短期线,2)95)AND长期线60AND短期线83.5
本文标题:股票指标公式
链接地址:https://www.777doc.com/doc-2047973 .html