通达信指标公式源码概况:指标类别: 通达信指标公式授权方式: 免费版指标评级: ★★★★★指标分类: 策略画线方法: 副图一、中线趋势指标公式 A:=(3*C+L+O+H)/6; 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,COLORWHITE,LINETHICK1; Y:MA(X,15),COLORYELLOW,LINETHICK1; VAR4:=(2*CLOSE+HIGH+LOW)/4; 成本区:EMA(VAR4,90)*0.995,COLORGREEN,CIRCLEDOT; 操作区:EMA(VAR4,142)*0.998,COLORMAGENTA,LINETHICK2; 铁底区:EMA(VAR4,250)*0.885,COLORRED,LINETHICK2; P1:=EMA(CLOSE,5); P2:=EMA(CLOSE,29); A:=EXIST(CROSS(P1,P2),5); V11:=MA(V,8); V2:=MA(V,89); A1:=EXIST(CROSS(V11,V2),3); MID:=REF(HIGH+LOW,1)/2; CR1:=SUM(MAX(0,HIGH-MID),26)/SUM(MAX(0,MID-LOW),26)*100; MA1:=REF(MA(CR,11),11/2.5+1); MA2:=REF(MA(CR,19),21/2.5+1); MA3:=REF(MA(CR,35),35/2.5+1); MA4:=REF(MA(CR,53),53/2.5+1); A2:=CR1 MA1ANDCR1 MA2ANDCR1 MA3ANDCR1 中线战神:AANDA1ANDA2; A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19); D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4); 长:=A+100,COLOR9900FF; 中:=D+100,COLORYELLOW,LINETHICK2; STICKLINE((CROSS(中,长))AND(中 50),0,60,0.5,0),COLORBLUE; D1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/3; D2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,10)+EMA((OPEN+HIGH+LOW+CLOSE)/4,20))/3; D3:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,7)+EMA((OPEN+HIGH+LOW+CLOSE)/4,14)+EMA((OPEN+HIGH+LOW+CLOSE)/4,28))/3; D4:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,9)+EMA((OPEN+HIGH+LOW+CLOSE)/4,18)+EMA((OPEN+HIGH+LOW+CLOSE)/4,36))/3; D5:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,11)+EMA((OPEN+HIGH+LOW+CLOSE)/4,22)+EMA((OPEN+HIGH+LOW+CLOSE)/4,44))/3; D6:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,13)+EMA((OPEN+HIGH+LOW+CLOSE)/4,26)+EMA((OPEN+HIGH+LOW+CLOSE)/4,52))/3; D7:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3; {PARTLINE(D1,D1 =REF(D1,1),RGB(255,255,255),D1 REF(D1,1),RGB(0,0,255)),LINETHICK1; PARTLINE(D2,D2 =REF(D2,1),RGB(255,0,0),D2 REF(D2,1),RGB(0,0,255)),LINETHICK1; PARTLINE(D3,D3 =REF(D3,1),RGB(255,0,0),D3 REF(D3,1),RGB(0,0,255)),LINETHICK1; PARTLINE(D4,D4 =REF(D4,1),RGB(255,0,0),D4 REF(D4,1),RGB(0,0,255)),LINETHICK1; PARTLINE(D5,D5 =REF(D5,1),RGB(255,0,0),D5 REF(D5,1),RGB(0,0,255)),LINETHICK1; PARTLINE(D6,D6 =REF(D6,1),RGB(255,0,0),D6 REF(D6,1),RGB(0,0,255)),LINETHICK1; PARTLINE(D7,D7 =REF(D7,1),RGB(255,250,0),D7 REF(D7,1),RGB(0,0,255)),LINETHICK1;} {STICKLINE(D7 REF(D7,1),0,7,3,1),COLORBLUE; STICKLINE(D6 REF(D6,1),0,6,3,1),COLORBLUE; STICKLINE(D5 REF(D5,1),0,5,3,1),COLORBLUE; STICKLINE(D4 REF(D4,1),0,4,3,1),COLORBLUE; STICKLINE(D3 REF(D3,1),0,3,3,1),COLORBLUE; STICKLINE(D2 REF(D2,1),0,2,3,1),COLORBLUE; STICKLINE(D1 REF(D1,1),0,1,3,1),COLORBLUE;}{这部分括起,就不出现深蓝部分} STICKLINE(D7 REF(D7,1),0,7,3,1),COLORRED; STICKLINE(D6 REF(D6,1),0,6,3,1),COLORFF00FF; STICKLINE(D5 REF(D5,1),0,5,3,1),COLORBROWN; STICKLINE(D4 REF(D4,1),0,4,3,1),COLORYELLOW; STICKLINE(D3 REF(D3,1),0,3,3,1),COLORWHITE; STICKLINE(D2 REF(D2,1),0,2,3,1),COLORCYAN; STICKLINE(D1 REF(D1,1),0,1,3,1),COLORGREEN;二、主力线趋势线指标公式 趋:MA(CLOSE,5)-MA(CLOSE,43),COLORD9D919,LINETHICK2; 势:MA(趋,5),COLORYELLOW,LINETHICK2; A3:=CROSS(趋,势); 趋1:MA(CLOSE,13)-MA(CLOSE,56),LINETHICK2; 势1:MA(趋,13),LINETHICK2; 趋2:MA(CLOSE,34)-MA(CLOSE,78),LINETHICK2; 势2:MA(趋,34),LINETHICK2; TICKLINE(ZJLR 0,0,(ZJLR+ZJLC)/10000000,8,0),colorgreen; STICKLINE(ZJLR 0,0,ZJLR/10000000,8,0),colorred; a=(ZDMR[-1]+BDMR[-1]); b=(ZDMC[-1]+BDMC[-1]); a3=SUM(a,1)/1000000; b3=SUM(b,1)/1000000; VOL1=SUM(VOL,1)/1000000; y=a3-b3; z=y/VOL1*100; 总量:TOSTRING(VOL1,0)+ 万手,机构买入 +TOSTRING(a3,1)+ 万手,卖出 +TOSTRING(b3,1)+ 万手.净流量 +TOSTRING(y,1)+ 万手.占总成交 +TOSTRING(z,1)+ %. ,colorwhite; A:=IF((CLOSE 126.32),(AMOUNT/100000),VOL); 主力:MA(A,4),LINETHICK0,coloryellow; 游资:MA(A,8),LINETHICK0,colorgreen; 大户:MA(A,16),LINETHICK0,colorred; 散户:MA(A,32),LINETHICK0,colorliblue; 主力比例:CEILING(((主力/(((主力+游资)+大户)+散户))*100)),LINETHICK0,coloryellow; 游资比例:CEILING(((游资/(((主力+游资)+大户)+散户))*100)),LINETHICK0,colorgreen; 大户比例:CEILING(((大户/(((主力+游资)+大户)+散户))*100)),LINETHICK0,colorred; 散户比例:CEILING(((散户/(((主力+游资)+大户)+散户))*100)),LINETHICK0,colorliblue; 警戒线:MA(A,180),colormagenta; 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),COLOR00FFFF; DRAWTEXT(CROSS(主力,游资),主力, 始 DRAWTEXT(CROSS(游资,主力),游资, 终 IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),VOLSTICK; TX80:80,POINTDOTCOLORYELLOW; DX20:20,POINTDOTCOLORGREEN; VAR1:=LLV(LOW,21); VAR2:=HHV(HIGH,21); K:EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,6),COLORRED; D:EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN; VAR3:=LLV(LOW,55); VAR4:=HHV(HIGH,34); VAR5:=EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,3); VAR6:=(K+VAR5)/2; VAR7:=EMA(0.667*REF(VAR5,1)+0.333*K,2); VAR8:=EMA(VAR6,5); VAR9:EMA(0.667*REF(VAR8,1)+0.333*VAR8,2); DRAWICON(LONGCROSS(D,K,0.1),D,2),COLORRED; DRAWICON(LONGCROSS(K,D,0.1),K,1),COLORGREEN;[源码注释]通达信公式动态公式解读N1赋值:5N2赋值:9NMTM赋值:收盘价-1日前的收盘价输出ZLGJ:100*NMTM的N1日指数移动平均的N1日指数移动平均/NMTM的绝对值的N1日指数移动平均的N1日指数移动平均,画白色,线宽为2输出MAZL:ZLGJ的N2日简单移动平均,COLORFFCAC5,线宽为2当满足条件1日前的ZLGJ =ZLGJ时,在ZLGJ和1日前的ZLGJ位置之间画柱状线,宽度为2.5,0不为0则画空心柱.,画黄色当满足条件1日前的ZLGJ ZLGJ时,在ZLGJ和1日前的ZLGJ位置之间画柱状线,宽度为2.5,0不为0则画空心柱.,画绿色VAR1赋值:1日前的(最低价+开盘价+收盘价+最高价)/4VAR2赋值:最低价-VAR1的绝对值的13日[1日权重]移动平均/最低价-VAR1和0的较大值的10日[1日权重]移动平均VAR3赋值:VAR2的10日指数移动平均VAR4赋值:33日内最低价的最低值VAR5赋值:如果最低价 =VAR4,返回VAR3,否则返回0的3日指数移动平均输出主力进场:如果VAR5 1日前的VAR5,返回VAR5,否则返回0,画红色,NODRAW当满足条件VAR5 1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为3,0不为0则画空心柱.,画红色输出洗盘:如果VAR5 1日前的VAR5,返回VAR5,否则返回0,画绿色,NODRAW当满足条件VAR5 1日前的VAR5时,在0和VAR5位置之间画柱状线,宽度为3,0不为0则画空心柱.,画绿色当满足条件ZLGJ上穿MAZL时,在ZLGJ位置画42号图标当满足条件MAZL上穿ZLGJ时,在MAZL位置画43号图标推荐阅读:中长线趋势指标 {D通____主图} XDC:=DMA(C,VOL/MA(V,21)); 回调认同:=EMA(EXPMA(XDC,20),13),CROSSDOT,LINETHICK1,COLORRED; {天狼剑部分} B1:=MA(C,1); B2:SMA(SMA(SMA(B1,2,1),2,1),2,1); SMA2:=MA(B2,3); 停损:IF(LLV(MA(B2,8),3) B2,LLV(MA(B2,8),3),B2); LY:=10;BL:=40; CLY:=XMA(CLOSE,LY);JBL:=XMA(CLOSE,BL); N:=REF(JBL,BL/2+1-CURRBARSCOUNT)/REF(JBL,BL/2+2-CURRBARSCOUNT); M:=REF(CLY,LY/2+1-CURRBARSCOUNT)/REF(CLY,LY/2+2-CURRBARSCOUNT); 上轨:IF(CURRBARSCOUNT BL/2,JBL*1.1,REF(JBL,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*1.1); 下轨:IF(CURRBARSCOUNT BL/2,JBL*0.9,REF(JBL,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*0.9); Z上:IF(CURRBARSCOUNT LY/2,CLY*1.05,REF(CLY,LY/2+1-CURRBARSCOUNT)* POW(M,LY/2+1-CURRBARSCOUNT)*1.05)COLORLIMAGENTA; Z下:IF(CURRBARSCOUNT LY/2,CLY*0.95,REF(CLY,LY/2+1-CURRBARSCOUNT) *POW(M,LY/2+1-CURRBARSCOUNT)*0.95)COLORLIMAGENTA; X上:=IF(CURRBARSCOUNT LY/2,CLY*1.02,REF(CLY,LY/2+1-CURRBARSCOUNT) *POW(M,LY/2+1-CURRBARSCOUNT)*1.02)COLORLIMAGENTA; X下:=IF(CURRBARSCOUNT LY/2,CLY*0.98,REF(CLY,LY/2+1-CURRBARSCOUNT) *POW(M,LY/2+1-CURRBARSCOUNT)*0.98)COLORLIMAGENTA; {DRAWTEXT(L =Z下,(L*0.998), 抢 ),COLORYELLOW;} DRAWTEXT(CROSS(H,Z上),(H*1.01), 砸 ),COLORYELLOW; H1:=HHV(MA(B2,1),13),COLORYELLOW; H2:=HHV(MA(B2,1),21),COLORYELLOW; H3:=HHV(MA(B2,1),34),COLORYELLOW; IF(B2 SMA2,B2,DRAWNULL),COLORRED,LINETHICK2; IF(B2 SMA2,B2,DRAWNULL),COLORGREEN,LINETHICK1; VAR1A:=(2*CLOSE+HIGH+LOW)/4; VAR2A:=MA(VAR1A,7); VAR3A:=VAR2A-MA(VAR1A,7/2) VAR4A:=VAR2A-MA(VAR1A,7/2) VAR5A:=BARSLAST(VAR3A); VAR6A:=0-BARSLAST(VAR4A); VAR7A:=IF(VAR3A =0,VAR5A,VAR6A); {STICKLINE(SNAKEA B2ANDB2 SMA2,SNAKEA,B2,0,0),COLORBLUE; STICKLINE(SNAKEA SMA2ANDB2 SMA2,SNAKEA,SMA2,0,0),COLORBLUE;} VAR11A:=(CLOSE*2+HIGH+LOW)/4; VAR21A:=EMA(VAR11A,13)-EMA(VAR11A,34); VAR31A:=EMA(VAR21A,5); VAR2:=((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:=((REF(VARC,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VARE:=((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(VAR18,1)AND(CLOSE =REF(CLOSE,1)))AND(CLOSE =REF(CLOSE,2))); VAR1B:=(REF((((((((((((VAREORVARF)ORVAR10)ORVAR11)ORVAR12)OR VAR13)ORVAR14)ORVAR15)ORVAR16)ORVAR17)ORVAR18)ORVAR19),1) ANDVAR2); {} STICKLINE(VAR1B,O,O+(C-O)/3,1,0),COLOR10FFFF; STICKLINE(VAR1B,O,O+(C-O)/3,1,0),COLOR00FFFF; AA:=(REF((((((((((((VAR2ORVAR3)ORVAR4)ORVAR5)ORVAR6)ORVAR7)ORVAR8)ORVAR9)ORVARA)ORVARB)ORVARC)ORVARD),1)ANDVARE); STICKLINE(AA,O,O+(C-O)/3,1,0),COLOR00EE00; STICKLINE(AA,O,O+(C-O)/3,1,0),COLOR00FF00; {B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);} LP:=H =X下ANDH =B2ANDL =X下ANDL DRAWICON(LP=1,Z下,25); {DRAWTEXT(L-Z下 =0.10ANDL =Z下,(L*0.998), B ),COLORYELLOW;} 险:=((O =Z上ANDH REF(H,1))); DRAWTEXT(险,H*1.02, 卖 机:=((L =Z下ANDC =REF(L,1))); DRAWTEXT(H =Z上ANDAA,H*1.01, 逃 DRAWICON(H =Z上ANDAA,(HIGH*1.01),2),COLORBLUE; STICKLINE(机,OPEN,CLOSE,1,0),COLORMAGENTA; XS:=MA(LOW,5)*(1-5/100),LINETHICK0; XS1:=MA(HIGH,5)*(1+5/100); {DRAWTEXT(CROSS(XS1,C),H*1.01, 砸 ),COLORWHITE;} 曙光初现:=(((((REF(CLOSE,1)/REF(OPEN,1)) 0.97)AND((CLOSE/OPEN) 1.03))AND(OPEN REF(CLOSE,1)))AND(CLOSE REF(CLOSE,1))); {DRAWTEXT(曙光初现,L-L*0.02, 光 ),COLORGREEN;} LC:=REF(CLOSE,1); RSI5:=((SMA(MAX((CLOSE-LC),0),5,1)/SMA(ABS((CLOSE-LC)),5,1))*100); VARR1:=SMA(MAX(CLOSE-REF(C,1),0),12,1)/SMA(ABS(CLOSE-REF(C,1)),15,1)*100; TR1:=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),10); HD:=(HIGH-REF(HIGH,1)); LD:=(REF(LOW,1)-LOW); DMP:=SUM(IF(((HD 0)AND(HD LD)),HD,0),10); DMM:=SUM(IF(((LD 0)AND(LD HD)),LD,0),10); PDI:=((DMP*100)/TR1); MDI:=((DMM*100)/TR1); ADX:=MA(((ABS((MDI-PDI))/(MDI+PDI))*100),5); AV:=(RSI5+ADX); DXR:=(((ADX+REF(ADX,5))/2)+RSI5); WR10:=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10))); NEWVOL:=(RSI5-WR10); 秋天梦想:=(AV+NEWVOL); {DRAWTEXT(CROSS(秋天梦想,0),L*0.97, 秋天 ),COLORFF00FF;} {DRAWICON(CROSS(秋天梦想,0),L*0.98,1);} DRAWTEXT(CROSS(82,VARR1),H*1.005, 回家种田 ),COLORBLUE; RSI59:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100; 逃命:=CROSS(80,RSI59); DRAWICON(逃命,H*1.005,15); TJA3:=REF(CCI.CCI,1) 90ANDCCI.CCI REF(CCI.CCI,1); TJB3:=REF(KDJ.J(9,3,3),1) 90ANDKDJ.J(9,3,3) REF(KDJ.J(9,3,3),1); TJC3:=REF(RSI.RSI1,1) 70ANDRSI.RSI1 REF(RSI.RSI1,1); TJD3:=COUNT(TJA3,5)ANDCOUNT(TJB3,5)ANDCOUNT(TJC3,5); 大顶:=CROSS(TJD3,0.5); DRAWICON(大顶,H*1.005,2); {快赢} T:=CLOSE*1.0+LOW*0.0+HIGH*0.0; SL:=(T/REF(T,1)-1)*1000; X:=XMA(XMA(XMA(SL,3),3),3)-XMA(XMA(XMA(SL,5),5),5); 中期趋势:=XMA(XMA(XMA(SL,7),7),7),LINETHICK2,COLORGREEN; 长期趋势:=XMA(XMA(XMA(SL,21),21),21),LINETHICK2,COLORBLUE; DRAWICON(CROSS(中期趋势,长期趋势),L*0.98,13); DRAWICON(CROSS(长期趋势,中期趋势),H*1.01,14); DRAWICON(CROSS(X,长期趋势)AND中期趋势 =长期趋势,L*0.97,11); DRAWICON(CROSS(长期趋势,0),L*0.98,26); DRAWICON(CROSS(0,长期趋势),L*0.98,27); AA:=MA(WINNER(CLOSE*0.95)*100,3); VAR1:=1/WINNER(CLOSE); VAR2:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; VAR3:=100-ABS(VAR2); VAR4:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR5:=3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR6:=100-VAR5; VAR7:=100-VAR4; VAR8:=MA(WINNER(CLOSE*0.95)*100,3); VAR9:=IF(VAR1 5,IF(VAR1 100,VAR1,VAR3-10),0); VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VARB:=SMA(VARA,3,1); VARC:=SMA(VARB,3,1); 探索:EMA(3*VARB-2*VARC,3),,COLORMAGENTA; VAR1:=(2*CLOSE+HIGH+LOW)/4; VAR2:=EXPMA(EXPMA(EXPMA(VAR1,4),4),4); J:(VAR2-REF(VAR2,1))/REF(VAR2,1)*100,COLORSTICK; D:MA(J,3); K:MA(J,1); DRAWTEXT(CROSS(K,D),K, 买 ),COLORRED; DRAWTEXT(CROSS(D,K),D, 卖 ),COLORGREEN; A1:=OPEN REF(CLOSE,1); A2:=CLOSE/REF(CLOSE,1) 1.03; A3:=MA(CLOSE,30)/REF(MA(CLOSE,30),1) 1.005; A4:=BETWEEN((CLOSE/MA(CLOSE,30)),1,1.05); A5:=VOL/REF(VOL,1) 金牛追涨:A1ANDA2ANDA3ANDA4ANDA5; ZS:MA(探索,3),COLORYELLOW; 主力:(-1)*(EMA(VAR7,1)-50)+50,COLORRED; Z1:MA(主力,9),COLORGREEN; VARD:=(-1)*(EMA(VAR7,1)-50)+50; VARE:=(-1)*(EMA(VAR7,12)-50)+50; LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; 天涯:IF(RSI1 93OR(AA 90ANDRSI1 80),80,100),; 海角:0,COLORGREEN; 苦海:EMA(100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14)),6),COLORBLUE; A1:=EMA(C,12)-EMA(C,25); A2:=EMA(A1,6); 获利回吐:(A2 =0)*A2,COLORWHITE,LINETHICK0; 大黑马:(A2 0)*A2,COLORD4FF7F,LINETHICK0; 坚绝做空:(A1 0)*A1,COLORB00058,LINETHICK0; 买入持股:(A1 =0)*A1,COLORRED,LINETHICK0; STICKLINE(A2 =0,A2,0,5,0),COLORWHITE; STICKLINE(A2 0,A2,0,5,0),COLORD4FF7F; STICKLINE(A1 0,A1,0,5,0),COLORB00058; STICKLINE(A1 =0,A1,0,5,0),COLORRED; VAR8:=VOL 2*MA(VOL,30); VAR9:=DMI.ADX(12,6); VARA:=DMI.ADXR(12,6); VARB:=CLOSE MA(CLOSE,30)ANDCLOSE MA(CLOSE,30)*1.04; VARC:=MA(CLOSE,30) REF(MA(CLOSE,30),1); VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10))) BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5))); VARF:=TROUGHBARS(3,15,1) VAR10:=EMA(CLOSE,30) REF(EMA(CLOSE,30),2); VAR11:=IF(VARF=1,50,0); 多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE; 0,COLORRED; STICKLINE(FILTER(VARF=1,5)AND多空 -10,30,0,4,0),COLORF00FF0; STICKLINE(FILTER(VARF=1,5),30,0,1,0),COLORYELLOW; DRAWTEXT(FILTER(VARF=1,3),25, 黑马 ),COLORRED; STICKLINE(多空 -10,0,多空,0.85,0),COLORYELLOW; STICKLINE(多空 10,0,多空,0.95,0),COLORRED; 每日公式解答: 公式编写要求: 在低于涨停价一个点的位置画条延长线。 公式编写方法: ZT:=C/REF(C,1) 1.09465ANDC=H; DRAWLINE(ZT,C*0.99,REF(ZT,1),REF(C*0.99,1),1);