狙击趋势突破(通达信公式 主图 源码 测试图)
公式名称: 狙击趋势突破公式描述: 公式类型: 技术指标公式-其他类型画线方法: 主图叠加公式源码:}压:SKSD,COLORRED,LINETHICK3;撑:SKSD,COLORGREEN,LINETHICK2;牛股起飞:(MA(CLOSE,30)+MA(CLOSE,72))/2*1.2,DOTLINE,COLORRED;转世A:IF(牛股起飞>REF(牛股起飞,1),牛股起飞,DRAWNULL),COLORFF7F00,LINETHICK2;VAR1:=IF(牛股起飞<REF(牛股起飞,1),牛股起飞,DRAWNULL);寻龙线:EMA(SLOPE(CLOSE,13)*10+CLOSE,21),DOTLINE,COLORLIBLUE;龙线:MA(寻龙线,2),DOTLINE,COLORMAGENTA;人和:IF(寻龙线>REF(寻龙线,1),寻龙线,DRAWNULL),COLORLIMAGENTA,LINETHICK2;人熊:IF(龙线<REF(龙线,1),龙线,DRAWNULL),COLORGREEN,LINETHICK2;海面:EMA(CLOSE,78),COLORWHITE,LINETHICK2;海平面:EMA(CLOSE,80),COLORBLUE,LINETHICK2;VAR2:=REF(HHVBARS(MAX(CLOSE,OPEN),60),15)+15;VAR3:=REF(MAX(CLOSE,OPEN),VAR2);STICKLINE(BARSTATUS=2,VAR3,VAR3,2000,1),COLORRED,LINETHICK2;VAR4:=CONST(VAR2);突破干:IF(CURRBARSCOUNT<=VAR4+1,CONST(IF(VAR4=0,MAX(CLOSE,OPEN),REF(MAX(CLOSE,OPEN),VAR4))),DRAWNULL),POINTDOT,COLORGREEN,LINETHICK4;IF(CURRBARSCOUNT=VAR4+1,突破干,DRAWNULL),POINTDOT,COLORYELLOW,LINETHICK4;DRAWTEXT(CURRBARSCOUNT=VAR4+1,突破干*1.01,STRCAT(CON2STR(CONST(VAR4+1),0),7)),COLORGREEN;VAR5:=FILTER(BACKSET(FILTER(REF(LOW,500)=LLV(LOW,2*500+1),500),500+1),500);VAR6:=FILTER(BACKSET(FILTER(REF(HIGH,25)=HHV(HIGH,2*25+1),25),25+1),25);VAR7:=REF(CLOSE,BARSLAST(VAR6));VAR8:=BARSLAST(VAR6)<BARSLAST(VAR5) AND NOT(VAR6);麒麟:IF(VAR8,VAR7,VAR7),POINTDOT,COLORLIBLUE,LINETHICK3;STICKLINE(VAR8,VAR7,VAR7,10,(-1)),COLORGREEN;DRAWTEXT(ISLASTBAR,麒麟,1),COLORLIBLUE;DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,2),COLORGREEN;VAR9:=(HIGH-LOW)*100/LOW>=9 AND CLOSE>OPEN AND CLOSE<HIGH AND VOL>REF(VOL,1) AND (CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=2;STICKLINE(VAR9,HIGH,CLOSE,0.5,1),COLORCYAN;VAR10:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100;VAR11:=(MAX(CLOSE,OPEN)-REF(CLOSE,1))/REF(CLOSE,1)*100;STICKLINE(VAR10-VAR11>=2.5 AND PERIOD=5 AND CLOSE>OPEN AND MA(CLOSE,5),MAX(CLOSE,OPEN),HIGH,0,0),COLORGREEN;STICKLINE(VAR10-VAR11>=2.5 AND PERIOD=5 AND CLOSE>OPEN AND MA(CLOSE,5),CLOSE,OPEN,3.1,0),COLORRED;VAR12:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1);STICKLINE(VAR12,OPEN,CLOSE,2.8,1),COLOR0000CC;VAR13:=OPEN>CLOSE AND OPEN>REF(CLOSE,1) AND CLOSE>REF(CLOSE,1);假阴线:STICKLINE(VAR13,OPEN,CLOSE,2,0),COLORLIRED;明涨停价:CLOSE*1.1,NODRAW;涨停价:REF(CLOSE,1)*1.1,NODRAW,COLORRED;VAR14:=IF((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0);VAR15:=IF((REF(CLOSE,1)-CLOSE)*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0);STICKLINE(VAR14,OPEN,CLOSE,3,0),COLORAA00AA;STICKLINE(VAR14,OPEN,CLOSE,1,0),COLORBLACK;STICKLINE(VAR14,HIGH,LOW,0,1),COLORCC00CC;STICKLINE(VAR14,OPEN,CLOSE,3,1),COLORCC00CC;跌停板:STICKLINE(VAR15,OPEN,CLOSE,3,0),COLORFF1100;STICKLINE(VAR15,OPEN,CLOSE,2.5,0),COLORFF3300;STICKLINE(VAR15,OPEN,CLOSE,2,0),COLORFF4400;STICKLINE(VAR15,OPEN,CLOSE,1.5,0),COLORFF5500;STICKLINE(VAR15,OPEN,CLOSE,1,0),COLORFF6600;STICKLINE(VAR15,OPEN,CLOSE,0.5,0),COLORFF7700;STICKLINE(VAR15,LOW,HIGH,0,0),COLORFF7700;VAR16:=REF((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<=(-0.03),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.05;STICKLINE(VAR16,OPEN,CLOSE,2.5,0),COLOR0000A5;STICKLINE(VAR16,OPEN,CLOSE,2,0),COLOR0000C5;STICKLINE(VAR16,OPEN,CLOSE,1.5,0),COLOR0000D5;STICKLINE(VAR16,OPEN,CLOSE,1,0),COLOR0000E5;STICKLINE(VAR16,LOW,HIGH,0,0),COLOR0000F5;STICKLINE(VAR16,CLOSE,(OPEN+CLOSE)/2,2.5,0),COLOR008CFD;VAR17:=REF((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<=(-0.03),1) AND OPEN>=REF(CLOSE,1)*1.03 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.03;STICKLINE(VAR17,OPEN,CLOSE,2.5,0),COLORMAGENTA;VAR18:=REF(HIGH,10)=HHV(HIGH,2*10+1);VAR19:=FILTER(VAR18,10);VAR20:=BACKSET(VAR19,10+1);VAR21:=FILTER(VAR20,10);VAR22:=REF(HIGH,BARSLAST(VAR21));VAR23:=VOL/REF(VOL,1)>=1.9;VAR24:=CROSS(CLOSE,VAR22);STICKLINE(VOL/REF(VOL,1)>=1.5 AND VAR24 AND CLOSE>OPEN,(CLOSE+OPEN)/2,CLOSE,1.2,0),COLORBROWN;VAR25:=REF(VAR14,2) AND REF(MIN(OPEN,CLOSE),1)>REF(MAX(OPEN,CLOSE),2) AND MAX(OPEN,CLOSE)<REF(MIN(OPEN,CLOSE),1) AND REF(VOL,1)>VOL AND REF(VOL,1)>REF(VOL,2) AND REF(VOL,1)=HHV(VOL,10);DRAWICON(VAR25,LOW*0.98,18);
页:
[1]