通达信巅峰无极限主图/副图套装指标 源码 附图

{巅峰无极限主图源码如下}

DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2;



M80:MA(C,80),NODRAW ;



M200:MA(C,200),NODRAW ;



DRAWBAND(M200,RGB(40,100,40),M80,RGB(100,100,0)),NODRAW ;



DRAWKLINE(H,O,L,C);



MA03:MA(C,3),COLORYELLOW,DOTLINE,NODRAW ;



IF(MA03>=REF(MA03,1),MA03,DRAWNULL),COLOR0066FF,NODRAW ;



IF(MA03< REF(MA03,1),MA03,DRAWNULL),,COLORGREEN,NODRAW ;



X:=(3*C+L+O+H)/6;



多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)



+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)



+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+



REF(X,20))/210,COLORGREEN,LINETHICK2;



IF(多空线>=REF(多空线,1),多空线,DRAWNULL),COLORRED,LINETHICK3;



IF(多空线< REF(多空线,1),多空线,DRAWNULL),,COLORGREEN,LINETHICK3;



牛皮熊:DRAWICON(CROSS(MA03,多空线) AND CLOSE/REF(CLOSE,1)>1.03,LOW*0.96,25);



DRAWTEXT(FILTER(牛皮熊,8),多空线-0.05,'↖跟庄买进'),COLORGREEN;



DRAWTEXT(CROSS(MA03,多空线) AND MA03>0,多空线-0.23,'★←'),COLORYELLOW;



花:=SLOPE(EMA(C,3),3);



神:=SLOPE(EMA(C,7),7);



DRAWICON(CROSS(花,神) AND CLOSE/REF(CLOSE,1)>1.03,LOW*0.96,25);



DRAWTEXT(CROSS(花,神) AND CLOSE/REF(CLOSE,1)>1.03,LOW*0.96,'买'),COLORWHITE;



花2:=EMA(SLOPE(1,1)+C,3),COLORRED;



神2:=EMA(SLOPE(1,1)+C,7),COLORBLUE;



A02:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);



A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;



A5:=EMA(CLOSE,12)-EMA(CLOSE,26);



A6:=EMA(A5,9);



A7:=(A5<-0.1 AND A5>A6);



财神:IF(A7,LLV(L,21),DRAWNULL)COLORRED,CIRCLEDOT;



DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;



DRAWTEXT_FIX(1,0.01,0.08,0,'主题投资:')COLOR0000FF;



DRAWTEXT_FIX(1,0.09,0.08,0,EXTERNSTR(0,1))COLOR0000FF;



窗口显示:=C>REF(C,1)*1.095 AND C=H;



T:=BARSLAST(窗口显示),NODRAW ;



涨停价:REF(C,T)NODRAW,NODRAW ;



涨停日期:REF(DATE-1000000,T)NODRAW,NODRAW ;



STICKLINE(L>REF(H,1),L,REF(H,1),20,1001), COLORYELLOW ,NODRAW ;



STICKLINE(REF(L,1)>H,REF(L,1),H,20,1001), COLORGREEN ,NODRAW ;



TJ01:=C<O AND REFX(C<O,1) AND REFX(C>O,2);



DRAWLINE(TJ01,REFX(LLV(L,2),1),REF(TJ01,1),REF(REFX(LLV(L,2),1),1),1)COLORYELLOW,NODRAW ;



DRAWLINE(TJ01,REFX(HHV(C,2),1),REF(TJ01,1),REF(REFX(HHV(C,2),1),1),1)COLORYELLOW,NODRAW ;



{波峰}



TY:=H;



A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1);



HD:=FILTER(C1,10);



A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C002:=BACKSET(B2,10+1);



LD:=FILTER(C002,10);



波峰:REF(H,BARSLAST(HD)),COLOR00808F,POINTDOT,LINETHICK4;



STICKLINE(H,波峰,波峰,8,0),COLOR00808F,LINETHICK4;



BDGD:=C=HHV(C,13);



GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;



高点:REF(C,GDSJ),COLORGREEN,LINETHICK4,POINTDOT;



突破:CROSS(C,REF(高点,1)),COLOR00FFFF,POINTDOT,NODRAW ;



STICKLINE(GDSJ<=6,高点,高点,8,0),COLORGREEN,LINETHICK2;



BDDD:=C=LLV(C,13);



DDSJ:=BARSLAST(FILTER(CROSS(0.8,BDDD),2))+1;



低点:REF(C,DDSJ),COLOR0055FF,POINTDOT,LINETHICK4;



STICKLINE(DDSJ<=6,低点,低点,8,0),COLOR0055FF,LINETHICK4;



AAA:=(REF(CLOSE,1)+REF(CLOSE,2)+OPEN)/3;



前高:DRAWLINE(CURRBARSCOUNT=3,H,REF(CURRBARSCOUNT=3,1),REF(H,1),1),LINETHICK2;



昨收:DRAWLINE(CURRBARSCOUNT=2,C,REF(CURRBARSCOUNT=2,1),REF(C,1),1),LINETHICK2;



压力线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORYELLOW,NODRAW ;



DRAWTEXT(压力线,L-0.2,'压力↙'),COLORYELLOW,NODRAW ;



MA010:=MA(CLOSE,10),COLORYELLOW,NODRAW ;



MA54:=MA(CLOSE,54),COLORFFCCCC,NODRAW ;



PL1:=(((CLOSE - MA54) / MA54) < 0.1);



PL2:=(((CLOSE - MA010) / MA010) < 0.3);



偏离率:=(((PL1 = 1) AND (PL2 = 1)) * 0.2);



平台突破:=((((偏离率 = 0) AND (REF(偏离率,1) = 0.2)) AND (REF((COUNT((偏离率 = 0.2),10) = 10),1) = 1)) * 1);



DRAWTEXT(平台突破,L,'=================='),COLORWHITE;



DRAWTEXT(平台突破,L-0.05,'平台突破'),COLORGREEN;



三日最低:=EMA((REF(L,4)+REF(L,3)+REF(L,2))/3,3);



三日最高:=EMA((REF(H,4)+REF(H,3)+REF(H,2))/3,3);



EXITLONG:CROSS(CROSS(三日最高,C),0.6),NODRAW;



ENTERLONG:CROSS(CROSS(C,三日最低),0.5),NODRAW;



STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;



涨停:=IF(REF(C,1)*1.095-C<0.01 ,1,0);



STICKLINE(涨停,OPEN,CLOSE,2.5,0),COLORYELLOW;



DRAWTEXT(涨停,L-0.1,'涨停'),COLORYELLOW;



C3:=REF(C,1);



跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);



STICKLINE(跌停,OPEN,CLOSE,2.5,0),COLORBLUE;



DRAWTEXT(跌停,H+0.3,'跌停'),COLORBLUE;



NN:=120;



{跳空}



STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;



STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY;



{彩色K线}



TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);



TYX4:=MA((C+L+O+H)/4,13);



TYX5:=EMA((C+L+O+H)/4,21);



{空心红}



STICKLINE(C<TYX5 AND C>O,H,L,0,0),COLORRED;



STICKLINE(C<TYX5 AND C>O,C,O,3,1),COLORRED;



{深绿};











STICKLINE(C<TYX5 AND C<O,H,L,0,0),COLOR007700;



STICKLINE(C<TYX5 AND C<O,C,O,3,0),COLOR005500;



STICKLINE(C<TYX5 AND C<O,C,O,2,0),COLOR006600;



STICKLINE(C<TYX5 AND C<O,C,O,1,0),COLOR007700;



{蓝}



STICKLINE(C>TYX5 AND C<O,H,L,0,0),COLORFFDD44;



STICKLINE(C>TYX5 AND C<O,C,O,3,0 ),COLORFF7700;



STICKLINE(C>TYX5 AND C<O,C,O,2,0 ),COLORFFAA22;



STICKLINE(C>TYX5 AND C<O,C,O,1 ,0 ),COLORFFDD44;



{黄}



STICKLINE(C>TYX5 AND C>O,H,L,0,0 ),COLOR00EEFF;



STICKLINE(C>TYX5 AND C>O,C,O,3,0 ),COLOR00AAFF;



STICKLINE(C>TYX5 AND C>O,C,O,2,0 ),COLOR00CCFF;



STICKLINE(C>TYX5 AND C>O,C,O,1,0 ),COLOR00EEFF;



{粉红}



STICKLINE(C>TYX4 AND C>O,H,L,0,0),COLORFF66AA;



STICKLINE(C>TYX4 AND C>O,C,O,3,0 ),COLORFF11FF;



STICKLINE(C>TYX4 AND C>O,C,O,2,0 ),COLORFF44FF;



STICKLINE(C>TYX4 AND C>O,C,O,1,0 ),COLORFF66FF;



{亮灰}



STICKLINE(C>TYX4 AND C<O,H,L,0,0),COLOR999999;



STICKLINE(C>TYX4 AND C<O,C,O,3,0),COLOR555555;



STICKLINE(C>TYX4 AND C<O,C,O,2,0),COLOR777777;



STICKLINE(C>TYX4 AND C<O,C,O,1,0),COLOR999999;



{深红}



STICKLINE(C>TYX3 AND C>O,H,L,0,0),COLOR0000DD;



STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR000099;



STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000BB;



STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000DD;



{涨跌停K线}



STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORYELLOW;



STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORWHITE;



{突破}



STICKLINE(REF(COUNT(C<TYX3,5)=5,1) AND C>TYX3 AND C>O,C,O,1,0),COLOR00CCFF;



STICKLINE(REF(COUNT(C<TYX3,5)=5,1) AND C>TYX3 AND C>O,C,O,1,0),COLOR00CCFF;



{红绿三角【副图】}



A10304:=REF(HIGH,3)=HHV(HIGH,2*3+1);



B10304:=FILTER(A10304,3);



C10304:=BACKSET(B10304,3+1);



D10304:=FILTER(C10304,3);{高点}



A20304:=REF(LOW,3)=LLV(LOW,2*3+1);



B20304:=FILTER(A20304,3);



C20304:=BACKSET(B20304,3+1);



D20304:=FILTER(C20304,3);{低点}



E10304:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;











E20304:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}



H10304:=(D10304 AND NOT(D20304 AND E10304>=E20304)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;



L10304:=(D20304 AND NOT(D10304 AND E10304=E20304));



X10304:=REF(BARSLAST(H10304),1)+1;



F10304:=BACKSET(H10304 AND COUNT(L10304,X10304)>0,LLVBARS(IF(L10304,LOW,10000),X10304));



G10304:=F10304>REF(F10304,1);



I10304:=BACKSET(G10304,2);



LD0304:=I10304>REF(I10304,1);{过滤后低点}



L20304:=LD0304 OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;



X20304:=REF(BARSLAST(L20304),1)+1;



F20304:=BACKSET(L20304 AND COUNT(H10304,X20304)>0,HHVBARS(IF(H10304,HIGH,0),X20304));



G20304:=F20304>REF(F20304,1);



I20304:=BACKSET(G20304,2);



HD0304:=I20304>REF(I20304,1);{过滤后高点}



UU0304:=BACKSET(BARSTATUS=2,BARSLAST(LD0304)+1);



VV0304:=UU0304>REF(UU0304,1);



UU20304:=BACKSET(BARSTATUS=2,BARSLAST(HD0304)+1);



VV20304:=UU20304>REF(UU20304,1);







{以下语句为三角形部分}



底:REF(L,BARSLAST(VV0304)),COLORYELLOW,NODRAW ;



顶:REF(H,BARSLAST(VV20304)),COLORYELLOW,NODRAW ;



{下跌三角形:绿色三角形画完介入}



STICKLINE(VV0304,顶,底,0,0),COLORGREEN,LINETHICK2;



DRAWLINE(VV20304,H,VV0304,L,0),COLORGREEN,LINETHICK2;{斜}



DRAWLINE(VV20304,H,VV0304,顶,0),COLORGREEN,LINETHICK2;



{上涨三角形:红色三角形画完出局}



STICKLINE(VV20304 ,顶,底,0,0),COLORBLUE,LINETHICK2;



DRAWLINE(VV0304,L,VV20304,H,0),COLORBLUE,LINETHICK2;{斜}



DRAWLINE(VV0304,L,VV20304,底,0),COLORBLUE,LINETHICK2;







DRAWICON(C<O AND C>REF(C,1),H,6);{假阴真阳}



均价:AMOUNT/VOL/100,NODRAW;



假阴0:=O>C AND 均价>REF(C,1);



DRAWTEXT(假阴0,L-0.2,'假阴↖'),COLORE8E8E8;



STICKLINE(假阴0,O,C,1,0),COLORRED;







VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量}



H_L:=0.1*CONST(HHV(VOL,240));



长阴短柱:=C/REF(C,1)<=0.96 AND V<HHV(V,30)/1.9;



DRAWTEXT(长阴短柱 ,L*0.98,'长阴短柱↙'),COLORLICYAN;



MA05:=MA(C,5);



MA5角度: ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416,NODRAW;



T01:=CONST(LLVBARS(LOW,10));



T1HIGH:=CONST(REF(HIGH,T01));



MM:=CONST(CURRBARSCOUNT);



T02:=CONST(BARSLAST(CURRBARSCOUNT>MM+T01 AND H>T1HIGH));



T2HIGH:=CONST(REF(HIGH,T02));



T03:=CONST(BARSLAST(CURRBARSCOUNT>MM+T02 AND HIGH>T2HIGH));



T3HIGH:=CONST(REF(HIGH,T03));



攻击线:DRAWLINE(CURRBARSCOUNT=T03+1, T3HIGH, ISLASTBAR, T3HIGH,1),LINETHICK3,COLOR8080FF;



DRAWTEXT(ISLASTBAR, L*0.95, '必杀攻击线')LINETHICK2,COLORCYAN;







A6A:=REF(HIGH,6)=HHV(HIGH,2*6+1);



B6A:=FILTER(A6A,6);



C6A:=BACKSET(B6A,6+1);



D6A:=FILTER(C6A,6);



A7A:=REF(LOW,6)=LLV(LOW,2*6+1);



B7A:=FILTER(A7A,6);



C7A:=BACKSET(B7A,6+1);



D7A:=FILTER(C7A,6);



E6A:=(REF(LLV(LOW,2*6),1)+REF(HHV(HIGH,2*6),1))/2;



E7A:=(HIGH+LOW)/2;



H6A:=(D6A AND NOT(D7A AND E6A>=E7A)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;



H7A:=D6A AND NOT(D7A AND E6A>=E7A);



L6A:=D7A AND NOT(D6A AND E6A=E7A);



X6A:=REF(BARSLAST(H6A),1)+1;



F6A:=BACKSET(H6A AND COUNT(L6A,X6A)>0,LLVBARS(IF(L6A,LOW,10000),X6A));



G6A:=F6A>REF(F6A,1);



I6A:=BACKSET(G6A,2);



LD2A:=I6A>REF(I6A,1);



L7A:=LD2A OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;



X7A:=REF(BARSLAST(L7A),1)+1;



F7A:=BACKSET(L7A AND COUNT(H7A,X7A)>0,HHVBARS(IF(H7A,HIGH,0),X7A));



G7A:=F7A>REF(F7A,1);



I7A:=BACKSET(G7A,2);



HD2A:=I7A>REF(I7A,1);



UU3A:=BACKSET(BARSTATUS=2,BARSLAST(LD2A)+1);



VV3A:=UU3A>REF(UU3A,1);



WW3A:=BACKSET(VV3A,REF(BARSLAST(LD2A),1)+2);



XX3A:=WW3A>REF(WW3A,1);



DRAWLINE(XX3A,L,VV3A,L,1),COLORCYAN,LINETHICK2;



UU4A:=BACKSET(BARSTATUS=2,BARSLAST(HD2A)+1);



VV4A:=UU4A>REF(UU4A,1);



WW4A:=BACKSET(VV4A,REF(BARSLAST(HD2A),1)+2);



XX4A:=WW4A>REF(WW4A,1);



DRAWLINE(XX4A,H,VV4A,H,1),COLOR8000F0,LINETHICK2;



HIGHN:=10;LOWN:=10;



HIGHDISPLAY:=0;



LOWDISPLAY:=0;



ZGDISPLAY:=0;



MADISPLAY:=0;



AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);



QY:=BACKSET(AA,HIGHN+1);



CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);



DRAWICON(CC,H*1.02,2);



DDD:=BARSLAST(CC);



GDTS:=IF(CC,BARSCOUNT(C),0);



DINGBU:=IF(DDD,REF(H,DDD),H);



DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);



DINGBU1:=REF(DINGBU,DDD+1);



GDCS1:=CEILING(DINGBUTS);



DINGBUTS1:=REF(DINGBUTS,DDD+1);



GDCS2:=CEILING(DINGBUTS1);



DINGBU2:=REF(DINGBU1,DDD+1);



{巅峰无极限副图源码如下}

DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2;

X1:=REF(O,2)>REF(C,2);

X2:=REF(O,1)>REF(C,1) AND REF(C,1)<REF(C,2);

XXJ:=X1 AND X2 AND C>O AND REF(C,1)<REF(C,2);

ZF2:=CLOSE/REF(CLOSE,25)<1.25;

ZT:=FILTER(C/REF(C,1)>1.0952,1) AND H=C AND C>O AND ZF2;

TS:=BARSLAST(ZT);

JJS:=BARSLAST(ZT)>1 AND BARSLAST(ZT)<=22;

XG:JJS AND XXJ AND L>REF(REF(L,TS),1) AND ZF2;



未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:REFX

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

{巅峰无极限主图源码如下} 填充背景(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2
输出M80:C的80日简单移动平均,NODRAW
输出M200:C的200日简单移动平均,NODRAW
DRAWBAND(M200,RGB(40,100,40),M80,RGB(100,100,0)),NODRAW
DRAWKLINE(H,O,L,C)
输出MA03:C的3日简单移动平均,画黄色,DOTLINE,NODRAW
IF(MA03>=1日前的MA03,MA03,DRAWNULL),COLOR0066FF,NODRAW
IF(MA03< 1日前的MA03,MA03,DRAWNULL),,画绿色,NODRAW
X赋值:(3*C+L+O+H)/6
输出多空线:(20*X+19*1日前的X+18*2日前的X+17*3日前的X+16*4日前的X+15*5日前的X+14*6日前的X+13*7日前的X+12*8日前的X+11*9日前的X+10*10日前的X+9*11日前的X+8*12日前的X+7*13日前的X+6*14日前的X+5*15日前的X+4*16日前的X+3*17日前的X+2*18日前的X+20日前的X)/210,画绿色,LINETHICK2
IF(多空线>=1日前的多空线,多空线,DRAWNULL),画红色,LINETHICK3
IF(多空线< 1日前的多空线,多空线,DRAWNULL),,画绿色,LINETHICK3
输出牛皮熊:DRAWICON(MA03上穿多空线 AND 收盘价/1日前的收盘价>1.03,最低价*0.96,25)
DRAWTEXT(牛皮熊的8过滤,多空线-0.05,'↖跟庄买进'),画绿色
DRAWTEXT(MA03上穿多空线 AND MA03>0,多空线-0.23,'★←'),画黄色
花赋值:SLOPE(C的3日指数移动平均,3)
神赋值:SLOPE(C的7日指数移动平均,7)
DRAWICON(花上穿神 AND 收盘价/1日前的收盘价>1.03,最低价*0.96,25)
DRAWTEXT(花上穿神 AND 收盘价/1日前的收盘价>1.03,最低价*0.96,'买'),COLORWHITE
花2:=EMA(SLOPE(1,1)+C,3),画红色
神2:=EMA(SLOPE(1,1)+C,7), 画蓝色
A02赋值:3*EMA((C-30日内L最低值)/(30日内H最高值-30日内L最低值)*100,5)-2*EMA((C-30日内L最低值)/(30日内H最高值-30日内L最低值)*100,5)
A4赋值:(34日内H最高值-C)/(34日内H最高值-34日内L最低值)*100
A5赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
A6赋值:A5的9日指数移动平均
A7赋值:(A5<-0.1 AND A5>A6)
财输出神:IF(A7,21日内L最低值,DRAWNULL)画红色,CIRCLEDOT
当满足条件1时,在横轴0.07纵轴0位置书写文字
当满足条件1时,在横轴0.01纵轴0.08位置书写文字
DRAWTEXT_FIX(1,0.09,0.08,0,EXTERNSTR(0,1))COLOR0000FF
窗口显示赋值:C>1日前的C*1.095 AND C=H
T赋值:上次窗口显示距今天数,NODRAW
输出涨停价:T日前的CNODRAW,NODRAW
输出涨停日期:T日前的DATE-1000000NODRAW,NODRAW
STICKLINE(L>1日前的H,L,1日前的H,20,1001), 画黄色 ,NODRAW
STICKLINE(1日前的L>H,1日前的L,H,20,1001), 画绿色 ,NODRAW
TJ01:=CO,2)
DRAWLINE(TJ01,REFX(2日内L最低值,1),1日前的TJ01,REF(REFX(2日内L最低值,1),1),1)画黄色,NODRAW
DRAWLINE(TJ01,REFX(2日内C最高值,1),1日前的TJ01,REF(REFX(2日内C最高值,1),1),1)画黄色,NODRAW
{波峰}TY:=H
A1赋值:10日前的TY=2*10+1日内TY最高值
B1赋值:A1的10过滤
C1赋值:BACKSET(B1,10+1)
HD赋值:C1的10过滤
A2赋值:10日前的TY=2*10+1日内TY最低值
B2赋值:A2的10过滤
C002赋值:BACKSET(B2,10+1)
LD赋值:C002的10过滤
输出波峰:REF(H,上次HD距今天数),COLOR00808F,POINTDOT,LINETHICK4
当满足条件H时,在波峰和波峰之间画柱状线
BDGD赋值:C=13日内C最高值
GDSJ赋值:上次FILTER(0.8上穿BDGD,2距今天数)+1
输出高点:GDSJ日前的C,画绿色,LINETHICK4,POINTDOT
输出突破:CROSS(C,1日前的高点),COLOR00FFFF,POINTDOT,NODRAW
当满足条件GDSJ<=6时,在高点和高点之间画柱状线
BDDD赋值:C=13日内C最低值
DDSJ赋值:上次FILTER(0.8上穿BDDD,2距今天数)+1
输出低点:DDSJ日前的C,COLOR0055FF,POINTDOT,LINETHICK4
当满足条件DDSJ<=6时,在低点和低点之间画柱状线
AAA赋值:(1日前的收盘价+2日前的收盘价+开盘价)/3
输出前高:DRAWLINE(CURRBARSCOUNT=3,H,1日前的CURRBARSCOUNT=3,1日前的H,1),LINETHICK2
输出昨收:DRAWLINE(CURRBARSCOUNT=2,C,1日前的CURRBARSCOUNT=2,1日前的C,1),LINETHICK2
输出压力线:DRAWLINE(最高价>=10日内最高价最高值,最高价,最低价<=3日内最低价最低值,3日内最高价最高值,1),画黄色,NODRAW
当满足条件压力线时,在L-0.2和'压力↙'位置书写文字
MA010赋值:收盘价的10日简单移动平均,画黄色,NODRAW
MA54:=收盘价的54日简单移动平均,COLORFFCCCC,NODRAW
PL1赋值:(((收盘价 - MA54) / MA54) < 0.1)
PL2赋值:(((收盘价 - MA010) / MA010) < 0.3)
偏离率赋值:(((PL1 = 1) AND (PL2 = 1)) * 0.2)
平台突破赋值:((((偏离率 = 0) AND (1日前的偏离率 = 0.2)) AND (REF((COUNT((偏离率 = 0.2),10) = 10),1) = 1)) * 1)
当满足条件平台突破时,在L和'=================='位置书写文字
当满足条件平台突破时,在L-0.05和'平台突破'位置书写文字
三日最低赋值:EMA((4日前的L+3日前的L+2日前的L)/3,3)
三日最高赋值:EMA((4日前的H+3日前的H+2日前的H)/3,3)
EXITLONG:三日最高上穿C,0.6),NODRAW
ENTERLONG:C上穿三日最低,0.5),NODRAW
STICKLINE(C/1日前的C>1.095,C,O,2,0),画黄色
涨停赋值:IF(1日前的C*1.095-C<0.01 ,1,0)
当满足条件涨停时,在开盘价和收盘价之间画柱状线
当满足条件涨停时,在L-0.1和'涨停'位置书写文字
C3赋值:1日前的C
跌停赋值:IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0)
当满足条件跌停时,在开盘价和收盘价之间画柱状线
当满足条件跌停时,在H+0.3和'跌停'位置书写文字
NN赋值:120
{跳空}STICKLINE(1日前的L>H,H,1日前的L,5,0),COLORGRAY
STICKLINE(1日前的H{彩色K线} TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3)
TYX4:=MA((C+L+O+H)/4,13)
TYX5:=EMA((C+L+O+H)/4,21)
当满足条件CO时,在H和L之间画柱状线
当满足条件CO时,在C和O之间画柱状线
{深绿}
当满足条件C当满足条件C当满足条件C当满足条件C当满足条件C>TYX5 AND C当满足条件C>TYX5 AND C当满足条件C>TYX5 AND C当满足条件C>TYX5 AND C当满足条件C>TYX5 AND C>O时,在H和L之间画柱状线
当满足条件C>TYX5 AND C>O时,在C和O之间画柱状线
当满足条件C>TYX5 AND C>O时,在C和O之间画柱状线
当满足条件C>TYX5 AND C>O时,在C和O之间画柱状线
当满足条件C>TYX4 AND C>O时,在H和L之间画柱状线
当满足条件C>TYX4 AND C>O时,在C和O之间画柱状线
当满足条件C>TYX4 AND C>O时,在C和O之间画柱状线
当满足条件C>TYX4 AND C>O时,在C和O之间画柱状线
当满足条件C>TYX4 AND C当满足条件C>TYX4 AND C当满足条件C>TYX4 AND C当满足条件C>TYX4 AND C当满足条件C>TYX3 AND C>O时,在H和L之间画柱状线
当满足条件C>TYX3 AND C>O时,在C和O之间画柱状线
当满足条件C>TYX3 AND C>O时,在C和O之间画柱状线
当满足条件C>TYX3 AND C>O时,在C和O之间画柱状线
{涨跌停K线} STICKLINE((C-1日前的C)*100/1日前的C>=(10-0.01*100/1日前的C),开盘价,收盘价,1,0),画黄色
STICKLINE((1日前的C-C)*100/1日前的C>=(10-0.01*100/1日前的C),开盘价,收盘价,1,0),COLORWHITE
{突破} STICKLINE(1日前的统计5日满足CTYX3 AND C>O,C,O,1,0),COLOR00CCFF
STICKLINE(1日前的统计5日满足CTYX3 AND C>O,C,O,1,0),COLOR00CCFF
{红绿三角【副图】}A10304:=3日前的最高价=2*3+1日内最高价最高值
B10304:=A10304的3过滤
C10304:=BACKSET(B10304,3+1)
D10304赋值:C10304的3过滤
{高点}A20304:=3日前的最低价=2*3+1日内最低价最低值
B20304:=A20304的3过滤
C20304赋值:BACKSET(B20304,3+1)
D20304赋值:C20304的3过滤
{低点}E10304:=(REF(2*3日内最低价最低值,1)+REF(2*3日内最高价最高值,1))/2
E20304赋值:(最高价+最低价)/2
{高低点出现在同一K线上时可作取舍}H10304:=(D10304 AND NOT(D20304 AND E10304>=E20304)) OR BARSTATUS=2 OR 收盘价的有效数据周期数=1
L10304赋值:(D20304 AND NOT(D10304 AND E10304=E20304))
X10304:=REF(上次H10304距今天数,1)+1
如果L10304返回最低价否则返回10000
G10304赋值:F10304>1日前的F10304
I10304赋值:BACKSET(G10304,2)
LD0304:=I10304>1日前的I10304
{过滤后低点}L20304:=LD0304 OR BARSTATUS=2 OR 收盘价的有效数据周期数=1
X20304:=REF(上次L20304距今天数,1)+1
如果H10304返回最高价否则返回0
G20304赋值:F20304>1日前的F20304
I20304赋值:BACKSET(G20304,2)
HD0304:=I20304>1日前的I20304
{过滤后高点}UU0304:=BACKSET(BARSTATUS=2,上次LD0304距今天数+1)
VV0304赋值:UU0304>1日前的UU0304
UU20304赋值:BACKSET(BARSTATUS=2,上次HD0304距今天数+1)
VV20304赋值:UU20304>1日前的UU20304
输出{以下语句为三角形部分}底:REF(L,上次VV0304距今天数),画黄色,NODRAW
输出顶:REF(H,上次VV20304距今天数),画黄色,NODRAW
当满足条件VV0304时,在顶和底之间画柱状线
DRAWLINE(VV20304,H,VV0304,L,0),画绿色,LINETHICK2
{斜}DRAWLINE(VV20304,H,VV0304,顶,0),画绿色,LINETHICK2
当满足条件VV20304 时,在顶和底之间画柱状线
DRAWLINE(VV0304,L,VV20304,H,0), 画蓝色,LINETHICK2
{斜}DRAWLINE(VV0304,L,VV20304,底,0), 画蓝色,LINETHICK2
DRAWICON(C1日前的C,H,6)
输出{假阴真阳}均价:AMOUNT/成交量/100,NODRAW
假阴0赋值:O>C AND 均价>1日前的C
当满足条件假阴0时,在L-0.2和'假阴↖'位置书写文字
当满足条件假阴0时,在O和C之间画柱状线
如果CURRBARSCOUNT=1 AND 周期类型=5返回成交量*240/FROM开盘价否则返回DRAWNULL
{模拟量}H_L赋值:0.1*CONST(240日内成交量最高值)
长阴短柱赋值:C/1日前的C<=0.96 AND V<30日内V最高值/1.9
当满足条件长阴短柱 时,在L*0.98和'长阴短柱↙'位置书写文字
MA05赋值:C的5日简单移动平均
MA5角度: ATAN((MA05/1日前的MA05-1)*100)*180/3.1416,NODRAW
T01:=CONST(LLVBARS(最低价,10))
T1最高价:=CONST(T01日前的最高价)
MM赋值:CONST(CURRBARSCOUNT)
T02:=CONST(上次CURRBARSCOUNT>MM+T01 AND H>T1最高价距今天数)
T2最高价:=CONST(T02日前的最高价)
T03:=CONST(上次CURRBARSCOUNT>MM+T02 AND 最高价>T2最高价距今天数)
T3最高价:=CONST(T03日前的最高价)
输出攻击线:DRAWLINE(CURRBARSCOUNT=T03+1, T3最高价, ISLASTBAR, T3最高价,1),LINETHICK3,COLOR8080FF
当满足条件ISLASTBAR时,在 L*0.95和 '必杀攻击线'位置书写文字
A6A:=6日前的最高价=2*6+1日内最高价最高值
B6A赋值:A6A的6过滤
C6A赋值:BACKSET(B6A,6+1)
D6A赋值:C6A的6过滤
A7A:=6日前的最低价=2*6+1日内最低价最低值
B7A赋值:A7A的6过滤
C7A赋值:BACKSET(B7A,6+1)
D7A赋值:C7A的6过滤
E6A赋值:(REF(2*6日内最低价最低值,1)+REF(2*6日内最高价最高值,1))/2
E7A赋值:(最高价+最低价)/2
H6A赋值:(D6A AND NOT(D7A AND E6A>=E7A)) OR BARSTATUS=2 OR 收盘价的有效数据周期数=1
H7A赋值:D6A AND NOT(D7A AND E6A>=E7A)
L6A赋值:D7A AND NOT(D6A AND E6A=E7A)
X6A:=REF(上次H6A距今天数,1)+1
如果L6A返回最低价否则返回10000
G6A赋值:F6A>1日前的F6A
I6A赋值:BACKSET(G6A,2)
LD2A:=I6A>1日前的I6A
L7A赋值:LD2A OR BARSTATUS=2 OR 收盘价的有效数据周期数=1
X7A:=REF(上次L7A距今天数,1)+1
如果H7A返回最高价否则返回0
G7A赋值:F7A>1日前的F7A
I7A赋值:BACKSET(G7A,2)
HD2A:=I7A>1日前的I7A
UU3A赋值:BACKSET(BARSTATUS=2,上次LD2A距今天数+1)
VV3A赋值:UU3A>1日前的UU3A
WW3A赋值:BACKSET(VV3A,REF(上次LD2A距今天数,1)+2)
XX3A:=WW3A>1日前的WW3A
DRAWLINE(XX3A,L,VV3A,L,1),画青色,LINETHICK2
UU4A赋值:BACKSET(BARSTATUS=2,上次HD2A距今天数+1)
VV4A赋值:UU4A>1日前的UU4A
WW4A赋值:BACKSET(VV4A,REF(上次HD2A距今天数,1)+2)
XX4A:=WW4A>1日前的WW4A
DRAWLINE(XX4A,H,VV4A,H,1),COLOR8000F0,LINETHICK2
HIGHN赋值:10
LOWN赋值:10
HIGHDISPLAY:=0
LOWDISPLAY赋值:0
ZGDISPLAY赋值:0
MADISPLAY赋值:0
AA赋值:HIGHN日前的H=2*HIGHN+1日内H最高值
QY赋值:BACKSET(AA,HIGHN+1)
CC赋值:QY的HIGHN过滤 AND H=HIGHN+1日内H最高值
当满足条件CC时,在H*1.02和2之间画图标
DDD赋值:上次CC距今天数
GDTS:=IF(CC,C的有效数据周期数,0)
DINGBU赋值:IF(DDD,DDD日前的H,H)
DINGBUTS:=IF(DDD,DDD日前的GDTS,GDTS)
DINGBU1:=DDD+1日前的DINGBU
GDCS1赋值:CEILING(DINGBUTS)
DINGBUTS1:=DDD+1日前的DINGBUTS
GDCS2赋值:CEILING(DINGBUTS1)
DINGBU2:=DDD+1日前的DINGBU1
{巅峰无极限副图源码如下} 填充背景(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2
X1:=2日前的O>2日前的C
X2:=1日前的O>1日前的C AND 1日前的C<2日前的C
XXJ:=X1 AND X2 AND C>O AND 1日前的C<2日前的C
ZF2赋值:收盘价/25日前的收盘价<1.25
ZT赋值:FILTER(C/1日前的C>1.0952,1) AND H=C AND C>O AND ZF2
TS:=上次ZT距今天数
JJS赋值:上次ZT距今天数>1 AND 上次ZT距今天数<=22
XG:JJS AND XXJ AND L>TS日前的L,1) AND ZF2

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图