{公式名称: 箱体捉妖专Z 公式描述: 箱体捉妖专业版 参数数量: 1 参数1: M1, 最小: 2, 最大: 100, 缺省: 3 公式类型: 技术指标公式-其他类型 画线方法: 主图叠加 公式源码:} DRAWGBK(ISLASTBAR,RGB(60,60,60),RGB(0,0,0),0,11,0); VAR1:=STRCAT(STRCAT(STRCAT(13,STKNAME),14),CODE); DRAWTEXT_FIX(ISLASTBAR,0.8,0,0,VAR1),COLORYELLOW; 更多精准指标:INDEXADV,NODRAW,COLORMAGENTA; 联系:INDEXADV,NODRAW,COLORYELLOW; QQ2843556704:INDEXADV,NODRAW,COLORMAGENTA; VAR2:=2; VAR3:=30; MA(HIGH,VAR3)*(1+13/100)*1.0382,COLORYELLOW; MA(HIGH,VAR3)*(1+13/100),COLORYELLOW; EMA(LOW,30)*(1-15/100),NODRAW,COLORGREEN; EMA(LOW,30)*(1-15/100)*0.82,NODRAW,COLORGREEN; GUAIXIANTAITOU:(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10,COLORWHITE,LINETHICK2; VAR4:=(HIGH+LOW+OPEN+CLOSE)/4; VAR5:=EMA(VAR4,13)-EMA(VAR4,34); VAR6:=EMA(VAR5,5); VAR7:=(VAR5-VAR6)*5; VAR8:=IF(VAR7>=1000,1000,IF(VAR7<=VAR4,VAR4,VAR7)); VAR9:=FORCAST(FORCAST(VAR8,32),10); VAR10:=(CLOSE-EMA(CLOSE,13))/EMA(CLOSE,13)*(0-100); VAR11:=EMA(VAR10/10+EMA(CLOSE,13),8); VAR12:=EMA(CLOSE,3); VAR13:=EMA(SLOPE(CLOSE,22)*20+CLOSE,45); VAR14:=IF(PERIOD>8 AND PERIOD<11,MA(VAR13,1),IF(PERIOD=8,MA(VAR13,4),IF(PERIOD=7,MA(VAR13,8),IF(PERIOD=6,MA(VAR13,16),IF(PERIOD=5,MA(VAR13,32),0))))); VAR15:=VAR14*0.865; VAR16:=IF(VAR12>VAR14,VAR12,VAR15); 买卖线:REVERSE(VAR16)+2*VAR9,COLORMAGENTA; DRAWTEXT(ISLASTBAR,买卖线,15),COLORMAGENTA; 拐点:IF(EMA((1-CLOSE/SMA(CLOSE,5,1))*100*CLOSE/100+EMA(CLOSE,13),9)<GUAIXIANTAITOU AND GUAIXIANTAITOU>买卖线,EMA((1-CLOSE/SMA(CLOSE,5,1))*100*CLOSE/100+EMA(CLOSE,13),9),GUAIXIANTAITOU),COLORRED,LINETHICK2; IF(GUAIXIANTAITOU<=买卖线,GUAIXIANTAITOU,DRAWNULL),COLORGREEN,LINETHICK3; DRAWTEXT(ISLASTBAR,拐点,16),COLORRED; VAR17:=CLOSE*VOL; VAR18:=EMA((EMA(VAR17,3)/EMA(VOL,3)+EMA(VAR17,6)/EMA(VOL,6)+EMA(VAR17,12)/EMA(VOL,12)+EMA(VAR17,24)/EMA(VOL,24))/4,13); VAR19:=1.06*VAR18; VAR20:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>8.5; VAR21:=EMA(HIGH,10)*(1+5/100); 捉妖:CROSS(GUAIXIANTAITOU,MA(HIGH,30)*(1+13/100))*10,NODRAW; VAR22:=(CLOSE-OPEN)/REF(CLOSE,1)*100; VAR23:=REF(HIGH,VAR2)=HHV(HIGH,2*VAR2+1); VAR24:=FILTER(VAR23,VAR2); VAR25:=BACKSET(VAR24,VAR2+1); VAR26:=FILTER(VAR25,VAR2); VAR27:=REF(LOW,VAR2)=LLV(LOW,2*VAR2+1); VAR28:=FILTER(VAR27,VAR2); VAR29:=BACKSET(VAR28,VAR2+1); VAR30:=FILTER(VAR29,VAR2); VAR31:=(REF(LLV(LOW,2*VAR2),1)+REF(HHV(HIGH,2*VAR2),1))/2; VAR32:=(HIGH+LOW)/2; VAR33:=VAR26 AND NOT(VAR30 AND VAR31>=VAR32) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1; VAR34:=VAR30 AND NOT(VAR26 AND VAR31<VAR32); VAR35:=REF(BARSLAST(VAR33),1)+1; VAR36:=BACKSET(VAR33 AND COUNT(VAR34,VAR35)>0,LLVBARS(IF(VAR34,LOW,10000),VAR35)); VAR37:=VAR36>REF(VAR36,1); VAR38:=BACKSET(VAR37,2); VAR39:=VAR38>REF(VAR38,1); VAR40:=VAR39 OR ISLASTBAR OR BARSCOUNT(CLOSE)=1; VAR41:=REF(BARSLAST(VAR40),1)+1; VAR42:=BACKSET(VAR40 AND COUNT(VAR26 AND NOT(VAR30 AND VAR31>=VAR32),VAR41)>0,HHVBARS(IF(VAR26 AND NOT(VAR30 AND VAR31>=VAR32),HIGH,0),VAR41)); VAR43:=VAR42>REF(VAR42,1); VAR44:=BACKSET(VAR43,2); VAR45:=VAR44>REF(VAR44,1); VAR46:=BACKSET(ISLASTBAR,BARSLAST(VAR45)+1); VAR47:=VAR46>REF(VAR46,1); VAR48:=BACKSET(VAR47,REF(BARSLAST(VAR45),1)+2); VAR49:=VAR48>REF(VAR48,1); 短期压力:DRAWLINE(VAR49,HIGH,VAR47,HIGH,1),NODRAW,COLORGREEN; STICKLINE(GUAIXIANTAITOU>=买卖线,CLOSE,HIGH,0,0),COLORRED; STICKLINE(GUAIXIANTAITOU>=买卖线 AND CLOSE>OPEN,CLOSE,OPEN,2.5,1),COLORRED; STICKLINE(GUAIXIANTAITOU>=买卖线,LOW,OPEN,0,0),COLORRED; STICKLINE(GUAIXIANTAITOU>=买卖线 AND CLOSE<=OPEN,OPEN,CLOSE,3,1),COLORRED; STICKLINE(GUAIXIANTAITOU>=买卖线 AND CLOSE<=OPEN,OPEN,CLOSE,1,0),COLORAAAA00; STICKLINE(GUAIXIANTAITOU<买卖线 AND CLOSE<=OPEN,CLOSE,OPEN,1.5,0),COLORCYAN; STICKLINE(GUAIXIANTAITOU<买卖线 AND CLOSE<=OPEN,OPEN,HIGH,0,0),COLORCYAN; STICKLINE(GUAIXIANTAITOU<买卖线 AND CLOSE<=OPEN,LOW,CLOSE,0,0),COLORCYAN; STICKLINE(GUAIXIANTAITOU<买卖线 AND CLOSE>=OPEN,LOW,OPEN,0,0),COLORCYAN; STICKLINE(GUAIXIANTAITOU<买卖线 AND CLOSE>=OPEN,CLOSE,HIGH,0,0),COLORCYAN; STICKLINE(GUAIXIANTAITOU<买卖线 AND CLOSE>=OPEN,OPEN,CLOSE,2.5,1),COLORCYAN; STICKLINE(VAR20>0 AND CROSS(MA(CLOSE,1),VAR21) AND CROSS(MA(CLOSE,1),VAR19),(LOW+HIGH+OPEN)/3,OPEN,3,0),COLORRED; STICKLINE(VAR20>0 AND CROSS(MA(CLOSE,1),VAR21) AND CROSS(MA(CLOSE,1),VAR19),(HIGH+OPEN)/2,CLOSE,3,0),COLORYELLOW; STICKLINE(VAR20>0 AND CROSS(MA(CLOSE,1),VAR21) AND CROSS(MA(CLOSE,1),VAR19),(HIGH+OPEN)/2,(LOW+HIGH+OPEN)/3,3,0),COLORBLUE; STICKLINE(CROSS(GUAIXIANTAITOU,MA(HIGH,30)*(1+13/100)),MA(HIGH,30)*(1+13/100),MA(HIGH,30)*(1+13/100)*1.0052,8,0),COLORYELLOW; STICKLINE(CLOSE>=REF(CLOSE,1)*1.095 AND CLOSE=OPEN AND LOW<CLOSE,CLOSE,OPEN,5,0),COLORWHITE; STICKLINE(CLOSE>=REF(CLOSE,1)*1.095 AND CLOSE=OPEN AND LOW<CLOSE,CLOSE,LOW,0,0),COLORWHITE; STICKLINE(VAR22>7.5 AND REF(VAR22,1)<(-5) AND CLOSE>REF(OPEN,1),HIGH,LOW,0,0),COLORFF0099; STICKLINE(VAR22>7.5 AND REF(VAR22,1)<(-5) AND CLOSE>REF(OPEN,1),CLOSE,OPEN,3,0),COLORFF0099; DRAWTEXT(CROSS(GUAIXIANTAITOU,买卖线),LOW*0.98,17),COLORYELLOW,LINETHICK3; DRAWTEXT(CROSS(买卖线,GUAIXIANTAITOU),HIGH*1.02,18),COLORGREEN,LINETHICK3; DRAWTEXT(FILTER(CROSS(GUAIXIANTAITOU,EMA((1-CLOSE/SMA(CLOSE,5,1))*100*CLOSE/100+EMA(CLOSE,13),9)),10),GUAIXIANTAITOU,19),COLORYELLOW; DRAWTEXT(VAR20>0 AND CROSS(MA(CLOSE,1),VAR21) AND CROSS(MA(CLOSE,1),VAR19),(HIGH+OPEN)/2,20),COLORYELLOW; DRAWTEXT(FILTER(CROSS(GUAIXIANTAITOU,MA(HIGH,30)*(1+13/100)),5),MA(HIGH,30)*(1+13/100)*0.88,21),COLORYELLOW; VAR50:=IF(YEAR>=2019 AND MONTH>3,0,1); VAR51:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4+1.88*STD((MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,9)*VAR50; 急拉涨停线:MA(VAR51,12)*1.06*VAR50,COLORCYAN,LINETHICK2; VAR52:=EMA(HIGH,10)*(1+5/100); VAR53:=CLOSE*VOL; VAR54:=EMA((EMA(VAR53,3)/EMA(VOL,3)+EMA(VAR53,6)/EMA(VOL,6)+EMA(VAR53,12)/EMA(VOL,12)+EMA(VAR53,24)/EMA(VOL,24))/4,13); VAR55:=1.06*VAR54; VAR56:=LOW/((HIGH+REF(CLOSE,1)+OPEN)/3)*CLOSE; DRAWTEXT(CROSS(VAR56,VAR55) AND CLOSE>VAR52 AND CLOSE>急拉涨停线,LOW,22),COLORYELLOW; VAR57:=5; VAR58:=3; VAR59:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10; VAR60:=IF(YEAR>=2025,0,1); VAR61:=EMA(EMA(LOW,21)+6.8*STD(LOW,2),55); VAR62:=EMA(CLOSE/VAR61*(1.88*CLOSE+LOW+OPEN)/2.75,3); VAR63:=(VAR62-VAR61)/VAR61/2; VAR64:=EMA(VAR62-VAR63*VAR62,5)*VAR60; 黄金轨道:IF(VAR59>VAR64,VAR59,VAR64)*VAR60,NODRAW,COLORRED; 上轨:IF(VAR64<VAR59 AND VAR64<CLOSE*0.15,EMA(CLOSE,300)-3*STD(CLOSE,300),VAR64),NODRAW,COLORYELLOW; IF(VAR64>VAR59,上轨,DRAWNULL),NODRAW,COLORCYAN; VAR65:=SMA(MAX(CLOSE-REF(CLOSE,1),0),24,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),24,1)*100*VAR60; VAR66:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100; VAR67:=(EMA(CLOSE,60)+EMA(CLOSE,120)+EMA(CLOSE,240)+EMA(CLOSE,480))/4; VAR68:=VAR67+1.91*STD(VAR67,3); VAR69:=EMA(VAR68,12)*1.23; STICKLINE(VAR65>65 AND VAR66>=65 AND MA(CLOSE,1)>VAR69,HIGH,LOW,0,0),COLORRED; STICKLINE(VAR65>=64.5 AND VAR66>=65 AND MA(CLOSE,1)>VAR69,CLOSE,OPEN,3,0),COLORRED; VAR70:=(LOW+HIGH)/2; VAR71:=EMA((CLOSE+LOW+HIGH)/3,1); STICKLINE(VAR65>=64.5 AND VAR66>=65 AND MA(CLOSE,1)>VAR69 AND MA(CLOSE,1)>MA(HIGH,30)*(1+15/100),OPEN,(VAR70+LOW)/2,3,0),COLORYELLOW; STICKLINE(CLOSE>MA(HIGH,30)*(1+18/100) AND CLOSE>VAR64 AND VAR65>64.5,VAR71,VAR70,3,0),COLORWHITE; VAR72:=100*(CLOSE-REF(CLOSE,12))/REF(CLOSE,12); VAR73:=((HIGH+LOW+CLOSE)/3-MA((HIGH+LOW+CLOSE)/3,88))/(0.015*AVEDEV((HIGH+LOW+CLOSE)/3,88)); VAR74:=1.07*DMA(CLOSE,ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,26))/MA(CLOSE,26)); VAR75:=MA(ATAN(VAR74-REF(VAR74,1)),3); VAR76:=IF(CLOSE>OPEN OR CLOSE<OPEN AND HIGH>=REF(CLOSE,1),ATAN(MA(HIGH,5)*1.02-REF(MA(CLOSE,5)*1.02,1)),0); VAR77:=IF(CLOSE>OPEN OR CLOSE<OPEN AND HIGH<REF(CLOSE,1),-ATAN(REF(MA(CLOSE,5)*1.02,1)-MA(HIGH,5)*1.02),0); VAR78:=MA(REF(VAR76+VAR77,1),26); VAR79:=VAR75>VAR78 AND VAR75>REF(VAR75,1); VAR80:=VAR79 AND VAR73>200 AND VAR72>20 AND CLOSE>REF(CLOSE,1); DRAWTEXT(VAR80,LOW*0.95,23),COLORYELLOW,LINETHICK2; VAR81:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,20))/EMA(CLOSE,20)); VAR82:=DMA((2.15*CLOSE+LOW+HIGH)/4,VAR81); 走强线:EMA(VAR82,200)*1.118,COLORRED; DRAWTEXT(ISLASTBAR,走强线,24),COLORRED; VAR83:=EMA((EMA(CLOSE,29)+EMA(CLOSE,31)+EMA(CLOSE,33))/3,3); 轴线:REF(VAR83,1),COLORWHITE; {公式名称: 箱体捉妖专F1 公式描述: 箱体捉妖专业版 公式类型: 技术指标公式-其他类型 画线方法: 副图 } DRAWGBK(ISLASTBAR,RGB(60,60,60),RGB(0,0,0),0,11,0); 更多精准指标:INDEXADV,NODRAW,COLORMAGENTA; 联系:INDEXADV,NODRAW,COLORYELLOW; QQ28:INDEXADV,NODRAW,COLORMAGENTA; VAR1:=EMA((CLOSE-REF(CLOSE,1))/REF(CLOSE,3),10)*100; VAR2:=EMA(EMA(EMA(EMA(VAR1,2),2),2),3); VAR3:=(CLOSE-MA(CLOSE,26))/MA(CLOSE,26)*100; 0,LINETHICK2; VAR4:=IF(YEAR>=2020,0,1); 黄金坑:IF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100<(-15),MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,0)*VAR4,COLOR00F600,LINETHICK2; A5:IF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100>0 AND MA(CLOSE,5)>MA(CLOSE,10) AND VAR3>EMA(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,5) AND VAR2>REF(VAR2,1),MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,0)*VAR4; 持股线:(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100>0 AND MA(CLOSE,5)>MA(CLOSE,10) AND VAR3>EMA(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,5) AND DYNAINFO(17)>0)*A5*VAR4,COLORRED; VAR5:=MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100; STICKLINE(VAR5<(-20) AND VAR5>REF(VAR5,1)*VAR4,VAR5,(-6),4,0),COLORC8C8FA; STICKLINE(VAR5<(-20),VAR5,(-6),4,0),COLOR00C8FA; STICKLINE(VAR5<(-20),0,(-6),4,0),COLOR00C800; STICKLINE(VAR5<(-20) AND VAR5>REF(VAR5,1)*VAR4,0,(-6),4,0),COLOR6464FA; VAR6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; VAR7:=VAR6+3*STD(VAR6,10); VAR8:=MA(CLOSE,26)+2*STD(CLOSE,26); 买点:(VOL>0 AND BARSLASTCOUNT(A5>0)=1 AND VAR2>REF(VAR2,1))*A5,NODRAW,COLORBLUE; STICKLINE(买点,买点,0,3,0),COLOR990000; DRAWTEXT(VOL>0 AND BARSLASTCOUNT(A5>0)=1 AND VAR2>REF(VAR2,1),(-6),32),COLORYELLOW; VAR9:=(VOL>0 AND A5>0 AND VAR2>REF(VAR2,1))*EMA(A5,5); STICKLINE(VAR9,VAR9,0,2,0),COLORRED; VAR10:=(VOL>0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(EMA(CLOSE,2),HHV(EMA(CLOSE,5),26)))*EMA(A5,2); STICKLINE(VAR10,VAR10,0,3,0),COLORWHITE; VAR11:=(VOL>0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(EMA(CLOSE,2),HHV(EMA(CLOSE,5),26)))*(-3); STICKLINE(VAR11,VAR11,0,6,0),COLORYELLOW; STICKLINE(VAR11,VAR11,0,2,0),COLOR005555; STICKLINE(VAR11,VAR11,0,1,0),COLOR007777; STICKLINE(VAR11,VAR11,0,0.2,0),COLOR009999; 卖点:(VOL>0 AND CROSS(0.5,持股线))*REVERSE(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100)*VAR4,COLORGREEN; STICKLINE(卖点,卖点,0,3,0),COLOR009900; 短线起爆:(VOL>0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(EMA(CLOSE,2),HHV(EMA(CLOSE,5),26)))*10*VAR4,NODRAW; VAR12:=(VOL>0 AND EMA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),2)>MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4) AND MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4)>REF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4),1) AND SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100>64.5 AND EMA(CLOSE,1)>(VAR7 OR VAR8))*EMA(A5,5)/2.5*VAR4; STICKLINE(VAR12,VAR12,0,3,0),COLORYELLOW; VAR13:=(VOL>0 AND EMA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),2)>MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4) AND MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4)>REF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4),1) AND (VOL>0 AND A5>0 AND VAR2>REF(VAR2,1))*EMA(A5,5)=0)*VAR3*VAR4; STICKLINE(VAR13,VAR13,0,3,0),COLORLIBLUE; DRAWBMP(短线起爆<0,(-3),33); IF(EMA(CLOSE,2)>HHV(EMA(CLOSE,5),26) AND A5>0*VAR4,持股线,DRAWNULL),COLORMAGENTA,LINETHICK3; VAR14:=EMA((EMA(CLOSE*VOL,3)/EMA(VOL,3)+EMA(CLOSE*VOL,6)/EMA(VOL,6)+EMA(CLOSE*VOL,12)/EMA(VOL,12)+EMA(CLOSE*VOL,24)/EMA(VOL,24))/4,13); VAR15:=1.06*VAR14*VAR4; VAR16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100; STICKLINE(VAR16>8.5 AND CROSS(MA(CLOSE,1),EMA(HIGH,10)*(1+5/100)) AND CROSS(MA(CLOSE,1),VAR15),MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100*2,MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,1,0),COLORFF0099; STICKLINE(VAR16>8.5 AND CROSS(MA(CLOSE,1),EMA(HIGH,10)*(1+5/100)) AND CROSS(MA(CLOSE,1),VAR15),MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100*1.5,MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,1,0),COLORRED; DRAWTEXT(VAR16>8.5 AND CROSS(MA(CLOSE,1),EMA(HIGH,10)*(1+5/100)) AND CROSS(MA(CLOSE,1),VAR15)>0,MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100*2,34),COLORYELLOW; DRAWTEXT(VOL>0 AND CROSS(0.5,持股线),5,35),COLORGREEN; 追板选股:(VAR16>8.5 AND CROSS(MA(CLOSE,1),EMA(HIGH,10)*(1+5/100)) AND CROSS(MA(CLOSE,1),VAR15))*10,NODRAW; {股民学院 www.58188.com 整理} {公式名称: 箱体捉妖专F2 公式描述: 箱体捉妖专业版 公式类型: 技术指标公式-其他类型 画线方法: 副图} DRAWGBK(ISLASTBAR,RGB(60,60,60),RGB(0,0,0),0,11,0); 更多精准指标:INDEXADV,NODRAW,COLORMAGENTA; 联系:INDEXADV,NODRAW,COLORYELLOW; QQ24:INDEXADV,NODRAW,COLORMAGENTA; VAR1:=BARSLAST((EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10>MA(HIGH,30)*(1+13/100)!=REF((EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10>MA(HIGH,30)*(1+13/100),1)); VAR2:=SUM(IF(CLOSE>=REF(CLOSE,1),(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,0),VAR1+1); VAR3:=(HIGH+LOW+OPEN+CLOSE)/4; VAR4:=EMA(VAR3,13)-EMA(VAR3,34); VAR5:=EMA(VAR4,5); VAR6:=(VAR4-VAR5)*5; VAR7:=IF(VAR6>=1000,1000,IF(VAR6<=VAR3,VAR3,VAR6)); VAR8:=FORCAST(FORCAST(VAR7,32),10); VAR9:=(CLOSE-EMA(CLOSE,13))/EMA(CLOSE,13)*(0-100); VAR10:=EMA(VAR9/10+EMA(CLOSE,13),8); VAR11:=EMA(CLOSE,3); VAR12:=EMA(SLOPE(CLOSE,22)*20+CLOSE,45); VAR13:=IF(PERIOD>8 AND PERIOD<11,MA(VAR12,1),IF(PERIOD=8,MA(VAR12,4),IF(PERIOD=7,MA(VAR12,8),IF(PERIOD=6,MA(VAR12,16),IF(PERIOD=5,MA(VAR12,32),0))))); VAR14:=VAR13*0.865; VAR15:=IF(VAR11>VAR13,VAR11,VAR14); VAR16:=REVERSE(VAR15)+2*VAR8; 总涨幅:IF((EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10>MA(HIGH,30)*(1+13/100) AND REF(VAR16,1)<(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10 AND DYNAINFO(17)>0,VAR2,0),COLORMAGENTA,LINETHICK2; VAR17:=(总涨幅>0 AND VAR16<(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10)*总涨幅; STICKLINE(VAR17,VAR17,0,2,0),COLORRED; VAR18:=(总涨幅>0 AND 总涨幅>REF(总涨幅,1) AND VAR16<(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10)*总涨幅/2; STICKLINE(VAR18,VAR18,0,3,0),COLORYELLOW; VAR19:=(总涨幅>0 AND 总涨幅=REF(总涨幅,1) AND VAR16<(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10)*总涨幅/3; STICKLINE(VAR19,VAR19,0,3,0),COLORGREEN; VAR20:=CROSS((EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10,MA(HIGH,30)*(1+13/100))*总涨幅/1.5; STICKLINE(VAR20,VAR20,0,3,0),COLORBLUE; 起稳:IF((EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10>VAR16 AND VAR16<(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10 AND DYNAINFO(7)>0 AND (EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10<MA(HIGH,30)*(1+13/100),VAR2,0)/150,NODRAW,COLORWHITE; VAR21:=(起稳>0)*REVERSE(起稳); STICKLINE(VAR21,VAR21,0,3,0),COLORRED; VAR22:=(起稳>0 AND EMA(CLOSE,2)>MA(HIGH,30)*(1+13/100)*1.0382)*REVERSE(起稳)/1.5; STICKLINE(VAR22,VAR22,0,3,0),COLORWHITE; VAR23:=(起稳>0 AND EMA(CLOSE,2)>MA(HIGH,30)*(1+13/100)*1.0382)*起稳/1.5; STICKLINE(VAR23,VAR23,0,6,0),COLOR990033; STICKLINE(VAR23,VAR23,0,2,0),COLORCC0055; STICKLINE(VAR23,VAR23,0,1,0),COLOREE0077; STICKLINE(VAR23,VAR23,0,0.2,0),COLORFF0099; DRAWTEXT(起稳>0 AND CROSS(EMA(CLOSE,2),MA(HIGH,30)*(1+13/100)*1.0382),起稳*1.09,25),COLORWHITE; DRAWTEXT(FILTER(CROSS((EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10,MA(HIGH,30)*(1+13/100)),5),总涨幅*1.09,26),COLORYELLOW; VAR24:=(总涨幅>0 AND CROSS(VAR16,(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10))*总涨幅; STICKLINE(VAR24,VAR24,0,3,0),COLORCYAN; |