以下是最准自用的指标公式大全源码和使用说明
最准自用的指标公式大全源码:
指标公式大全:=MA(C,3);
TT:=(2*CLOSE+OPEN+HIGH+LOW);
主导动能:TT/Ema(TT,4)-1;
FF:=(主导动能*500)+50;
stICKLINE(FF,50,FF,3.2,0),COLOR33CFDD;
STICKLINE(FF,50,FF,2.8,0),COLOR33DFDD;
STICKLINE(FF,50,FF,2,0),COLOR33EFDD;
STICKLINE(FF,50,FF,1,0),COLOR33FFDD;
STICKLINE(FF<50,50,FF,3.2,0),COLOR00CC00;
STICKLINE(FF<50,50,FF,2.8,0),COLOR00DD00;
STICKLINE(FF<50,50,FF,2,0),COLOR00EE00;
STICKLINE(FF<50,50,FF,1,0),COLOR00FF00;
STICKLINE(FF>REF(FF,1)ANDFF<50,50,FF,3.2,0),COLORFF9900;
STICKLINE(FF>REF(FF,1)ANDFF<50,50,FF,2.8,0),COLORFFAA00;
STICKLINE(FF>REF(FF,1)ANDFF<50,50,FF,2,0),COLORFFBB00;
STICKLINE(FF>REF(FF,1)ANDFF<50,50,FF,1,0),COLORFFCC00;
STICKLINE(FF>REF(FF,1)ANDFF>50,50,FF,3.2,0),COLOR0000CC;
STICKLINE(FF>REF(FF,1)ANDFF>50,50,FF,2.8,0),COLOR0000DD;
STICKLINE(FF>REF(FF,1)ANDFF>50,50,FF,2,0),COLOR0000EE;
STICKLINE(FF>REF(FF,1)ANDFF>50,50,FF,1,0),COLOR0000FF;
{黑马一号}
AHC1:=CLOSE*vol;
AHC22:=EMA((expma(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
通道:=1.0668*AHC22;
起爆:=crOSS(C,通道)ANDREF(C,1)*1.05-C<0.008ANDC>O*0.5;
黑马一号:IF(起爆,40,0);
{黑马启动}
ac1:=Abs(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
AC2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),AC1);
金线王:=EMA(AC2,200)*1.118;
条件:=(C-REF(C,1))/REF(C,1)*100>8;
黑马启动:IF(CROSS(C,金线王)AND条件,39,0);
{黑马必抓}
AA05:=MA(C,5);
AA30:=MA(C,30);
MA05:=MA(C,5);
MA10:=MA(C,13);
MAC30:=MA(C,34);
速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3);
五日乖离率:=(C-AA05)/AA05*100;
三拾日乖离率:=(C-MAC30)/MAC30*100;
MR:=COUNT(CROSS(五日乖离率,0),3)>=1AND三拾日乖离率>REF(三拾日乖离率,1)ANDAA05>REF(AA05,1)AND(C/REF(C,1)-1)*100>5ANDREF(C,1)1.048ANDC=HANDBETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
拉升:IF(FILTER(LS,28),37,0);
{粉量}
VOLUME:=VOL;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,34);
MAVOL3:=MA(VOLUME,135);
XG:=IF(CROSS(0.6,((((1/VOL)*3000)>0.01)AND(kdj.J<0))AND(cci.CCI<-100)),VOLUME*5,0);
XGG:=XG>0;
ABC:=(VOL>=(REF(V,1)*1.91))AND(C>(REF(C,1)*1.01));
ABC1:=VOL<REF(LLV(VOL,13),1);
ABC2:=VOL<REF(LLV(VOL,55),1);
ABC3:=((ABS(VOL-REF(VOL,1)))/REF(VOL,1))<=0.05;
ABB1:=STICKLINE(ABC1,0,V,1,0);
BBB1:=STICKLINE(ABC2,0,V,1,0);
绿量:=(ABB1=1)AND(COUNT(OPEN<CLOSE,1));
粉量:=BBB1=1;
地量:IF((XGGAND绿量)OR(XGGAND粉量),36,0);
{趋势线}
趋势: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),COLORWHITE;
IF(趋势>=REF(趋势,1),趋势,DRAWNULL),COLORRED;
IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN;
{长期趋势金叉}
P1:=5;
P2:=4;
VARRA:=LLV(LOW,P1);
VARRB:=HHV(HIGH,P1);
涨停动力线:=EMA((CLOSE-VARRA)/(VARRB-VARRA)*100,P2);
涨停趋势线:=EMA(0.667*REF(涨停动力线,1)+0.333*涨停动力线,2);
金叉:=CROSS(涨停动力线,涨停趋势线);
钻石:IF(金叉AND趋势<25,15,0);
{与主力共生死}
价量:=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);
主线:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25);
快线:=(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25);
买入111:=快线>REF(快线,1)ANDREF(快线,1)=0ANDREF(快线,2)=0ANDC>REF(O,1);
买入222:=快线>REF(快线,1)ANDREF(快线,1)=0ANDREF(快线,1)<REF(快线,2)ANDREF(快线,2)<40;
卖出111:=快线<REF(快线,1)ANDREF(快线,1)=100ANDREF(快线,2)<=100;
快买:IF(买入111OR买入222,20,0);
快卖:IF(卖出111,85,100);
{超级支撑压力}
短压:=HHV(LOW,20);
中线:=MA(CLOSE,3);
短期底部:=(LLV(HIGH,30)*0.93);
短期支撑:=LLV(CLOSE,13),COLOR6803C7;
中期大底:=LLV(LOW,30);
长期底部:=LLV(HIGH,30);
MA30:=LLV(HIGH,30);
短期底部二:=SMA(CLOSE,2,1);
下档线:=(((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13)))*100);
{//标注}
上:=(SMA(LOW,5,2)*0.96);
AA1:=((((LOW<=上)AND(HIGH>=短期底部))AND(CLOSE>=长期底部))AND((CLOSE/OPEN)>1.03));
AA2:=FILTER(((((LOW<=MA30)AND(CLOSE>MA30))AND(CLOSE>OPEN))AND(短期底部二<=MA30)),8);
超级组合1:IF(AA1,30,0);
超级组合2:IF(AA2,30,0);
{股价准备启动}
VAR11:=3;
VAR21:=(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));
准备启动:IF(CROSS(VAR21,VAR11),55,0);
{★底}
VAR2W:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
MW:=EMA(VAR2W,3);
VAR3W:=EMA(VAR2W,7);
M1:=EMA(VAR3W,5);
MB1:=CROSS(MW,M1)ANDM1<20;
TJ2:=IF((MB1),20,0),LINETHICK1,COLORRED;
星底:IF(CROSS(MW,M1)ANDM1<20,34,0);
{反弹}
A1:=HHV(HIGH,50)/LLV(LOW,100)>1.5;
A2:=(HHV(HIGH,50)-LOW)/(HHV(HIGH,50)-LLV(LOW,100));
A3:=(LOW-LLV(LOW,100))/(HHV(HIGH,50)-LLV(LOW,100));
A4:=HHVBARS(HIGH,50)<LLVBARS(LOW,100);
A5:=A1ANDA2>0.5ANDA3>0.3ANDA4;
A6:=COUNT(A5,20)=1;
反弹:=IF(A6ANDA5,33,0);
{当心反弹}
A:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K:=SMA(A,2,1);
Q:=A*1.03;
反弹1:IF(CROSS(Q,15)ANDK>REF(K,1),32,0)AND趋势>REF(趋势,1),LINETHICK2,COLOR95FFCC;
{反弹}
VAR110:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR120:=REF(VAR110,1);
VAR130:=SMA(MAX(VAR110-VAR120,0),10,1)/SMA(ABS(VAR110-VAR120),10,1)*100;
底部不远:=IF(COUNT(VAR130<=14,2),30,0),COLORMAGENTA,LINETHICK2;
反弹2:IF(CROSS(VAR130,底部不远)ANDVOL>1.5*MA(VOL,5),31,0);
{黄金反弹}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1:=SMA(RSV,3,1),COLORWHITE;
D1:=SMA(K1,3,1),COLORYELLOW;
bias1:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
A11:=CROSS(K1,D1)ANDCROSS(K1,D1)<16ANDBIAS1<-6;
黄金反弹:IF(A11AND金叉,29,0),COLORFF00FF;
AB1:=C-REF(C,1);
AB2:=100*EMA(EMA(AB1,6),6)/EMA(EMA(ABS(AB1),6),6);
买进1:=(LLV(AB2,2)=LLV(AB2,7)ANDCOUNT(AB2<0,2)ANDCROSS(AB2,MA(AB2,2)));
买进:IF(买进1,10,0);
A7:=REF(C,1)-C;
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
卖出1:=(LLV(A8,2)=LLV(A8,7)ANDCOUNT(A8<0,2)ANDCROSS(A8,MA(A8,2)));
卖出:IF(卖出1,90,100);
{低吸}
VARJ1:=LLV(LOW,21);
VARJ2:=HHV(HIGH,21);
AKJ1:=EMA((((CLOSE-VARJ1)/(VARJ2-VARJ1))*100),5);
AKJ:=EMA((((CLOSE-VARJ1)/(VARJ2-VARJ1))*50),13);
低吸:IF(CROSS(AKJ1,AKJ),28,0);
{买卖点}
MVAR1:=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2);
MVAR2:=REF(MVAR1,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
MVAR3:=REF(MVAR2,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
MVAR4:=REF(MVAR3,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
MVAR5:=REF(MVAR4,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
MVAR6:=REF(MVAR5,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
MVAR7:=REF(MVAR6,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
MVAR8:=REF(MVAR7,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
MVAR9:=REF(MVAR8,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
MVARA:=REF(MVAR9,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
MVARB:=REF(MVARA,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
MVARC:=REF(MVARB,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
MVARD:=CLOSE<REF(CLOSE,1)ANDCLOSE<REF(CLOSE,2);
MVARE:=REF(MVARD,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
MVARF:=REF(MVARE,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
MVAR10:=REF(MVARF,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
MVAR11:=REF(MVAR10,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
MVAR12:=REF(MVAR11,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
MVAR13:=REF(MVAR12,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
MVAR14:=REF(MVAR13,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
MVAR15:=REF(MVAR14,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
MVAR16:=REF(MVAR15,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
MVAR17:=REF(MVAR16,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
MVAR18:=REF(MVAR17,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
MVAR19:=REF(MVARDORMVAREORMVARFORMVAR10ORMVAR11ORMVAR12ORMVAR13ORMVAR14ORMVAR15ORMVAR16ORMVAR17ORMVAR18,1)ANDMVAR1;
MVAR1A:=REF(MVAR1ORMVAR2ORMVAR3ORMVAR4ORMVAR5ORMVAR6ORMVAR7ORMVAR8ORMVAR9ORMVARAORMVARBORMVARC,1)ANDMVARD;
买:IF(FILTER(MVAR19=1,5)AND金叉,15,0);
逃:IF(FILTER(MVAR1A=1,5),90,100);
{绝底介入}
RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VARB2:=(RSV1/2+22)*1;
资量:=EMA(VOL,13);
资金:=EMA(AMOUNT,13);
过滤:=((资金/资量)/100);
提纯:=(((CLOSE-过滤)/过滤)*100);
黄金:=((提纯<(0))ANDZXNH),COLORRED;
底部:IF(黄金ANDRSV<VARB2-2,50,0),COLORRED,LINETHICK2;
{极品底}
极品底A:=(MA(C,5)-C)/C>0.04AND(MA(C,10)-MA(C,5))/MA(C,5)>0.04;
极品底:IF(极品底AANDCROSS(趋势,REF(趋势,1)),35,0),LINETHICK2,COLORFF00FF;
{底部买多}
V1:=MA(C,3)=HHV(MA(C,3),7);
V2:=MA(C,3)>MA(C,5);
V3:=MA(V,5)>MA(V,10)*1.01;
V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
LC20:=REF(CLOSE,1);
rsi20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;
底部买多:IF(CROSS(RSI20,11)*1,55,0),COLORRED;
{J抄底}
boll20:=MA(CLOSE,20);
LB20:=BOLL20-2*STD(CLOSE,20);
BOLL10:=MA(CLOSE,10);
LB10:=BOLL10-2*STD(CLOSE,10);
J1:=IF(3*K1-2*D1>100,100,3*K1-2*D1);
J抄底:IF(CROSS(J1,0)AND(COUNT(L<LB10,3)>0ORCOUNT(L<LB20,3)>0),26,0),COLOR00FFFF;
{黄金坑}
VAR88:=MA(CLOSE,27);
VAR98:=(CLOSE-VAR88)/VAR88*100;
VARA8:=MA(VAR98,2);
VARB8:=BArslAST(CROSS(-10,VARA8)=1);
VARC8:=BARSLAST(CROSS(VARA8,10)=1);
VARD8:=VARA8<-10ANDVARB8>3;
VARE8:=VARA8>10ANDVARC8>3;
黄金坑:IF(VARD8,VARA8,0),LINESTICK,LINETHICK2,COLORYELLOW;
{仙人指路}
皇榜公布:=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);
仙人指路:IF(CROSS(皇榜公布,2),70,0),COLORRED;
{发现牛股}
MA1:=MA(C,5);MA2:=MA(C,10);
MV1:=MA(V,5);MV2:=MA(V,10);
AA:=CROSS(C,MA1)ANDCROSS(C,MA2);
BB:=CROSS(V,MV1)ANDCROSS(V,MV2);
发现牛股:IF(AAANDBB,61,0),COLORRED;
{超级底部买进}
VARK21:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
买底:IF(CROSS(VARK21,8),85,0),COLORRED;
{发现庄}
VAR1:=EMA(HHV(HIGH,500),21);
VAR2:=EMA(HHV(HIGH,250),21);
VAR3:=EMA(HHV(HIGH,90),21);
VAR4:=EMA(LLV(LOW,500),21);
VAR5:=EMA(LLV(LOW,250),21);
VAR6:=EMA(LLV(LOW,90),21);
VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21);
VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,21);
VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21);
VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);
VARB:=REF(LOW,1);
VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;
VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3);
VARE:=LLV(LOW,30);
VARF:=HHV(VARD,30);
VAR10:=IF(MA(CLOSE,58),1,0);
SS:=EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10;
现庄:=(REF(SS,2)<REF(SS,1)ANDSS>REF(SS,1))*SS;
庄现:IF(现庄,60,0),COLORYELLOW,LINETHICK2;
{CCI}
N1:=84;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:EMA((TYP-MA(TYP,N1))/(0.1*AVEDEV(TYP,N1)),5)+30,COLORYELLOW;
ssccc1:=MA(C,60);
ssccc2:=MA(C,120);
ssccc3:=MA(C,40);
eeedd1:=SUM(WINNER(CLOSE)*100,10)/10-(SUM(WINNER(CLOSE)*100,10)/20+10);
eeedda1:STICKLINE(eeedd1>0,0,eeedd1,10,0),COLORRED;
eeedda2:STICKLINE(eeedd1<0,0,eeedd1,10,0),COLORBLUE;
eeedda4:IF(CROSS(指标公式大全,ssccc1)ANDCLOSE<ssccc2,15,0);
DRAWICON(eeedda4,15,1);
eeedd2:=CLOSE/ssccc3*100<78;
eeedd3:=CLOSE/ssccc1*100<74;
eeedd4:=HIGH>(LOW*1.051);
eeedd5:=eeedd4ANDCOUNT(eeedd4,5)>1;
eeedd6:=CLOSE/HHV(HIGH,BARSCOUNT(CLOSE>0))*100;
eeedda7:IF((REF(C,13)-CLOSE)/REF(C,13)*100*eeedd3>15ANDSUM(VOL/CAPITAL,13)*100<18ANDVOL/CAPITAL*100<2.5AND(REF(C,1)-CLOSE)/REF(C,1)*100<8ANDeeedd6<=50ANDeeedd5AND(eeedd2OReeedd3),-15,0);
DRAWICON(FILTER(eeedda7,6),-15,1);
DRAWTEXT(FILTER(eeedda7,6),-13,’eeedda7′);
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9),colorFF;
MACD:2*(DIFF-DEA),COLORSTICK;
D1:=EMA(CLOSE,3)-EMA(CLOSE,8);
D2:=EMA(OPEN,3)-EMA(OPEN,8);
D3:=EMA(HIGH,3)-EMA(HIGH,8);
D4:=EMA(LOW,3)-EMA(LOW,8);
DRAWICON(CROSS(D1,DIFF)ANDDIFF<-0.05,D4-0.1,1);
DRAWICON(CROSS(DIFF,D1)ANDDIFF>0.1,D3+0.1,2);
STICKLINE(D1>=D2,D1,D2,7,0),colorFF00FF;
STICKLINE(D1<=D2,D1,D2,7,0),colorFF00;
A1:=BARSLAST(REF(CROSS(“MACD.DIFF”(12,26,9),”MACD.DEA”(12,26,9)),1));
B1:=REF(CLOSE,A1+1)>CLOSEANDREF(“MACD.DIFF”(12,26,9),A1+1)<“MACD.DIFF”(12,26,9)ANDCROSS(“MACD.DIFF”(12,26,9),”MACD.DEA”(12,26,9));
MACD底背离:=FILTER(B1>0,5);
STICKLINE(MACD底背离,0,0.75,3,0),colorFF00;
DRAWTEXT(MACD底背离,0.57,’MACD底背离’),colorFF00;
A2:=BARSLAST(REF(CROSS(“KDJ.K”(9,3,3),”KDJ.D”(9,3,3)),1));
B2:=REF(CLOSE,A2+1)>CLOSEANDREF(“KDJ.K”(9,3,3),A2+1)<“KDJ.K”(9,3,3)ANDCROSS(“KDJ.K”(9,3,3),”KDJ.D”(9,3,3));
KDJ底背离:=FILTER(B2>0,5);
STICKLINE(KDJ底背离,0,1,3,0),colorFFFF;
DRAWTEXT(KDJ底背离,0.8,’KDJ底背离’),colorFFFF;
A3:=BARSLAST(REF(CROSS(“RSI.RSI1″(6,12,24),”RSI.RSI2″(6,12,24)),1));
B3:=REF(CLOSE,A3+1)>CLOSEANDREF(“RSI.RSI1″(6,12,24),A3+1)<“RSI.RSI1″(6,12,24)ANDCROSS(“RSI.RSI1″(6,12,24),”RSI.RSI2″(6,12,24));
RSI底背离:=FILTER(B3>0,5);
STICKLINE(RSI底背离,0,0.5,3,0),colorFFCC66;
DRAWTEXT(RSI底背离,0.25,’RSI底背离’),colorFFCC66;
2,colorFF;
C1:=BARSLAST(REF(CROSS(“MACD.DEA”(12,26,9),”MACD.DIFF”(12,26,9)),1));
D1:=REF(CLOSE,C1+1)<CLOSEANDREF(“MACD.DIFF”(12,26,9),C1+1)>”MACD.DIFF”(12,26,9)ANDCROSS(“MACD.DEA”(12,26,9),”MACD.DIFF”(12,26,9));
MACD顶背离:=FILTER(D1>0,5);
STICKLINE(MACD顶背离,2,1.25,3,0),color66FF;
DRAWTEXT(MACD顶背离,1.47,’MACD顶背离’),color66FF;
C2:=BARSLAST(REF(CROSS(“KDJ.D”(9,3,3),”KDJ.K”(9,3,3)),1));
D2:=REF(CLOSE,C2+1)<CLOSEANDREF(“KDJ.K”(9,3,3),C2+1)>”KDJ.K”(9,3,3)ANDCROSS(“KDJ.D”(9,3,3),”KDJ.K”(9,3,3));
KDJ顶背离:=FILTER(D2>0,5);
STICKLINE(KDJ顶背离,2,1,3,0),colorFF;
DRAWTEXT(KDJ顶背离,1.2,’KDJ顶背离’),colorFF;
C3:=BARSLAST(REF(CROSS(“RSI.RSI2″(6,12,24),”RSI.RSI1″(6,12,24)),1));
D3:=REF(CLOSE,C3+1)<CLOSEANDREF(“RSI.RSI1″(6,12,24),C3+1)>”RSI.RSI1″(6,12,24)ANDCROSS(“RSI.RSI2″(6,12,24),”RSI.RSI1″(6,12,24));
RSI顶背离:=FILTER(D3>0,5);
STICKLINE(RSI顶背离,2,1.5,3,0),colorFF00FF;
DRAWTEXT(RSI顶背离,1.75,’RSI顶背离’),colorFF00FF;
底背离:MACD底背离ORKDJ底背离ORRSI底背离;
顶背离:MACD顶背离ORKDJ顶背离ORRSI顶背离;
最准自用的指标公式大全截图
评论(0)