公式原碼<br> <br> 1.1 1~50公式原碼<br> <br> <br> 1、n極限通道<br> 參數(shù): n(1,100,5)e(1,100,10)f(1,100,20)g(1,100,30) <br> <br> var1:=ema((low*0.9*vol+ref(low,1)*0.9*(capital-vol))/capital,n); <br> if(close< var1,var1*1.02,var1); <br> var2: ema((high*1.1*vol+ref(high,1)*1.1*(capital-vol))/capital,15); <br> 檢錢區(qū): stickline(count(close< var1,3)>=2,open,close,5,0), , colorwhite; <br> 跟進: drawtext(cross(close,var1),var1,'跟進'); <br> ma(close,5);<br> <br> <br> 2、短線通道<br> var1:=(close-llv(low,100))/(hhv(high,100)-llv(low,100))*200; <br> var2:=sma(var1,3,1); <br> var3:=sma(var2,3,1); <br> var4:=3*var2-2*var3; <br> var5:=llv(low,5); <br> var6:=hhv(high,5); <br> var7:=ema((close-var5)/(var6-var5)*100,4)*2; <br> var8:=ema(0.667*ref(var7,1)+0.333*var7,2); <br> var9:=3*var7-2*var8; <br> vara:=pow(ma(close,5),2)+ma(close,5); <br> varb:=pow(ma(low,5),2)+ma(low,5); <br> varc:=pow(ma(high,5),2)+ma(high,5); <br> vard:=(vara-llv(varb,64))/(hhv(varc,64)-llv(varb,64))*150+65-10; <br> vare:=sma(vard,3,1)*1.5-100; <br> varf:=sma(vare,3,1); <br> var10:=3*vare-2*varf; <br> var11:=(high+low+close*2)/4; <br> var12:=ema(var11,13); <br> var13:=std(var11,13); <br> var14:=(var11-var12)*100/var13; <br> var15:=ema(var14,5); <br> var16:=ema(var15,13); <br> var17:=ema(var15,13)+200-100; <br> var18:=ema(var17,10); <br> var19:=3*var17-2*var18; <br> var1a:=var2+var7+vare+var17; <br> var1b:=var3+var8+varf+var18; <br> var1c:=var4+var9+var10+var19; <br> var1d:=(high+low+close)/3; <br> var1e:=amount/vol/100; <br> var1f:=sum(amount,5)/sum(vol,5)/100; <br> var20:=(var1d-ma(var1d,34))/(0.015*avedev(var1d,34)); <br> var21:=dma(amount/vol/100,vol/capital); <br> var22:=(high+low+close+var1d)/4; <br> var23:=ema(var22,24); <br> var24:=std(var22,24); <br> var25:=(var22-var23)/var24*100; <br> var26:=(var1d-ma(var1d,24))/(0.015*avedev(var1d,24)); <br> var27:=ema(var25,5); <br> var28:=(var1e-ma(var1e,21))/(0.015*avedev(var1e,21)); <br> var29:=(var1f-ma(var1f,90))/(0.015*avedev(var1f,90)); <br> var2a:=((var29+var28+var27+var26+var20)/5+165)/4; <br> var2b:=(var1a+var1b+var1c*30)/32/5-15; <br> var2c:=(var2a+var2b)/2/1.1; <br> 短線: var2c, , colorgreen; <br> mid: ma(短線,26), , colorwhite; <br> upper: mid+2*std(短線,26); <br> lower: mid-2*std(短線,26), , colorffffff; <br> if(短線>mid,mid,短線), , colorred; <br> 買點: drawicon(cross(短線,mid),mid*0.97,1); <br> drawicon(cross(短線,lower),lower*0.97,3); <br> 賣點: drawicon(cross(upper,短線),upper*0.97,2); <br> mid, , coloryellow; <br> <br> <br> 3、東海指標<br> {n=13; n1=75; m=14; m1=15} <br> var1:=3*sma((close-llv(low,n1))/(hhv(high,n1)-llv(low,n1))*100,20,1)-2*sma(sma((close-llv(low,n1))/(hhv(high,n1)-llv(low,n1))*100,20,1),15,1); <br> var2:=3*sma((open-llv(low,n1))/(hhv(high,n1)-llv(low,n1))*100,20,1)-2*sma(sma((open-llv(low,n1))/(hhv(high,n1)-llv(low,n1))*100,20,1),15,1); <br> var3:=0-var2; <br> var4:=0-var1; <br> var5:=ma(var3,3); <br> stickline((-1)*var4>var5,(-1)*var4,(-1)*var3,6,1), , colorred; <br> stickline(var4>=ref(var3,1),(-1)*var4,(-1)*var3,6,1), , colorgreen; <br> var6:=ref(low,1)*0.9; <br> var7:=low*0.9; <br> var8:=(var7*vol+var6*(capital-vol))/capital; <br> var9:=ema(var8,30); <br> vara:=close-ref(close,1); <br> varb:=max(vara,0); <br> varc:=abs(vara); <br> vard:=sma(varb,7,1)/sma(varc,7,1)*100; <br> vare:=sma(varb,13,1)/sma(varc,13,1)*100; <br> varf:=barscount(close); <br> var10:=sma(max(vara,0),6,1)/sma(abs(vara),6,1)*100; <br> var11:=(-200)*(hhv(high,60)-close)/(hhv(high,60)-llv(low,60))+100; <br> var12:=(close-llv(low,15))/(hhv(high,15)-llv(low,15))*100; <br> var13:=sma((sma(var12,4,1)-50)*2,3,1); <br> var14:=(indexc-llv(indexl,14))/(hhv(indexh,14)-llv(indexl,14))*100; <br> var15:=sma(var14,4,1); <br> var16:=sma(var15,3,1); <br> var17:=(hhv(high,30)-close)/close*100; <br> var18:=var10<=25 and var11<-95 and var17>20 and var13<-30 and var16<30 and var9-close>=-0.25 and vard<22 and vare<28 and varf>50; <br> var19:=(high+low+close)/3; <br> var1a:=(var19-ma(var19,14))/(0.015*avedev(var19,14)); <br> var1b:=(var19-ma(var19,70))/(0.015*avedev(var19,70)); <br> var1c:=if(var1a>=150 and var1a<200 and var1b>=150 and var1b<200,10,0); <br> var1d:=if(var1a<=-150 and var1a>-200 and var1b<=-150 and var1b>-200,-10,var1c); <br> var1e:=(close-llv(low,27))/(hhv(high,27)-llv(low,27))*100; <br> var1f:=reverse(var1e); <br> var20:=sma(var1e,3,1); <br> var21:=sma(var20,3,1); <br> var22:=sma(var21,3,1); <br> var23:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100; <br> var24:=sma(var23,m1,1); <br> 牛朗: sma(var24,m1,1), , colormagenta; <br> var25:=(hhv(high,m)-close)/(hhv(high,m)-llv(low,m))*100; <br> var26:=sma(var25,m1,1); <br> var27:=sma(var26,m1,1); <br> 織女: sma(牛朗,m1,1), , coloryellow; <br> var28:=cost(10); <br> var29:=(close-var28)/var28*100; <br> var2a:=count(var29<-2.05,3); <br> 買: if(var2a>=3,10,0), , colorcyan; <br> 相遇: stickline(cross(5,買),0,20,6,0), , colorred; <br> var2b:=if(cross(var18,0.5),60,0); <br> 相愛: stickline(cross(sma(var27,m1,1),85),0,75,6,0), , colorwhite; <br> var2c:=cross(sma(max(close-(close+ref(close,1))/2,0),5,1)/sma(abs(close-(close+ref(close,1))/2),5,1)*100,(close+ref(close,1))/2) and (close-ref(close,36))/ref(close,36)*100<-10 and hhv(high,40)*0.8>llv(low,5) and sma((hhv(high,9)-close)/(hhv(high,9)-llv(low,9))*100,3,1)>80; <br> var2d:=(close-open)/open*100; <br> var2e:=ref(close,1); <br> var2f:=sma(max(close-var2e,0),6,1)/sma(abs(close-var2e),6,1)*100; <br> var30:=count(var2f<20,20)>=1; <br> var31:=if(var2d>9 and var30,60,0); <br> 相識: stickline(var2b or var31 or var2c*60,0,60,6,0), , colorgreen; <br> var32:=if("rsi.rsi1">78 and "roc.roc"20,80,100); <br> var33:=if(cross(var22,var21) and var22>75,80,100); <br> stickline(cross(var18,0.5) and count(var18=1,10)=1,0,60,6,0), , colorgreen; <br> drawtext(cross(var18,0.5) and count(var18=1,10)=1,35,'$'), , colorred; <br> 賣: if(var32<100 or var33<100,80,100), , colorred; <br> <br> 4、n貪心不足(分筆)<br> 參數(shù): n(1,100,10)f(1,100,25) <br> <br> 趨勢多: stickline(close>(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4,0,2.5,10,0), , colorred; <br> var1:=hhv(high,9)-llv(low,9); <br> var2:=hhv(high,9)-close; <br> var3:=close-llv(low,9); <br> var4:=var2/var1*100-70; <br> var5:=(close-llv(low,60))/(hhv(high,60)-llv(low,60))*100; <br> var6:=(2*close+high+low)/4; <br> var7:=sma(var3/var1*100,3,1); <br> var8:=llv(low,34); <br> var9:=sma(var7,3,1)-sma(var4,9,1); <br> vara:=if(var9>100,var9-100,0); <br> varb:=hhv(high,34); <br> varc:=ema((var6-var8)/(varb-var8)*100,13); <br> vard:=ema(0.667*ref(varc,1)+0.333*varc,2); <br> vare:=sma(max(close-ref(close,1),0)/close,8,1)/sma(abs(indexc-ref(indexc,1))/indexc,8,1)*100-25; <br> varf:=ma(vare,3); <br> var10:=ref(varf,1); <br> 生命線: ema(vard,n), ,colorgreen; <br> 紅燈亮買: stickline(cross(varc,vard) and varc>vard and varc<18,50,0,1,0), , colorred; <br> 捂緊錢袋: stickline(cross(vard,varc) and varc< vard and varc>60,90,100,10,1), , coloryellow; <br> 賣: stickline(filter(cross(vard,varc),10) and vard>79 and varc>79,100,55,3,0), , colorgreen; <br> stickline(varc-vard>0,varc,vard,8,1), , colorred; <br> stickline(varc-vard<0,varc,vard,8,0), , colorgreen; <br> 100, , coloryellow; <br> 0, , colorgreen; <br> 20, ,coloryellow; <br> 80, , coloryellow; <br> var11:=(close-llv(low,f))/(hhv(high,f)-llv(low,f))*100; <br> k: sma(var11,3,1), , coloryellow; <br> d: sma(k,3,1);<br> | |
|
|
|
|
<br> 1.1 151~200公式原碼<br> 151、波段之王--中線判勢 <br> var3:=close/open; <br> var4:=10*(high-ref(low,1))/ref(close,1)*var3; <br> var5:=20*(high-ref(low,9))/ref(low,9)*var3; <br> var6:=(var5-var4); <br> 趨勢線:sum(var6,0); <br> stickline(var6>0,ref(趨勢線,1),趨勢線,8,1),colorred; <br> stickline(var6<0,ref(趨勢線,1),趨勢線,8,0),coloryellow <br> <br> 152、神奇流星<br> {n=5 n1=35 m=10 p=2 }<br> 15,linethick3,colord0dcd0; <br> 85,linethick3,colord0dcd0; <br> var1:=hhv(vol,248); <br> 相對換手: vol/var1*100,stick,colormagenta; <br> var2:=(close-llv(close,n))/(hhv(close,n)-llv(close,n))*100; <br> var3:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100; <br> var4:=(close-llv(close,n1))/(hhv(close,n1)-llv(close,n1))*100; <br> var5:=(var2*5+var3*3)/8; <br> ema(ma(var5,2),2),linethick2,colorwhite; <br> ema(ma(var5,m),m),linethick2,colorblue; <br> ema(ema(ema(var4,5),5),5),linethick2,colorgreen; <br> ema(ma(var5,4),4),linethick2,coloryellow; <br> (var2*5+var3*3)/8,colorred; <br> (var2*5+var3*3)/8,colorred; <br> drawtext(troughbars(2,p,1)=5 or troughbars(2,p,1)=8,95,'☆'),colorgreen; <br> drawtext(troughbars(2,p,1)=13 or troughbars(2,p,1)=21,95,'★'),coloryellow; <br> drawtext(troughbars(2,p,1)=34 or troughbars(2,p,1)=55 or troughbars(2,p,1)=70,95,'★'),colorwhite; <br> drawtext(peakbars(1,p,1)=5 or peakbars(1,p,1)=8,5,'☆'),colorred; <br> drawtext(peakbars(1,p,1)=13 or peakbars(1,p,1)=21,5,'★'),coloryellow; <br> drawtext(peakbars(1,p,1)=34 or peakbars(1,p,1)=55 or peakbars(1,p,1)=70,5,'★'),colorwhite; <br> var6:=drawtext(month=2 and (day=3 or day=5),50,'*'); <br> var7:=drawtext(month=2 and (day=18 or day=20),50,'*'); <br> var8:=drawtext(month=3 and (day=5 or day=7),50,'*'); <br> var9:=drawtext(month=3 and (day=20 or day=22),50,'*'); <br> vara:=drawtext(month=4 and (day=4 or day=6),50,'*'); <br> varb:=drawtext(month=4 and (day=19 or day=21),50,'*'); <br> varc:=drawtext(month=5 and (day=5 or day=7),50,'*'); <br> vard:=drawtext(month=5 and (day=20 or day=22),50,'*'); <br> vare:=drawtext(month=6 and (day=5 or day=7),50,'*'); <br> varf:=drawtext(month=6 and (day=20 or day=22),50,'*'); <br> var10:=drawtext(month=7 and (day=6 or day=8),50,'*'); <br> var11:=drawtext(month=7 and (day=22 or day=24),50,'*'); <br> var12:=drawtext(month=8 and (day=7 or day=9),50,'*'); <br> var13:=drawtext(month=8 and (day=22 or day=24),50,'*'); <br> var14:=drawtext(month=9 and (day=7 or day=9),50,'*'); <br> var15:=drawtext(month=9 and (day=22 or day=24),50,'*'); <br> var16:=drawtext(month=10 and (day=7 or day=9),50,'*'); <br> var17:=drawtext(month=10 and (day=22 or day=24),50,'*'); <br> var18:=drawtext(month=11 and (day=7 or day=9),50,'*'); <br> var19:=drawtext(month=11 and (day=22 or day=24),50,'*'); <br> var1a:=drawtext(month=12 and (day=6 or day=8),50,'*'); <br> var1b:=drawtext(month=12 and (day=21 or day=23),50,'*'); <br> var1c:=drawtext(month=1 and (day=5 or day=7),50,'*'); <br> var1d:=drawtext(month=1 and (day=19 or day=21),50,'*'); <br> var6 or var7 or var8 or var9 or vara or varb or varc or vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18 or var19 or var1a or var1b or var1c or var1d,colorwhite; <br> <br> <br> 153、鯉魚躍龍門 <br> var1:=(close-llv(low,100))/(hhv(high,100)-llv(low,100))*200; <br> var2:=sma(var1,3,1); <br> var3:=sma(var2,3,1); <br> var4:=3*var2-2*var3; <br> var5:=llv(low,5); <br> var6:=hhv(high,5); <br> var7:=ema((close-var5)/(var6-var5)*100,4)*2; <br> var8:=ema(0.667*ref(var7,1)+0.333*var7,2); <br> var9:=3*var7-2*var8; <br> vara:=pow(ma(close,5),2)+ma(close,5); <br> varb:=pow(ma(low,5),2)+ma(low,5); <br> varc:=pow(ma(high,5),2)+ma(high,5); <br> vard:=(vara-llv(varb,64))/(hhv(varc,64)-llv(varb,64))*150+65-10; <br> vare:=sma(vard,3,1)*1.5-100; <br> varf:=sma(vare,3,1); <br> var10:=3*vare-2*varf; <br> var11:=(high+low+close*2)/4; <br> var12:=ema(var11,13); <br> var13:=std(var11,13); <br> var14:=(var11-var12)*100/var13; <br> var15:=ema(var14,5); <br> var16:=ema(var15,13); <br> var17:=ema(var15,13)+200-100; <br> var18:=ema(var17,10); <br> var19:=3*var17-2*var18; <br> var1a:=var2+var7+vare+var17; <br> var1b:=var3+var8+varf+var18; <br> var1c:=var4+var9+var10+var19; <br> var1d:=(high+low+close)/3; <br> var1e:=amount/vol/100; <br> var1f:=sum(amount,5)/sum(vol,5)/100; <br> var20:=(var1d-ma(var1d,34))/(0.015*avedev(var1d,34)); <br> var21:=dma(amount/vol/100,vol/capital); <br> var22:=(high+low+close+var1d)/4; <br> var23:=ema(var22,24); <br> var24:=std(var22,24); <br> var25:=(var22-var23)/var24*100; <br> var26:=(var1d-ma(var1d,24))/(0.015*avedev(var1d,24)); <br> var27:=ema(var25,5); <br> var28:=(var1e-ma(var1e,21))/(0.015*avedev(var1e,21)); <br> var29:=(var1f-ma(var1f,90))/(0.015*avedev(var1f,90)); <br> var2a:=((var29+var28+var27+var26+var20)/5+165)/4; <br> var2b:=(ema(ema(ema(var2a,15),10),5)-25)*2+var21; <br> var2c:=(var1a+var1b+var1c*30)/32/5-15; <br> var2d:=ema(var2c,13); <br> var2e:=(var2a+var2c)/2/1.1; <br> 0, pointdot; <br> 50, pointdot; <br> 105, pointdot; <br> 龍門: var2e colorgreen linethick2; <br> 鯉魚: (var2b+var2d)/2 colorred linethick2 <br> <br> 154、疊加操作 <br> var1:=(close-llv(low,120))/(hhv(high,120)-llv(low,120))*100;<br> var2:=(open-llv(low,120))/(hhv(high,120)-llv(low,120))*100;<br> var3:=(high-llv(low,120))/(hhv(high,120)-llv(low,120))*100;<br> var4:=(low-llv(low,120))/(hhv(high,120)-llv(low,120))*100;<br> stickline(close>=open,var3,var1,0.7,1),colorred , ;<br> stickline(close>=open,var2,var4,0.7,1),colorred , ;<br> stickline(close<open,var3,var2,0.7,1),colorgreen , ;<br> stickline(close<open,var1,var4,0.7,1),colorgreen , ;<br> stickline(close=open,var1,var2,7,1),colorred , ;<br> stickline(close>open,var1,var2,7,1),colorred , ;<br> stickline(close<open,var2,var1,7,1),colorgreen , ;<br> var5:=ref(close,1);<br> rsi1: sma(max(close-var5,0),5,1)/sma(abs(close-var5),5,1)*100,colorffff00 , ;<br> rsi2: sma(max(close-var5,0),10,1)/sma(abs(close-var5),10,1)*100,coloryellow , ;<br> stickline(min(var2,var1)=0 and rsi1<20 or var4=0 and rsi1<20,0,80,2,1),colorred ,;<br> stickline(max(var2,var1)=100 and rsi1>80 or var3=100 and rsi1>80,100,20,2,1),colorgreen , ;<br> 20;<br> 80; <br> <br> 155、穩(wěn)操勝券3 <br> var2:=dma(close,high/ma(low,4)/4);<br> var3:=dma(close,close/ma(low,30)/30);<br> var4:=(low-var2)/var2*100<-5.889;<br> var5:=(var2-var3)/var3*100<-15.889;<br> var6:=var4 and var5 and (high-ma(low,3))/ref(low,2)>-0.059;<br> var8:=amount/vol/100;<br> var9:=(3*high+low+open+2*close)/7;<br> vara:=sum(amount,13)/var8/100;<br> varb:=dma(var9,vol/vara);<br> varc:=ma(hhv(high,488),18);<br> vard:=ma(hhv(high,220),18);<br> vare:=ma(hhv(high,98),18);<br> varf:=ma(llv(low,488),18);<br> var10:=ma(llv(low,220),18);<br> var11:=ma(llv(low,98),18);<br> var12:=ma((varf*0.96+var10*0.96+var11*0.96+varc*0.558+vard*0.558+vare*0.558)/6,18);<br> var13:=ma((varf*1.25+var10*1.23+var11*1.2+varc*0.55+vard*0.55+vare*0.65)/6,18);<br> var14:=ma((varf*1.3+var10*1.3+var11*1.3+varc*0.68+vard*0.68+vare*0.68)/6,18);<br> var15:=ma((var12*3+var13*2+var14)/6*1.738,18);<br> var16:=var15;<br> var17:=low;<br> var18:=ref(low,1);<br> var19:=sma(abs(var17-var18),3,1)/sma(max(var17-var18,0),3,1)*100;<br> var1a:=ma(if(close*1.35<=var16,var19*10,var19/10),3);<br> var1b:=llv(low,30);<br> var1c:=hhv(var1a,30);<br> var1d:=if(low<=var1b,(var1a+var1c*2)/2,0);<br> var1e:=ma(var1d and close<cost(1),3) and (close-varb)/varb*100<-11;<br> var1f:=ma(close,5);<br> var20:=ma(close,10);<br> var21:=ma(close,20);<br> var22:=ma(close,30);<br> var23:=(var1f+var20+var21+var22)/4;<br> var24:=(var23-ref(var23,15))/ref(var23,15)*100;<br> var25:=if(var24<-10 and var24<ref(var24,1),20,0);<br> 買入: var7 and var1e and var25 and (close-open)>0,linethick2 , colorred;<br> <br> 156、風雨組合<br> var1:=(close-llv(low,45))/(hhv(high,45)-llv(low,45))*100;<br> 山峰: sma(var1,5,1)-8,linethick2,colorcyan;<br> stickline(山峰,0,山峰,1,0),colorc8ff00;<br> var2:=(close-llv(low,13))/(hhv(high,13)-llv(low,13))*100;<br> var3:=sma(var2,5,1)-16;<br> stickline(var3>山峰,0,-5,4,2),coloryellow;<br> stickline(var3<山峰,0,-5,4,2),color9800ff;<br> 山谷: stickline(filter(cross(var3,山峰),5)=1 and 山峰<15,0,30,13,2),colorgreen;<br> drawtext(filter(cross(var3,山峰),5)=1 and 山峰<15,-12,'山谷'),colorgreen;<br> 山腰: stickline(cross(山峰,var3) and var3>=55 and var3<70,0,50,13,0),coloryellow;<br> drawtext(cross(山峰,var3) and var3>=55 and var3<70,-12,'小歇'),coloryellow;<br> 山頂: stickline(filter(cross(山峰,80),20)=1,0,65,13,0),colorred;<br> drawtext(filter(cross(山峰,80),20)=1,-12,'山頂'),colorred;<br> 大本營: -20,circledot,color3098ff;<br> z001:=sma(vol,5,1);<br> z002:=(z001-llv(z001,10))/(hhv(z001,10)-llv(z001,10))*100;<br> z003:=sma(z002,3,1);<br> z004:=100-z003;<br> z005:=ref(z004,1)>ref(z004,2) and z004<34;<br> z006:=(close-llv(low,34))/(hhv(high,34)-llv(low,34))*100;<br> z007:=filter(z005,3); <br> 群山:=sma(z006,3,1),linestick, colorblue;<br> 下山了:stickline(z007 and 群山>60,0,75,13,0),colormagenta;<br> drawtext(z007 and 群山>60,-12,'下山了'),colormagenta; <br> <br> 157、多空陣地<br> var1:=ref(close,1); <br> var2:=sum(vol,2)/((hhv(high,2)-llv(low,2))*100); <br> var3:=(close-var1)*var2; <br> var4:=sum(var3,0); <br> var5:=sma(var4,10,1); <br> var6:=sma(var4,20,1); <br> 長線資金:=ma(var5-var6,10)color000000; <br> d線資金:=var5-var6,color000000; <br> 買入★安全持籌★:stickline(長線資金 -d線資金<0,-20 ,20, 8,0)colorgreen;<br> varx1:=(hhv(high,9)-close)/(hhv(high,9)-llv(low,9))*100-70;<br> varx2:=sma(varx1,9,1)+100;<br> varx3:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;<br> varx4:=sma(varx3,3,1);<br> varx5:=sma(varx4,3,1)+100;<br> varx6:=varx5-varx2;<br> 逃頂:= if(varx6>100,varx6-100,0) color000000 ;<br> ★豐收在握★持籌:stickline( 逃頂>0, 140,100 ,8 , 0)colormagenta;<br> 賣出!空倉!:stickline( 逃頂=0,140 ,100 , 10, 0)color0099ff;<br> 及時退出!觀望:stickline(長線資金-d線資金>0 ,-15 ,20 ,10 ,0 )colorred;<br> diff:=ema(c,12)-ema(c,34);<br> dea:=ema(diff,9); <br> macd:=500*(diff-dea)/ema(c,34) color000000 pointdot; <br> tr:=ema(ema(ema(c,8),8),8); <br> trix:=(tr-ref(tr,1))/ref(tr,1)*1000 pointdot color000000; <br> trma:=ema(trix,34) pointdot color000000; <br> ★買入★紅黃藍★:stickline(macd>0 and trix>trma ,65 ,100 ,8 ,0 )coloryellow;<br> 持籌★紅黃藍桃紅:stickline(macd>0,22,70,8,0) colorff3300; <br> <br> <br> 158、股價趨勢<br> 股價趨勢: 3*sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))<br> *100,5,1)-2*sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))<br> *100,5,1),3,1),color000000;<br> ★賣出信號★:stickline(cross(85,股價趨勢) , 136,23 ,10 ,0 )coloraa9999;<br> 賣出信號a: if(cross(85,股價趨勢),138,0),stick,color000000;<br> drawtext(賣出信號a,50,'★★★快逃!'),colorwhite;<br> drawicon( 賣出信號a,160 ,1 );<br> varo3:=(2*close+high+low)/4;<br> varo4:=llv(low,34);<br> varo5:=hhv(high,34);<br> 散戶:= ema((varo3-varo4)/(varo5-varo4)*100,13), , ;<br> 小心套牢:stickline(cross(80 ,散戶 ) ,140 ,80 ,14 ,0 ),colorff9999;<br> 新莊: ema(0.667*ref(散戶,1)+0.333*散戶,2), ,color000000 ;<br> 行情在絕望中誕生:stickline(cross(散戶 ,15 ) ,-15 ,80 ,14 ,0 ) ,colormagenta; <br> <br> 159、絕對底部<br> var1:=indexc; <br> var2:=ma(var1,6); <br> var3:=ma(var1,24); <br> var4:=ma(var1,32); <br> var5:=ma(var1,62); <br> var6:=ma(var1,105); <br> var7:=var5<ref(var5,1) and var6<ref(var6,1) and var5<var6*0.98; <br> var8:=var4>var2*1.11 and var3>var2*1.095; <br> var9:=var2>var1*0.95;<br> 飛狐會員專用:0; <br> 百發(fā)百中:var7 and var8 and var9 and close/cost(8)<=0.8 and <br> (close>open or close<open) and (ref(close,1)>ref(open,1) or <br> ref(close,1)<ref(open,1)),coloryellow; <br> var1n:=ma(close,5),; <br> var2n:=ma(close,10); <br> var3n:=(var1n-close)/close>3/100; <br> var4n:=(var2n-var1n)/var1n>0.03; <br> var5n:=llv(close,30)=llv(close,120); <br> 底部:var3n and var4n and var5n,colorgreen; <br> 絕對底部2:=count(百發(fā)百中=1,5)=1 and 底部,linethick2,colorred;<br> 絕對底部:stickline( filter(絕對底部2=1,5),0 ,1.5,5 , 0.8),colorred;<br> 絕對底部出擊:百發(fā)百中=1 and 底部=1 ,colorred; <br> <br> <br> 160、實戰(zhàn)看盤<br> var1:=ma(100*(close-llv(close,34))/(hhv(high,34)-llv(low,34)),5)-20;<br> var2:=2*abs(var1);<br> var3:=100-(100-3*sma((close-llv(low,55))/(hhv(high,55)-llv(low,55))<br> *100,20,1)+2*sma(sma((close-llv(low,55))/(hhv(high,55)-llv(low,55))<br> *100,20,1),15,1));<br> var4:=100-(100-3*sma((open-llv(low,55))/(hhv(high,55)-llv(low,55))<br> *100,20,1)+2*sma(sma((open-llv(low,55))/(hhv(high,55)-llv(low,55))<br> *100,20,1),15,1));<br> var5:=(high+low+close)/3;<br> var6:=(var5-ma(var5,10))/(0.015*avedev(var5,10));<br> var7:=(var5-ma(var5,30))/(0.015*avedev(var5,30));<br> var8:=if(var6>=150 and var6<200 and var7>=150 and var7<200,10,0);<br> var9:=if(var6<=-150 and var6>-200 and var7<=-150 and var7>-200,-10,var8);<br> vara:=(close-ma(close,13))/ma(close,13)*100;<br> varb:=100-abs(vara);<br> varc:=3*sma((indexc-llv(indexl,55))/(hhv(indexh,55)-llv(indexl,55))*100,20,1)-2<br> *sma(sma((indexc-llv(indexl,55))/(hhv(indexh,55)-llv(indexl,55))*100,20,1),15,1);<br> vard:=3*sma((indexo-llv(indexl,55))/(hhv(indexh,55)-llv(indexl,55))<br> *100,20,1)-2*sma(sma((indexo-llv(indexl,55))/(hhv(indexh,55)-llv(indexl,55))*100,20,1),15,1);<br> vare:=ref(low,1)*0.9;<br> varf:=low*0.9;<br> var10:=(varf*vol+vare*(capital-vol))/capital;<br> var11:=ema(var10,30);<br> var12:=var11-close;<br> var13:=ref(close,1);<br> var14:=sma(max(close-var13,0),7,1)/sma(abs(close-var13),7,1)*100;<br> var15:=sma(max(close-var13,0),13,1)/sma(abs(close-var13),13,1)*100;<br> var16:=barscount(close);<br> var17:=sma(max(close-ref(close,1),0),6,1)/sma(abs(close-ref(close,1)),6,1)*100;<br> var18:=((-100)*(hhv(high,60)-close)/(hhv(high,60)-llv(low,60))+50)*2;<br> var19:=(close-llv(low,15))/(hhv(high,15)-llv(low,15))*100;<br> var1a:=(sma(var19,4,1)-50)*2;<br> var1b:=sma(var1a,3,1);<br> var1c:=(indexc-llv(indexl,14))/(hhv(indexh,14)-llv(indexl,14))*100;<br> var1d:=sma(var1c,4,1);<br> var1e:=sma(var1d,3,1);<br> var1f:=(hhv(high,30)-close)/close*100;<br> var20:=if(var17<=25 and var18<-95 and var1f>20 and var1b<-30 and var1e<30<br> and var12>=-0.25 and var14<22 and var15<28 and var16>50,80,0);<br> 大趨勢: var3,colorblack;<br> 頂線: if(varb<90,varb,100);<br> 多方: if(var1>0,var1,0), linestick;<br> 空方: -if(var1<0,var2,0), linestick;<br> 抄底: var20,colorred,linethick2;<br> 預警系統(tǒng): (if((var7>=200 and var6>=150) or cross(65,多方),15,if(var7<=-200<br> and var6<=-150,-15,var9))+65),colorcyan,;<br> stickline(var3<=ref(var4,1),var3,var4,8,0),colorwhite;<br> stickline(var3>ref(var4,1),var3,var4,8,0),colorred;<br> t1:=close>ma(close,20) and ma(close,20)>=ref(ma(close,20),1);<br> t2:=close<ma(close,20) and ma(close,20)<ref(ma(close,20),1);<br> t3:=多方>60 and 預警系統(tǒng)>65 and 頂線=100;<br> t4:=多方>48 and 預警系統(tǒng)>65 and 頂線<100;<br> t5:=空方<-38 and 預警系統(tǒng)<65;<br> t6:=抄底>50 and 頂線<90;<br> t7:=var3>ref(var4,1) and vol>ref(vol,1) and close>ref(close,1);<br> t8:=var3<=ref(var4,1) and close<ref(close,1) and 預警系統(tǒng)=65 and 抄底=0<br> and 空方>=ref(空方,1) and varc<ref(vard,1);<br> drawtext(t1 and count(t1,30)=1,10,'上升通道!'),color00ffff;<br> b2:=drawtext(t2 and count(t2,30)=1,55,'下降通道!'),color00ffff;<br> b3:=drawtext(t3 and count(t3,30)=1,55,'上漲過急!'),color00ffff;<br> b4:=drawtext(t4 and count(t4,30)=1,75,'莊家出貨!'),color00ffff;<br> b5:=drawtext(t5 and count(t5,30)=1,50,'有小反彈!'),color00ffff;<br> b6:=drawtext(t6 and count(t6,30)=1,30,'搶反彈!'),color00ffff;<br> b7:=drawtext(t7 and count(t7,30)=1,-10,'資金進場!'),color00ffff;<br> drawtext(t8 and count(t8,30)=1,90,'見頂回落!'),color00ffff | |
|