同花顺公式大全
同花顺公式函数应用大全
同花顺公式函数注释(常用部分)逻辑函数:1、条件函数:根据条件求不同的值。
用法:IF(X,A,B)若X不为0则返回A,否则返回B。
例如:(CLOSE>OPEN,HIGH,LOW)表示该周期收阳则返回最高值,否则返回最低值。
引用函数:1、满足条件的周期数:统计满足条件的周期数。
用法:COUNT(X,N),统计N周期中满足X条件的周期数,若N=0则从第一个有效值开始。
例如:COUNT(CLOSE>OPEN,20)表示统计20周期内收阳的周期数。
2、第一个条件成立到当前的周期数:统计第一个条件成立到当前的周期数。
用法:BARSSINCE(X):第一次X不为0到现在的天数。
例如:BARSSINCE(HIGH>10)表示股价超过10元时到当前的周期数。
3、上一次条件成立到当前的周期数:上一次条件成立到当前的周期数。
用法:BARSLAST(X),上一次X不为0到现在的天数。
例如:BARSLAST(CLOSE/REF(CLOSE,1)>=1,1)表示上一个涨停板到当前的周期数。
4、有效周期数:求总的周期数。
用法:BARSCOUNT(X),第一个有效数据到当前的天数。
5、向前赋值:将当前位置到若干周期前的数据设为1。
用法:BACKSET(X,N),若X非0,则将当前位置到N周期前的数值设为1。
例如:BACKSET(CLOSE>OPEN,2)若收阳则将该周期及前一周期数值设为1,否则为0。
6、求和:求总和。
用法:SUM(X,N),统计N周期中X的总和,N=0则从第一个有效值开始。
例如:SUM(VOL,5)周期设为日线时,表示最近5个交易日的成交量之和。
SUM(VOL,0)表示从传数据过来第一天起的成交量总和,具体如在区间统计里统计“总手”SUM(VOL,0)即是指全区间的成交量之和。
7、移动平均:求移动平均。
用法:SMA(X,N,M),求X的N日移动平均,M为权重。
算法:若Y=SMA(X,N,M)则Y=[M*X+(N-M)*Y']/N,其中Y'表示上一周期Y值,N必须大于M。
同花顺主力持仓公式
同花顺主力持仓公式主力持仓 TOPWINN 1,999,1IF(PERIODNAME<>"日线"){统计:"该指标只在日线周期下有效。
";RETURN;}r1:=ZDMR[-1];r2:=BDMR[-1];r3:=-ZDMC[-1];r4:=-BDMC[-1];x:=(ZDMR+BDMR)/SHGZG*30;y:=-(ZDMC+BDMC)/SHGZG*30;x1:=(ZDMR+BDMR)/SHGZG*100;y1:=-(ZDMC+BDMC)/SHGZG*100;a1=SUM(x1,0);b1=SUM(y1,0);主力持仓:=a1+b1;r:=((ZDMR[-1]+BDMR[-1])-(ZDMC[-1]+BDMC[-1]))/SHGZG*100;b:=SUM(r,0);STICKLINE(x1>0,x+b,b,2),colorred;STICKLINE(y1<0,b,b+y,2),colorgreen;IF(ISNULL(r1)){统计:"本指标由同花顺金融研究中心提供,每晚11点后提供当天的数据。
";RETURN;}a=(ZDMR[-1]+BDMR[-1]);b=(ZDMC[-1]+BDMC[-1]);a3=SUM(a,n)/1000000;b3=SUM(b,n)/1000000;VOL1=SUM(VOL,n)/1000000;IF(a3>b3){y=a3-b3;z=y/VOL1*100;统计:TOSTRING(n,0)+"天机构买入"+TOSTRING(a3,1)+"万手,卖出"+TOSTRING(b3,1)+"万手.净买入"+TOSTRING(y,1)+"万手.占总成交"+TOSTRING(z,1)+"%.";}ELSE{y=b3-a3;z=y/VOL1*100;统计:TOSTRING(n,0)+"天机构买入"+TOSTRING(a3,1)+"万手,卖出"+TOSTRING(b3,1)+"万手.净卖出"+TOSTRING(y,1)+"万手.占总成交"+TOSTRING(z,1)+"%.";}=========================================================同花顺l2公式函数2主力买卖大单N 1,100,1IF(PERIODNAME<>"日线"){统计:"该指标只在日线周期下有效。
同花顺指标公式
1,30个交易日内,股价跌幅达到一半的股票: xg:(hhv(c,30)-c)/hhv(c,30)>0.5;2,今天的量是5天平均的 2倍以上xg:v>ma(v,5)*2;缩量vol/ma(vol,10)<0.3;3,两天内,累计下跌等于或超过20%选股. xg:(ref(c,2)-c)/c>0.2;4,股价是25天以来新低.xg:c5,选股:EXPMA5日与10日金叉并且第二天的收盘价在EXPMA的5日线以上.cross(ref(ema(c,5),1),ref(ema(c,10),1 )) and c>ema(c,5);6,请编买入公式:1. 将BIAS指标的参数设置为24日,将KD 指标的参数设置为9;3;3。
2. BIAS指标要小于-6,这只是确认该股超跌的初选条件。
3. KD指标产生黄金交叉,K线上穿D线。
4. KD交叉同时,KD指标中的D值要小于16。
BIAS3 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE ,24)*100,colorff00ff;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;xg:BIAS3<-6 and cross(k,d) and d<16;7,要求是量大、换手率达到3左右,涨幅>7个点。
xg:v/capital*100>3 and(c/ref(c,1)>1.07;8,个股分时图上都有一条黄线,叫做均价线a/capital*100;9,"阴转阳"的公式(也就是昨天收阴线,今天收阳线)xg:ref(c,1)o;10,股价回抽20日均线选股公式xg:ref(c,1)>ma(c,20) andcross(ma(c,20),c);11,一根大阳线,至少有5个点以上,再连着出现二根振幅不大于5的十字星或是小K线xg:(ref(c,3)-ref(c,4))/ref(c,3)>0.05 and count((h-l)/l<0.05,2)=2;12,行情信息里的“涨幅”的原码(c-ref(c,1))/c*100;13,kdj的J从上向下穿越O轴发出信号RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;J:=3*K-2*D,COLORFF00FF;xg:cross(0,j);14,股价4天中有两天在10日线上count(c>ma(c,10),4)=2;15,选出10天内出现了涨停的个股count(c/ref(c,1)>1.1,10)>0;又:今涨停:=C/REF(C,1)>1.09;选股:count(今涨停,n);16,一阳上穿10,20,30日线,量能是前一天3倍。
同花顺指标公式精选
同花顺指标公式精选01散户线散户线:(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100,ColorFFFF00,LINETHICK2; RSV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;庄家线:EMA(j,6),colorff00ff,LINETHICK2;02百万短线Var1:=(CLOSE*2+HIGH+LOW)/4;SK: EMA(Var1,13)-EMA(Var1,21);SD: EMA(SK,2);多方能量: 2*(SK-SD)*3.8, LINESTICK;空方能量: (-2)*(SK-SD)*3.8, LINESTICK;03趋势:趋势:=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),colorre d,Linethick2;买警: IF(趋势<=20,22,0);卖1: IF(趋势>=95,86,95);卖2: IF(趋势>=88,79,88);卖3: IF(趋势>=81,66,81);卖4: IF(趋势>=74,57,74);底部: 15;买警1: IF(趋势<=20,23,20);买进: IF(CROSS(趋势,底部),15,0);04趋势背离RSV:=(((C - LLV(L,21))/(HHV(H,21) - LLV(L,21)))*100); 趋势:MA(3*(SMA(RSV,6,1)) -2*(SMA(SMA(RSV,5,1),5,1)),2),Linethick2,coloryellow; A:=(O - LLV(L,89))/(HHV(H,89) - LLV(L,89))*100;VAR2:=3*SMA(A,20,1) - 2*SMA(SMA(A,20,1),15,1)- 100;背离:(FORCAST(((-1))*(VAR2),21)),Linethick2,Color9933FF;钱龙:DRAWTEXT((CROSS(背离,趋势)),背离,'●'),Color00FF00; DRAWTEXT((CROSS(趋势,背离)),背离,'●'),colorred;05买卖指示线VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLO SE,1))),25);VAR2:=HIGH-REF(HIGH,1);VAR3:=REF(LOW,1)-LOW;VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);VAR6:=VAR4*100/VAR1;VAR7:=VAR5*100/VAR1;VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);VAR9:=(VAR8+REF(VAR8,15))/2;A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25);B:=ZIG(3,50/5)*100,COLORWHITE;G:MA(B,2),COLORYELLOW;D:=CROSS(B,G)*1000,COLORRED;W:=CROSS(G,B)*1000,COLORBLUE;E:=REF(INDEXC,1);F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);VAR10:=F AND F<8;VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR12:=SMA(VAR11,3,1);VAR13:=SMA(VAR12,3,1);VAR14:=VAR13 AND VAR13<20;MM:=A AND D AND VAR10 AND VAR14 ;DRAWTEXT(W=1000,B*1.05,'卖' ),COLOR00FF00; DRAWTEXT(D=1000,B*1.05,'买'),COLORRED;06买卖线V AR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;安全线: EMA(V AR1,55), CIRCLEDOT;K: SLOPE(EMA(V AR1,2),7)*15+V AR1;D: EMA(K,2);J: 2.8*K-1.8*D;买1: IF(CROSS(K,D) AND K<安全线,9.8,6);买2: IF(CROSS(K,安全线),9.8,6);买3: IF(CROSS(K,D) AND K>安全线,9.8,6);V6:=CLOSE/REF(CLOSE,3)>=1.1;V7:=BACKSET(V6,3);买4:IF((V7 AND COUNT(V7,3)=1),3,0),COLORFF00FF; DRAWTEXT(买4,10,'买4'),COLORFF00FF;最佳买入: ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1) <REF(ZIG(3,10),2),COLORRED,LINETHICK2;DRAWTEXT(最佳买入=1,1.5,'入!'),COLORRED;止损: ZIG(0.5,10)<REF(ZIG(0.5,10),1) AND REF(ZIG(0.5,10),1)>REF (ZIG(0.5,10),2),COLORGREEN;DRAWTEXT(止损=1,1.5,'出!'),COLORGREEN;V AR3:=PEAKBARS(3,15,1)<10;V AR5:=IF(V AR3=1,2,0);顶:= IF(V AR5=2,2,0);逃命:IF(顶>REF(顶,1),10,0),COLORYELLOW;DRAWTEXT(逃命=10,10,'逃!'),COLORYELLOW;07量能V AR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;逃顶: 80;V AR2:=LLV(LOW,34);V AR3:=HHV(HIGH,34);SK: EMA((V AR1-V AR2)/(V AR3-V AR2)*100,13);SD: EMA(SK,3);{drawicon(sd,80,sd>80),ColorFFFF00;drawicon(sd,20,sd<20),COLOR00AAFF; }吸货: 20;楚河分界: 50;V AR4:=IF(CROSS(SK,SD),40,22);V AR5:=IF(CROSS(SD,SK),60,78);卖出: V AR5;买进: V AR4;08短线CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; YJD: (EMA(CS,3)-50)*2;极弱:-80;强势:60;风险:80;弱势:-60;V AR4:=(1.1)*CLOSE;V AR5:=(0.9)*CLOSE;V AR6:=100*(WINNER(V AR4)-WINNER(V AR5));S1:2*EMA(100-V AR6,1),COLORYELLOW;S2:EMA(S1,9);S3:=MA(S2,9);条件:=CROSS(YJD,极弱) AND S1>S2;条件0:=CROSS(强势,YJD) AND S1<S2;DRA WICON(条件,极弱,5);DRAWICON(条件0,强势,6);09资金P:=5;R:=(AMOUNT / 1000000);R1:=IF(C>REF(C,1),R,IF(C<REF(C,1),(-1)*R,0));R3:=SUM(R1,13);資金監控K:(R3 * OPEN),POINTDOT,colorFFCC00;資金監控S:(R3 * CLOSE),POINTDOT,colorFFCC00;資金平衡位:MA(資金監控S,8),colorred;平衡A:MA(資金平衡位,5),colorwhite;STICKLINE((資金監控S >= REF(資金監控S,1)),REF(資金監控S,1),資金監控S,6,0),color0000FF;STICKLINE((資金監控S < REF(資金監控S,1)),REF(資金監控S,1),資金監控S,6,0),color00FF00;MA(資金監控S,P),color00FFFF;1、出击逃顶V ARa:=(2*CLOSE+HIGH+LOW)/4;V ARb:=LLV(LOW,34);V ARc:=HHV(HIGH,34);V ARd:=EMA((V ARa-V ARb)/(V ARc-V ARb)*100,13);V ARe:=EMA(0.667*REF(V ARd,1)+0.333*V ARd,2);STICKLINE(V ARd-V ARe>0,V ARd,V ARe,8,0),colorred;STICKLINE(V ARd-V ARe<0,V ARd,V ARe,8,0),COLOR00FF0F;生命:EMA(V ARe,5), colorgray;出击:IF(CROSS(V ARd,V ARe) AND V ARd>V ARe AND V ARd<18,20,0), STICK,colorred; DRAWICON(出击>0,5,1);卖出:IF(CROSS(V ARe,V ARd) AND V ARd,60,V ARe,88),POINTDOT,colorwhite; STICKLINE(CROSS(V ARe,V ARd) AND V ARd,60,V ARe,88,2,1),colorblue; DRAWICON(卖出<88,卖出,4);逃顶:90;2、顶底q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;q3:=SMA(q2, 9, 1);q4:=SMA(q3, 3, 1);长趋势:3*q3-2*q4,colorwhite,linethick3;趋势线:EMA(q3, 3),colorred,linethick3;DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80, REF(长趋势,3), '▼逢高派发'), Color00ff00,linethick5;▲逢低买入: DRAWTEXT(REF(CROSS(趋势线,长趋势),82) AND 趋势线>1.3*长趋势,长趋势,'▲逢低买入'), Color00Ffff, linethick1;▲低买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND 长趋势>1.3*趋势线,趋势线,'▲低买'),colorblue,linethick1;var3:=PEAKBARS(3,15,1)<10;var5:=IF(var3=1,2,0);顶:= IF(var5=2,2,0);顶a:IF(顶>REF(顶,1),50,0),colorgreen, linethick2;DRAWTEXT(顶a=50,45,'顶部'),color00ff00;3、红柱进仓A1:=EMA(C,12)-EMA(C,25);A2:=EMA(A1,6);主力:(A2>=0)*A2,colorwhite,LINETHICK0;STICKLINE(A2>=0,A2,0,5,0),colorwhite;STICKLINE(A2<0,A2,0,5,0),COLORD4FF7F;STICKLINE(A1<0,A1,0,5,0),COLORB00058;STICKLINE(A1>=0,A1,0,5,0),colorred;V AR8:=VOL>2*MA(VOL,30);V AR9:="DMI.ADX"(12,6);V ARA:="DMI.ADXR"(12,6);V ARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;V ARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);V ARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CL OSE,10),MA(CLOSE,5)));V ARF:=TROUGHBARS(3,15,1)<4;V AR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);V AR11:=IF(VARF=1,50,0);机构:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*1 00,3),colorwhite;STICKLINE(FILTER(V ARF=1,5) AND 机构<-10,50,0,15,0),colorred;STICKLINE(FILTER(V ARF=1,5),50,0,8,0),colorred;DRAWTEXT(FILTER(V ARF=1,3),25,'擎天柱'),colorred ;STICKLINE(机构<-10,0,机构,0.85,0),colorgreen;STICKLINE(机构>10,0,机构,0.95,0),coloryellow;4、奇准//N:=5; N1:=21;V AR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),coloryell ow,LINETHICK1;V AR2:=8,colorgreen,LINETHICK0;小试牛刀: IF(CROSS(VAR1,V AR2),8,0),STICK,colorred;DRAWICON(小试牛刀>0,8,4);发现庄迹: IF(VAR1<=8,15,0),STICK,colorcyan,LINETHICK2;V ARO5:=LLV(LOW,27);V ARO6:=HHV(HIGH,34);V ARO7:=EMA((CLOSE-V ARO5)/(V ARO6-V ARO5)*4,4)*25;建仓区: IF((VARO7<10),100,118) ,COLOR00CCFF,LINETHICK1;CD1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(L,9))-0.7;CD2:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9));CD3:=SMA(SMA(CD2,3,1),3,1);CD4:=(CD3-SMA(CD1,9,1))-0.5;CD5:=IF(CD4>0.00,CD4,0.00);CD6:=REF(CD5,1);V AR81:=MA(C,9),colorred;空头1:=IF(CD6-CD5,CD6,CD5),LINETHICK3,colorgreen;减仓空仓:CROSS(CD6,CD5),colorgreen;DRAWICON(减仓空仓>0,113,5);V AR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;V AR2A:=SMA(V AR1A,9,1)+100;V AR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V AR4A:=SMA(V AR3A,3,1);V AR5A:=SMA(V AR4A,3,1)+100;V AR6A:=V AR5A-V AR2A;端庄窝:=IF(VAR6A>N1,V AR6A-N1,0),COLORLIRED;果断出击:IF(CROSS(端庄窝,0.01),18,0),STICK,COLOR0000CC,LINETHICK2; DRAWICON(果断出击>0,18,4);XG:=CROSS(端庄窝,0.01);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;E:=CROSS(83,RSI);STICKLINE(REF(端庄窝,1)<端庄窝,端庄窝,REF(端庄窝,1),3,0),colorred; STICKLINE(REF(端庄窝,1)>端庄窝,端庄窝,REF(端庄窝,1),3,0),COLOR00FF00; 红持绿空:0,colorgreen;5、卖出DY1:=(2*CLOSE+HIGH+LOW)/4;DY2:=LLV(LOW,34);DY3:=HHV(HIGH,34);BDC:EMA((DY1-DY2)/(DY3-DY2)*100,4),colorred;BDD:EMA((0.667*REF(BDC,1)+0.333*BDC),2),colorff9900;BDE:=EMA((DY1-DY2)/(DY3-DY2)*100,30);BDF:=EMA(BDE,5);DY4:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100; kw:=SMA(DY4,34,1),colorcccc22;dw:=SMA(kw,13,1);中期趋势:kw,coloryellow;DY5:=(CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100; km:=SMA(DY5,89,1),color3366dd;dm:=SMA(kw,34,1);买:IF(CROSS(BDC,BDD) AND BDD<21,25,0),color00ff00;长期趋势:km,color00ff00;风险区:80,POINTDOT,colorff00ff;安全区:20,POINTDOT,color00ff00;STICKLINE(BDC>=BDD,BDC,BDD,4,0),colorred;STICKLINE(BDC<BDD,BDD,BDC,4,0),colorffff33;STICKLINE(BDE>=BDF,BDE,BDF,4,0),color555555;STICKLINE(BDE<BDF,BDF,BDE,4,0),colorff00ff;6、操盘手线买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWTEXT(bu,LOW*0.999,'B'),colorred,linethick3;DRAWTEXT(bu,LOW,'﹉'),Color208FFF,LINETHICK3;DRAWTEXT(sel,HIGH,'﹉'),ColorFFFF00,LINETHICK3;DRAWTEXT(sel,HIGH*1.008,'S'),colorffff00,linethick3;STICKLINE(买线>=卖线,LOW,HIGH,1,0),colorred;STICKLINE(买线>=卖线,CLOSE,OPEN,4.5,0),color0000aa;STICKLINE(买线>=卖线,CLOSE,OPEN,4,0),color0000cc;STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),color0000cc;STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),color0000ee;STICKLINE(买线<卖线,CLOSE,OPEN,4.5,0),coloraaaa00;STICKLINE(买线<卖线,CLOSE,OPEN,4,0),colorbbbb00;STICKLINE(买线<卖线,CLOSE,OPEN,3,0),colorcccc00;STICKLINE(买线<卖线,CLOSE,OPEN,2,0),coloreeee00;STICKLINE(买线<卖线,LOW,HIGH,1,0),colorffff00;STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,3,0),color00ffff;指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1, ColorFFffFF;界: MA(CLOSE,27),linethick1,Color00FFFF;DRAWTEXT(CROSS(指导线,界),界,' ̄'),Colorffffff;DRAWTEXT(CROSS(界,指导线),界,' ̄'),Color00ffff;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;G:=95;DRAWTEXT(CROSS(J,D),L*0.999,'▲'),Color00ffff,linethick4;DRAWTEXT(CROSS(J,D),L,' ̄'),Color00ffff;DRAWTEXT(CROSS(J,G),H*1.005,'▼'),Colorffff00,linethick4;DRAWTEXT(CROSS(J,G),H,' ̄'),Colorffff00;7、买卖预警Var1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;Var2:=2*ABS(Var1);Var3:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SM A(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var4:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA (SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var5:=(HIGH+LOW+CLOSE)/3;Var6:=(V ar5-MA(Var5,14))/(0.015*A VEDEV(Var5,14));Var7:=(V ar5-MA(Var5,70))/(0.015*A VEDEV(Var5,70));Var8:=IF(Var6>=150 AND V ar6<200 AND Var7>=150 AND Var7<200,10,0);Var9:=IF(Var6<=-150 AND Var6>-200 AND Var7<=-150 AND Var7>-200,-10,Var8);VarA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VarB:=100-ABS(VarA);VarC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1 )-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20, 1),15,1);VarD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1 )-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20, 1),15,1);VarE:=REF(LOW,1)*0.9;VarF:=LOW*0.9;Var10:=(VarF*VOL+VarE*(CAPITAL-VOL))/CAPITAL;Var11:=EMA(Var10,30);Var12:=Var11-CLOSE;Var13:=REF(CLOSE,1);Var14:=SMA(MAX(CLOSE-Var13,0),7,1)/SMA(ABS(CLOSE-Var13),7,1)*100;Var15:=SMA(MAX(CLOSE-Var13,0),13,1)/SMA(ABS(CLOSE-Var13),13,1)*100;Var16:=BARSCOUNT(CLOSE);Var17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*1 00;Var18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;Var19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;Var1A:=(SMA(Var19,4,1)-50)*2;Var1B:=SMA(Var1A,3,1);Var1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;Var1D:=SMA(Var1C,4,1);Var1E:=SMA(Var1D,3,1);Var1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;Var20:=IF(Var17<=25 AND Var18<-95 AND Var1F>20 AND Var1B<-30 AND Var1E<30 AND Var12>=-0.25 AND Var14<22 AND Var15<28 AND Var16>50,80,0);情报: Var3;天线: IF(VarB<90,VarB,100);红军: IF(Var1>0,Var1,0),colorred, LINESTICK;绿军: IF(Var1<0,Var2,0),colorgreen,LINESTICK;导弹: Var20;预警系统: IF(Var7>=200 AND Var6>=150,15,IF(Var7<=-200 AND Var6<=-150,-15,Var9))+60; STICKLINE(Var3>=REF(Var4,1),Var3,Var4,8,0);//STICKLINE(var3);var21:=CLOSE>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1);Var22:=CLOSE;Var23:=红军>50 AND 预警系统>60 AND 天线=100;Var24:=红军>48 AND 预警系统>60 AND 天线<100;Var25:=绿军>38 AND 预警系统<55;Var26:=导弹>50 AND 天线<90;Var27:=REF(VOL,1) AND CLOSE>REF(CLOSE,1);Var28:=REF(Var4,1) AND CLOSE=REF(绿军,1) AND DRAWTEXT(Var21 AND COUNT(Var21,30)=1,100,'上升通道,持股待长或高抛低吸!');DRAWTEXT(V ar22 AND COUNT(Var22,30)=1,90,'下降通道,小心无量阴跌!'); DRAWTEXT(V ar23 AND COUNT(Var23,30)=1,70,'上涨过急,需要调整,短线先抛出!'); DRAWTEXT(V ar24 AND COUNT(Var24,30)=1,80,'庄家出货,大跌在即,中线抛出!'); DRAWTEXT(V ar25 AND COUNT(Var25,30)=1,50,'不必杀跌,应有小反弹,跌停除外!'); DRAWTEXT(V ar26 AND COUNT(Var26,30)=1,30,'坚决抢反弹,但巨量封跌停除外');DRAWTEXT(V ar27 AND COUNT(Var27,30)=1,40,'有大资金进场迹象,关注!'); DRAWTEXT(V ar28 AND COUNT(Var28,30)=1,20,'见顶回落');买入:IF(V AR27 AND COUNT(V AR27,30)=1,100,0),LINETHICK3,colorblue;8、买卖提示V ARb:=LLV(LOW,27);V ARc:=HHV(HIGH,34);V ARd:EMA((CLOSE-V ARb)/(V ARc-V ARb)*4,4)*25,colorred;建仓:IF((VARd<12),25,0),colorgreen;Va:=REF(CLOSE,1);Vb:=((SMA(MAX((CLOSE-Va),0),6,1)/SMA(ABS((CLOSE-Va)),6,1))*100);卖出:IF(CROSS(80,Vb),60,0),colorcyan,linethick2;DRAWTEXT(CROSS(80,Vb),40,'=出'),coloryellow;9、资金流入流出V AR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));买盘:=IF((CLOSE > OPEN),(V AR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(V AR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (V AR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘+ 卖盘);STICKLINE((买卖差< 0),0,买卖差,5,0),COLOR33FF33;0;JX1:=BARSSINCE(买盘);JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);V AR30:=MA(VOL,JY2);神比:=(买盘/ V AR30);鬼比:=(卖盘/ V AR30);V AR2:=(HIGH - LOW);V AR3:=ABS((OPEN - CLOSE));V AR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));V AR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);V AR6:=((V AR3 / V AR2) * VOL);V AR7:=((V AR4 / V AR2) * VOL);V AR8:=((V AR5 / V AR2) * VOL);V AR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));V ARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);V ARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60))); V ARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30)));V ARD:=REF(CLOSE,1);V ARE:=((SMA(MAX((CLOSE - V ARD),0),6,1) / SMA(ABS((CLOSE - V ARD)),6,1)) * 100);V AR40:=((IF((((VAR6 >= V AR7) AND (V AR6 >= V AR8)) AND (CLOSE > OPEN)),V AR6,买盘) + 买盘) / 2);V AR41:=((IF(((VAR7 > V AR6) AND (V AR7 > V AR8)),V AR7,买盘) + 买盘) / 2);V AR42:=((IF(((VAR8 > V AR6) AND (V AR8 > V AR7)),V AR8,买盘) + 买盘) / 2);V AR50:=((IF((((VAR6 >= V AR7) AND (V AR6 >= V AR8)) AND (CLOSE < OPEN)),V AR6,卖盘) + 卖盘) / 2);三日上攻:=MA((((V AR40 + V AR41) + V AR42) / 3),JY2);三日下攻:=MA(V AR50,JY2);多头:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,5,1),COLOR0000FF;空头:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,5,1),COLOR00FF00;STICKLINE((((VAR6 >= V AR7) AND (V AR6 >= V AR8)) AND (CLOSE > OPEN)),0,V AR6,4,0),COLOR00FFFF;STICKLINE((((VAR6 >= V AR7) AND (V AR6 >= V AR8)) AND (CLOSE < OPEN)),0,V AR6,4,0),COLORFF0000;STICKLINE(((VAR8 > V AR6) AND (V AR8 > V AR7)),0,V AR8,4,0),COLORFFFFFF; STICKLINE(((VAR7 > V AR6) AND (V AR7 > V AR8)),0,V AR7,4,0),COLORFF00FF; STICKLINE((VOL > (MA(VOL,5) * 2.5)),0,VOL,2,0);STICKLINE((买盘> 0),买盘,0,2,0),COLOR0000FF;10、顶底q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;q3:=SMA(q2, 9, 1);q4:=SMA(q3, 3, 1);长趋势:3*q3-2*q4,colorwhite,linethick3;趋势线:EMA(q3, 3),colorred,linethick3;DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80, REF(长趋势,3), '▼逢高派发'), Color00ff00,linethick5;▲逢低买入: DRAWTEXT(REF(CROSS(趋势线,长趋势),82) AND趋势线>1.3*长趋势,长趋势,'▲逢低买入'), Color00Ffff, linethick1;▲低买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND长趋势>1.3*趋势线,趋势线,'▲低买'),colorblue,linethick1;var3:=PEAKBARS(3,15,1)<10;var5:=IF(var3=1,2,0);顶:= IF(var5=2,2,0);顶a:IF(顶>REF(顶,1),50,0),colorgreen, linethick2;DRAWTEXT(顶a=50,45,'顶部'),color00ff00;11、资金VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘 + 卖盘);STICKLINE((买卖差 < 0),0,买卖差,5,0),COLOR33FF33;0;JX1:=BARSSINCE(买盘);JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);神比:=(买盘 / VAR30);鬼比:=(卖盘 / VAR30);VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);VAR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60))); VARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30))); VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100);VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,买盘) + 买盘) / 2); VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,买盘) + 买盘) / 2);VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,买盘) + 买盘) / 2);VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),VAR6,卖盘) + 卖盘) / 2); 三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2);三日下攻:=MA(VAR50,JY2);多头:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,5,1),COLOR0000FF;空头:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,5,1),COLOR00FF00;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,4,0),COLOR00FFFF; STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),0,VAR6,4,0),COLORFF0000; STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,4,0),COLORFFFFFF;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,4,0),COLORFF00FF;STICKLINE((VOL > (MA(VOL,5) * 2.5)),0,VOL,2,0);STICKLINE((买盘 > 0),买盘,0,2,0),COLOR0000FF;12、主力AVPRICE:=(((2)*(OPEN) + (2)*(CLOSE) + (2)*(HIGH) + (2)*(LOW))/(8));INDEXAVP:=(((2)*(INDEXH) + (2)*(INDEXL) + (2)*(INDEXO) + (2)*(INDEXC))/(8)); F:=(AVPRICE - REF(AVPRICE,1))/(REF(AVPRICE,1));F1:=(INDEXAVP - REF(INDEXAVP,1))/(REF(INDEXAVP,1));类比参数3:=(((SUM(F,10) + SUM(F1,10))/(10))*(1000));类比大盘参数:=IF((类比参数3 > 0),类比参数3,0);类比参数2:=IF((类比参数3 < 0),(-类比参数3),0);STICKLINE(类比参数2,150,150 - 类比参数2,11,0),Color008000;STICKLINE(类比大盘参数,150,150 - 类比大盘参数,11,0),ColorFF00FF;AA:=AVPRICE;BB:=((VOL)*((AA)*(2) - HIGH - LOW))/(HIGH - LOW);CC:=IF((HIGH = LOW) AND (AA < REF(AA,1)),((-1))*(VOL),VOL);A:=IF((HIGH = LOW),CC,BB);B:=SUM(A,11);BBD:=(((B)/((CAPITAL)*(11)))*(10000));BB1:=IF((BBD < 150) AND (BBD > (-150)),BBD,150);买方能量指标:=IF((BB1 > 0),BB1,0);STICKLINE((BB1 > 0),0,买方能量指标,5,0),coloryellow;STICKLINE((BB1 < 0),0,(-BB1),5,0),Color008000;A16:=(SUM((AVPRICE)*(VOL),16))/(SUM(VOL,16));A11:=(SUM((AVPRICE)*(VOL),11))/(SUM(VOL,11));A6:=(SUM((AVPRICE)*(VOL),6))/(SUM(VOL,6));A7:=(SUM((AVPRICE)*(VOL),7) - (AVPRICE)*(VOL))/(SUM(VOL,7) - VOL);A0:=((A11 - A16)/(AVPRICE))*(1000);A00:=IF((A0 > 50),50,IF((A0 < (-50)),(-50),A0));A1:=((A6 - A11)/(AVPRICE))*(1000);AA11:=IF((A1 > 50),50,IF((A1 < (-50)),(-50),A1));A2:=((((A6 - A7)/(A7))*(5))/(4))*(1000);A22:=IF((A2 > 50),50,IF((A2 < (-50)),(-50),A2));刻度线3:=(A00 + AA11 + A22);趋势线:=IF((刻度线3 > 0),刻度线3,0);兰刻度线:=IF((刻度线3 < 0),刻度线3,0);红柱线:趋势线,colorred;兰柱线:(-兰刻度线),colorblue;STICKLINE(趋势线,0,趋势线,3,0),colorred;STICKLINE(兰刻度线,0,(-兰刻度线),3,0),ColorFF0000;强弱分界:50,Color000080;13、买买var1:=1;趋势线:((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOS E-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-50)*1.032+50),colorred; var2:=(2*CLOSE+HIGH+LOW+OPEN)/5;var3:=LLV(LOW,34);var4:=HHV(HIGH,34);SK:= EMA((var2-var3)/(var4-var3)*100,13)*var1,colorwhite;SD:= EMA(SK,2)*var1,coloryellow;var5:=EMA(CLOSE,12)-EMA(CLOSE,26);var6:=EMA(var5,9);var7:=var1*CLOSE*1.236;var8:=CLOSE/REF(CLOSE,1)>1.021;var9:=(HIGH-CLOSE)*1.36<=CLOSE-OPEN;varA:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;varB:=ABS(var5-var6);varC:=STD(CLOSE,90)*10;varD:=COUNT((REF(CLOSE,15)-CLOSE)/CLOSE*100>45,5);varE:=SLOPE(CLOSE,40);varF:=COUNT((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<-0.098,90);var10:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;var11:=var1*STD(CLOSE,63)*10;var12:=var1*(MA(CLOSE,76)-MA(CLOSE,13)/3);var13:=var1*MA((CLOSE-var12)/var12,1);var14:=MA(CLOSE,5);var15:=MA(CLOSE,10);var16:=MA(CLOSE,20);var17:=MA(CLOSE,30);var18:=MA(CLOSE,60);var19:=MA(CLOSE,150);var1A:=MA(CLOSE,250);var1B:=var1*VOL/CAPITAL*100;var1C:=(CLOSE-var1A)/var1A*100;var1D:=(CLOSE/REF(CLOSE,1)-1)*100;var1E:=PWINNER(1,CLOSE);var1F:=IF(var1>0.75AND var1<0.901,0.618,1);买入就涨:= IF(var14>var15 AND var15>var16 AND var16>var17 AND var16>var18 AND var19>var1A AND(var1E>=0.9OR var1E>0.76AND var1E<0.901AND var1D>5AND var1B>5) AND var1D>1.8 ANDvar1C<40AND CLOSE>3AND (CLOSE-var18)/var18<0.25AND var1B<=6AND var4*var1B>=1 ANDCLOSE<18.5,76,0), coloryellow;var20:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;var21:=(MA(CLOSE,48)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;var22:=var1*(MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,48)+MA(CLOSE,96))/4;var23:=var1*MA(CLOSE,250);var24:=MA(CLOSE,125);买入就涨:IF(SD>18AND SK<75AND CROSS(var20,var21) AND (var22-var23)/var23<0.161 AND REF(SK,3)AND REF(var22,1));//var25:=CLOSE/MA(CLOSE,3)>=1.05 AND CLOSE=HHV(CLOSE,3) ANDMA(VOL,2)/MA(VOL,40)>=3 AND MA(VOL,2)=HHV(MA(VOL,2),3) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);14、进出MAV:=(C*2+H+L)/4;SK:=EMA(MAV,13) - EMA(MAV,34);SD:=EMA(SK,5); 中轴:0;空方主力 : (-2*(SK-SD))*3.8,COLOR00FF00;多方主力 : (2*(SK-SD))*3.8,colorred;15、私募A01:=DAYINTERST(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009)))); A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);Var1:=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);Var2:=WMA(Var1,8);Var3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=WMA(Var3,3)-10;(趋势>80);DRAWICON(CROSS(趋势,0),40,1);((A09 > 0AND (趋势<20OR趋势>REF(趋势,1)AND趋势<50))),colorFFFF00;机构建仓区:0,LINETHICK0,colorFFFF00;Var4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;STICKLINE(趋势<=13,0,20,5,0),colorcc9900;DRAWTEXT(FILTER(趋势<=13,15),50,'准备现金'),colorcc9900;STICKLINE(趋势<=13AND Var4>13,0,50,5,0),color0099ff;Var5:=FILTER((趋势<=13AND Var4>13),10);DRAWTEXT(Var5,60,'买入'),color0099ff;STICKLINE(趋势>=90AND Var4,0,30,5,0),colorgray;Var6:=FILTER((趋势>=90AND Var4),10);DRAWTEXT(Var6,40,'清仓'),colorddffdd;Var7:=LLV(LOW,30);Var8:=HHV(HIGH,30);Var9:=WMA((CLOSE-Var7)/(Var8-Var7)*4,4)*25;STICKLINE(Var9>90,100,105,10,2),colorred;Var10:=(Var9-LLV(Var9,4))/(HHV(Var9,4)-LLV(Var9,4))*100;DRAWTEXT(IF(CROSS(Var9,Var10) AND Var9>87,95,0),88,'险'),Color00FF00;DRAWICON(CROSS(90,Var9),95,2);Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;Var12:=HHV(Var11,30)*8;火焰山:WMA(IF(LOW<=Var7 AND趋势<40,(Var11+Var12),0),3)/618,colorred,linethick2; STICKLINE(火焰山>0,0 ,火焰山*1.2,8,0 ),colorred;Var13:=(WMA(C,1)+WMA(C,3)+WMA(C,5)+WMA(C,7)+WMA(C,9))/5;Var14:=(WMA(C,2)+WMA(C,4)+WMA(C,6)+WMA(C,8)+WMA(C,10))/5;趋势线: 趋势,colorff0000;Var16:=MAX(WMA(Var13,2)-WMA(Var14,5),0)*200;Var17:=WMA(Var16,5);波浪峰:Var17,STICK,colorff00ff;STICKLINE(Var17<REF(Var17,1),0,Var17,1,0),color00ff00;Var18:=WMA(趋势线,8);VarF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LL V(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var19:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV (LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var20:=VarF<REF(Var19,1) AND AMOUNT>REF(AMOUNT,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(Var20 AND COUNT(Var20,30)=1,40,'大资金活动'),linethick1,COLORff00ff;IF(CROSS(Var2,Var18) AND Var2<15,50,0),colorred;DRAWTEXT(CROSS(趋势线,Var2)AND趋势线>REF(趋势线,1)AND趋势线<50,50,'追涨'),COLORFF0000;16、出货VAR0:=DAYINTERST(5);VAR1:=BARSCOUNT(HIGH);VAR2:=(SMA((HIGH / HHV(CLOSE,120)),3,1) * 100);低位金叉跟进:=IF((VAR1 > 20),VAR2,0);VAR11:=IF((HIGH< VAR0),0,IF((LOW> VAR0),1,(((VAR0 - HIGH) + 0.009) / ((LOW- HIGH) + 0.009)))); AAA:=(DMA(VAR11,(VOL /SUM(VOL,90))) * 60);BBB:=(DMA(VAR11,(VOL / CAPITAL)) * 60);VAR12:=IF(C>1000,AAA,BBB);VAR3:=IF((((VAR12 > 0) AND (VAR12 > REF(VAR12,1))) AND (低位金叉跟进 >= 88)),VAR2,0);VAR4:=((3 * SMA((((CLOSE - HHV(HIGH,27)) / (LLV(LOW,27) - HHV(HIGH,27))) * 100),5,1)) - (2 * SMA(SMA((((HIGH - HHV(HIGH,27)) / (LLV(LOW,27) - HHV(HIGH,27))) * 100),5,1),3,1)));VAR5:=EMA(VAR4,8);VAR6:=((3 * SMA((((HIGH - HHV(HIGH,55)) / (LLV(LOW,55) - HHV(HIGH,55))) * 100),5,1)) - (2 *SMA(SMA((((HIGH - HHV(HIGH,55)) / (LLV(LOW,55) - HHV(HIGH,55))) * 100),5,1),3,1)));VAR7:=(EMA(VAR6,3) - 10);A:=1.1*C;B:=0.9*C;B1:=100*(WINNER(A)-WINNER(B));C1:=MA(C,13)<REF(MA(C,13),1);D1:=IF(C>1000,CROSS(VAR3,22),CROSS(VAR3,24));锁定筹码:=100-B1;锁定区:STICKLINE(锁定筹码>70AND C1,0,锁定筹码-65,8,0),COLOR0000FF;出仓区:STICKLINE(((VAR3>0) AND ((VAR7 < 20) OR ((VAR7 > REF(VAR7,1)) AND (VAR7 < 50)))),0,VAR3,8,0),colorgreen;明天买:IF(CROSS(锁定筹码,90)AND C1,锁定筹码-50,0),COLORBBEEFF,LINETHICK2;明天卖:IF(D1,VAR3+10,0),COLORFFAA00,LINETHICK2;17、多空VAR0:=(2*CLOSE+HIGH+LOW)/4;VAR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;VAR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;B:=EMA((VAR0-LLV(LOW,26))/(HHV(HIGH,34)-LLV(LOW,26))*100,16);短线:SMA(SMA(VAR2,2,1)+3,2,1),coloryellow;浮筹:EMA(B,4),LINETHICK2,colorgreen;空方:SMA(VAR1,3,1);DRAWICON(短线>浮筹,0,10);DRAWICON(短线<浮筹,0,11);浮筹1:浮筹+0.5,LINETHICK0;浮筹2:浮筹+1,LINETHICK0;浮筹3:浮筹+1.5,LINETHICK0;浮筹4:浮筹+2,LINETHICK0;。
同花顺公式大全附经典公式
同花顺公式编辑教程大全什么是技术指标?MA均线就是一种技术指标,我们在炒股的时候,经常会将一些行情数据进行数学计算得出一些曲线等等,方便我们掌握股市的变动情况。
什么是条件选股?简单讲,就是按照您的设定的条件用电脑帮助您完成一些太多太复杂的挑选--比如您有一些好的心得和方法,可使有1000多只股票,您就是有100双眼睛有时也不一定可以看得过来,这时电脑就派上用场了!什么是参数?比如讲:10日均线,您可以把10日当作参数,好处在于,您觉得需要修改成5日的时候,就可以使用一些简单的方法,例如参数精灵来很方便的修改和调整。
参数需要名字,例如M就不错。
还要规定参数的范围,例如1日至260日。
这样我们就可以在1到260之间任意调节M的值了,M最常用的数填在“缺省”一栏,例如你最喜欢用10日均线,那就填10吧。
什么是周期?这么解释吧!我们有的投资者喜欢使用日线图作技术分析;有的喜欢用5分钟的K线;有的喜欢使用长一点时间的,例如周线。
所以在公式设计中,允许不同喜好的使用者选择不同的分析时间--就是可以选择不同的周期。
什么是函数?函数在公式编写非常重要,如果作个比喻,我们用一种语言去告诉电脑我的想法,并且让它去帮我做,那么函数就是这种语言的单词。
例一:一根K线有四个价格组成:最高价:HIGH收盘价:CLOSE最低价:LOW开盘价:OPEN成交量:VOL成交额:AMO例二:两条均线不断地交叉,就专门设定了一条函数来描述两条线交叉:CROSS(X,Y)假如下图中的两条均线一条名叫X,另外一条叫YCROSS(X,Y)表示X向上穿过了YCROSS(Y,X)表示Y向上穿过了X例三:前面的CLOSE,还是VOL,都表示当天,或者您使用的不是日线,那就表示本周期的数据,那么前几天的怎么表示呢?REF(X,M)例如:REF(Close,5)表示5天前的收盘;REF(Vol,10)表示10天前的成交量;这里的M就是参数,您现在明白了什么是参数了吗?例四:如果我想把两个条件并列在一起怎么办?ANDX AND Y就表示条件X和条件Y编写一条最简单的指标线通过前面的学习,我们今天开始使用软件的公式编辑功能编写我们自己的第一条指标线。
同花顺抄底必备指标公式
同花顺抄底必备指标公式大的方向指标都有提示,比如抄底。
我对抄底的理解是,个股跌倒一定程度,跌不下去了,同时盘面上有迹象表明开始反攻时,买入。
短趋势: ((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)-50)*1.032+60),colorred;VAR20:=REF(LOW,1);VAR30:= LLV(LOW,34);VAR40:=HHV(HIGH,34);长趋势:EMA((VAR20-VAR30)/(VAR40-VAR30)*100,13),COLOR00FF00;判断底:SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/1000 0))))*5;VAR50:=CROSS(短趋势,长趋势)AND 长趋势<25;底:STICKLINE(短趋势<10 AND 判断底>0,0,30,1,1);STICKLINE(VAR50,0,50,1,0) ,colorred;DRAWICON(VAR50 AND 判断底>0,60,1);DRAWTEXT(COUNT(短趋势<10 AND 判断底>0,8) AND VAR50,50,'砸锅买');VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,38);VAR6:=HHV(VAR4,38);VAR7:=IF(LLV(LOW,90),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VA R7;{有庄的影子: STICKLINE(VAR8,0,VAR8,1,-1) , COLORFFAAFF;} 趋势线: (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 , COLORAABBDD;AA:=((REF(趋势线,1)<REF(趋势线,2) AND 趋势线<-30) AND 趋势线>=REF(趋势线,1)) OR(REF(CROSS(-30,趋势线),1) AND CROSS(趋势线,-30)) OR 趋势线=-30;DRAWTEXT(AA,100,'砸锅卖田买'),coloryellow;砸锅卖田买:IF(AA,100,0),coloryellow;BB:=((REF(趋势线,1)<REF(趋势线,2) AND 趋势线<-20 AND 趋势线>-25)AND 趋势线>=REF(趋势线,1)) OR (REF(CROSS(-20,趋势线),1) AND CROSS(趋势线,-20));DRAWTEXT(BB,30,'见底'),colorred;见底:IF(BB,20,0),colorred;CC:=((REF(趋势线,1)<REF(趋势线,2) AND 趋势线<-25 AND 趋势线>-30)AND 趋势线>=REF(趋势线,1)) OR (REF(CROSS(-25,趋势线),1) AND CROSS(趋势线,-25));DRAWTEXT(CC,80,'机会'),COLOR00FF00;机会:IF(CC,75,0),COLOR00FF00;底部:IF(CROSS(-20,趋势线),60,0),LINETHICK2,COLORF0F000;DRAWTEXT(CROSS(-20,趋势线),12,'★'),COLORF0F000;。
同花顺公式函数应用大全
同花顺公式函数应用大全1、条件函数:根据条件求不同的值。
用法:IF(某,A,B)若某不为0则返回A,否则返回B。
例如:(CLOSE>OPEN,HIGH,LOW)表示该周期收阳则返回最高值,否则返回最低值。
引用函数:1、满足条件的周期数:统计满足条件的周期数。
用法:COUNT(某,N),统计N周期中满足某条件的周期数,若N=0则从第一个有效值开始。
例如:COUNT(CLOSE>OPEN,20)表示统计20周期内收阳的周期数。
2、第一个条件成立到当前的周期数:统计第一个条件成立到当前的周期数。
用法:BARSSINCE(某):第一次某不为0到现在的天数。
例如:BARSSINCE(HIGH>10)表示股价超过10元时到当前的周期数。
3、上一次条件成立到当前的周期数:上一次条件成立到当前的周期数。
用法:BARSLAST(某),上一次某不为0到现在的天数。
例如:BARSLAST(CLOSE/REF(CLOSE,1)>=1,1)表示上一个涨停板到当前的周期数。
4、有效周期数:求总的周期数。
用法:BARSCOUNT(某),第一个有效数据到当前的天数。
5、向前赋值:将当前位置到若干周期前的数据设为1。
用法:BACKSET(某,N),若某非0,则将当前位置到N周期前的数值设为1。
例如:BACKSET(CLOSE>OPEN,2)若收阳则将该周期及前一周期数值设为1,否则为0。
6、求和:求总和。
用法:SUM(某,N),统计N周期中某的总和,N=0则从第一个有效值开始。
例如:SUM(VOL,5)周期设为日线时,表示最近5个交易日的成交量之和。
SUM(VOL,0)表示从传数据过来第一天起的成交量总和,具体如在区间统计里统计“总手”SUM(VOL,0)即是指全区间的成交量之和。
7、移动平均:求移动平均。
用法:SMA(某,N,M),求某的N日移动平均,M为权重。
算法:若Y=SMA(某,N,M)则Y=[M某某+(N-M)某Y']/N,其中Y'表示上一周期Y值,N必须大于M。
同花顺资金抄底指标公式
同花顺资金抄底指标公式
同花顺资金抄底指标公式是一个股票交易中的技术指标,用于帮助投资者判断何时进行资金抄底操作。
该指标的计算公式如下:
1. 主力净流入 = 主力买入金额 - 主力卖出金额
2. 散户净流入 = 散户买入金额 - 散户卖出金额
3. 资金抄底指标 = (主力净流入 + 散户净流入)/成交额
其中,主力买入金额指的是机构投资者在一段时间内买入该股票的总金额,主力卖出金额则是机构投资者在同一时间段内卖出该股票的总金额。
散户买入金额和散户卖出金额同理。
成交额则是指该股票在某个时间段内的总成交金额。
通过计算主力净流入和散户净流入,可以了解机构和散户近期对该股票的投资情况。
而资金抄底指标则是将两者相加后除以成交额,得出的一个反映资金流入和流出状况的指标。
当该指标下降至一定程度时,表示市场已经达到抄底的机会。
同花顺资金抄底指标可以帮助投资者判断何时进行资金抄底操作,但需要注意的是,该指标只是一种参考工具,投资者还需结合其他技术指标和基本面分析进行综合判断。
- 1 -。
同花顺主图选股公式大全
同花顺指标公式一. 操盘神手五彩K线主图源码MA5:MA(CLOSE,5),ColorCCCCCC;MA10:MA(CLOSE,10),Color00BBBB;MA21:MA(CLOSE,21),Color00AA00;MA30:MA(CLOSE,30),Color990099;MA60:MA(CLOSE,60),Color000088;MA120:MA(CLOSE,120),Color777700;买线:=ZIG(3,10);卖线:=MA(买线,3);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWTEXT(bu,L*,'买'),linethick1,color00aaff; DRAWTEXT(sel,H*,'卖'),linethick1,color00ff00;DRAWTEXT("">0,L*,'B'),linethick1,colorFFffff; DRAWTEXT("">0,L*,'B'),linethick1,color0000ff;STICKLINE(买线>=卖线,LOW,HIGH,,0),color0000CC; STICKLINE(买线>=卖线,CLOSE,OPEN,7,0),color0000CC;STICKLINE(买线<卖线,CLOSE,OPEN,7,0),colorCCCC00; STICKLINE(买线<卖线,LOW,HIGH,,0),colorCCCC00;STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,7,0),color00AAFF;STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,7,0),color00DD00;指标用法:可直接按照买做参考操作,红柱区域表示为股价上涨阶段(其中的绿柱由红色点缀代表是正常调整),绿柱区域表示为股价下跌阶段(其中的红柱由绿色点缀代表是诱多行为),指标镶入步骤:工具→公式管理→常用→五彩K线→新建→名称和描述→粘贴指标源码→确定................................................................................... ...................................二. 主力多空副图指标源码MAV:=(C*2+H+L)/4;SK:= EMA(MAV,13) - EMA(MAV,34);SD := EMA(SK,5);中轴:0;空方主力 : (-2*(SK-SD))*,colorgreen;多方主力 : (2*(SK-SD))*,colorred;指标用法:多方主力线从低位向上掉头且有所放大,则为买入信号。
同花顺公式
同花顺公式1,30个交易日内,股价跌幅达到一半的股票: xg:(hhv(c,30)-c)/hhv(c,30)>0.5;2,今天的量是5天平均的 2倍以上xg:v>ma(v,5)*2;缩量vol/ma(vol,10)<0.3;3,两天内,累计下跌等于或超过20%选股.xg:(ref(c,2)-c)/c>0.2;4,股价是25天以来新低.xg:c5,选股:EXPMA5日与10日金叉并且第二天的收盘价在EXPMA的5日线以上.cross(ref(ema(c,5),1),ref(ema(c,10),1)) and c>ema(c,5);6,请编买入公式:1. 将BIAS指标的参数设置为24日,将KD指标的参数设置为9;3;3。
2. BIAS指标要小于-6,这只是确认该股超跌的初选条件。
3. KD指标产生黄金交叉,K线上穿D线。
4. KD交叉同时,KD指标中的D值要小于16。
BIAS3 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,colorff00ff;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;xg:BIAS3<-6 and cross(k,d) and d<16;7,要求是量大、换手率达到3左右,涨幅>7个点。
xg:v/capital*100>3 and (c/ref(c,1)>1.07;8,个股分时图上都有一条黄线,叫做均价线a/capital*100;9,“阴转阳”的公式(也就是昨天收阴线,今天收阳线)xg:ref(c,1)o;10,股价回抽20日均线选股公式xg:ref(c,1)>ma(c,20) and cross(ma(c,20),c);11,一根大阳线,至少有5个点以上,再连着出现二根振幅不大于5的十字星或是小K线xg:(ref(c,3)-ref(c,4))/ref(c,3)>0.05 and count((h-l)/l<0.05,2)=2;12,行情信息里的“涨幅”的原码(c-ref(c,1))/c*100;13,kdj的J从上向下穿越O轴发出信号RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;J:=3*K-2*D,COLORFF00FF;xg:cross(0,j);14,股价4天中有两天在10日线上count(c>ma(c,10),4)=2;15,选出10天内出现了涨停的个股count(c/ref(c,1)>1.1,10)>0;又:今涨停:=C/REF(C,1)>1.09;选股:count(今涨停,n);16,一阳上穿10,20,30日线,量能是前一天3倍。
同花顺公式大全
强势: 21;
生命分水岭: 10;
超前MACD
SQX:=(C-MA(CLOSE,13))*100;
diff:EMA(MA(sqx,7),1),colorred;
J12:=((3 * K12) - (2 * D12));
RSV24:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=((3 * K24) - (2 * D24));
利机会要大一点,当出现“警戒高点”信号时应及时了结。
如果顶的人多,以后继续发免费的,顶的人少,就发金钱贴
庄家秘密进出---有大资金进场迹象
庄家秘密
参数:{ 庄家秘密N:1,100,8; M:1,100,13; P:1,100,60; S:1,100,3}
==========================
顶部警戒: 90,colorgreen,linethick2;
卖出警戒:STICKLINE(股价趋势>=85,100,80,2,0),STICK,colorF00FF0,linethick2;
止损出局:STICKLINE(CROSS(顶部警戒,股价趋势),100,70,3,0),colorfff666,linethick5;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
同花顺 公式
同花顺公式
同花顺是一款证券交易软件,其公式包括:
1.K线图公式:K线图是通过开盘价、收盘价、最高价、最低价等数
据绘制出来的图形,其公式为:K=(收盘价-最低价)÷(最高价-最低价)×100%;
2.移动平均线公式:移动平均线是指在一定时间内的收盘价或其他数
据的平均值,其公式为:MA=(C1+C2+...+Cn)÷n,其中C为收盘价,n为
时间周期;
3.相对强弱指数(RSI)公式:RSI是一种技术分析工具,用于测量
价格变动的强度,其公式为:RSI=100-[100÷(1+RS)],其中RS为平均
上涨日收盘价之和÷平均下跌日收盘价之和;
4.指数平滑移动平均线(EMA)公式:EMA是一种技术分析工具,用
于平滑价格变动,其公式为:EMA=2÷(n+1)×(C-昨日EMA)+昨日EMA,其中n为时间周期,C为收盘价;
5.布林线公式:布林线是一种常用的技术分析工具,用于观察价格波
动区间和趋势,并确定超买和超卖区域,其公式为:中轨=MA,上轨=MA+
k×σ,下轨=MA-k×σ,其中k为布林带的宽度,σ为收盘价的标准差。
同花顺的选股公式
同花顺的选股公式 Document number:NOCG-YUNOO-BUYTT-UU986-1986UT同花顺选股公式同花顺选股公式黑马草上飞HMCSFLCZ:=(C-MA(C,60))/MA(C,60)*100;A1:=COUNT(MA(C,60)>REF(MA(C,60),1),100)>95;A2:=COUNT(LCZ<20,100)>95;A3:=COUNT(C>MA(C,60),100)>80;A4:=C/REF(C,1)>;A5:=V/CAPITAL*100>;ZTJ:=A1 AND A2 AND A3 AND A4 AND A5;ZTJ AND (REF(BARSLAST(ZTJ),1)>20OR BARSSINCE( ZTJ)=0);三金叉见底SJCJDnday := 5;down := CLOSE/LLV(LOW,60)<=;pma1 := MA(CLOSE,5);pma2 := MA(CLOSE,10);vma1 := MA(VOL,5);vma2 := MA(VOL,10);diff := EMA(CLOSE,12) - EMA(CLOSE,26);dea := EMA(diff,9);ppday := BARSLAST(CROSS(pma1,pma2));vvday := BARSLAST(CROSS(vma1,vma2));macdday := BARSLAST(CROSS(diff,dea));SJCJD:= IF((ppday<=nday AND vvday<=nday AND macdday<=nday),1,0);买入就涨MRJZvar1:=1;趋势线: ((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)-50)*+50),colorred;var2:=(2*CLOSE+HIGH+LOW+OPEN)/5;var3:=LLV(LOW,34);var4:=HHV(HIGH,34);SK:= EMA((var2-var3)/(var4-var3)*100,13)*var1,colorwhite;SD:= EMA(SK,2)*var1,coloryellow;var5:=EMA(CLOSE,12)-EMA(CLOSE,26);var6:=EMA(var5,9);var7:=var1*CLOSE*;var8:=CLOSE/REF(CLOSE,1)>;var9:=(HIGH-CLOSE)*<=CLOSE-OPEN;varA:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;varB:=ABS(var5-var6);varC:=STD(CLOSE,90)*10;varD:=COUNT((REF(CLOSE,15)-CLOSE)/CLOSE*100>45,5);varE:=SLOPE(CLOSE,40);varF:=COUNT((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<,90);var10:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;var11:=var1*STD(CLOSE,63)*10;var12:=var1*(MA(CLOSE,76)-MA(CLOSE,13)/3);var13:=var1*MA((CLOSE-var12)/var12,1);var14:=MA(CLOSE,5);var15:=MA(CLOSE,10);var16:=MA(CLOSE,20);var17:=MA(CLOSE,30);var18:=MA(CLOSE,60);var19:=MA(CLOSE,150);var1A:=MA(CLOSE,250);var1B:=var1*VOL/CAPITAL*100;var1C:=(CLOSE-var1A)/var1A*100;var1D:=(CLOSE/REF(CLOSE,1)-1)*100;var1E:=PWINNER(1,CLOSE);var1F:=IF(var1> AND var1<,,1);买入就涨:= IF(var14>var15 AND var15>var16 AND var16>var17 AND var16>var18 AND var19>var1A AND(var1E>= OR var1E> AND var1E< AND var1D>5AND var1B>5) AND var1D> ANDvar1C<40AND CLOSE>3AND (CLOSE-var18)/var18< AND var1B<=6AND var4*var1B>=1ANDCLOSE<,76,0), coloryellow;var20:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;var21:=(MA(CLOSE,48)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;var22:=var1*(MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,48)+MA(CLOSE,96))/4;var23:=var1*MA(CLOSE,250);var24:=MA(CLOSE,125);买入就涨:IF(SD>18AND SK<75AND CROSS(var20,var21) AND (var22-var23)/var23< AND REF(SK,3)AND REF(var22,1))var25:=CLOSE/MA(CLOSE,3)>= AND CLOSE=HHV(CLOSE,3) AND MA(VOL,2)/MA(VOL,40)>=3 AND MA(VOL,2)=HHV(MA(VOL,2),3) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);短线抄底DXCD3A3:=REF(CLOSE, ;A4:=SMA(MAX((CLOSE - A3),0), 8, 1) / SMA(ABS((CLOSE - A3)), , 1) * 100;A5:=SMA(MAX((CLOSE - A3),0), 55, 1) / SMA(ABS((CLOSE - A3)), , 1) * 100;A4<=20AND A5 <=49;--------------------------------------------------------SMA(MAX(CLOSE-REF(CLOSE,2),0),7,1)/SMA(ABS(CLOSE- REF(CLOSE,2)),7,1)*100<12;----------------------------------------------------------------------------SMA(MAX(CLOSE-REF(CLOSE,1),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100 <12;黄线抄底选股HXCDXGA3:=REF(CLOSE, ;A4:=SMA(MAX((CLOSE - A3),0), 8, 1) / SMA(ABS((CLOSE - A3)), , 1) * 100;A5:=SMA(MAX((CLOSE - A3),0), 55, 1) / SMA(ABS((CLOSE - A3)), , 1) * 100;A4<=20AND A5 <=49;选马趋势XMQS个股:EMA(100*(C-LLV(LOW,36))/(HHV(H,36)-LLV(LOW,36)),3),colorred;DRAWTEXT(个股>85,95,'*');大盘:EMA(100*(INDEXC-LLV(INDEXL,36))/(HHV(INDEXH,36)-LLV(INDEXL,36)),3),colorblue; STICKLINE(个股>=大盘,个股,大盘,1,0),colorred;STICKLINE(个股<大盘,个股,大盘,1,0),colorblue;出现:IF(CROSS(个股,9),35,0),STICK,linethick3,color00ff00;DRAWTEXT(CROSS(个股,9),30,'-马'),color00ff00;高抛低吸GPDXMMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 -100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);x1:=EMA(((KS/ 10) + EMA(CLOSE,10)),3);AA:=-100*(x1-CLOSE)/x1;AC:=(EMA(AA,5));SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) +CLOSE),55);MM:=MA(MMV,1);SA:=(MM*;SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));x2:IF(((SSL>MM)),MM,SA),LINETHICK2,COLORFF00FF;y1:=DMA(((CLOSE+ OPEN) / 2),(VOL / (SMA(VOL,4,1)*4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);x3:A,coloryellow,LINETHICK1;B:=REF(A,1);STICKLINE(((SSL<MM)),x2,x3,,0),COLORFFFF00;VA1:=EMA(上收,8);VA2:=EMA(上收,20);选手A:=MA(上收,3);箱顶A:=MA(REF(HHV(上收,6),1),3); 箱底A:=MA(REF(LLV(上收,3),1),3);T1:=MA(上收,20)>=REF(MA(上收,20),1);T2:=CROSS(选手A,箱底A)AND箱顶A/箱底A>100/100AND T1;T3:=CROSS(箱顶A,选手A) AND箱顶A/箱底A>100/100;选手:=MA(上收,2);箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF;箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00;T4:=CROSS(选手,箱底)AND箱顶/箱底>110/100;T5:=CROSS(箱顶,选手) AND箱顶/箱底>110/100;VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);MA20:=MA(C,20); MA30:=MA(C,30);QSXS:=MA20>MA30AND MA20>REF(MA20,1) ANDMA30>REF(MA30,1);ZF:=(C/REF(C,1)-1)*100;TDDF:=(L/REF(C,1)-1)*100<=-5AND(REF(HHV(H,5),1)/L-1)*100>=10;N1:=BARSLAST(CROSS(C,MA(C,5)));N2:=BARSLAST(CROSS(MA(C,5),C));HM:=IF(N1<N2,N1+1,0)*QSXS;z2:=HM=1AND ZF>=0AND C>O AND QSXS;KX1:=ZF<=-3ANDC<O;XDSJ:=BARSLAST(KX1);KX2:=ZF>=3AND C>O;JBY:=KX2 AND XDSJ<=2AND C>=REF(O*,XDSJ) ANDZF>ABS(REF(ZF,XDSJ)*;z3:=IF(FILTER(JBY,1) AND QSXS,5,0);DRAWTEXT(z2AND z3 ,LOW*,'送钱来'),ColorFF0080;精准指标JZZBN:=5;VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),,1);建仓:CROSS(VAR1,8);主力动向zldxr:=((ZDMR[-1]+BDMR[-1])-(ZDMC[-1]+BDMC[-1]))/SHGZG*100;t:=BARSCOUNT(SHGZG);b:=SUM(r,t);主力持仓:b;n:=5;x2:=HHV(r,n);S:=STD(SHGZG,2)/1000000;S1:=-STD(SHGZG,2)/1000000;STICKLINE(r>0,r+b,b,2),colorred;STICKLINE(r<0,b,b+r,2),colorgreen;STICKLINE(s>0,x2+b,b+r*3,3),coloryellow;STICKLINE(s1<0,b+r*3,b-x2,3),coloryellow;IF(ISNULL(r))a=(ZDMR[-1]+BDMR[-1]);b=(ZDMC[-1]+BDMC[-1]);a3=SUM(a,n)/1000000;b3=SUM(b,n)/1000000;VOL1=SUM(VOL,n)/1000000;S3=STD(SHGZG,2)/10000;IF(a3>b3){y=a3-b3;z=y/VOL1*100;主力增加:TOSTRING(r,2)+"%."+TOSTRING(n,0)+"天主力净买入"+TOSTRING(y,1)+"万手.占总成交"+TOSTRING(z,1)+"%."+"流通盘增加"+TOSTRING(s3,2)+"万.";}ELSE{y=b3-a3;z=y/VOL1*100;主力增加:TOSTRING(r,2)+"%."+TOSTRING(n,0)+"天主力净买入"+TOSTRING(y,1)+"万手.占总成交"+TOSTRING(z,1)+"%."+"流通盘增加"+TOSTRING(s3,2)+"万.";}Var1:=(CLOSE+HIGH+LOW)/3;Var2:=EMA(EMA(EMA(Var1,1),13),21);控盘度: (Var2-REF(Var2,1))/REF(Var2,1)*1000;强弱分界:= 0;抄底大师CDDSVAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);VAR5:=CROSS(VAR3,VAR4) AND VAR3<20;抄底:FILTER(VAR5,10)=1;不抄底,只抄底BCDZCDN1:=9;N:=3;VAR1:=REF(CLOSE,1);标尺:=SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100;VAR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1);浪:=VAR3;波:=VAR4;段:=VAR5;VAR6:=CROSS(VAR3,VAR4) AND VAR4<25;VAR7:=CROSS(VAR4,VAR5) AND VAR4<25;VAR8:=VAR7 AND VOL>REF(VOL,1)*2AND VOL>REF(MA(VOL,5),1)*2;XG:VAR6 OR (VAR7 AND COUNT(VAR7,10)=1);选股公式456XJGGSHdly1:=O/C[30]< AND O==LLV(O,30);Hdly2:=C/O>;Hdly3:=O/C[18]< AND O==LLV(O,18);选股:(Hdly1 OR Hdly3) AND Hdly2;一起赚钱YQZQEMA13:=MA(CLOSE,13);EMA30:=EMA(CLOSE,30);EMA60:=EMA(CLOSE,60);EMA90:=EMA(CLOSE,90);AR1:=(EMA13 < EMA30) AND (EMA13 < EMA60) AND (EMA13 < EMA90);AR2:=BARSLAST(REF(CROSS(CLOSE,EMA13),1));AR3:=(EMA13 >= REF(EMA13,1));AR4:=AR1 AND AR2 AND AR3 AND CROSS(CLOSE,EMA13);黑马选股:AR4 AND FILTER(AR4,10);大黑马DHMVAR1:=EMA(VOL/CAPITAL,3);VAR2:=HHV(VAR1,240);VAR3:=LLV(VAR1,240); VAR4:=MA(CLOSE,33);VAR5:=EMA(CLOSE,13)-EMA(CLOSE,26);VAR6:=EMA(VAR5,9);VAR7:=2*(VAR5-VAR6);VAR8:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR9:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100; VARA:=(CLOSE-LLV(LOW,225))/(HHV(HIGH,225)-LLV(LOW,225))*100; VARB:=SMA(VAR8,3,1);VARC:=SMA(VAR9,15,1);VARD:=SMA(VARA,45,1);VARE:=(VARD-REF(VARD,1))*50;VARF:=(VARC-REF(VARC,1))*10;VAR10:=REF(VARC,1)-REF(VARD,1);VAR11:=(VARC-VAR10-VARD)*30;VAR12:=VARB-REF(VARB,1);固定筹码:EMA((VAR1-VAR3)/VAR3*VAR4,13);移动筹码: EMA((VAR2-VAR1)/VAR1*VAR4,13);多空对比:固定筹码-移动筹码, COLORSTICK;VAR13:=VAR7>= AND VAR7<= ANDCLOSE>MA(CLOSE,5)AND CLOSE>MA(CLOSE,10) AND多空对比>-100;大黑马:IF(VAR13 AND VAR12>7AND REF(VAR12,1)<0ANDVAR12-REF(VAR12,1)>9,1,0),LINETHICK3 ,COLOR00FFFF;STICKLINE(大黑马,0,固定筹码,5,0),LINETHICK3 ,COLOR00FFFF;DRAWICON(大黑马,固定筹码*,5);周线黑马ZXHMma7:=EMA(C,7);ma14:=EMA(C,14);aa:=CROSS(ma7,ma14) AND V>REF(V,1)*;bb:=V>REF(V,1)*3;选股1:IF(aa,1,0);选股2:IF(bb,1,0);收敛三角形选股公式SLSJXY:=(H+L)/2;AO:=MA(Y,5)-MA(Y,34 );DU0:=CROSS(AO,0);UD0:=CROSS(0,AO);TDU0:=BARSLAST(DU0);TUD0:=BARSLAST(UD0);DU3:=REF(DU0,1);UD3:=REF(UD0,1);TDU3:=BARSLAST(DU3);TUD3:=BARSLAST(UD3);UDGLINE:=IF(TDU3<TUD3,REF(HHV(H,2),TDU3),REF(LLV(L,2),TUD3)); JDU0:=REF(C,1)<=REF(UDGLINE,1) AND C>UDGLINE AND TDU0<TUD0; JUD0:=REF(C,1)>=REF(UDGLINE,1) AND C<UDGLINE AND TUD0<TDU0; JDU1:JDU0 AND COUNT(JDU0,TDU0)=1;JUD1:JUD0 AND COUNT(JUD0,TUD0)=1;。
同花顺指标公式精选
同花顺指标公式精选01散户线散户线:(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100,ColorFFFF00,LINETHICK2; RSV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;庄家线:EMA(j,6),colorff00ff,LINETHICK2;02百万短线Var1:=(CLOSE*2+HIGH+LOW)/4;SK: EMA(Var1,13)-EMA(Var1,21);SD: EMA(SK,2);多方能量: 2*(SK-SD)*3.8, LINESTICK;空方能量: (-2)*(SK-SD)*3.8, LINESTICK;03趋势:趋势:=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),colorre d,Linethick2;买警: IF(趋势<=20,22,0);卖1: IF(趋势>=95,86,95);卖2: IF(趋势>=88,79,88);卖3: IF(趋势>=81,66,81);卖4: IF(趋势>=74,57,74);底部: 15;买警1: IF(趋势<=20,23,20);买进: IF(CROSS(趋势,底部),15,0);04趋势背离RSV:=(((C - LLV(L,21))/(HHV(H,21) - LLV(L,21)))*100); 趋势:MA(3*(SMA(RSV,6,1)) -2*(SMA(SMA(RSV,5,1),5,1)),2),Linethick2,coloryellow; A:=(O - LLV(L,89))/(HHV(H,89) - LLV(L,89))*100;VAR2:=3*SMA(A,20,1) - 2*SMA(SMA(A,20,1),15,1)- 100;背离:(FORCAST(((-1))*(VAR2),21)),Linethick2,Color9933FF;钱龙:DRAWTEXT((CROSS(背离,趋势)),背离,'●'),Color00FF00; DRAWTEXT((CROSS(趋势,背离)),背离,'●'),colorred;05买卖指示线VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLO SE,1))),25);VAR2:=HIGH-REF(HIGH,1);VAR3:=REF(LOW,1)-LOW;VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);VAR6:=VAR4*100/VAR1;VAR7:=VAR5*100/VAR1;VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);VAR9:=(VAR8+REF(VAR8,15))/2;A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25);B:=ZIG(3,50/5)*100,COLORWHITE;G:MA(B,2),COLORYELLOW;D:=CROSS(B,G)*1000,COLORRED;W:=CROSS(G,B)*1000,COLORBLUE;E:=REF(INDEXC,1);F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);VAR10:=F AND F<8;VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR12:=SMA(VAR11,3,1);VAR13:=SMA(VAR12,3,1);VAR14:=VAR13 AND VAR13<20;MM:=A AND D AND VAR10 AND VAR14 ;DRAWTEXT(W=1000,B*1.05,'卖' ),COLOR00FF00; DRAWTEXT(D=1000,B*1.05,'买'),COLORRED;06买卖线V AR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;安全线: EMA(V AR1,55), CIRCLEDOT;K: SLOPE(EMA(V AR1,2),7)*15+V AR1;D: EMA(K,2);J: 2.8*K-1.8*D;买1: IF(CROSS(K,D) AND K<安全线,9.8,6);买2: IF(CROSS(K,安全线),9.8,6);买3: IF(CROSS(K,D) AND K>安全线,9.8,6);V6:=CLOSE/REF(CLOSE,3)>=1.1;V7:=BACKSET(V6,3);买4:IF((V7 AND COUNT(V7,3)=1),3,0),COLORFF00FF; DRAWTEXT(买4,10,'买4'),COLORFF00FF;最佳买入: ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1) <REF(ZIG(3,10),2),COLORRED,LINETHICK2;DRAWTEXT(最佳买入=1,1.5,'入!'),COLORRED;止损: ZIG(0.5,10)<REF(ZIG(0.5,10),1) AND REF(ZIG(0.5,10),1)>REF (ZIG(0.5,10),2),COLORGREEN;DRAWTEXT(止损=1,1.5,'出!'),COLORGREEN;V AR3:=PEAKBARS(3,15,1)<10;V AR5:=IF(V AR3=1,2,0);顶:= IF(V AR5=2,2,0);逃命:IF(顶>REF(顶,1),10,0),COLORYELLOW;DRAWTEXT(逃命=10,10,'逃!'),COLORYELLOW;07量能V AR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;逃顶: 80;V AR2:=LLV(LOW,34);V AR3:=HHV(HIGH,34);SK: EMA((V AR1-V AR2)/(V AR3-V AR2)*100,13);SD: EMA(SK,3);{drawicon(sd,80,sd>80),ColorFFFF00;drawicon(sd,20,sd<20),COLOR00AAFF; }吸货: 20;楚河分界: 50;V AR4:=IF(CROSS(SK,SD),40,22);V AR5:=IF(CROSS(SD,SK),60,78);卖出: V AR5;买进: V AR4;08短线CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; YJD: (EMA(CS,3)-50)*2;极弱:-80;强势:60;风险:80;弱势:-60;V AR4:=(1.1)*CLOSE;V AR5:=(0.9)*CLOSE;V AR6:=100*(WINNER(V AR4)-WINNER(V AR5));S1:2*EMA(100-V AR6,1),COLORYELLOW;S2:EMA(S1,9);S3:=MA(S2,9);条件:=CROSS(YJD,极弱) AND S1>S2;条件0:=CROSS(强势,YJD) AND S1<S2;DRA WICON(条件,极弱,5);DRAWICON(条件0,强势,6);09资金P:=5;R:=(AMOUNT / 1000000);R1:=IF(C>REF(C,1),R,IF(C<REF(C,1),(-1)*R,0));R3:=SUM(R1,13);資金監控K:(R3 * OPEN),POINTDOT,colorFFCC00;資金監控S:(R3 * CLOSE),POINTDOT,colorFFCC00;資金平衡位:MA(資金監控S,8),colorred;平衡A:MA(資金平衡位,5),colorwhite;STICKLINE((資金監控S >= REF(資金監控S,1)),REF(資金監控S,1),資金監控S,6,0),color0000FF;STICKLINE((資金監控S < REF(資金監控S,1)),REF(資金監控S,1),資金監控S,6,0),color00FF00;MA(資金監控S,P),color00FFFF;1、出击逃顶V ARa:=(2*CLOSE+HIGH+LOW)/4;V ARb:=LLV(LOW,34);V ARc:=HHV(HIGH,34);V ARd:=EMA((V ARa-V ARb)/(V ARc-V ARb)*100,13);V ARe:=EMA(0.667*REF(V ARd,1)+0.333*V ARd,2);STICKLINE(V ARd-V ARe>0,V ARd,V ARe,8,0),colorred;STICKLINE(V ARd-V ARe<0,V ARd,V ARe,8,0),COLOR00FF0F;生命:EMA(V ARe,5), colorgray;出击:IF(CROSS(V ARd,V ARe) AND V ARd>V ARe AND V ARd<18,20,0), STICK,colorred; DRAWICON(出击>0,5,1);卖出:IF(CROSS(V ARe,V ARd) AND V ARd,60,V ARe,88),POINTDOT,colorwhite; STICKLINE(CROSS(V ARe,V ARd) AND V ARd,60,V ARe,88,2,1),colorblue; DRAWICON(卖出<88,卖出,4);逃顶:90;2、顶底q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;q3:=SMA(q2, 9, 1);q4:=SMA(q3, 3, 1);长趋势:3*q3-2*q4,colorwhite,linethick3;趋势线:EMA(q3, 3),colorred,linethick3;DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80, REF(长趋势,3), '▼逢高派发'), Color00ff00,linethick5;▲逢低买入: DRAWTEXT(REF(CROSS(趋势线,长趋势),82) AND 趋势线>1.3*长趋势,长趋势,'▲逢低买入'), Color00Ffff, linethick1;▲低买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND 长趋势>1.3*趋势线,趋势线,'▲低买'),colorblue,linethick1;var3:=PEAKBARS(3,15,1)<10;var5:=IF(var3=1,2,0);顶:= IF(var5=2,2,0);顶a:IF(顶>REF(顶,1),50,0),colorgreen, linethick2;DRAWTEXT(顶a=50,45,'顶部'),color00ff00;3、红柱进仓A1:=EMA(C,12)-EMA(C,25);A2:=EMA(A1,6);主力:(A2>=0)*A2,colorwhite,LINETHICK0;STICKLINE(A2>=0,A2,0,5,0),colorwhite;STICKLINE(A2<0,A2,0,5,0),COLORD4FF7F;STICKLINE(A1<0,A1,0,5,0),COLORB00058;STICKLINE(A1>=0,A1,0,5,0),colorred;V AR8:=VOL>2*MA(VOL,30);V AR9:="DMI.ADX"(12,6);V ARA:="DMI.ADXR"(12,6);V ARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;V ARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);V ARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CL OSE,10),MA(CLOSE,5)));V ARF:=TROUGHBARS(3,15,1)<4;V AR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);V AR11:=IF(VARF=1,50,0);机构:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*1 00,3),colorwhite;STICKLINE(FILTER(V ARF=1,5) AND 机构<-10,50,0,15,0),colorred;STICKLINE(FILTER(V ARF=1,5),50,0,8,0),colorred;DRAWTEXT(FILTER(V ARF=1,3),25,'擎天柱'),colorred ;STICKLINE(机构<-10,0,机构,0.85,0),colorgreen;STICKLINE(机构>10,0,机构,0.95,0),coloryellow;4、奇准//N:=5; N1:=21;V AR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),coloryell ow,LINETHICK1;V AR2:=8,colorgreen,LINETHICK0;小试牛刀: IF(CROSS(VAR1,V AR2),8,0),STICK,colorred;DRAWICON(小试牛刀>0,8,4);发现庄迹: IF(VAR1<=8,15,0),STICK,colorcyan,LINETHICK2;V ARO5:=LLV(LOW,27);V ARO6:=HHV(HIGH,34);V ARO7:=EMA((CLOSE-V ARO5)/(V ARO6-V ARO5)*4,4)*25;建仓区: IF((VARO7<10),100,118) ,COLOR00CCFF,LINETHICK1;CD1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(L,9))-0.7;CD2:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9));CD3:=SMA(SMA(CD2,3,1),3,1);CD4:=(CD3-SMA(CD1,9,1))-0.5;CD5:=IF(CD4>0.00,CD4,0.00);CD6:=REF(CD5,1);V AR81:=MA(C,9),colorred;空头1:=IF(CD6-CD5,CD6,CD5),LINETHICK3,colorgreen;减仓空仓:CROSS(CD6,CD5),colorgreen;DRAWICON(减仓空仓>0,113,5);V AR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;V AR2A:=SMA(V AR1A,9,1)+100;V AR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V AR4A:=SMA(V AR3A,3,1);V AR5A:=SMA(V AR4A,3,1)+100;V AR6A:=V AR5A-V AR2A;端庄窝:=IF(VAR6A>N1,V AR6A-N1,0),COLORLIRED;果断出击:IF(CROSS(端庄窝,0.01),18,0),STICK,COLOR0000CC,LINETHICK2; DRAWICON(果断出击>0,18,4);XG:=CROSS(端庄窝,0.01);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;E:=CROSS(83,RSI);STICKLINE(REF(端庄窝,1)<端庄窝,端庄窝,REF(端庄窝,1),3,0),colorred; STICKLINE(REF(端庄窝,1)>端庄窝,端庄窝,REF(端庄窝,1),3,0),COLOR00FF00; 红持绿空:0,colorgreen;5、卖出DY1:=(2*CLOSE+HIGH+LOW)/4;DY2:=LLV(LOW,34);DY3:=HHV(HIGH,34);BDC:EMA((DY1-DY2)/(DY3-DY2)*100,4),colorred;BDD:EMA((0.667*REF(BDC,1)+0.333*BDC),2),colorff9900;BDE:=EMA((DY1-DY2)/(DY3-DY2)*100,30);BDF:=EMA(BDE,5);DY4:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100; kw:=SMA(DY4,34,1),colorcccc22;dw:=SMA(kw,13,1);中期趋势:kw,coloryellow;DY5:=(CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100; km:=SMA(DY5,89,1),color3366dd;dm:=SMA(kw,34,1);买:IF(CROSS(BDC,BDD) AND BDD<21,25,0),color00ff00;长期趋势:km,color00ff00;风险区:80,POINTDOT,colorff00ff;安全区:20,POINTDOT,color00ff00;STICKLINE(BDC>=BDD,BDC,BDD,4,0),colorred;STICKLINE(BDC<BDD,BDD,BDC,4,0),colorffff33;STICKLINE(BDE>=BDF,BDE,BDF,4,0),color555555;STICKLINE(BDE<BDF,BDF,BDE,4,0),colorff00ff;6、操盘手线买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWTEXT(bu,LOW*0.999,'B'),colorred,linethick3;DRAWTEXT(bu,LOW,'﹉'),Color208FFF,LINETHICK3;DRAWTEXT(sel,HIGH,'﹉'),ColorFFFF00,LINETHICK3;DRAWTEXT(sel,HIGH*1.008,'S'),colorffff00,linethick3;STICKLINE(买线>=卖线,LOW,HIGH,1,0),colorred;STICKLINE(买线>=卖线,CLOSE,OPEN,4.5,0),color0000aa;STICKLINE(买线>=卖线,CLOSE,OPEN,4,0),color0000cc;STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),color0000cc;STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),color0000ee;STICKLINE(买线<卖线,CLOSE,OPEN,4.5,0),coloraaaa00;STICKLINE(买线<卖线,CLOSE,OPEN,4,0),colorbbbb00;STICKLINE(买线<卖线,CLOSE,OPEN,3,0),colorcccc00;STICKLINE(买线<卖线,CLOSE,OPEN,2,0),coloreeee00;STICKLINE(买线<卖线,LOW,HIGH,1,0),colorffff00;STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,3,0),color00ffff;指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1, ColorFFffFF;界: MA(CLOSE,27),linethick1,Color00FFFF;DRAWTEXT(CROSS(指导线,界),界,' ̄'),Colorffffff;DRAWTEXT(CROSS(界,指导线),界,' ̄'),Color00ffff;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;G:=95;DRAWTEXT(CROSS(J,D),L*0.999,'▲'),Color00ffff,linethick4;DRAWTEXT(CROSS(J,D),L,' ̄'),Color00ffff;DRAWTEXT(CROSS(J,G),H*1.005,'▼'),Colorffff00,linethick4;DRAWTEXT(CROSS(J,G),H,' ̄'),Colorffff00;7、买卖预警Var1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;Var2:=2*ABS(Var1);Var3:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SM A(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var4:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA (SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var5:=(HIGH+LOW+CLOSE)/3;Var6:=(V ar5-MA(Var5,14))/(0.015*A VEDEV(Var5,14));Var7:=(V ar5-MA(Var5,70))/(0.015*A VEDEV(Var5,70));Var8:=IF(Var6>=150 AND V ar6<200 AND Var7>=150 AND Var7<200,10,0);Var9:=IF(Var6<=-150 AND Var6>-200 AND Var7<=-150 AND Var7>-200,-10,Var8);VarA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VarB:=100-ABS(VarA);VarC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1 )-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20, 1),15,1);VarD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1 )-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20, 1),15,1);VarE:=REF(LOW,1)*0.9;VarF:=LOW*0.9;Var10:=(VarF*VOL+VarE*(CAPITAL-VOL))/CAPITAL;Var11:=EMA(Var10,30);Var12:=Var11-CLOSE;Var13:=REF(CLOSE,1);Var14:=SMA(MAX(CLOSE-Var13,0),7,1)/SMA(ABS(CLOSE-Var13),7,1)*100;Var15:=SMA(MAX(CLOSE-Var13,0),13,1)/SMA(ABS(CLOSE-Var13),13,1)*100;Var16:=BARSCOUNT(CLOSE);Var17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*1 00;Var18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;Var19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;Var1A:=(SMA(Var19,4,1)-50)*2;Var1B:=SMA(Var1A,3,1);Var1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;Var1D:=SMA(Var1C,4,1);Var1E:=SMA(Var1D,3,1);Var1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;Var20:=IF(Var17<=25 AND Var18<-95 AND Var1F>20 AND Var1B<-30 AND Var1E<30 AND Var12>=-0.25 AND Var14<22 AND Var15<28 AND Var16>50,80,0);情报: Var3;天线: IF(VarB<90,VarB,100);红军: IF(Var1>0,Var1,0),colorred, LINESTICK;绿军: IF(Var1<0,Var2,0),colorgreen,LINESTICK;导弹: Var20;预警系统: IF(Var7>=200 AND Var6>=150,15,IF(Var7<=-200 AND Var6<=-150,-15,Var9))+60; STICKLINE(Var3>=REF(Var4,1),Var3,Var4,8,0);//STICKLINE(var3);var21:=CLOSE>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1);Var22:=CLOSE;Var23:=红军>50 AND 预警系统>60 AND 天线=100;Var24:=红军>48 AND 预警系统>60 AND 天线<100;Var25:=绿军>38 AND 预警系统<55;Var26:=导弹>50 AND 天线<90;Var27:=REF(VOL,1) AND CLOSE>REF(CLOSE,1);Var28:=REF(Var4,1) AND CLOSE=REF(绿军,1) AND DRAWTEXT(Var21 AND COUNT(Var21,30)=1,100,'上升通道,持股待长或高抛低吸!');DRAWTEXT(V ar22 AND COUNT(Var22,30)=1,90,'下降通道,小心无量阴跌!'); DRAWTEXT(V ar23 AND COUNT(Var23,30)=1,70,'上涨过急,需要调整,短线先抛出!'); DRAWTEXT(V ar24 AND COUNT(Var24,30)=1,80,'庄家出货,大跌在即,中线抛出!'); DRAWTEXT(V ar25 AND COUNT(Var25,30)=1,50,'不必杀跌,应有小反弹,跌停除外!'); DRAWTEXT(V ar26 AND COUNT(Var26,30)=1,30,'坚决抢反弹,但巨量封跌停除外');DRAWTEXT(V ar27 AND COUNT(Var27,30)=1,40,'有大资金进场迹象,关注!'); DRAWTEXT(V ar28 AND COUNT(Var28,30)=1,20,'见顶回落');买入:IF(V AR27 AND COUNT(V AR27,30)=1,100,0),LINETHICK3,colorblue;8、买卖提示V ARb:=LLV(LOW,27);V ARc:=HHV(HIGH,34);V ARd:EMA((CLOSE-V ARb)/(V ARc-V ARb)*4,4)*25,colorred;建仓:IF((VARd<12),25,0),colorgreen;Va:=REF(CLOSE,1);Vb:=((SMA(MAX((CLOSE-Va),0),6,1)/SMA(ABS((CLOSE-Va)),6,1))*100);卖出:IF(CROSS(80,Vb),60,0),colorcyan,linethick2;DRAWTEXT(CROSS(80,Vb),40,'=出'),coloryellow;9、资金流入流出V AR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));买盘:=IF((CLOSE > OPEN),(V AR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(V AR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (V AR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘+ 卖盘);STICKLINE((买卖差< 0),0,买卖差,5,0),COLOR33FF33;0;JX1:=BARSSINCE(买盘);JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);V AR30:=MA(VOL,JY2);神比:=(买盘/ V AR30);鬼比:=(卖盘/ V AR30);V AR2:=(HIGH - LOW);V AR3:=ABS((OPEN - CLOSE));V AR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));V AR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);V AR6:=((V AR3 / V AR2) * VOL);V AR7:=((V AR4 / V AR2) * VOL);V AR8:=((V AR5 / V AR2) * VOL);V AR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));V ARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);V ARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60))); V ARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30)));V ARD:=REF(CLOSE,1);V ARE:=((SMA(MAX((CLOSE - V ARD),0),6,1) / SMA(ABS((CLOSE - V ARD)),6,1)) * 100);V AR40:=((IF((((VAR6 >= V AR7) AND (V AR6 >= V AR8)) AND (CLOSE > OPEN)),V AR6,买盘) + 买盘) / 2);V AR41:=((IF(((VAR7 > V AR6) AND (V AR7 > V AR8)),V AR7,买盘) + 买盘) / 2);V AR42:=((IF(((VAR8 > V AR6) AND (V AR8 > V AR7)),V AR8,买盘) + 买盘) / 2);V AR50:=((IF((((VAR6 >= V AR7) AND (V AR6 >= V AR8)) AND (CLOSE < OPEN)),V AR6,卖盘) + 卖盘) / 2);三日上攻:=MA((((V AR40 + V AR41) + V AR42) / 3),JY2);三日下攻:=MA(V AR50,JY2);多头:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,5,1),COLOR0000FF;空头:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,5,1),COLOR00FF00;STICKLINE((((VAR6 >= V AR7) AND (V AR6 >= V AR8)) AND (CLOSE > OPEN)),0,V AR6,4,0),COLOR00FFFF;STICKLINE((((VAR6 >= V AR7) AND (V AR6 >= V AR8)) AND (CLOSE < OPEN)),0,V AR6,4,0),COLORFF0000;STICKLINE(((VAR8 > V AR6) AND (V AR8 > V AR7)),0,V AR8,4,0),COLORFFFFFF; STICKLINE(((VAR7 > V AR6) AND (V AR7 > V AR8)),0,V AR7,4,0),COLORFF00FF; STICKLINE((VOL > (MA(VOL,5) * 2.5)),0,VOL,2,0);STICKLINE((买盘> 0),买盘,0,2,0),COLOR0000FF;10、顶底q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;q3:=SMA(q2, 9, 1);q4:=SMA(q3, 3, 1);长趋势:3*q3-2*q4,colorwhite,linethick3;趋势线:EMA(q3, 3),colorred,linethick3;DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80, REF(长趋势,3), '▼逢高派发'), Color00ff00,linethick5;▲逢低买入: DRAWTEXT(REF(CROSS(趋势线,长趋势),82) AND趋势线>1.3*长趋势,长趋势,'▲逢低买入'), Color00Ffff, linethick1;▲低买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND长趋势>1.3*趋势线,趋势线,'▲低买'),colorblue,linethick1;var3:=PEAKBARS(3,15,1)<10;var5:=IF(var3=1,2,0);顶:= IF(var5=2,2,0);顶a:IF(顶>REF(顶,1),50,0),colorgreen, linethick2;DRAWTEXT(顶a=50,45,'顶部'),color00ff00;11、资金VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘 + 卖盘);STICKLINE((买卖差 < 0),0,买卖差,5,0),COLOR33FF33;0;JX1:=BARSSINCE(买盘);JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);神比:=(买盘 / VAR30);鬼比:=(卖盘 / VAR30);VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);VAR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60))); VARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30))); VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100);VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,买盘) + 买盘) / 2); VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,买盘) + 买盘) / 2);VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,买盘) + 买盘) / 2);VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),VAR6,卖盘) + 卖盘) / 2); 三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2);三日下攻:=MA(VAR50,JY2);多头:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,5,1),COLOR0000FF;空头:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,5,1),COLOR00FF00;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,4,0),COLOR00FFFF; STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),0,VAR6,4,0),COLORFF0000; STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,4,0),COLORFFFFFF;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,4,0),COLORFF00FF;STICKLINE((VOL > (MA(VOL,5) * 2.5)),0,VOL,2,0);STICKLINE((买盘 > 0),买盘,0,2,0),COLOR0000FF;12、主力AVPRICE:=(((2)*(OPEN) + (2)*(CLOSE) + (2)*(HIGH) + (2)*(LOW))/(8));INDEXAVP:=(((2)*(INDEXH) + (2)*(INDEXL) + (2)*(INDEXO) + (2)*(INDEXC))/(8)); F:=(AVPRICE - REF(AVPRICE,1))/(REF(AVPRICE,1));F1:=(INDEXAVP - REF(INDEXAVP,1))/(REF(INDEXAVP,1));类比参数3:=(((SUM(F,10) + SUM(F1,10))/(10))*(1000));类比大盘参数:=IF((类比参数3 > 0),类比参数3,0);类比参数2:=IF((类比参数3 < 0),(-类比参数3),0);STICKLINE(类比参数2,150,150 - 类比参数2,11,0),Color008000;STICKLINE(类比大盘参数,150,150 - 类比大盘参数,11,0),ColorFF00FF;AA:=AVPRICE;BB:=((VOL)*((AA)*(2) - HIGH - LOW))/(HIGH - LOW);CC:=IF((HIGH = LOW) AND (AA < REF(AA,1)),((-1))*(VOL),VOL);A:=IF((HIGH = LOW),CC,BB);B:=SUM(A,11);BBD:=(((B)/((CAPITAL)*(11)))*(10000));BB1:=IF((BBD < 150) AND (BBD > (-150)),BBD,150);买方能量指标:=IF((BB1 > 0),BB1,0);STICKLINE((BB1 > 0),0,买方能量指标,5,0),coloryellow;STICKLINE((BB1 < 0),0,(-BB1),5,0),Color008000;A16:=(SUM((AVPRICE)*(VOL),16))/(SUM(VOL,16));A11:=(SUM((AVPRICE)*(VOL),11))/(SUM(VOL,11));A6:=(SUM((AVPRICE)*(VOL),6))/(SUM(VOL,6));A7:=(SUM((AVPRICE)*(VOL),7) - (AVPRICE)*(VOL))/(SUM(VOL,7) - VOL);A0:=((A11 - A16)/(AVPRICE))*(1000);A00:=IF((A0 > 50),50,IF((A0 < (-50)),(-50),A0));A1:=((A6 - A11)/(AVPRICE))*(1000);AA11:=IF((A1 > 50),50,IF((A1 < (-50)),(-50),A1));A2:=((((A6 - A7)/(A7))*(5))/(4))*(1000);A22:=IF((A2 > 50),50,IF((A2 < (-50)),(-50),A2));刻度线3:=(A00 + AA11 + A22);趋势线:=IF((刻度线3 > 0),刻度线3,0);兰刻度线:=IF((刻度线3 < 0),刻度线3,0);红柱线:趋势线,colorred;兰柱线:(-兰刻度线),colorblue;STICKLINE(趋势线,0,趋势线,3,0),colorred;STICKLINE(兰刻度线,0,(-兰刻度线),3,0),ColorFF0000;强弱分界:50,Color000080;13、买买var1:=1;趋势线:((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOS E-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-50)*1.032+50),colorred; var2:=(2*CLOSE+HIGH+LOW+OPEN)/5;var3:=LLV(LOW,34);var4:=HHV(HIGH,34);SK:= EMA((var2-var3)/(var4-var3)*100,13)*var1,colorwhite;SD:= EMA(SK,2)*var1,coloryellow;var5:=EMA(CLOSE,12)-EMA(CLOSE,26);var6:=EMA(var5,9);var7:=var1*CLOSE*1.236;var8:=CLOSE/REF(CLOSE,1)>1.021;var9:=(HIGH-CLOSE)*1.36<=CLOSE-OPEN;varA:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;varB:=ABS(var5-var6);varC:=STD(CLOSE,90)*10;varD:=COUNT((REF(CLOSE,15)-CLOSE)/CLOSE*100>45,5);varE:=SLOPE(CLOSE,40);varF:=COUNT((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<-0.098,90);var10:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;var11:=var1*STD(CLOSE,63)*10;var12:=var1*(MA(CLOSE,76)-MA(CLOSE,13)/3);var13:=var1*MA((CLOSE-var12)/var12,1);var14:=MA(CLOSE,5);var15:=MA(CLOSE,10);var16:=MA(CLOSE,20);var17:=MA(CLOSE,30);var18:=MA(CLOSE,60);var19:=MA(CLOSE,150);var1A:=MA(CLOSE,250);var1B:=var1*VOL/CAPITAL*100;var1C:=(CLOSE-var1A)/var1A*100;var1D:=(CLOSE/REF(CLOSE,1)-1)*100;var1E:=PWINNER(1,CLOSE);var1F:=IF(var1>0.75AND var1<0.901,0.618,1);买入就涨:= IF(var14>var15 AND var15>var16 AND var16>var17 AND var16>var18 AND var19>var1A AND(var1E>=0.9OR var1E>0.76AND var1E<0.901AND var1D>5AND var1B>5) AND var1D>1.8 ANDvar1C<40AND CLOSE>3AND (CLOSE-var18)/var18<0.25AND var1B<=6AND var4*var1B>=1 ANDCLOSE<18.5,76,0), coloryellow;var20:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;var21:=(MA(CLOSE,48)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;var22:=var1*(MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,48)+MA(CLOSE,96))/4;var23:=var1*MA(CLOSE,250);var24:=MA(CLOSE,125);买入就涨:IF(SD>18AND SK<75AND CROSS(var20,var21) AND (var22-var23)/var23<0.161 AND REF(SK,3)AND REF(var22,1));//var25:=CLOSE/MA(CLOSE,3)>=1.05 AND CLOSE=HHV(CLOSE,3) ANDMA(VOL,2)/MA(VOL,40)>=3 AND MA(VOL,2)=HHV(MA(VOL,2),3) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);14、进出MAV:=(C*2+H+L)/4;SK:=EMA(MAV,13) - EMA(MAV,34);SD:=EMA(SK,5); 中轴:0;空方主力 : (-2*(SK-SD))*3.8,COLOR00FF00;多方主力 : (2*(SK-SD))*3.8,colorred;15、私募A01:=DAYINTERST(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009)))); A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);Var1:=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);Var2:=WMA(Var1,8);Var3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=WMA(Var3,3)-10;(趋势>80);DRAWICON(CROSS(趋势,0),40,1);((A09 > 0AND (趋势<20OR趋势>REF(趋势,1)AND趋势<50))),colorFFFF00;机构建仓区:0,LINETHICK0,colorFFFF00;Var4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;STICKLINE(趋势<=13,0,20,5,0),colorcc9900;DRAWTEXT(FILTER(趋势<=13,15),50,'准备现金'),colorcc9900;STICKLINE(趋势<=13AND Var4>13,0,50,5,0),color0099ff;Var5:=FILTER((趋势<=13AND Var4>13),10);DRAWTEXT(Var5,60,'买入'),color0099ff;STICKLINE(趋势>=90AND Var4,0,30,5,0),colorgray;Var6:=FILTER((趋势>=90AND Var4),10);DRAWTEXT(Var6,40,'清仓'),colorddffdd;Var7:=LLV(LOW,30);Var8:=HHV(HIGH,30);Var9:=WMA((CLOSE-Var7)/(Var8-Var7)*4,4)*25;STICKLINE(Var9>90,100,105,10,2),colorred;Var10:=(Var9-LLV(Var9,4))/(HHV(Var9,4)-LLV(Var9,4))*100;DRAWTEXT(IF(CROSS(Var9,Var10) AND Var9>87,95,0),88,'险'),Color00FF00;DRAWICON(CROSS(90,Var9),95,2);Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;Var12:=HHV(Var11,30)*8;火焰山:WMA(IF(LOW<=Var7 AND趋势<40,(Var11+Var12),0),3)/618,colorred,linethick2; STICKLINE(火焰山>0,0 ,火焰山*1.2,8,0 ),colorred;Var13:=(WMA(C,1)+WMA(C,3)+WMA(C,5)+WMA(C,7)+WMA(C,9))/5;Var14:=(WMA(C,2)+WMA(C,4)+WMA(C,6)+WMA(C,8)+WMA(C,10))/5;趋势线: 趋势,colorff0000;Var16:=MAX(WMA(Var13,2)-WMA(Var14,5),0)*200;Var17:=WMA(Var16,5);波浪峰:Var17,STICK,colorff00ff;STICKLINE(Var17<REF(Var17,1),0,Var17,1,0),color00ff00;Var18:=WMA(趋势线,8);VarF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LL V(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var19:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV (LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var20:=VarF<REF(Var19,1) AND AMOUNT>REF(AMOUNT,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(Var20 AND COUNT(Var20,30)=1,40,'大资金活动'),linethick1,COLORff00ff;IF(CROSS(Var2,Var18) AND Var2<15,50,0),colorred;DRAWTEXT(CROSS(趋势线,Var2)AND趋势线>REF(趋势线,1)AND趋势线<50,50,'追涨'),COLORFF0000;16、出货VAR0:=DAYINTERST(5);VAR1:=BARSCOUNT(HIGH);VAR2:=(SMA((HIGH / HHV(CLOSE,120)),3,1) * 100);低位金叉跟进:=IF((VAR1 > 20),VAR2,0);VAR11:=IF((HIGH< VAR0),0,IF((LOW> VAR0),1,(((VAR0 - HIGH) + 0.009) / ((LOW- HIGH) + 0.009)))); AAA:=(DMA(VAR11,(VOL /SUM(VOL,90))) * 60);BBB:=(DMA(VAR11,(VOL / CAPITAL)) * 60);VAR12:=IF(C>1000,AAA,BBB);VAR3:=IF((((VAR12 > 0) AND (VAR12 > REF(VAR12,1))) AND (低位金叉跟进 >= 88)),VAR2,0);VAR4:=((3 * SMA((((CLOSE - HHV(HIGH,27)) / (LLV(LOW,27) - HHV(HIGH,27))) * 100),5,1)) - (2 * SMA(SMA((((HIGH - HHV(HIGH,27)) / (LLV(LOW,27) - HHV(HIGH,27))) * 100),5,1),3,1)));VAR5:=EMA(VAR4,8);VAR6:=((3 * SMA((((HIGH - HHV(HIGH,55)) / (LLV(LOW,55) - HHV(HIGH,55))) * 100),5,1)) - (2 *SMA(SMA((((HIGH - HHV(HIGH,55)) / (LLV(LOW,55) - HHV(HIGH,55))) * 100),5,1),3,1)));VAR7:=(EMA(VAR6,3) - 10);A:=1.1*C;B:=0.9*C;B1:=100*(WINNER(A)-WINNER(B));C1:=MA(C,13)<REF(MA(C,13),1);D1:=IF(C>1000,CROSS(VAR3,22),CROSS(VAR3,24));锁定筹码:=100-B1;锁定区:STICKLINE(锁定筹码>70AND C1,0,锁定筹码-65,8,0),COLOR0000FF;出仓区:STICKLINE(((VAR3>0) AND ((VAR7 < 20) OR ((VAR7 > REF(VAR7,1)) AND (VAR7 < 50)))),0,VAR3,8,0),colorgreen;明天买:IF(CROSS(锁定筹码,90)AND C1,锁定筹码-50,0),COLORBBEEFF,LINETHICK2;明天卖:IF(D1,VAR3+10,0),COLORFFAA00,LINETHICK2;17、多空VAR0:=(2*CLOSE+HIGH+LOW)/4;VAR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;VAR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;B:=EMA((VAR0-LLV(LOW,26))/(HHV(HIGH,34)-LLV(LOW,26))*100,16);短线:SMA(SMA(VAR2,2,1)+3,2,1),coloryellow;浮筹:EMA(B,4),LINETHICK2,colorgreen;空方:SMA(VAR1,3,1);DRAWICON(短线>浮筹,0,10);DRAWICON(短线<浮筹,0,11);浮筹1:浮筹+0.5,LINETHICK0;浮筹2:浮筹+1,LINETHICK0;浮筹3:浮筹+1.5,LINETHICK0;浮筹4:浮筹+2,LINETHICK0;。
同花顺+rsi计算公式
同花顺+rsi计算公式
一、同花顺RSI计算公式
1.开盘价:
Open = (前一日收盘价 + 前一日最高价 + 前一日最低价)/3 2.收盘价:
Close = (本日最高价 + 本日最低价 + 本日收盘价)/3
3.计算本日的上涨幅度:
U = Close-Open;
4.计算本日的下跌幅度:
D = Open-Close;
5.计算本日RSI值:
RSI = U/(U+D) * 100
6.计算前n日RSI的平均值
RSIave = (RSI1 + RSI2 + ... + RSIn)/n
二、同花顺RSI公式的解释
(1)RSI = U/(U+D) * 100:RSI指标是用来衡量股票的价格变动,通过计算股票近期价格的上涨及下跌的比例来得到,当RSI指标大于70时,表明股票处于超买状态,处于高点,应考虑参与空头交易;当RSI指标低于30时,表明股票处于超卖状态,处于低点,应考虑参与多头交易。
(2)RSIave = (RSI1 + RSI2 + ... + RSIn)/n:RSIave是将前n天的RSI值求和,然后除以n,得到的平均值,它表示前n天股
票价格的变动情况,可用于划分买卖点。
同花顺异动类型公式(一)
同花顺异动类型公式(一)同花顺异动类型公式1. 异动类型公式1•公式:异动类型1 = (成交量 - 前日成交量) / 前日成交量•解释:该公式用于计算当前交易日的成交量与前一个交易日的成交量之间的差异比例,用以判断股票的异动类型。
2. 异动类型公式2•公式:异动类型2 = (收盘价 - 前日收盘价) / 前日收盘价•解释:该公式用于计算当前交易日的收盘价与前一个交易日的收盘价之间的差异比例,用以判断股票的异动类型。
3. 异动类型公式3•公式:异动类型3 = (最高价 - 最低价) / 最低价•解释:该公式用于计算当前交易日的最高价与最低价之间的差异比例,用以判断股票的异动类型。
4. 异动类型公式4•公式:异动类型4 = (最新价 - 前日最新价) / 前日最新价•解释:该公式用于计算当前交易日的最新价与前一个交易日的最新价之间的差异比例,用以判断股票的异动类型。
示例说明假设某只股票的前一个交易日成交量为10000,当前交易日成交量为15000,前一个交易日收盘价为10元,当前交易日收盘价为12元,最低价为9元,最高价为13元,前一个交易日最新价为11元,当前交易日最新价为13元。
根据以上数据,可以计算出以下异动类型:1.异动类型1 = (15000 - 10000) / 10000 = 这表示当前交易日的成交量比前一个交易日增加了50%。
2.异动类型2 = (12 - 10) / 10 = 这表示当前交易日的收盘价比前一个交易日增加了20%。
3.异动类型3 = (13 - 9) / 9 = 这表示当前交易日的最高价比最低价增加了%。
4.异动类型4 = (13 - 11) / 11 = 这表示当前交易日的最新价比前一个交易日增加了%。
根据以上计算结果,可以判断该股票在当前交易日表现出了一定的异动特征。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
介入
var1:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);
var2:=SMA(var1,13,8);
走势:SMA(var2,13,8);
介入:IF(REF(走势,1)<30 AND 走势>REF(走势,1) AND REF(走势,1)<=REF(走势,2),50,0);
DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorgreen;
A3:=CROSS(DIFF,DEA) AND DEA<0;
零下二次金*:IF(FILTER(COUNT(A3,21)=2,10),0.05,0),colorwhite,POINTDOT;
STICKLINE(零下二次金*,45,60,8,0),colorwhite;
利机会要大一点,当出现“警戒高点”信号时应及时了结。
如果顶的人多,以后继续发免费的,顶的人少,就发金钱贴
庄家秘密进出---有大资金进场迹象
庄家秘密
参数:{ 庄家秘密N:1,100,8; M:1,100,13; P:1,100,60; S:1,100,3}
==========================
MACD:(diff-dea)*2,COLORSTICK;
低位金*:IF(CROSS(DIFF,DEA) AND DIFF<-0.1,0.3,0),coloryellow,POINTDOT;
STICKLINE(低位金*,0,15,8,0),coloryellow;
DRAWICON(低位金*,0.3,1);
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
庄家秘密撤: IF(V4<=0,V4,0),COLOR00FF00,LINETHICK2;
庄家秘密进: IF(V4>=0,V4,0),COLORFF00FF,LINETHICK2;
大盘生命
N=34
K=3
大盘生命指数: EMA(100*(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)),K)/4, STICK;
大盘生命量能: IF(DATE<1020501,IF(大盘生命指数>23.16,大盘生命指数,0),0), CIRCLEDOT;
DRAWTEXT(突击队10,突击队7*2,'突击'),coloryellow;
DRAWICON(突击队10,0,4),colorred,;
新编OBV
v1:=SUM(IF(CLOSE>REF(CLOSE,1),V,IF(CLOSE>REF(CLOSE,1),V,0)),0);
J12:=((3 * K12) - (2 * D12));
RSV24:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=((3 * K24) - (2 * D24));
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:IF(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),0.1,0),colorred,POINTDOT;
STICKLINE(底背离,45,30,8,0),colorred;
快马加鞭(副图)同花顺可用
上:=(SMA(HIGH,21,2) * 1.05);
下轨道:=(SMA(LOW,21,2) * 0.ห้องสมุดไป่ตู้69),POINTDOT,colorFFFF00;
阻挡:=(SMA(HIGH,21,2) * 1.05);
RSV:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
突击套利线:=14;
套利阻力线:=78.89;
抄底:=CROSS(多方趋势,突击套利线);
逃顶:=CROSS(套利阻力线,多方趋势);
DRAWICON(抄底,多方趋势,1);
DRAWICON(逃顶,多方趋势,2);
突击队1:=REF(LOW,1);
突击队2:=SMA(ABS(LOW-突击队1),3,1)/SMA(MAX(LOW-突击队1,0),3,1)*100;
新编OBV===用法:
1.股价上升,SOBV线下降,显示买盘无力
2.股价下跌,SOBV线上升,显示买盘旺盛,反弹有望
3.SOBV缓慢上升,显示买盘渐强,买进信号
4.SOBV急速上升,显示买盘力量将尽,卖出信号
5.SOBV线由正转负,为下跌趋势,卖出信号;反之,买进信号
6.SOBV线长用于观察股价何时脱离盘局及突破后的未来走势
支撑位:=IF(CROSS(J,J24),LOW,REF(LOW,BARSLAST(CROSS(J,J24))));
压力位:=IF(CROSS(J24,J),HIGH,REF(HIGH,BARSLAST(CROSS(J24,J)))),colorFF00ff;
U2L:=IF((CLOSE >= MA(CLOSE,20)),80,50);
DRAWLINE(A1=0,DEA,底背离,DEA,0),colorgreen;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),colorgreen;
警界点
Var5:=LLV(LOW,26);
Var6:=HHV(HIGH,34);
Var7:=EMA((CLOSE-Var5)/(Var6-Var5)*4,4)*25;
关注低点: CROSS(10,Var7);
警戒高点: CROSS(Var7,90);
当出现“关注低点”信号,要等5日均线与10日均线金*时进入赢
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
大盘资金进场: IF(VB>=0,VB,0),COLORRED,LINETHICK2;
大盘资金撤走: IF(VB<=0,VB,0),COLORBLUE,LINETHICK2;
突击队8:=MA(LOW,2)*0.98;
突击队9:=MA(LOW,26)*0.84;
突击队10:=REF(突击队8,1)<突击队9 AND REF(突击队8,1)<突击队8 AND REF(突击队8,1)<REF(突击队8,2);
STICKLINE(突击队10,0,突击队7*3,4,0),colorred;
突击队3:=EMA(IF(CLOSE*1.2,突击队2*10,突击队2/10),3);
突击队4:=LLV(LOW,38);
突击队5:=HHV(突击队3,38);
突击队6:=IF(LLV(LOW,90),1,0);
突击队7:=EMA(IF(LOW<=突击队4,(突击队3+突击队5*2)/2,0),3)/618*突击队6;
底部警戒: 10,colorred,linethick2;
买入警戒:STICKLINE(股价趋势<=10,0,20,2,0),color008364,linethick2;
买入信号: STICKLINE(CROSS(股价趋势,底部警戒),0,30,3,0),colorred,linethick5;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=((3 * K) - (2 * D));
RSV12:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100);
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
v2:=SUM(IF(CLOSE<REF(CLOSE,1),-V,IF(CLOSE<REF(CLOSE,1),V,0)),0);
v3:=(v2/v1*10);
v4:LLV(v3,6),colorblue;
OBV::(v3/v4*v3),colorred;
V6:HHV(v4,13),colorgreen;LLV(v3,6),COLORffff00;
多方趋势:7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1),Color8811FF;