趋势转强指标 (源码)
趋势:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
FILLRGN(趋势>40,趋势,40),COLOR32329B;
FILLRGN(40>趋势,趋势,40),COLOR326400;
PARTLINE(趋势>40,趋势),COLORRED;
PARTLINE(趋势<40,趋势),COLORGREEN;
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
中线★:=EMA(X,13);
短线成本★:=EMA(CLOSE,17);
危险:BARSLAST(短线成本★>中线★),COLORGREEN;
安全:BARSLAST(短线成本★<中线★),COLORRED;
VAR2:=LLV(LOW,33);
VAR3:=HHV(HIGH,21);
VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,20)*0.998;
短线通道:20,COLORGREEN;
短线:EMA(0.667*REF(VAR4,1)+0.333*VAR4,1);
STICKLINE(短线通道>短线,短线通道,短线,0,0),COLORGREEN,LINETHICK1;
STICKLINE(短线通道<短线,短线通道,短线,10,0),COLORFF00FF,LINETHICK1;
DRAWTEXT(CROSS(短线,短线通道) ,短线,'←★买不亏'),COLORYELLOW;
STICKLINE(CROSS(短线,短线通道),20,0,2,0) ,COLORRED;
买不亏:CROSS(短线,短线通道),COLORRED;
PARTLINE(短线>REF(短线,1) AND 短线>=0,短线),COLORRED,LINETHICK2;
PARTLINE(短线<REF(短线,1) AND 短线>0,短线),COLORGREEN,LINETHICK1;
WEN:=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);
趋势线: WEN,LINETHICK2,COLORFF84FF;
DRAWTEXT(CROSS(趋势线,49),47,'转★强'),ALIGN0,COLORYELLOW;
STICKLINE(CROSS(趋势线,49),40,0,2,0) ,COLORYELLOW;
转★强:CROSS(趋势线,49),COLORRED;
PARTLINE(趋势线>REF(趋势线,1) AND 趋势线>=0,趋势线),COLORYELLOW,LINETHICK2;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
财神:SMA(RSV1,5,1),COLORYELLOW,LINETHICK1;
出现:SMA(财神,10,1),COLORGREEN,LINETHICK1;
STICKLINE(财神>出现,财神,出现,4,0),COLORYELLOW;
STICKLINE(财神<=出现,财神,出现,0,0),COLORGREEN;
PARTLINE(财神>REF(财神,1) AND 财神>=0,财神),COLORRED,LINETHICK1;
PARTLINE(出现>REF(出现,1) AND 出现>=0,出现),COLORRED,LINETHICK1;
RSV1:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;
K1:=SMA(RSV1,13,1);
D1:=SMA(K1,13,1);
中线浪:ema(d1,3),COLORRED;
PARTLINE(中线浪>REF(中线浪,1) AND 中线浪>=0,中线浪),COLORRED,LINETHICK2;
PARTLINE(中线浪<REF(中线浪,1) AND 中线浪>0,中线浪),COLORGREEN,LINETHICK1;
{www.gpxiazai.com 股票软件下载网_最新股票指标公式}
DRAWTEXTEX(1,1,0,880,' 耐 心 等 待 '),COLORYELLOW;
VAR2BMM:=IF(MONTH<12,1,1);
VAR3BMM:=(2*CLOSE+HIGH+LOW)/4;
VAR4BMM:=LLV(LOW,34);
VAR5BMM:=HHV(HIGH,34);
主力:=EMA((VAR3BMM-VAR4BMM)/(VAR5BMM-VAR4BMM)*100,13)*VAR2BMM{,,LINETHICK1,COLORWHITE};
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2){,LINETHICK1,COLORFF9933;};
坚决清仓:IF(CROSS(散户,主力) AND 散户>75,70,80),LINETHICK1,COLORCYAN;
VAR10MM:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,8,1),3);
B5MM:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100;
VAR2AMM:=LLV(LOW,10);
VAR3AMM:=HHV(HIGH,25);
B6MM:=MA(B5MM,10);
AAA:= 25*(EMA((CLOSE-VAR2AMM)/(VAR3AMM-VAR2AMM)*4,4));
BBB:=10*(SMA(B6MM,3,1)/10);
DRAWTEXT( CROSS(BBB,AAA) AND BBB>56 ,80 ,'▼\n跑' ),COLORYELLOW,LINETHICK4;
- 上一篇公式:紫薇送福指标 (源码)
- 下一篇公式:中短波选股指标 (源码)