通达信指标公式源码概况:指标类别: 通达信指标公式授权方式: 免费版指标评级: ★★★★★指标分类: 策略画线方法: 副图一、波段买卖指标公式源码无未来函数 MA7:MA(C,7),COLOR0000FF; MA13:MA(C,13),COLOR0096FF; MA21:MA(C,21),COLOR00FF99; MA49:MA(C,49),COLORFF00FF; A:=BARSCOUNT(CLOSE); AH:=HHV(HIGH,200); AL:=LLV(LOW,200); B0:=(AH-AL)/40; B1:=HIGH+B0; B2:=LOW-B0; DRAWTEXT((A+0)/34=FLOOR((A+0)/34),B2-2.2*B0*1.1, 变盘 ),COLORRED; DRAWTEXT(IF(CROSS(69,SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100),1,0),HIGH*1.045, 警 ),COLORWHITE; LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100; DRAWICON(CROSS(RSI,11),L*0.99,3); VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12) 0ANDEMA(CLOSE,12)/LOW 1.15,5),LOW, 买 ),COLORFF00FF; VARA:=((AMOUNT)/(VOL))/(100); VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7); VARC:=((SUM(AMOUNT,7))/(VARA))/(100); VARD:=DMA(VARB,(VOL)/(VARC)); VARE:=((CLOSE-VARD)/(VARD))*(100); VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100); VARJ:=MA(VARE,20)+STD(VARE,20); BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100); AA:=SMA(VARF,3,1); SS:=(REF(BIAS18,1) =5)ANDCROSS(VARJ,VARE)AND(AA DRAWTEXT((REF(BIAS18,1) =5)ANDCROSS(VARJ,VARE)AND(AA SS)ANDCROSS(84,RSI),H*1.028, 卖 ),LINETHICK7,COLORGREEN; DRAWTEXT(CROSS(84,RSI)ANDCROSS(76,VAR28),H*1.01, 出 ),LINETHICK7,COLORYELLOW; 买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,13)*21+C,49); STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,1.2,0),COLORYELLOW; STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,1.2,0),COLORBLUE; V1:=EMA(CLOSE,60)-EMA(CLOSE,300); V2:=EMA(V1,300); V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; 操盘线:=SMA(V3,2,1),LINETHICK3; V5:=SMA(操盘线,2,1); DRAWICON(CROSS(操盘线,V5)ANDMA7 REF(MA7,1),L*0.987,5); DRAWICON(操盘线 REF(操盘线,1)ANDREF(操盘线,1) REF(操盘线,2)ANDMA21 REF(MA21,1)ANDREF(操盘线,1) 40ANDCROSS(V5,操盘线),H*1.01,6); STICKLINE((REF(BIAS18,1) =5)ANDCROSS(VARJ,VARE)AND(AA SS)ANDCROSS(84,RSI)ANDCROSS(76,VAR28),C,O,3,0),COLORGREEN,LINETHICK2;{底位红色} STICKLINE(操盘线 REF(操盘线,1)ANDCROSS(操盘线,V5)ANDV5 50ANDMA13 REF(MA13,1),C,O,3,0),COLORMAGENTA,LINETHICK2;{底位红色}; P:=36; N77:=13; N:=6; M:=5; SHORT:=21; LONG:=44; MIDD:=11; N1:=11; 趋势线:MA(C,20),NODRAW,COLORRED; O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLOR00FFFF,LINETHICK1; O2:EMA(O1,3),COLORFF00FF,LINETHICK1; O3:EMA(O2,3),COLOR00FF00,LINETHICK1; MMM:=MA(C,20); DRAWTEXT((CLOSE MMM),MMM, * ),COLOR00FF00,LINETHICK7; DRAWTEXT((CLOSE MMM),MMM, * ),COLOR0000FF,LINETHICK7; O4:=EMA(C,4); O5:=EMA(SLOPE(C,20)*10+C,35); DRAWICON(CROSS(O4,O5),LOW*0.98,23); INPUT:LMD(3,1,5); BARS:=BARSCOUNT(C); ZZ:=SUM(AMOUNT,BARS)/SUM(V*100,BARS); JX:=IF(T0TOTIME(TIME) 255003,ZZ,C){,COLORYELLOW,LINETHICK1}; A1:=EMA(C,6){,COLORWHITE,LINETHICK1}; A2:=EMA(C,20); A3:=EMA(C,60){,COLORMAGENTA,LINETHICK2}; JD1:=ATAN((A1/REF(A1,1)-1)*100)*57.3; JD2:=ATAN((A2/REF(A2,1)-1)*100)*57.3; JD3:=ATAN((A3/REF(A3,1)-1)*100)*57.3; PC:=(A1/JX-1)*100{,LINETHICK0}; ZF:=(C/DYNAINFO(3)-1)*100{,LINETHICK0}; JDC:=JD3-JD2{,LINETHICK0}; {DRAWTEXT(ABS(JDC) 1,A3,NUMTOSTRN(JDC,0)),COLOR999999}; FL:=COUNT(V/REF(MA(V,10),5) 2,10) =3ORCOUNT(V/REF(MA(V,10),5) 5,10) BP:=FLAND(ZF -1*LMDORPC -1*LMD)ANDCOUNT(JD3 -1,20) 5ANDJD3 0ANDLONGCROSS(JD1,0,6); SP:=FLANDZF LMDANDPC LMDANDCOUNT(JD2-JD3 1,20) 5ANDJD3 0ANDLONGCROSS(0,JD1,6); BPS:=IF(BARSSINCE(BP)=0OR(BPAND(C/REF(C,BARSSINCE(BP))-1)*100 -1*LMD),1,0); SPS:=IF(BARSSINCE(SP)=0OR(SPAND(C/REF(C,BARSSINCE(SP))-1)*100 LMD),1,0); STICKLINE(BPS,0,0.5,10,0),COLORRED; STICKLINE(SPS,0.5,1,10,0),COLORGREEN; 股资金线:EMA(C,1)/MA(REF(C,18),18)*100,COLORYELLOW,LINETHICK2; 个股资金生命线:EMA(FORCAST(个股资金线,20),6),COLORFF80FF,LINETHICK2; RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:SMA(RSV,M1,1); D:SMA(K,M2,1); 参数设置: n210091 m1210031 m2210031 公式其实就是把赢在龙头中的“个股资金生命线”和我们软件当中的“KD”指标混合在一起了,这样我们就可以看到中线趋势和短线的趋势了! 通过使用,个人感觉做波段或短线、反弹有点实用价值。公式无未来!二、波段买卖点指标公式源码 VAR2:=LLV(LOW,10); VAR3:=HHV(HIGH,25); 阶段卖出:=3.2,COLORCYAN; STICKLINE(C 0,3.2,3.2,1,1),COLORFF1199; 清仓卖出:3.5,COLOR0088FF; 动力线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4); STICKLINE(动力线 REF(动力线,1),动力线,REF(动力线,1),2,1),COLORRED; STICKLINE(动力线 =REF(动力线,1),动力线,REF(动力线,1),2,1),COLORGREEN; 底部介入:0.2,COLORGREEN; 重点关注:=0.5,COLOR0FFFFF; STICKLINE(C 0,0.50,0.50,1,1),COLOR1AFFFF; DRAWICON(FILTER(CROSS(动力线,重点关注),20),动力线+0.02,1); DRAWICON(FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,2); DRAWICON(FILTER(CROSS(动力线,底部介入),20),动力线+0.02,1); DRAWICON(FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2); 强弱分界线:1.75,POINTDOT,LINETHICK2,COLORFF80FF; 数值:动力线,COLORA8A8A8; STICKLINE(动力线 REF(动力线,1)AND动力线 3.49.8,动力线,REF (动力线,1),2.5,0),COLOR1EFFFF; STICKLINE(动力线 =REF(动力线,1)ANDREF(动力线,1) 3.49.8,动力线,REF (动力线,1),2.5,0),COLOR1EFFFF; STICKLINE(动力线 0.5,动力线,REF(动力线,1),2.5,0),COLOR0080FF; STICKLINE(动力线 =REF(动力线,1)ANDREF(动力线,1) 0.5,动力线,REF (动力线,1),2.5,0),COLOR0080FF; DRAWTEXT(CROSS(数值,0.50),2.5, 异 ),COLORYELLOW; DRAWTEXT(CROSS(数值,0.50),2, 动 ),COLORB47DFF; DRAWTEXT(CROSS(数值,0.50),1.5, 区 ),COLOR00C0FF; N1:=10; N2:=10; DISP:=2; K:=IF(PERIOD=5,1,{日} IF(PERIOD=6,1,{周} IF(PERIOD=7,1,{月} IF(PERIOD=8,1,{多分钟} IF(PERIOD=9,1,{多日} IF(PERIOD=10,1,{季} IF(PERIOD=11,2,{年} IF(PERIOD=4,1,{60F} IF(PERIOD=3,1,{30F} IF(PERIOD=2,1,{15F} IF(PERIOD=1,1{5F},1{1F})))))))))))/10; P1:=PEAK(1,K*N1,1); P2:=PEAK(1,K*N1,2); WP1:=PEAKBARS(1,K*N1,1); WP2:=PEAKBARS(1,K*N1,2); T1:=TROUGH(2,K*N2,1); T2:=TROUGH(2,K*N2,2); WT1:=TROUGHBARS(2,K*N2,1); WT2:=TROUGHBARS(2,K*N2,2); TJ1:=P1 T1ANDP2 ZD:=MAX(T1,T2); ZG:=MIN(P1,P2); LL:=MIN(T1,T2); HH:=MAX(P1,P2); TJ2:=FILTER(ZG ZD,2); TJ3:=ZG=REF(ZG,BARSLAST(TJ2))ORZD=REF(ZD,BARSLAST(TJ2)); TJ4:=TJ1 TJ2 NOT(TJ3); TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1))); TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1))); TJ7:=ZG REF(ZG,REF(BARSLAST(TJ4),1)) ZD REF(ZD,REF(BARSLAST(TJ4),1)); TJ8:=TJ4 NOT(TJ5ORTJ6ORTJ7); ZSD:=IF(TJ8,ZD,DRAWNULL); ZSG:=IF(TJ8,ZG,DRAWNULL); ZSH:=IF(TJ8,HH,DRAWNULL); ZSL:=IF(TJ8,LL,DRAWNULL); STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA; STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORMAGENTA; DRAWTEXT(DISP=2,ZSH, 中枢 ),COLORRED; 中枢高:PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),CROSSDOT,COLORLIRED; 中枢低:PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CROSSDOT,COLORLIGREEN; 中枢最高:PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,COLORRED; 中枢最低:PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,COLORGREEN; 趋势高:PLOYLINE(DISP=3,ZIG(1,K*N1)),COLORLIBLUE; 趋势低:PLOYLINE(DISP=3,ZIG(2,K*N2)),COLORLIBLUE; 局部低点预选A:=BACKSET(LLV(L,5) REF(LLV(L,4),1),4); 局部低点预选B:=BACKSET(局部低点预选A=0ANDREF(局部低点预选A,1)=1,2); 局部低点预选C:=IF(局部低点预选B=1ANDREF(局部低点预选B,1)=0,-1,0); 局部高点预选A:=BACKSET(HHV(H,5) REF(HHV(H,4),1),4); 局部高点预选B:=BACKSET(局部高点预选A=0ANDREF(局部高点预选A,1)=1,2); 局部高点预选C:=IF(局部高点预选B=1ANDREF(局部高点预选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=-1ANDREF(距前高天,1) REF(距前低天,1)ANDLLV(L,距前高天+1) REF(LLV(L,距前高天+1),1),-1,0); 低保留AB:=IF(局部低点预选C=-1ANDREF(距前高天,1) =REF(距前低天,1)AND(距前高天 =4ORLLV(缺口判断,距前高天)=-1ORLLV(L,距前低天+2) REF(LLV(L,距前低天+1),1)),-1,0); 低保留S:=IF((低保留AA=-1OR低保留AB=-1)ANDL REF(H,距前高天+1),-1,0); 预判:=IF((距前低天 4ANDHHV(缺口判断,距前低天)!=1)ORREF(低保留S,距前低天)=0,1,0); 判断:=IF(局部高点预选C=1ANDREF(距前低天,1) =REF(距前高天,1)AND预判=1AND大值周期 REF(小值周期,距前低天+1)AND大值周期 REF(小值周期,距前低天)AND大值周期 REF(大值周期,距前高天),1,0); 高保留A:=IF(局部高点预选C=1ANDREF(距前低天,1) REF(距前高天,1)ANDHHV(H,距前低天+1) REF(HHV(H,距前低天+1),1),1,0); 高保留B:=IF(局部高点预选C=1ANDREF(距前低天,1) =REF(距前高天,1)ANDREF(低保留S,距前低天)=-1AND(距前低天 =4ORHHV(缺口判断,距前低天)=1),1,0); 高保留:=IF((高保留A=1OR高保留B=1OR判断=1)ANDH REF(L,距前低天+1),1,0); 预判A:=IF((距前高天 4ANDHHV(缺口判断,距前高天)!=1)ORREF(高保留,距前高天)=0,1,0); 判断A:=IF(局部低点预选C=-1ANDREF(距前高天,1) =REF(距前低天,1)AND预判A=1AND小值周期 REF(大值周期,距前高天+1)AND小值周期 REF(大值周期,距前高天)AND小值周期 REF(小值周期,距前低天),-1,0); 低保留A:=IF(局部低点预选C=-1ANDREF(距前高天,1) REF(距前低天,1)ANDLLV(L,距前高天+1) REF(LLV(L,距前高天+1),1),-1,0); 低保留B:=IF(局部低点预选C=-1ANDREF(距前高天,1) =REF(距前低天,1)AND(距前高天 =4ORLLV(缺口判断,距前高天)=-1OR判断A=-1),-1,0); 低保留:=IF((低保留A=-1OR低保留B=-1)ANDL REF(H,距前高天+1),-1,0); 距前高天A:=BARSLAST(高保留=1); 距前低天A:=BARSLAST(低保留=-1); 预判X:=IF((距前低天A 4ANDHHV(缺口判断,距前低天A)!=1)ORREF(低保留,距前低天A)=0,1,0); 判断X:=IF(局部高点预选C=1ANDREF(距前低天A,1) =REF(距前高天A,1)AND预判X=1AND大值周期 REF(小值周期,距前低天A+1)AND大值周期 REF(小值周期,距前低天A)AND大值周期 REF(大值周期,距前高天A),1,0); 高保留XA:=IF(局部高点预选C=1ANDREF(距前低天A,1) REF(距前高天A,1)ANDHHV(H,距前低天A+1) REF(HHV(H,距前低天A+1),1),1,0); 高保留XB:=IF(局部高点预选C=1ANDREF(距前低天A,1) =REF(距前高天A,1)ANDREF(低保留,距前低天A)=-1AND(距前低天A =4ORHHV(缺口判断,距前低天A)=1),1,0); 高保留X:=IF((高保留XA=1OR高保留XB=1OR判断X=1)ANDH REF(L,距前低天A+1),1,0); 预判XA:=IF((距前高天A 4ANDHHV(缺口判断,距前高天A)!=1)ORREF(高保留XA,距前高天A)=0,1,0); 判断XA:=IF(局部低点预选C=-1ANDREF(距前高天A,1) =REF(距前低天A,1)AND预判XA=1AND小值周期 REF(大值周期,距前高天A+1)AND小值周期 REF(大值周期,距前高天A)AND小值周期 REF(小值周期,距前低天A),-1,0); 低保留XA:=IF(局部低点预选C=-1ANDREF(距前高天A,1) REF(距前低天A,1)ANDLLV(L,距前高天A+1) REF(LLV(L,距前高天A+1),1),-1,0); 低保留XB:=IF(局部低点预选C=-1ANDREF(距前高天A,1) =REF(距前低天A,1)AND(距前高天A =4ORLLV(缺口判断,距前高天A)=-1OR判断XA=-1),-1,0); 低保留X:=IF((低保留XA=-1OR低保留XB=-1)ANDL REF(H,距前高天A+1),-1,0); 距前高天YA:=BARSLAST(高保留X=1); 距前低天YA:=BARSLAST(低保留X=-1); 预判YX:=IF((距前低天YA 4ANDHHV(缺口判断,距前低天YA)!=1)ORREF(低保留X,距前低天YA)=0,1,0); 判断YX:=IF(局部高点预选C=1ANDREF(距前低天YA,1) =REF(距前高天YA,1)AND预判YX=1AND大值周期 REF(小值周期,距前低天YA+1)AND大值周期 REF(小值周期,距前低天YA)AND大值周期 REF(大值周期,距前高天YA),1,0); 高保留YXA:=IF(局部高点预选C=1ANDREF(距前低天YA,1) REF(距前高天YA,1)ANDHHV(H,距前低天YA+1) REF(HHV(H,距前低天YA+1),1),1,0); 高保留YXB:=IF(局部高点预选C=1ANDREF(距前低天YA,1) =REF(距前高天YA,1)ANDREF(低保留X,距前低天YA)=-1AND(距前低天YA =4ORHHV(缺口判断,距前低天YA)=1),1,0); 高保留YX:=IF((高保留YXA=1OR高保留YXB=1OR判断YX=1)ANDH REF(L,距前低天YA+1),1,0); 预判YXA:=IF((距前高天YA 4ANDHHV(缺口判断,距前高天YA)!=1)ORREF(高保留YXA,距前高天YA)=0,1,0); 判断YXA:=IF(局部低点预选C=-1ANDREF(距前高天YA,1) =REF(距前低天YA,1)AND预判YXA=1AND小值周期 REF(大值周期,距前高天YA+1)AND小值周期 REF(大值周期,距前高天YA)AND小值周期 REF(小值周期,距前低天YA),-1,0); 低保留YXA:=IF(局部低点预选C=-1ANDREF(距前高天YA,1) REF(距前低天YA,1)ANDLLV(L,距前高天YA+1) REF(LLV(L,距前高天YA+1),1),-1,0); 低保留YXB:=IF(局部低点预选C=-1ANDREF(距前高天YA,1) =REF(距前低天YA,1)AND(距前高天YA =4ORLLV(缺口判断,距前高天YA)=-1OR判断YXA=-1),-1,0); 低保留YX:=IF((低保留YXA=-1OR低保留YXB=-1)ANDL REF(H,距前高天YA+1),-1,0); AAAD:=IF(高保留YX=1AND低保留YX=-1ANDH REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1AND低保留YX=-1ANDL REF(L,REF(距前低天YA,1)+2),-1,0)); 极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD); 局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL))CIRCLEDOTCOLORYELLOW; DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORLIRED; DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORYELLOW; DD1:=BARSLAST(ABS(极点保留)!=1); DRAWTEXT(极点保留=1,局部极点, 卖 ),COLORGREEN; DRAWTEXT(极点保留=-1,局部极点, 买 ),COLORRED; MA5:MA(CLOSE,5),COLORFF00FF,LINETHICK2;判:IF(MA5 REF(MA5,1),MA5,DRAWNULL),COLORWHITE,LINETHICK2;[源码注释]通达信公式动态公式解读VAR2T赋值:(100-((90*(21日内最高价的最高值-收盘价))/(21日内最高价的最高值-21日内最低价的最低值)))VAR3T赋值:(100-((100*(6日内最高价的最高值-收盘价))/(6日内最高价的最高值-6日内最低价的最低值))的34日简单移动平均)YDZF赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100VARA赋值:收盘价 1日前的收盘价 AND 收盘价 2日前的收盘价VARB赋值:收盘价 1日前的收盘价 AND 收盘价 2日前的收盘价VAR1赋值:1日前的VARB AND 收盘价 =1日前的收盘价 AND 收盘价 =2日前的收盘价VAR2赋值:1日前的VAR1 AND 收盘价 =1日前的收盘价 AND 收盘价 =2日前的收盘价VAR3赋值:1日前的VAR2 AND 收盘价 =1日前的收盘价 AND 收盘价 =2日前的收盘价VAR4赋值:1日前的VAR3 AND 收盘价 =1日前的收盘价 AND 收盘价 =2日前的收盘价VAR5赋值:1日前的VAR4 AND 收盘价 =1日前的收盘价 AND 收盘价 =2日前的收盘价VAR6赋值:1日前的VAR5 AND 收盘价 =1日前的收盘价 AND 收盘价 =2日前的收盘价VAR7赋值:1日前的VAR6 AND 收盘价 =1日前的收盘价 AND 收盘价 =2日前的收盘价VAR8赋值:1日前的VAR7 AND 收盘价 =1日前的收盘价 AND 收盘价 =2日前的收盘价VAR9赋值:1日前的VAR8 AND 收盘价 =1日前的收盘价 AND 收盘价 =2日前的收盘价VAR10赋值:1日前的VAR9 AND 收盘价 =1日前的收盘价 AND 收盘价 =2日前的收盘价VAR11赋值:1日前的VAR10 AND 收盘价 =1日前的收盘价 AND 收盘价 =2日前的收盘价JIN赋值:VARB OR VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VAR10 OR VAR11阳信号赋值:VARA AND 1日前的JINMID赋值:1日前的最高价+最低价/2CR赋值:0和最高价-MID的较大值的26日累和/0和MID-最低价的较大值的26日累和*100输出XG:VAR2T上穿VAR3T AND 阳信号 AND CR 1日前的CR AND YDZF 5 AND 1日前的收盘价 1日前的开盘价 AND 1日前的收盘价 开盘价 AND 收盘价 1日前的开盘价 AND 收盘价/1日前的收盘价 1.02推荐阅读:趋势波段买卖指标源码 主线:=(MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,36))/4,COLORFF00FF,LINETHICK2; 股价重心:=DMA(AMOUNT/VOL/100,VOL/CAPITAL),COLORGREEN,LINETHICK2; MA14:=EMA(CLOSE,14); MA34:=EMA(CLOSE,26); MA54:=EMA(CLOSE,54); MA90:=EMA(CLOSE,90); MA120:EMA(CLOSE,120),POINTDOT,LINETHICK2,COLORWHITE; 年线:EMA(C,250),COLORYELLOW,LINETHICK2; {中短波} HZ:=EMA(CLOSE,13); 短波:EMA(HZ,1),COLOR00DD00,LINETHICK1; 中波:EMA(HZ,26),COLORRED,LINETHICK1; 均线148天:=EMA(C,148),POINTDOT,LINETHICK1,COLORGREEN; 成本:=SUM(AMOUNT,0)/SUM(VOL,0)/100,COLORYELLOW,LINETHICK2; HZ2:EMA(HZ,8),COLORGREEN,LINETHICK2; HZ4:EMA(HZ,39),COLORFF00FF,LINETHICK2; A1:STICKLINE(HZ2 HZ4,短波,HZ4,0.1,0),COLORBLUE; A2:STICKLINE(短波 HZ2,短波,HZ2,0.1,0),COLORGREEN; A3:STICKLINE(中波 HZ4,中波,HZ4,0.1,0),COLORFF00FF; {慢速KDJ} RSV:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; FASTK:=SMA(RSV,12,1); K:=SMA(FASTK,9,1),COLORYELLOW; D:=SMA(K,3,1),LINETHICK2,COLORBLUE; J:=3*K-2*D,LINETHICK1,COLORGREEN; {中波} VAR11:=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); VAR22:=100-VAR11; 中势线:=(-1)*(EMA(VAR22,1)-50)+42,COLORYELLOW,LINETHICK2; TZ:=(CLOSE-LLV(LOW,331))/(HHV(HIGH,331)-LLV(LOW,331))*100; 强势线:=SMA(TZ,5,1),LINETHICK2,COLORRED; 大盘线:=70*(HHV(HIGH,39)-CLOSE)/(HHV(HIGH,39)-LLV(LOW,39)),COLOR009900,LINETHICK1; {量选} AA:=VOL/SUM(VOL,13); BB:=DMA(C,AA); CC:=VOL/SUM(VOL,34); DD:=DMA(C,CC); {背离} VAR00:=WINNER(CLOSE); VAR1:=FORCAST(VAR00,10); VAR2:=MA(VAR1,3); VAR3:=MA(VAR2,12); VAR4:=MA(VAR3,16); VAR5:=MA(VAR4,31); VAR6:=MA(VAR5,55); VAR7:=VAR5; VAR8:=VAR4 VAR2*1.11ANDVAR3 VAR2*1.095; A:=VAR4/VAR2; B:=VAR3/VAR2; VAR9:=VAR2 VAR1*0.95; TD:=VAR2/VAR1; VAR1H:=INDEXC; VAR2H:=MA(VAR1H,6); VAR3H:=MA(VAR1H,24); VAR4H:=MA(VAR1H,32); VAR5H:=MA(VAR1H,62); VAR6H:=MA(VAR1H,105); VAR7H:=VAR5H; VAR8H:=VAR4H VAR2H*1.11ANDVAR3H VAR2H*1.095; VAR9H:=VAR2H VAR1H*0.95; PT:=(IF(H=LANDC=OANDL=CANDC 0ANDREF(H,1)=REF(L,1)ANDREF(C,1)=REF(O,1) ANDREF(H,1)=REF(C,1)ANDREF(C,1) 0,0,1)) G:=(VAR7HANDVAR8HANDVAR9HANDCLOSE/COST(8) =0.7985 AND(COUNT(C=L,4) 3ORC REF(C,1)))ANDPTOR VAR7ANDVAR8ANDVAR9ANDCLOSE/COST(5) =0.8AND ((VAR1 OPENORVAR1 REF(OPEN,1)OR REF(VAR1,1))); 背离:=VAR2 REF(VAR2,1)ANDA REF(A,1); 买入信号1:=VAR1 AANDVAR2 买入信号2:=B AAND1 BANDA 1ANDH=HHV(H,21); BUY2:=COUNT(背离,20) 1AND买入信号2=1ANDC OORCROSS(BB,DD); DRAWICON(CROSS(短波,HZ2),中波-0.08,9); DRAWTEXT(CROSS(短波,HZ2)ANDC OANDJ KANDJ DAND大盘线 36ANDC HZ4,L*1.09, ● ),COLORYELLOW; DRAWTEXT(CROSS(短波,HZ2)ANDC OANDJ KANDJ DAND大盘线 36ANDC HZ4,L*1.12, 做趋势 ),COLORYELLOW; DRAWTEXT(CROSS(短波,HZ2),C, ♂ DRAWTEXT(CROSS(中波,HZ4),C, ♂ DRAWTEXT(CROSS(中波,MA120),C, ♂ A1:=DATE =1070615; A2:=(100*(CLOSE-(MA(CLOSE,30))))/(MA(CLOSE,30)); A3:=100-((90*((HHV(HIGH,20))-CLOSE))/((HHV(HIGH,20))-(LLV(LOW,20)))); A4:=100-(MA(((100*((HHV(HIGH,6))-CLOSE))/((HHV(HIGH,6))-(LLV(LOW,6)))),28)); A5:=MA(A4,6); A6:=(3*(SMA((((CLOSE-(LLV(LOW,27)))/((HHV(HIGH,27))-(LLV(LOW,27))))*100),5,1)))-(2*(SMA((SMA((((CLOSE-(LLV(LOW,27)))/((HHV(HIGH,27))-(LLV(LOW,27))))*100),5,1)),3,1))); A7:=(10); 百万测底:((CROSS(A6,A7))*75)*A1,LINETHICK2,COLOR0000FF; A8:=(REF(CLOSE,1))/CLOSE; A9:=MIN((MA(((AMOUNT/VOL)/100),15)),(EMA(((AMOUNT/VOL)/100),15))); A10:=((1-((SMA(((LOW*A8)-(A8/10)),6,1))/(EMA(((AMOUNT/VOL)/100),15))))*100)-(100/10); A11:=((((1-((MA((LOW-(A8/10)),6))/A9))*(DMA(CLOSE,(VOL/CAPITAL))))/(MA(LOW,6)))*100)-(100/10); A12:=((((A10+(A11/10)) 0)AND(DATE 1000101))AND(DATE 1991231))AND((COUNT((((1-(CLOSE/(REF(CLOSE,1)))) 0.099)AND((1-((REF(CLOSE,1))/(REF(CLOSE,2)))) 0.099)),20)) A13:=(((((((A10+(A11/10)) -3.688)AND(DATE 1000101))AND(DATE 1991231))AND((CLOSE/(REF(CLOSE,1))) 1.02))AND((COUNT((((1-(CLOSE/(REF(CLOSE,1)))) 0.099)AND((1-((REF(CLOSE,1))/(REF(CLOSE,2)))) 0.099)),20)) 3))AND(((REF(CLOSE,1))/(REF(CLOSE,2))) 0.95))AND((CLOSE/(HHV(HIGH,20))) 0.855); 灵桥黑马:((IF(((((100 100)AND((A10+(A11/10)) 0))AND(DATE 1000101))AND(DATE 1991231)),(A12=1),(A13=1)))*100)*A1,LINETHICK2,COLORRED; A14:=EMA(CLOSE,8); A15:=EMA(A14,20); A16:=CROSS(A14,A15); A17:=A14 (EMA(CLOSE,120)); 大波黑马起步:((A16ANDA17)*75)*A1,LINETHICK2,COLORYELLOW; A18:=SUM((IF((CLOSE (REF(CLOSE,1))),VOL,(IF((CLOSE (REF(CLOSE,1))),(0-VOL),0)))),0); A19:=SUMBARS(VOL,CAPITAL); A20:=(IF((CLOSE (LLV(CLOSE,A19))),1,-1))*(IF((A18 (LLV(A18,A19))),1,-1)); A21:=IF((A20=-1),1,0); A22:=(COUNT((A21=1),8)) A23:=((SUM(AMOUNT,13))/((AMOUNT/VOL)/100))/100; A24:=DMA((((((3*HIGH)+LOW)+OPEN)+(2*CLOSE))/7),(VOL/A23)); A25:=(((CLOSE-A24)/A24)*100) A26:=((CLOSE-(MIN(((REF(CLOSE,5))*0.865),((REF(CLOSE,21))*0.772))))/CLOSE) 0.05; A27:=REF(LOW,1); A28:=((SMA(ABS((LOW-A27)),3,1))/(SMA((MAX((LOW-A27),0)),3,1)))*100; A29:=EMA((IF((CLOSE*1.2),(A28*10),(A28/10))),3); A30:=LLV(LOW,38); A31:=HHV(A29,38); A32:=IF((LLV(LOW,90)),1,0); A33:=((EMA((IF((LOW =A30),((A29+(A31*2))/2),0)),3))/618)*A32; (STICKLINE(A33,0,A33,6,1)); 底部不买你后悔:(IF(((A25ANDA26)ANDA22),60,0))*A1; RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100; 短线:SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLOR00FF00; 中线:SMA(RSV2,5,1)+2*STD(CLOSE,37),COLORRED; RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; 长线:SMA(RSV3,5,1),COLORYELLOW; 看底:STICKLINE(中线 15,中线,15,6,0),COLORF00FF0; 黄金坑:STICKLINE(短线 20AND中线 20AND长线 20,MAX(长线,MAX(短线,中线)),20,8,0),COLOR00CCFF; 看顶:STICKLINE(中线 80,80,中线,6,0),COLORFFF000; DRAWICON(CROSS(长线,15),中线,1); DRAWTEXT(LONGCROSS(中线,20,15),20, 追涨 DRAWTEXT(CROSS(短线,长线)AND长线 18AND长线 REF(长线,1)ORCROSS(长线,5),20, 千载难逢 粘合星:DRAWTEXT(ABS(中线-长线) 2AND中线 REF(中线,1),中线, * 中线2:=-100*(HHV(HIGH,40)-CLOSE)/(HHV(HIGH,40)-LLV(LOW,40)); 底:DRAWTEXT(CROSS(中线2,-90)AND(长线 中线AND长线 REF(长线,1)OR短线 20AND中线 20AND长线 20),长线, 底 ),COLORFF00FF; IF(COUNT(CROSS(中线2,-90),12)=3,30,5); IF(COUNT(CROSS(-5,中线2),12)=3ORCOUNT(CROSS(-15,中线2),6)=3,70,100); LC:=REF(CLOSE,1); RSI5:=((SMA(MAX((CLOSE-LC),0),5,1)/SMA(ABS((CLOSE-LC)),5,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); 0,COLORFF00FF; WR10:=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10))); NEWVOL:=(RSI5-WR10); 阶段底部:=(AV+NEWVOL); STICKLINE((阶段底部 0),0,-10,0.8,1),LINETHICK6,COLORYELLOW; 趋势线:=LLV(阶段底部,1),COLORWHITE,LINETHICK0; STICKLINE(CROSS(阶段底部,0),0,-10,0.8,1),LINETHICK6,COLORRED; STICKLINE((趋势线 230),100,90,0.3,1),LINETHICK6,COLORGREEN; LOWV:=LLV(LOW,9); HIGHV:=HHV(HIGH,9); RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3); K:EMA(RSV,3),CIRCLEDOT; D:MA(K,3),CIRCLEDOT; STICKLINE(K D,K,D,2.5,0),COLORRED,LINETHICK2; STICKLINE(D K,K,D,2.5,0),COLORGREEN,LINETHICK2; 逃顶线:90,COLORGREEN; 中轴线:50,COLORRED; 抄底线:10,COLORGREEN; DRAWICON(CROSS(K,D),12,1)COLORRED; DRAWICON(CROSS(D,K),88,2)COLORGREEN; r0:=((IF(ISNULL(ZDMR[-1]),0,ZDMR)+IF(ISNULL(BDMR[-1]),0,BDMR))-(IF(ISNULL(ZDMC[-1]),0,ZDMC)+IF(ISNULL(BDMC[-1]),0,BDMC)))/SHGZG*100; MA5:=MA(r0,5); //超买:3.2,coloryellow;//让位趋势决策线 //超卖:0.5,coloryellow;//让位花神线 最小值:=LLV(LOW,10); 最大值:=HHV(HIGH,25); 波动线:=EMA((CLOSE-最小值)/(最大值-最小值)*4,4); 平均线:EMA(波动线,3); 主力攻击:=r0-(ABS(REF(r0,1))+ABS(REF(r0,2))+ABS(REF(r0,3))+ABS(REF(r0,4))+ABS(REF(r0,5))/2) 0AND平均线 =REF(平均线,1)ANDREF(平均线,1) REF(平均线,2); 主力撤退:=-((r0+(ABS(REF(r0,1))+ABS(REF(r0,2))+ABS(REF(r0,3))+ABS(REF(r0,4))+ABS(REF(r0,5))/2) 0)AND平均线 =REF(平均线,1)ANDREF(平均线,1) REF(平均线,2)); DRAWTEXT(主力攻击 0,1.5, 主进 ),colorred; DRAWTEXT(主力撤退 0,2.8, 主退 ),colorgreen; 信息:=平均线 =REF(平均线,1); 走强:=CLOSE MA(CLOSE,20)ANDCLOSE MA(CLOSE,5); 走弱:=CLOSE MA(CLOSE,10)ANDCLOSE MA(CLOSE,5); 量:=VOL MA(VOL,5); STICKLINE(平均线 =REF(平均线,1),波动线,REF(波动线,1),5,0),colorred; STICKLINE(平均线 REF(平均线,1),波动线,REF(波动线,1),5,0),colorgreen; d:=信息=1ANDREF(信息,1)=0AND(REF(信息,2)+REF(信息,3)=0)AND平均线 s:=信息=1ANDREF(信息,1)=0AND(REF(信息,2)+REF(信息,3)=0)AND走强=1ANDREF(走强,1)=0AND量=1; dd:=平均线 2AND(信息=0ANDREF(信息,1)=1)AND(REF(信息,2)+REF(信息,3)=2); tz:=(信息=0ANDREF(信息,1)=1)AND(REF(信息,2)+REF(信息,3)=2)ANDMA5 0AND走弱=1AND平均线 DRAWTEXT(d=1,1.75, 极底 ),colorred; DRAWTEXT(s=1,平均线, 升 DRAWTEXT(dd=1,平均线, 顶 DRAWTEXT(tz=1,平均线, 下 PARTLINE(平均线,平均线 =REF(平均线,1),colorred,平均线 REF(平均线,1),colorgreen); ////机构建仓//// LC:=REF(CLOSE,1); RSI5:=((SMA(MAX((CLOSE-LC),0),5,1)/SMA(ABS((CLOSE-LC)),5,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); WR10:=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10))); Zcjl:=(RSI5-WR10); 最佳买入:=(AV+Zcjl); 最佳买入选股:=IF(CROSS(最佳买入,0),1,0); VAR5:=SMA(最佳买入选股,3,1); VAR6:=SMA(VAR5,3,1); VAR7:=SMA(VAR6,3,1); 建仓买点:=IF(CROSS(VAR6,VAR7)AND(VAR6 40),5,0); DRAWTEXT(建仓买点,0.75, 建仓 ),colorred; ////机构利器//// VAR8:=REF(CLOSE,2); 会员:=SMA(MAX(CLOSE-VAR8,0),7,1)/SMA(ABS(CLOSE-VAR8),7,1)*100; 逃亡:=IF(会员 REF(会员,1)AND会员 79,会员,0); DRAWTEXT(逃亡,3.1, 逃 ),coloryellow; DRAWTEXT(88 0ANDREF(O,1)/REF(C,1) 1.04ANDREF(L,1) =688ANDO REF(C,1)ANDC REF(O,1)ANDC/O =1.01,1, 见底 ),colorlired; DRAWTEXT(C-O =0ANDO/L 1.05ANDL =LLV(L,20),1, 绝底 ),colorred; ///主力吸货//// VAR11:=REF(LOW,1); VAR12:=SMA(ABS(LOW-VAR11),3,1)/SMA(MAX(LOW-VAR11,0),3,1)*100; VAR13:=EMA(IF(CLOSE*1.2,VAR12*10,VAR12/10),3); VAR14:=LLV(LOW,38); VAR15:=HHV(VAR13,38); VAR16:=IF(LLV(LOW,90),1,0); VAR17:=EMA(IF(LOW =VAR14,(VAR13+VAR15*2)/2,0),3)/618*VAR16; Cdxs:=HHV(VAR17,0)/2.6; STICKLINE(VAR17,0.53,VAR17/Cdxs+0.53,1,0),colorwhite; ////马上成功//// Hua:=(CLOSE-LLV(LOW,14))/(HHV(HIGH,14)-LLV(LOW,14))*1.2*CLOSE; Nv1:=EMA(Hua,4); Nv2:=EMA(Hua,8); DRAWICON(CROSS(Nv1,Nv2)ANDCLOSE/OPEN 1.05,0.5,1); DRAWICON(CROSS(Nv2,Nv1)ANDCOUNT(CROSS(Nv1,Nv2)ANDCLOSE/OPEN 1.05,20),3.2,2); ////必涨之星//// Hua2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),16,2)/SMA(ABS(CLOSE/REF(CLOSE,1)),16,2)*100; Xian=SMA(Hua2,3,1); Nv3:=SMA(Xian,3,1); XiNv=3*Xian-2*Nv3; 买入条件:=CROSS(XiNv,Nv3); 卖出条件:=CROSS(Nv3,XiNv); DRAWICON(卖出条件,3.3,2),coloryellow; DRAWICON(买入条件,0.4,222),colorwhite;//必涨之星 Hxn:=IF(CLOSE/REF(CLOSE,1) 1.05ANDHIGH/CLOSE 1.01ANDIF(CLOSE REF(CLOSE,1),88,0) 0,91,0);//花仙女涨停 DRAWTEXT(Hxn 90ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1)ANDCOUNT(Hxn 90,30)=1,平均线-0.25, 见涨 ),,colorlired; Hxjz:=MA((2*CLOSE+HIGH+LOW)/4,5);//花仙女绝招 Bztd:=Hxjz*89/100; DRAWTEXT(CROSS(LOW,Bztd),1.25, 必涨 ),colorred; ////花神//// 花:=EMA(SLOPE(1,1)+C,3),colorred; 女:=EMA(SLOPE(1,1)+C,7),colorblue; STICKLINE(花 女,0.5,0.53,12,0),colorred;//花神线,红色开始为买 STICKLINE(花 =女,0.5,0.53,12,0),colorgreen;//花神线,绿色开始为卖 ///资金抄底/// rj:=((ZDMR[-1]+BDMR[-1])-(ZDMC[-1]+BDMC[-1]))/SHGZG*100;//大单净量 RSI$1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100; RSI$2:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100; RSI$3:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100; 相对强弱:=0.5*RSI$1+0.31*RSI$2+0.19*RSI$3; wave$1:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),3,1); wave$2:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),5,1); wave$3:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),8,1); 短线波段:=0.5*wave$1+0.31*wave$2+0.19*wave$3; 风险系数:=0.5*相对强弱+0.5*短线波段,coloryellow; CD1:=IF(风险系数 20ANDCLOSE OPENANDrj 0,1,0);//波段小于20,股价翻红; CD2:=IF(风险系数 20ANDLOW =REF(LOW,1)ANDCLOSE LOWANDrj 0,1,0);//波段小于20,股价未翻红,但未创新低; CD3:=IF(REF(风险系数,1) 20AND风险系数 REF(风险系数,1),1,0);//前一日波段小于20,今日转向; SIGNALBUY=(CD1=1ORCD2=1ORCD3=1); cd=(SIGNALBUYANDCOUNT(SIGNALBUY,3)=1); DRAWTEXT(cd,0.5, 抄底 ),COLOR0099FF; ///金叉共振/// DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100; DEA:=EMA(DIF,9); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,9,3); D:=SMA(K,9,3); GZ:=CROSS(DIF,DEA)ANDCROSS(K,D); DRAWTEXT(GZ,2, 金叉 ),COLOR0099FF; ////趋势决策//// 大单净差BBD:=BIGBUYCOUNT1+WAITBUYCOUNT1-BIGSELLCOUNT1-WAITSELLCOUNT1; DIFF:=EMA(大单净差BBD,2)-EMA(大单净差BBD,4),coloryellow; DIFF2:=EMA(大单净差BBD,6)-EMA(大单净差BBD,12),coloryellow; m34:=MA(C,34); m5:=MA(C,5); r5:=COUNT(大单净差BBD 0,5); r6:=COUNT(大单净差BBD 0,6); A1:=IF(C REF(C,2)*1.0200,1,0); a2:=IF(C REF(C,2)*1.0050,1,0); a3:=IF(C REF(C,2)*0.0985,1,0); a4:=IF(C REF(C,2)*0.0970,1,0); a5:=IF(DIFF 0,2,0); a6:=IF(DIFF2 0,2,0); a7:=IF(C m34,2,0); a8:=IF(C m5,2,0); a9:=IF(r5 3,2,0); a10:=IF(r6 3,1,0); az:=A1+a2+a3+a4+a5+a6+a7+a8+a9+a10; IF(C m5) green:=C ELSEIF(az 2.5) red:=az ELSEgreen:=az ENTERLONG:=(REF(green,1)=1ANDred=1)ANDCOUNT(REF(green,1)=1ANDred=1,BARSLAST(REF(red,1)=1ANDgreen=1))=1; EXITLONG:=REF(red,1)=1ANDgreen=1ANDCOUNT(REF(red,1)=1ANDgreen=1,BARSLAST(REF(green,1)=1ANDred=1))=1; IF(C m5){STICKLINE(C m5,3.2,3.22,12,0),colorgreen;} ELSEIF(az 2.5){STICKLINE(az 2.5,3.2,3.22,12,0),colorred;} ELSEIF(az =2.5){STICKLINE(az =2.5,3.2,3.22,12,0),colorgreen;} DRAWTEXT_FIX(1,0.01,0.2,0, 趋势决策线 ),colormagenta; DRAWTEXT_FIX(1,0.01,1.1,0, 花神线 ),colormagenta;每日公式解答:股票公式编写要求:股票公式编写结果:SUM((C/REF(C,1)-1)*100,30)