主線:(MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,36))/4,LINETHICK2,COLORFF00FF;
MA13:MA(C,13),COLORWHITE,LINETHICK2;
ma60:ma(close,60),colorffccCC;
ma90:=ema(close,90);
ma120:ema(close,120),colorffcc66;
C1:=EMA(INDEXC,500)/EMA(C,500);{調(diào)整到125天顯示大盤K線效果比較好}
D1:=INDEXO/C1; D2:=INDEXH/C1;
D3:=INDEXL/C1; D4:=INDEXC/C1;
上證K線:STICKLINE(D4>=REF(D4,1),D3,D2,0,0),COLORRED;
STICKLINE(D4>=REF(D4,1),D4,D1,5,0),COLORRED;
STICKLINE(D4< REF(D4,1),D3,D2,0,0),COLORFFCC66;
STICKLINE(D4< REF(D4,1),D4,D1,5,0),COLORFFCC66;
AA:=(ma13+主線)/2,color00ff00;
SX:=AA*(0.5/100)+AA,color0099ff;
XX:=AA-AA*(0.5/100),coloryellow;
均線粘合:=COUNT(BETWEEN(主線,XX,AA) and BETWEEN(MA13,SX,AA),5);
粘合突破:=均線粘合 AND
xd:=ma13>=主線 and cross(c,ma13) and cross(c,主線) AND C>O;
FF:=COUNT(BETWEEN(MA13,AA,XX) and BETWEEN(主線,AA,SX),5);
TT:=FF AND CROSS(C,MA13) AND CROSS(C,主線) AND MA13>=REF(MA13,1);
STICKLINE(粘合突破,MA13,MA13-0.09,4,0),COLOR6ACCFF;
DRAWTEXT(粘合突破,MA13-0.12,'粘合突破'),COLOR6ACCFF;
STICKLINE(TT,MA13,MA13-0.09,4,0),COLORWHITE;
DRAWTEXT(TT,MA13-0.12,'粘合突破'),COLORWHITE;
STICKLINE(XD,ma13,ma13-0.09,4,0),COLORYELLOW;
DRAWTEXT(XD,MA13-0.12,'粘合突破'),COLORYELLOW;
Va6:=(2*CLOSE+HIGH+LOW)/4;
Va8:=LLV(LOW,34);
VarB:=HHV(HIGH,34);
VarC:=EMA((Va6-Va8)/(VarB-Va8)*100,13);
VarD:=EMA(0.667*REF(VarC,1)+0.333*VarC,2);
生命線:EMA(VarD,10), colorff00ff,linethick2;
var1:=hhv(high,9)-llv(low,9);
var2:=hhv(high,9)-close;
var3:=close-llv(low,9);
var4:=((var2)/(var1))*(100)-70;
var5:=((close-llv(low,60))/(hhv(high,60)-llv(low,60)))*(100);
var6:=((2)*(close)+high+low)/(4);
var7:=sma(((var3)/(var1))*(100),3,1);
var8:=llv(low,34);
var9:=sma(var7,3,1)-sma(var4,9,1);
var10:=if((var9>100),var9-100,0);
var11:=hhv(high,34);
b1:=ema(((var6-var8)/(var11-var8))*(100),8);
b2:=ema(b1,5);
stickline(b1-b2>0,b1,b2,4,0),colorffffff;
stickline(b1-b2<0,b1,b2,4,0),colorFFFF52;
ss1:=(LOW+HIGH+CLOSE*2)/4;
ss2:= MA(ss1,4);
ss3:=HHV(ss2,10);
ss4:=ma(ss3,3);
ss5:=1.25*ss4-0.25*ss3;
xkkj:=if(ss5>ss3,ss3,ss5);
ff1:=LLV(ss2,10);
ff2:=ma(ff1,3);
ff3:=1.25*ff2-0.25*ff1;
dkkj:=if(ff3<ff1,ff1,ff3);
ma13:=ma(c,13);
zdhm:=cross(c,dkkj) and cross(c,ma13) and cross(c,xkkj);
zhm:=cross(c,ma13) and cross(c,xkkj);
大黑馬:if(zdhm or zhm,50,0),coloryellow,pointdot;
a:=(3*CLOSE+LOW+OPEN+HIGH)/6;
D1:=(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))/211;
D2:=EMA(D1,2);
D3:=EMA(D2,2);
K1:=EMA(D3,2);
小黑馬:IF(CROSS(D1,K1),45,0),COLORFFCC66,POINTDOT;
stickline(大黑馬>0,0,大黑馬*1.1,1,0),colorwhite;
stickline(大黑馬>0 and 大黑馬<52,30,大黑馬,1,0),colorred;
stickline(大黑馬>0,0,大黑馬*0.8,4,0),colorred;
stickline(大黑馬>0,0,大黑馬*0.4,8,0),colorred;
stickline(大黑馬>0,0,大黑馬*0.2,10,0),coloryellow;
stickline(大黑馬>0,0,大黑馬*0.1,10,0),colorffcc66;
stickline(小黑馬>0,0,小黑馬*1.1,1,0),colorwhite;
stickline(小黑馬>0 and 小黑馬<52,30,小黑馬,1,0),colorffcc66;
stickline(小黑馬>0,0,小黑馬*0.8,4,0),colorffcc66;
stickline(小黑馬>0,0,小黑馬*0.4,8,0),colorffcc66;
stickline(小黑馬>0,0,小黑馬*0.2,10,0),colorff00ff;
stickline(小黑馬>0,0,小黑馬*0.1,10,0),colorblue;
公式:
MA10:=ma(c,10);
x1:=MA10>ref(MA10,1);
x2:=MA10=ref(MA10,1);
x1 or x2
設(shè)置步驟:
W頂?shù)淄酰?/strong>
周期(1,100,15);
過濾(1,100,8);
選股(-30,-20,-26);
抄底(-50,-25,-40);
把上面這一段放在左上角小框中,其余的放在下面大框中
lc:=ref(close,1);
rsi5:=((sma(max((close - lc),0),5,1) / sma(abs((close - lc)),5,1)) * 100);
tr:=sum(max(max((high - low),abs((high - ref(close,1)))),abs((low - ref(close,1)))),10);
hd:=(high - ref(high,1));
ld:=(ref(low,1) - low);
dmp:=sum(if(((hd > 0) and (hd > ld)),hd,0),10);
dmm:=sum(if(((ld > 0) and (ld > hd)),ld,0),10);
pdi:=((dmp * 100) / tr);
mdi:=((dmm * 100) / tr);
adx:=ma(((abs((mdi - pdi)) / (mdi + pdi)) * 100),5);
av:=(rsi5 + adx);
dxr:=(((adx + ref(adx,5)) / 2) + rsi5);
0,colorff00ff;
wr10:=((100 * (hhv(high,10) - close)) / (hhv(high,10) - llv(low,10)));
newvol:=(rsi5 - wr10);
階段底部:=(av + newvol);
stickline((階段底部 >= 0),0,階段底部,0.3,1),linethick2,colorcc6600;
stickline((階段底部 < 0),0,階段底部,0.8,1),linethick5,colorred;
趨勢線:llv(階段底部,1),colorffffff;
stickline((趨勢線 >230 ),250,趨勢線,0.8,1),linethick6,colorgreen;
230,colorffffff
var2:=ma(close,5);
var3:=ma(close,10);
var4:=ma(close,20);
var5:=ma(close,30);
var6:=(var3+var4+var5)/(4);
var7:=((var6-ref(var6,周期))/(ref(var6,周期)))*(100);
var8:=((var6-ref(var6,周期))/(ref(var6,周期)))*(100);
var9:=ema(var7,過濾);
蛟龍出海:if((troughbars(3,15,1)=0) and (high>low+0.01),80,(-5)),coloryellow,linethick2;
反轉(zhuǎn):stickline(var9>1*ref(var9, 1), var7, 0, 5, 0), coloree00ee;
持股:stickline(var7>1*ref(var7, 1), var7, var9, 5, 0), colorred;
持幣:stickline(var7<1*ref(var7, 1), var7, var9, 5, 1), colorgreen;
洗盤:stickline(var7<1*ref(var7, 1) and var9>1*ref(var9, 1), var7, var9, 10,
0), color00eeff;
var10:=((close-ma(close,58))/(ma(close,58)))*(100);
var11:=((var10>(1)*(ref(var10,1))) and (var10<選股) and (var10>抄底))*(1.5);
var12:=((vol)/(capital))*(100);
var13:=llvbars(low,50);
var14:=sum(vol,var13);
var15:=hhvbars(high,50);
var16:=sum(vol,var15);
var17:=((close-ref(open,var15))/(ref(open,var15)))*(100);
var18:=((var16)/(capital))*(100);
var19:=((close-ref(open,var13))/(ref(open,var13)))*(100);
var20:=((var14)/(capital))*(100);
var21:=ma(close,3);
var22:=(ref(close,2))*(0.86500001);
var23:=(ref(close,13))*(0.77200001);
var24:=min(var22,var23);
var25:=ma(close,13);
抄底王:if(((close-var24)/(close)<0.02999999) and (var17<(-35)) and ((sum
(var12,5))/(5)<1.8),1,0)*(10),colorffffff;
drawtext(抄底王, 抄底王-5, ' 成功率90追 '), colorffaa00;
var26:=((close-ref(close,1))/(ref(close,1)))*(100);
var27:=(ema(close,12)-ema(close,26))*(100);
var28:=ema(var27,9);
var29:=(2)*(var27-var28);
drawtext(var27<(-50) and var26>7 and var27<var28, (-10), '底'), colorwhite;
drawtext(var27<(-50) and var26>7 and var27>=var28, 5, '追'), colorwhite;
stickline(var27<(-50) and var26>7, 0,(-10), 5, 0), colorffff66;
急速超跌:=(c-ma(c,34))/ma(c,34)*100<-19;{34日乖離率}
當日收陽:=(h-l)/l>0.07{當天振幅大于7%}
and
and c/ref(c,1)>1.05{當日漲幅超過5%};
海面線:if(急速超跌 and 當日收陽,5,0),colorred ,linethick2;
W逃頂王:
周期(1,100,15);
過濾(1,100,8);
選股(-30,-20,-26);
抄底(-50,-25,-40);
把上面這一段放在左上角小框中,其余的放在下面大框中
lc:=ref(close,1);
rsi5:=((sma(max((close - lc),0),5,1) / sma(abs((close - lc)),5,1)) * 100);
tr:=sum(max(max((high - low),abs((high - ref(close,1)))),abs((low - ref(close,1)))),10);
hd:=(high - ref(high,1));
ld:=(ref(low,1) - low);
dmp:=sum(if(((hd > 0) and (hd > ld)),hd,0),10);
dmm:=sum(if(((ld > 0) and (ld > hd)),ld,0),10);
pdi:=((dmp * 100) / tr);
mdi:=((dmm * 100) / tr);
adx:=ma(((abs((mdi - pdi)) / (mdi + pdi)) * 100),5);
av:=(rsi5 + adx);
dxr:=(((adx + ref(adx,5)) / 2) + rsi5);
0,colorff00ff;
wr10:=((100 * (hhv(high,10) - close)) / (hhv(high,10) - llv(low,10)));
newvol:=(rsi5 - wr10);
階段底部:=(av + newvol);
趨勢線:llv(階段底部,1),colorffffff;
stickline((趨勢線 >230 ),250,趨勢線,0.8,1),linethick6,colorgreen;
230,colorffffff ;
長期線:+100,color9900FF;
+100,coloryellow,linethick2;
蛟龍出海:if((troughbars(3,15,1)=0) and (high>low+0.01),80,(-5)),coloryellow,linethick2;
周期(1,100,15);
過濾(1,100,8);
選股(-30,-20,-26);
抄底(-50,-25,-40);
把上面這一段放在左上角小框中,其余的放在下面大框中
var2:=ma(close,5);
var3:=ma(close,10);
var4:=ma(close,20);
var5:=ma(close,30);
var6:=(var3+var4+var5)/(4);
var7:=((var6-ref(var6,周期))/(ref(var6,周期)))*(100);
var8:=((var6-ref(var6,周期))/(ref(var6,周期)))*(100);
var9:=ema(var7,過濾);
蛟龍出海:if((troughbars(3,15,1)=0) and (high>low+0.01),80,(-5)),coloryellow,linethick2;
反轉(zhuǎn):stickline(var9>1*ref(var9, 1), var7, 0, 5, 0), coloree00ee;
持股:stickline(var7>1*ref(var7, 1), var7, var9, 5, 0), colorred;
持幣:stickline(var7<1*ref(var7, 1), var7, var9, 5, 1), colorgreen;
洗盤:stickline(var7<1*ref(var7, 1) and var9>1*ref(var9, 1), var7, var9, 10,
0), color00eeff;
var10:=((close-ma(close,58))/(ma(close,58)))*(100);
var11:=((var10>(1)*(ref(var10,1))) and (var10<選股) and (var10>抄底))*(1.5);
var12:=((vol)/(capital))*(100);
var13:=llvbars(low,50);
var14:=sum(vol,var13);
var15:=hhvbars(high,50);
var16:=sum(vol,var15);
var17:=((close-ref(open,var15))/(ref(open,var15)))*(100);
var18:=((var16)/(capital))*(100);
var19:=((close-ref(open,var13))/(ref(open,var13)))*(100);
var20:=((var14)/(capital))*(100);
var21:=ma(close,3);
var22:=(ref(close,2))*(0.86500001);
var23:=(ref(close,13))*(0.77200001);
var24:=min(var22,var23);
var25:=ma(close,13);
抄底王:if(((close-var24)/(close)<0.02999999) and (var17<(-35)) and ((sum
(var12,5))/(5)<1.8),1,0)*(10),colorffffff;
drawtext(抄底王, 抄底王-5, ' 成功率90追 '), colorffaa00;
var26:=((close-ref(close,1))/(ref(close,1)))*(100);
var27:=(ema(close,12)-ema(close,26))*(100);
var28:=ema(var27,9);
var29:=(2)*(var27-var28);
drawtext(var27<(-50) and var26>7 and var27<var28, (-10), '底'), colorwhite;
drawtext(var27<(-50) and var26>7 and var27>=var28, 5, '追'), colorwhite;
stickline(var27<(-50) and var26>7, 0,(-10), 5, 0), colorffff66;
急速超跌:=(c-ma(c,34))/ma(c,34)*100<-19;{34日乖離率}
當日收陽:=(h-l)/l>0.07{當天振幅大于7%}
and
and c/ref(c,1)>1.05{當日漲幅超過5%};
海面線:if(急速超跌 and 當日收陽,5,0),colorred ,linethick2;
W蛟龍出海
蛟龍出海:if((troughbars(3,15,1)=0) and (high>low+0.01),80,(-5)),coloryellow,linethick2;
N(1,20,10);
-------------------------橫行以上放在第一個白框內(nèi),一下均放在下面。包括所有文字。
MA5:=MA(C,5),COLORWHITE;
MA10:=MA(C,10),COLORFF00FF;
MA20:=MA(C,20),COLOR00FF00;
MA30:=MA(C,30),COLORYELLOW;
MA120:=SMA(C,120,1),COLOR0000FF;
ZH520:=ABS(MA5-MA20)/MA20*100<=N;
ZH530:=ABS(MA5-MA30)/MA30*100<=N;
QSXS1:=MA5>REF(MA5,1);
QSXS2:=MA20>REF(MA20,1);
QSXS3:=MA30>REF(MA30,1);
DTPL:=MA20>MA30 AND MA30>MA120;
LYHT:=DTPL AND QSXS2 AND QSXS3 AND NOT(QSXS1) AND REF(QSXS1,1);
老鴨回頭:LYHT*50,COLORFF00FF;
WR5:=100*(HHV(H,5)-C)/(HHV(H,5)-LLV(L,5));
WR6:=100*(HHV(H,6)-C)/(HHV(H,6)-LLV(L,6));
WR:=80-(WR5*3+WR6*2)/5;
坑:IF(WR<0,WR,0),COLORYELLOW;
LYT:=DTPL AND QSXS2 AND QSXS3 AND COUNT(QSXS1,4)<=1;
GJHS:=C>MA5 AND ((QSXS1 AND NOT(REF(QSXS1,1))) OR C>REF(C,3));
LYKK:=GJHS AND (ZH520 OR ZH530) AND LYT;
買:(LYKK AND NOT(REF(LYKK,1)))*50,COLOR00FF00,LINETHICK2;
優(yōu)選:(買 AND COUNT((MA10>MA20),5)=5)*100,COLORYELLOW,LINETHICK2;
{以下設(shè)置副圖顯示方式}
DRAWTEXT(老鴨回頭,10,'●'),COLORFF00FF;
DRAWTEXT(老鴨回頭,10,'¤'),COLORFF00FF;
STICKLINE(WR<0,WR,0,2,0),COLORYELLOW;
STICKLINE(WR<-10,WR,-10,2,0),COLORWHITE;
DRAWTEXT(買,80,'買★買'),COLOR00FF00;
DRAWICON(優(yōu)選,10,1);
{以下設(shè)置逃頂指標}
varC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,varC),80,2);
var6:=REF(C,1);
var7:=SMA(MAX(C-var6,0),6,1)/SMA(ABS(C-var6),6,1)*100;
DRAWTEXT(CROSS(84,var7),100,'逃頂'),COLORYELLOW ;
聯(lián)系客服