指标源码: 参数数量: 8 参数1: 急涨周期, 最小: 0, 最大: 100, 缺省: 10 参数2: 急涨幅度, 最小: 0, 最大: 100, 缺省: 40 参数3: 急跌周期, 最小: 0, 最大: 100, 缺省: 20 参数4: 急跌幅度, 最小: 0, 最大: 100, 缺省: 30 参数5: 底部周期, 最小: 0, 最大: 100, 缺省: 1 参数6: 涨幅, 最小: 0, 最大: 1000, 缺省: 7 参数7: 距离, 最小: 0, 最大: 1000, 缺省: 50 参数8: 包含处理, 最小: 0, 最大: 1, 缺省: 0 公式类型: 技术指标公式-大势型 画线方法: 主图叠加 公式版本: 1 显示小数: 缺省位数 坐标线位置: 自动 额外Y轴分界: 无 参数精灵: 请设置计算参数: 急涨周期: Param#0 (0.00--100.00) 急涨幅度: Param#1 (0.00--100.00) 急跌周期: Param#2 (0.00--100.00) 急跌幅度: Param#3 (0.00--100.00) 用法注释:无 公式源码:} VAR1:=CLOSE; VAR2:=REF(CLOSE,2); VAR3:=MA(CLOSE,5); VAR4:=MA(CLOSE,26); VAR5:=MA((3*HIGH+CLOSE)/4,2); VAR6:=FORCAST(EMA(VAR2,1),7); 短趋势:FORCAST(EMA(VAR1,16),7),COLORGREEN,LINETHICK3; 中趋势:FORCAST(EMA(VAR1,55),7),DOTLINE,COLORCYAN; NOTEXT5:IF(VAR3>短趋势 OR CLOSE>短趋势,短趋势,DRAWNULL),COLORRED,LINETHICK3; NOTEXT6:IF(短趋势>=中趋势,中趋势,DRAWNULL),DOTLINE,COLORRED; VAR7:=VAR3>短趋势 OR CLOSE>短趋势; VAR8:=短趋势>=中趋势; VAR9:=VAR7 AND VAR8; VAR10:=BARSLAST(LOW=LLV(LOW,13)); VAR11:=BARSLAST(CROSS(短趋势,中趋势)); VAR12:=CLOSE/REF(CLOSE,急涨周期)-1>=急涨幅度/100; VAR13:=REF(CLOSE,底部周期+急涨周期+急跌周期)/REF(CLOSE,急涨周期+底部周期)-1<=急跌幅度/100 AND BARSCOUNT(CLOSE)>60; 黄金坑:VAR12 AND VAR13,NODRAW,COLORMAGENTA; VAR14:=FILTER(黄金坑,10); STICKLINE(黄金坑 AND VAR14,OPEN,CLOSE,3.5,1),COLORMAGENTA; DRAWTEXT(黄金坑 AND VAR14,LOW*0.98,1),COLORMAGENTA; VAR15:=MA(CLOSE,13); VAR16:=MA(CLOSE,21); VAR17:=MA(CLOSE,34); VAR18:=MA(CLOSE,55); VAR19:=CROSS(CLOSE,VAR18)+CROSS(CLOSE,VAR15)+CROSS(CLOSE,VAR16)+CROSS(CLOSE,VAR17); 起爆:CLOSE>OPEN AND VAR19>2 AND CLOSE/REF(CLOSE,1)-1>0.049 AND CLOSE/REF(CLOSE,1)-1<0.097 AND CLOSE>MAX(VAR15,MAX(VAR16,MAX(VAR17,VAR18))) AND CLOSE>MAX(MA(CLOSE,144),MA(CLOSE,233)),NODRAW,COLORWHITE; STICKLINE(起爆,OPEN,CLOSE,3,0),COLORWHITE; DRAWTEXT(起爆,HIGH*1.01,2),COLORWHITE; VAR20:=CLOSE/REF(CLOSE,1)-1>涨幅/100; VAR21:=CLOSE/中趋势-1<距离/100; VAR22:=BARSCOUNT(CLOSE); VAR23:=CLOSE>=HHV(CLOSE,VAR22); 飞龙在天:VAR23 AND VAR20 AND VAR21 AND BARSCOUNT(CLOSE)>100,NODRAW,COLORLIMAGENTA; STICKLINE(飞龙在天,OPEN,CLOSE,3,0),COLORLIMAGENTA; DRAWTEXT(飞龙在天,HIGH*1.05,3),COLORLIMAGENTA; VAR24:=ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,2) AND CLOSE/REF(CLOSE,1)>1.0572; DRAWTEXT(VAR24 AND VAR9,LOW*0.95,4),COLORYELLOW; 抓板:VAR24 AND VAR9,NODRAW,COLORYELLOW; STICKLINE(VAR24 AND VAR9,REF(CLOSE,1)*1.05,CLOSE,2,0),COLORYELLOW; STICKLINE(VAR24 AND VAR9,OPEN,REF(CLOSE,1)*1.05,2,0),COLORRED; DRAWTEXT_FIX(ISLASTBAR,0.3,0,0,HYBLOCK),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.4,0,0,DYBLOCK),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.5,0,0,GNBLOCK),COLORYELLOW; VAR25:=LOW[LOW AND IF(REFX(HIGH,1)>HIGH,1,REFX(LOW,2)>LOW AND IF(REFX(HIGH,2)>REFX(HIGH,1),1,REFX(LOW,3)>LOW AND IF(REFX(HIGH,3)>REFX(HIGH,2),1,REFX(LOW,4)>LOW AND REFX(HIGH,4)>REFX(HIGH,3))));] VAR26:=HIGH>REF(HHV(HIGH,3),1) AND REFX(HIGH,1)VAR27:=IF(DATE<1991011,VAR25,0); VAR28:=IF(DATE<1991011,VAR26,0); DRAWICON(VAR27 AND REF(NOT(VAR28),1),LOW,1); DRAWICON(VAR28 AND REF(NOT(VAR27),1),HIGH,2); VAR29:=BACKSET(LLV(LOW,5)VAR30:=BACKSET(VAR29=0 AND REF(VAR29,1)=1,2); VAR31:=IF(VAR30=1 AND REF(VAR30,1)=0,(-1),0); VAR32:=BACKSET(HHV(HIGH,5)>REF(HHV(HIGH,4),1),4); VAR33:=BACKSET(VAR32=0 AND REF(VAR32,1)=1,2); VAR34:=IF(VAR33=1 AND REF(VAR33,1)=0,1,0); VAR35:=IF(LOW>REF(HIGH,1),1,IF(HIGHVAR36:=BARSLAST(VAR34=1); VAR37:=BARSLAST(VAR31=(-1)); VAR38:=LOWRANGE(LOW); VAR39:=TOPRANGE(HIGH); VAR40:=IF(VAR31=(-1) AND REF(VAR36,1)>REF(VAR37,1) AND LLV(LOW,VAR36+1)VAR41:=IF(VAR31=(-1) AND REF(VAR36,1)<=REF(VAR37,1) AND (VAR36>=4 OR LLV(VAR35,VAR36)=(-1) OR LLV(LOW,VAR37+2)VAR42:=IF(VAR40=(-1) OR VAR41=(-1) AND LOWVAR43:=IF(VAR37<4 AND HHV(VAR35,VAR37)!=1 OR REF(VAR42,VAR37)=0,1,0); VAR44:=IF(VAR34=1 AND REF(VAR37,1)<=REF(VAR36,1) AND VAR43=1 AND VAR39>REF(VAR38,VAR37+1) AND VAR39>REF(VAR38,VAR37) AND VAR39>REF(VAR39,VAR36),1,0); VAR45:=IF(VAR34=1 AND REF(VAR37,1)>REF(VAR36,1) AND HHV(HIGH,VAR37+1)>REF(HHV(HIGH,VAR37+1),1),1,0); VAR46:=IF(VAR34=1 AND REF(VAR37,1)<=REF(VAR36,1) AND REF(VAR42,VAR37)=(-1) AND (VAR37>=4 OR HHV(VAR35,VAR37)=1),1,0); VAR47:=IF(VAR45=1 OR VAR46=1 OR VAR44=1 AND HIGH>REF(LOW,VAR37+1),1,0); VAR48:=IF(VAR36<4 AND HHV(VAR35,VAR36)!=1 OR REF(VAR47,VAR36)=0,1,0); VAR49:=IF(VAR31=(-1) AND REF(VAR36,1)<=REF(VAR37,1) AND VAR48=1 AND VAR38>REF(VAR39,VAR36+1) AND VAR38>REF(VAR39,VAR36) AND VAR38>REF(VAR38,VAR37),(-1),0); VAR50:=IF(VAR31=(-1) AND REF(VAR36,1)>REF(VAR37,1) AND LLV(LOW,VAR36+1)VAR51:=IF(VAR31=(-1) AND REF(VAR36,1)<=REF(VAR37,1) AND (VAR36>=4 OR LLV(VAR35,VAR36)=(-1) OR VAR49=(-1)),(-1),0); VAR52:=IF(VAR50=(-1) OR VAR51=(-1) AND LOWVAR53:=BARSLAST(VAR47=1); VAR54:=BARSLAST(VAR52=(-1)); VAR55:=IF(VAR54<4 AND HHV(VAR35,VAR54)!=1 OR REF(VAR52,VAR54)=0,1,0); VAR56:=IF(VAR34=1 AND REF(VAR54,1)<=REF(VAR53,1) AND VAR55=1 AND VAR39>REF(VAR38,VAR54+1) AND VAR39>REF(VAR38,VAR54) AND VAR39>REF(VAR39,VAR53),1,0); VAR57:=IF(VAR34=1 AND REF(VAR54,1)>REF(VAR53,1) AND HHV(HIGH,VAR54+1)>REF(HHV(HIGH,VAR54+1),1),1,0); VAR58:=IF(VAR34=1 AND REF(VAR54,1)<=REF(VAR53,1) AND REF(VAR52,VAR54)=(-1) AND (VAR54>=4 OR HHV(VAR35,VAR54)=1),1,0); VAR59:=IF(VAR57=1 OR VAR58=1 OR VAR56=1 AND HIGH>REF(LOW,VAR54+1),1,0); VAR60:=IF(VAR53<4 AND HHV(VAR35,VAR53)!=1 OR REF(VAR57,VAR53)=0,1,0); VAR61:=IF(VAR31=(-1) AND REF(VAR53,1)<=REF(VAR54,1) AND VAR60=1 AND VAR38>REF(VAR39,VAR53+1) AND VAR38>REF(VAR39,VAR53) AND VAR38>REF(VAR38,VAR54),(-1),0); VAR62:=IF(VAR31=(-1) AND REF(VAR53,1)>REF(VAR54,1) AND LLV(LOW,VAR53+1)VAR63:=IF(VAR31=(-1) AND REF(VAR53,1)<=REF(VAR54,1) AND (VAR53>=4 OR LLV(VAR35,VAR53)=(-1) OR VAR61=(-1)),(-1),0); VAR64:=IF(VAR62=(-1) OR VAR63=(-1) AND LOWVAR65:=BARSLAST(VAR59=1); VAR66:=BARSLAST(VAR64=(-1)); VAR67:=IF(VAR66<4 AND HHV(VAR35,VAR66)!=1 OR REF(VAR64,VAR66)=0,1,0); VAR68:=IF(VAR34=1 AND REF(VAR66,1)<=REF(VAR65,1) AND VAR67=1 AND VAR39>REF(VAR38,VAR66+1) AND VAR39>REF(VAR38,VAR66) AND VAR39>REF(VAR39,VAR65),1,0); VAR69:=IF(VAR34=1 AND REF(VAR66,1)>REF(VAR65,1) AND HHV(HIGH,VAR66+1)>REF(HHV(HIGH,VAR66+1),1),1,0); VAR70:=IF(VAR34=1 AND REF(VAR66,1)<=REF(VAR65,1) AND REF(VAR64,VAR66)=(-1) AND (VAR66>=4 OR HHV(VAR35,VAR66)=1),1,0); VAR71:=IF(VAR69=1 OR VAR70=1 OR VAR68=1 AND HIGH>REF(LOW,VAR66+1),1,0); VAR72:=IF(VAR65<4 AND HHV(VAR35,VAR65)!=1 OR REF(VAR69,VAR65)=0,1,0); VAR73:=IF(VAR31=(-1) AND REF(VAR65,1)<=REF(VAR66,1) AND VAR72=1 AND VAR38>REF(VAR39,VAR65+1) AND VAR38>REF(VAR39,VAR65) AND VAR38>REF(VAR38,VAR66),(-1),0); VAR74:=IF(VAR31=(-1) AND REF(VAR65,1)>REF(VAR66,1) AND LLV(LOW,VAR65+1)VAR75:=IF(VAR31=(-1) AND REF(VAR65,1)<=REF(VAR66,1) AND (VAR65>=4 OR LLV(VAR35,VAR65)=(-1) OR VAR73=(-1)),(-1),0); VAR76:=IF(VAR74=(-1) OR VAR75=(-1) AND LOWVAR77:=IF(VAR71=1 AND VAR76=(-1) AND HIGH>REF(HIGH,REF(VAR65,1)+2),1,IF(VAR71=1 AND VAR76=(-1) AND LOWVAR78:=IF(VAR77=0,VAR71+VAR76,VAR77);{http://www.xuexi199.com} 局部极点:IF(VAR78=(-1),LOW,IF(VAR78=1,HIGH,DRAWNULL)),CIRCLEDOT,COLORYELLOW; |