您当前的位置:股票 > 财经资讯 > 财经频道

大智慧FFS+X指标公式,大智慧FFS-B主图指标公式

2024-06-15 23:17:50 来源: 作者: admin888
分享到
关注牛市通网在线:
  • 扫描二维码

    关注√

    牛市通网微信

在线咨询:
  • 扫描或点击关注牛市通网在线客服

大智慧FFS+X指标公式,大智慧FFS-B主图指标公式

大智慧FFS+X指标公式

KG:=FRACPART(CURRENTTIME/3);

{时间开关}if KG<>0 then beginqq:=KG<>0;

80*qq,COLOR996699;

20*qq,COLORGREEN;

底:10*qq,COLORCC6633,LINETHICK2;

90*qq,COLOR9966FF,LINETHICK2;

50*qq,COLORRED;

A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);

B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));

D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);

长期线:A+100,COLOR9900FF;

短期线:B+100,COLOR888888;

中期线:D+100,COLORYELLOW,LINETHICK2;

见顶:=((REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线));

顶部区域:(中期线80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5AND 短期线<中期线 AND 短期线<长期线+4,COLORRED;

顶部:=FILTER(顶部区域,4);

STICKLINE( {见顶 OR} 顶部,99,103,20,1 ),COLORRED,LINETHICK2;

底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ,COLORGREEN;

STICKLINE( 底部区域,-4,0,22,0 ),COLORGREEN;

低位金叉:30*(长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线 OR REF( 短期线,1)<1 )),COLORRED;

DRAWGBKLAST(CLOSE>OPEN,STRIP(RGB(0,50,0),RGB(125,50,0),1));

DRAWGBKLAST(CLOSE

end;

{==============================================================}if KG=0 then beginyy:=KG=0;

{---5日KDJ,27日KDJ--------------------------------金叉共振---}RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;

RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;

var4:=SMA(RV,3,1);

var5:=SMA(var4,3,1);

KK:=EMA(SMA(RG,3,1),2);

DD:=SMA(KK,3,1);

DRAWTEXTREL(0,10,STKLABEL+' '+STKNAME+''),Color00DDFF;

DRAWTEXT(cross(var4,var5) and cross(KK,DD),10,'共振点'),COLORyellow;

VERTLINE(cross(var4,var5) and cross(KK,DD),1),COLOR00FFFF;

{---MACD------------------------------------------------------}DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);

{选股设JC=10即可}DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);

A:=IF(CROSS(0,DEA),1,0);

A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);

SS:=IF(A,SUM(A1,0),0);

SSB:=HHV(SS,0);

SSS:=SUM(A1,0);

W底选股:IF(SSS-SSB=2 AND SSS>REF(SSS,1),-22,0),LINETHICK2,COLORffff00;

IF(SSS-SSB=2 AND SSS>REF(SSS,1),-12,0),LINETHICK2,COLORffff00;

DRAWTEXT(A1,-8,'?W底'),COLORyellow;

VARO5:=LLV(LOW,27);

{------------------------------------KDJ---}VARO6:=HHV(HIGH,34);

VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;

建仓区: IF((VARO7<10),-6,0) ,COLORyellow,LINETHICK3;

IF((VARO7<10),-3,0) ,COLORblack,LINETHICK3;

MA2:=EMA(C,2);

MA5:=EMA(C,5);

MA13:=EMA(C,13);

MA30:=EMA(C,30);

MA55:=EMA(C,55);

YCX:=MA5>=REF(MA5,1);

H1:=MAX(MAX(MA5,MA13),MA30);

L1:=MIN(MIN(MA5,MA13),MA30);

一阳穿三线:= H1REF(MA2,1);

满仓选股:IF(一阳穿三线,38,0),COLORFFFF00,LINETHICK3;

IF(一阳穿三线,30,0),COLORblack,LINETHICK3;

DRAWTEXT(一阳穿三线,42,'?满'),COLORffff00;

VAR2:=0.0001*AMOUNT;

{------------------------------资金地量---}MA1:=0.0001*MA(AMOUNT,5);

M2:=0.0001*MA(AMOUNT,10);

百日地量:LLV(VAR2,100)=VAR2,STICK,COLORCC66FF,LINETHICK0;

DRAWTEXT(百日地量,-8,'?地'),COLORCC66FF;

AA05:=MA(C,5);

{-----------------------------------5日乖离率---}五日乖离率:=(c-AA05)/AA05*100;

BB05:=atan((aa05/ref(aa05,1)-1)*100)*180/3.1416;

速度5:=sma(ema((AA05-ref(AA05,1))/ref(AA05,1),3)*100,3,1);

加速度5:=ema((速度5-ref(速度5,1)),3);

AA10:=MA(C,10);

AA20:=MA(c,20);

BB10:=atan((aa10/ref(aa10,1)-1)*100)*180/3.1416;

AA30:=MA(C,30);

三拾日乖离率:=(c-AA30)/AA30*100;

{-----------------3日乖离率---}(AA20-AA30)>ref((AA20-AA30),1) and AA20>ref(aa20,1) and AA30>ref(AA30,1);

(AA30-AA20)

BB30:=atan((aa30/ref(aa30,1)-1)*100)*180/3.1416;

强势狙击选股:filter(BB30>30 and BB10>45 and cross(BB05,60),10);

加仓:=filter(count(cross(BB05,30),5)>=1 and AA05>ref(aa05,1) and 三拾日乖离率>ref(三拾日乖离率,1) and AA10>ref(AA10,1)and 加速度5>ref(加速度5,1) and 速度5>ref(速度5,1) ,10) ;

MR:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and AA05>ref(AA05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)

青云直上选股:if(filter(MR,10),30,0),COLORblue,LINETHICK3;

if(filter(MR,10),20,0),COLORblack,LINETHICK3;

DRAWTEXT(青云直上选股,36,'?青'),COLORblue;

QUAN:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM(VOL,13))*100<=-28 AND (CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34))*100<=-19AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND (COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 AND IF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)AND REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)0.02 OR C>REF(C,1)*1.01) AND V1.1,5)>3),3);

DRAWTEXT(QUAN,88,'弱市百发百中'),COLORffff00;

弱市百发百中:IF(QUAN,88,0),COLORffff00,LINETHICK2;

IF(QUAN,60,0),COLORffff00,LINETHICK2;

{---6日RSI--------------------------------------------下破80逃顶---}LC := REF(CLOSE,1);

RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

逃顶:CROSS(80,RSI)*68,LINETHICK3 ,colorgreen;

CROSS(80,RSI)*50,LINETHICK3 ,colorblack;

DRAWTEXT(CROSS(80,RSI),68,'顶 '),colorgreen;

{---乖离率--------------------------------------------------背离---}BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;

BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;

BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;

MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6

MN:=MA(MM,3);

VAR24:=LLV(LOW,36);

VAR25:=HHV(HIGH,30);

VAR26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,4)*25;

{-----------KDJ----}底背离:IF(MN<-4 ,-11,0),COLORA67D3D,LINETHICK3;

顶背离: IF((VAR26>90),110,100), COLORgreen,LINETHICK3;

IF(MN<-4 ,-8,0),COLORblack,LINETHICK2;

IF((VAR26>90),106,100), COLORblack,LINETHICK3;

100*yy,COLORffff00, LINETHICK1;

{趋势买卖}{-------------------------------------------------KDJ---}V1:=LLV(LOW,10);

V2:=HHV(H,25);

价位线:=EMA((C-V1)/(V2-V1)*4,4);

买入:STICKLINE(yy and CROSS(价位线,0.3),50,5,2,0),COLOR00CCFF,LINETHICK1;

STICKLINE(CROSS(价位线,0.3),30,5,2,0),COLORRED,LINETHICK1;

卖出:STICKLINE(yy and CROSS(3.5,价位线),60,100,2,0),COLORRED,LINETHICK1;

STICKLINE(CROSS(3.5,价位线),80,100,2,0),COLORFF9900,LINETHICK1;

DRAWTEXT(CROSS(价位线,0.3),45,'←B'),COLORFFAA66;

DRAWTEXT(CROSS(3.5,价位线),75,'←S'),COLORFFFFCC;

VAR2Q:=REF(LOW,1);

VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;

VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);

VAR5Q:=LLV(LOW,30);

VAR6Q:=HHV(VAR4Q,30);

VAR7Q:=IF(MA(CLOSE,58),1,0);

VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;

VAR9Q:=IF(VAR8Q>100,100,VAR8Q);

AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;

AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;

AA5:=SMA(AA4,13,8);

走势:=CEILING(SMA(AA5,13,8));

AA6:=SMA(AA3,21,8);

{---乖离率-------------------------------------------------------}BIAS1:=(C-MA(C,6))/MA(C,6)*100;

BIAS2:=(C-MA(C,12))/MA(C,12)*100;

BIAS3:=(C-MA(C,24))/MA(C,24)*100;

BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;

乖离1:=MA(BIAS,3);

乖离:IF(CROSS(BIAS,乖离1) AND 乖离1<-9,28,0),COLORAAAAFF,LINETHICK3;

DRAWTEXT(乖离,32,'?乖'),COLORAAAAFF;

IF(CROSS(BIAS,乖离1) AND 乖离1<-9,20,0),COLORblack,LINETHICK3;

VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);

准备建仓:EMA(IF(L<= LLV(L,30),VARC,0),3),COLORff00ff,LINETHICK2;

TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);

HD:=(HIGH - REF(HIGH,1));

LD:=(REF(LOW,1) - LOW);

DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );

DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);

神偷线:=(((DMP ) * 100) / TR);

辅助线:=((DMM * 100) / TR);

动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));

ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);

VAR3:=MA(CLOSE,2);

VAR7:=REF(VAR3,1);

【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);

准备:( IF(((动向趋势线 > 88) AND (神偷线 < 5.8)),68,0)),LINETHICK1,COLORFF00FF;

{---CCI-----------------------------------------------------}TYP := (HIGH + LOW + CLOSE)/3;

cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*500-250;

K:=SMA(RSV,3,1);

Var1:=(CLOSE*2+HIGH+LOW)/4;

SK:= EMA(Var1,13)-EMA(Var1,73);

SD:= EMA(SK,2);

买点选股:(cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03)or (cross(sk,sd) and sk<=-0.14 ) or (cross(sk,sd) and sk<=0.05and (v/ma(v,5)>2 or c/ref(c,1)>0.035));

IF(买点选股,28,0),COLORyellow,LINETHICK3;

IF(买点选股,22,0),COLORblack,LINETHICK3;

DRAWTEXT(买点选股,32,'?买'),COLORyellow;

{---RSI----------------------------------------------------}RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);

TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);

PDI:=((DMP * 100) / TR1);

MDI:=((DMM * 100) / TR1);

ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);

AV:=(RSI5 + ADX);

DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);

WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));

NEWVOL:=(RSI5 - WR10);

天之:=(AV + NEWVOL);

低入:if(CROSS(天之,0),28,0),LINETHICK3,COLOR9370DB;

if(CROSS(天之,0),22,0),LINETHICK3,COLORblack;

DRAWTEXT(低入,32,'?入'),COLOR9370DB;

N:=20;

{----------------------------------------------BOLL-趋势-----}MID:=MA(C,N);

VART1:=POW((C-MID),2);

VART2:=MA(VART1,N);

VART3:=SQRT(VART2);

UPPER:=MID+2*VART3;

LOWER:=MID-2*VART3;

BOLL:=REF(MID,1);

UB:=REF(UPPER,1);

LB:=REF(LOWER,1);

LOWER1:=MID-VART3;

LB1:=REF(LOWER1,1);

股价线:(C-LB1)/(UB-LB)*100,COLORyellow, LINETHICK1;

{股价线:((C-LB1)/(UB-LB)-0.3)/0.5*100;

}{均衡的-100,+100}趋势线:MA(股价线,6),COLORred, LINETHICK3;

地量:=VOL

三十日地量:地量>0,LINETHICK2;

地量1:=VOL

六十日地量:地量1>0;

地量2:=VOL

一百二十日地量:地量2>0;

即涨:CROSS(-100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55)),-45)AND CLOSE>SMA(CLOSE,60,5) AND SMA(CLOSE,23,5)>REF(SMA(CLOSE,23,5),1)AND SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1),23,1)>REF(SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1),23,1),1),COLOrEBC79E,LINETHICK2;

DRAWTEXT(即涨,1.3,'即涨'),COLOREBC79E;

牛大底:"1A0001$CLOSE"/REF("1A0001$CLOSE",23)<0.78AND C/REF(C,120)<0.558 and ref(c,1)/l<1.5and ref(c,1)<>ref(o,1) and ref(c,2)<>ref(o,2) and ref(c,3)<>ref(o,3),COLOr4080FF,LINETHICK2;

DRAWTEXT(牛大底,1.8,'牛大底'),COLOR4080FF;

W1:=C=HHV(C,20);

{-------------------------突破20日高点---}W2:=BARSLAST(W1);

W3:=IF(W2>0,REF(C,W2),REF(C,W2));

W4:=CROSS(C,REF(W3,1));

突破:W4 AND COUNT(W4,5)=1,LINETHICK2,COLOR4D4DFF;

DRAWTEXT(突破,-5,'突破'),COLORffff00;

90*yy,COLORGREEN, LINETHICK1;

50*yy,COLORwhite, LINETHICK1;

DRAWGBKLAST(CLOSE>OPEN,STRIP(RGB(0,0,55),RGB(95,0,95),1));

DRAWGBKLAST(CLOSE

end;

大智慧FFS-B主图指标公式

MA1:MA(CLOSE,5);

MA2:MA(CLOSE,10)

MA3:MA(CLOSE,20);

MA4:MA(CLOSE,60);

MA5:MA(CLOSE,120);

角5 :ATAN(ma1/REF(ma1,1)-1)*180/3.1416*100,LINETHICK0;

角10:ATAN(ma2/REF(ma2,1)-1)*5730,PRECIS2,LINETHICK0;

角20:ATAN(ma3/REF(ma3,1)-1)*5730,PRECIS2,LINETHICK0;

角60:ATAN(ma4/REF(ma4,1)-1)*5730,PRECIS2,LINETHICK0;

DRAWGBK(ma3>ma4),COLOR100015;

{用趋势换背景色写K线颜色分红蓝黄绿紫青???}DRAWGBK(ma3

MID := MA(CLOSE,20);

UPPER:= MID + 2*STD(CLOSE,20);

LOWER:= MID - 2*STD(CLOSE,20);

FILLRGN(MID,UPPER,1,RGB(78,0,0),1,RGB(78,0,0)),LAYER6;

FILLRGN(MID,LOWER,1,RGB(0,0,88),1,RGB(0,0,88)),LAYER6;

STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7.8,0),COLOR0000aa,LAYER4;

STICKLINE(CLOSE>=OPEN,h,l,0.1,0),COLOR0000aa,LAYER4;

STICKLINE(CLOSE

STICKLINE(CLOSE

qp:=IF(L>ma1,L/ma1,IF(H1.03;

STICKLINE(qp,O,C,0.1,0),COLOR00FFFF,LAYER4;

总股本:=FINANCE2(35)/10000;

流通盘:=FINANCE2(37)/10000;

DRAWTEXTABS(15,20,'总股本:'+NUMTOSTRN(总股本,2)+'亿'),COLOR00cccc;

DRAWTEXTABS(160,20,'流通盘:'+NUMTOSTRN(流通盘,2)+'亿'),COLOR00cccc;

每股收益:=FINANCE2(3);

每股市盈率:=DYNAINFO(39);

每股净资产:=FINANCE2(4);

每股现金流:=FINANCE2(6);

主营收入同比:=FINANCE2(11);

净利润同比增长:=FINANCE2(10);

每股未分配:=FINANCE2(8);

每股公积金:=FINANCE2(7);

资产负债率:=FINANCE2(20)/FINANCE2(14)*100;

每股市净率:=DYNAINFO(58);

DRAWTEXTABS(160,35,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),COLOR00cc00;

DRAWTEXTABS(160,50,'每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),COLOR00cccc;

DRAWTEXTABS(160,65,'每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),COLOR00cc00;

DRAWTEXTABS(15,35,'每股经营现金流:'+NUMTOSTRN(每股现金流,2)+'元'),COLOR00cc00;

DRAWTEXTABS(15,50,'主收入同比增长:'+NUMTOSTRN(主营收入同比,2)+'%'),COLOR00cccc;

DRAWTEXTABS(15,65,'净利润同比增长:'+NUMTOSTRN(净利润同比增长,2)+'%'),COLOR00cc00;

DRAWTEXTABS(15,80,'每股未分配:'+NUMTOSTRN(每股未分配,2)+'元'),COLOR00cccc;

DRAWTEXTABS(160,80,'每股公积金:'+NUMTOSTRN(每股公积金,2)+'元'),COLOR00cccc;

DRAWTEXTABS(15,95,'资产负债率:'+NUMTOSTRN(资产负债率,2)+'%'),COLOR00cc00;

DRAWTEXTABS(160,95,'每股市净率:'+每股市净率+'倍 '),COLOR00cc00;

A4:=MA(CLOSE,20);

A5:=(CLOSE > MA(CLOSE,5));

A6:=(MA(CLOSE,5) > MA(CLOSE,10));

A7:=(CLOSE > MA(CLOSE,10));

A8:=(MA(CLOSE,5) > MA(CLOSE,20));

A9:=(CLOSE > MA(CLOSE,20));

A10:=REF(A4,1);

A11:=(A4 > A10);

AVX:=(((((IF(A5,10,(0 - 10)) + IF(A6,10,(0 - 10))) + IF(A7,10,(0 - 10))) + IF(A8,10,(0 - 10))) + IF(A9,10,(0 - 10))) + IF(A11,10,(0 - 10)));

DSLX:=(CLOSE / INDEXC);

DSLX1:=MA(DSLX,5);

DSLX2:=MA(DSLX,10);

V1:=MA(VOL,5);

V2:=MA(VOL,10);

TJTS1:=BARSTATUS=2 and c<200;

TJTS2:=BARSTATUS=2 and c>200;

k2:=hhv(h,barslast(DISPSTATUS=1)+1);

DRAWTEXT(TJTS1 and ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。 '),ALIGN2,colorDC143C;

DRAWTEXT(TJTS1 and ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右。 '),ALIGN2,colorDC143C;

DRAWTEXT(TJTS1 and ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右。 '),ALIGN2,colorDC143C;

DRAWTEXT(TJTS1 and ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右。 '),ALIGN2,color0000FF;

DRAWTEXT(TJTS1 and ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望。 '),ALIGN2,color00FF00;

DRAWTEXT(TJTS1 and ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓。 '),ALIGN2,color00FF00;

DRAWTEXT(TJTS1 and ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股放量下跌,走势明显偏弱,离场观望。 '),ALIGN2,color00FF00;

DRAWTEXT(TJTS1 and ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股缩量下跌,走势偏弱,离场观望。 '),ALIGN2,color00FF00;

DRAWTEXT(TJTS1 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股形态良好,强势明显,量能充足,可以继续持有。 '),ALIGN2,color00FFFF;

DRAWTEXT(TJTS1 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险。 '),ALIGN2,color00FFFF;

DRAWTEXT(TJTS1 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。 '),ALIGN2,color00FFFF;

DRAWTEXT(TJTS1 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股走势趋弱,量能不足,减持大部分筹码。 '),ALIGN2,color00FFFF;

DRAWTEXT(TJTS1 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股形态不佳,注意成交量的变化,但目前不适合参与。 '),ALIGN2;

DRAWTEXT(TJTS1 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。 '),ALIGN2;

DRAWTEXT(TJTS1 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股有走强迹象,但量能不足,趋势不明,不适合操作。 '),ALIGN2;

DRAWTEXT(TJTS1 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股走势太弱,没有参与价值。 '),ALIGN2;

DRAWTEXT(TJTS2 and (CROSS(AVX,1) AND (V1 >= V2)) ,k2*0.99,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右, '),ALIGN2,color0000FF;

DRAWTEXT(TJTS2 and (CROSS(AVX,1) AND (V1 >= V2)) ,k2*0.98,' 如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。 '),ALIGN2,color0000FF;

DRAWTEXT(TJTS2 and (CROSS(AVX,1) AND (V1 < V2)) ,k2*0.99,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌, '),ALIGN2,color0000FF;

DRAWTEXT(TJTS2 and (CROSS(AVX,1) AND (V1 < V2)) ,k2*0.98,' 可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。 '),ALIGN2,color0000FF;

DRAWTEXT(TJTS2 and (CROSS(1,AVX) AND (V1 >= V2)) ,k2*0.99,'大盘形态走坏,重仓者可以减去大部分仓位。 '),ALIGN2,color00FF00;

DRAWTEXT(TJTS2 and (CROSS(1,AVX) AND (V1 < V2)) ,k2*0.99,'大盘缩量调整,注意风险,短线清仓观望。 '),ALIGN2,color00FF00;

DRAWTEXT(TJTS2 and (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) ,k2*0.99,'大盘走势良好,量能理想,可以继续持有强势股。 '),ALIGN2,color00FFFF;

DRAWTEXT(TJTS2 and (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) ,k2*0.99,'大盘形态良好,但量能稍显不足,随时准备减仓。 '),ALIGN2,color00FFFF;

DRAWTEXT(TJTS2 and (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) ,k2*0.99,'大盘趋势不明,注意成交量变化,目前不适宜进场。 '),ALIGN2;

W:=BARSLAST(DISPSTATUS=1);

低涨:(H/LLV(LOW,W)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;

高跌:(L/HHV(HIGH,W)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;

天日:BARSLAST(L=LLV(LOW,W)),COLOR00FFFF,LINETHICK0,PRECIS0;

天:BARSLAST(H=HHV(HIGH,W)),COLOR00FFFF,LINETHICK0,PRECIS0;

{以下设置提示文字部分}DRAWTEXTREL(10,890,'■目前可见K线:'+NUMTOSTRN(W+1,0)+'天'),COLOR00aa00;

DRAWTEXTREL(10,920,'■低点至今日最高点上涨:'+NUMTOSTRN(低涨,2)+'% '+NUMTOSTRN(天日,0)+'天'),COLORaa22aa;

DRAWTEXTREL(10,950,'■高点至今日最低点下跌:'+NUMTOSTRN(高跌,2)+'% '+NUMTOSTRN(天,0)+'天'),COLOR00aa00;

DRAWTEXTREL(10,980,'所属板块:'+BKNAME),COLORaa22aa;

DRAWTEXTREL(10,740,'◆上市日期:'+STR(FINANCE2(2))+'日'),Color0077aa;

DRAWTEXTREL(10,770,'◆上涨家数:'+NUMTOSTRN(INDEXADV,0)+', 下跌家数:'+NUMTOSTRN(INDEXDEC,0)),COLORaa7700;

当季股东人数:=PFFIN(4253,0);

DRAWTEXTREL(10,800,'◆当季股东人数:'+当季股东人数+',人均持股:'+CEILING(CAPITAL*100/当季股东人数) ),COLOR0077aa;

{筹码集中度:=COST(10)/(COST(80)-COST(10));

不准,应该用均线做权重计算,大均线大权重,或加角度,,好像都不理想}{吸筹拉升区}成本集中度{90?}:=(COST(95)-COST(05))/(COST(95)+COST(05))*100;

{底仓区 成本集中度 70? :=(COST(85)-COST(15))/(COST(85)+COST(15))*100;

}获利盘:=WINNER(CLOSE)*100;

浮筹比例:=(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100;

DRAWTEXTREL(10,830,'◆成本集中度:'+成本集中度+'%,获利盘:'+获利盘+'%,浮筹比例:'+浮筹比例+'%'),COLORaa7700;

VAR2B:='预计2009末期报表公布日';

VAR4B:=F10FIND(VAR2B,1);

DRAWTEXTABS(20,265,'' +F10TEXT(VAR4B,36)),COLORFFFF00;

TIPTEXT(DISPSTATUS=2,0,'公历'+YEAR+'-'+MONTH+'-'+DAY+', 星期'+WEEKDAY+', 农历'+LYEAR+'-'+LMONTH+'-'+LDAY+', 时间'+HOUR+':'+MINUTE);

{};

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。

责任编辑:admin888 标签:大智慧FFS+X指标公式,大智慧FFS-B主图指标公式
广告

热门搜索

相关文章

广告
牛市通网 |财经频道

大智慧FFS+X指标公式,大智慧FFS-B主图指标公式

admin888

|

大智慧FFS+X指标公式,大智慧FFS-B主图指标公式

大智慧FFS+X指标公式

KG:=FRACPART(CURRENTTIME/3);

{时间开关}if KG<>0 then beginqq:=KG<>0;

80*qq,COLOR996699;

20*qq,COLORGREEN;

底:10*qq,COLORCC6633,LINETHICK2;

90*qq,COLOR9966FF,LINETHICK2;

50*qq,COLORRED;

A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);

B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));

D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);

长期线:A+100,COLOR9900FF;

短期线:B+100,COLOR888888;

中期线:D+100,COLORYELLOW,LINETHICK2;

见顶:=((REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线));

顶部区域:(中期线80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5AND 短期线<中期线 AND 短期线<长期线+4,COLORRED;

顶部:=FILTER(顶部区域,4);

STICKLINE( {见顶 OR} 顶部,99,103,20,1 ),COLORRED,LINETHICK2;

底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ,COLORGREEN;

STICKLINE( 底部区域,-4,0,22,0 ),COLORGREEN;

低位金叉:30*(长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线 OR REF( 短期线,1)<1 )),COLORRED;

DRAWGBKLAST(CLOSE>OPEN,STRIP(RGB(0,50,0),RGB(125,50,0),1));

DRAWGBKLAST(CLOSE

end;

{==============================================================}if KG=0 then beginyy:=KG=0;

{---5日KDJ,27日KDJ--------------------------------金叉共振---}RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;

RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;

var4:=SMA(RV,3,1);

var5:=SMA(var4,3,1);

KK:=EMA(SMA(RG,3,1),2);

DD:=SMA(KK,3,1);

DRAWTEXTREL(0,10,STKLABEL+' '+STKNAME+''),Color00DDFF;

DRAWTEXT(cross(var4,var5) and cross(KK,DD),10,'共振点'),COLORyellow;

VERTLINE(cross(var4,var5) and cross(KK,DD),1),COLOR00FFFF;

{---MACD------------------------------------------------------}DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);

{选股设JC=10即可}DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);

A:=IF(CROSS(0,DEA),1,0);

A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);

SS:=IF(A,SUM(A1,0),0);

SSB:=HHV(SS,0);

SSS:=SUM(A1,0);

W底选股:IF(SSS-SSB=2 AND SSS>REF(SSS,1),-22,0),LINETHICK2,COLORffff00;

IF(SSS-SSB=2 AND SSS>REF(SSS,1),-12,0),LINETHICK2,COLORffff00;

DRAWTEXT(A1,-8,'?W底'),COLORyellow;

VARO5:=LLV(LOW,27);

{------------------------------------KDJ---}VARO6:=HHV(HIGH,34);

VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;

建仓区: IF((VARO7<10),-6,0) ,COLORyellow,LINETHICK3;

IF((VARO7<10),-3,0) ,COLORblack,LINETHICK3;

MA2:=EMA(C,2);

MA5:=EMA(C,5);

MA13:=EMA(C,13);

MA30:=EMA(C,30);

MA55:=EMA(C,55);

YCX:=MA5>=REF(MA5,1);

H1:=MAX(MAX(MA5,MA13),MA30);

L1:=MIN(MIN(MA5,MA13),MA30);

一阳穿三线:= H1REF(MA2,1);

满仓选股:IF(一阳穿三线,38,0),COLORFFFF00,LINETHICK3;

IF(一阳穿三线,30,0),COLORblack,LINETHICK3;

DRAWTEXT(一阳穿三线,42,'?满'),COLORffff00;

VAR2:=0.0001*AMOUNT;

{------------------------------资金地量---}MA1:=0.0001*MA(AMOUNT,5);

M2:=0.0001*MA(AMOUNT,10);

百日地量:LLV(VAR2,100)=VAR2,STICK,COLORCC66FF,LINETHICK0;

DRAWTEXT(百日地量,-8,'?地'),COLORCC66FF;

AA05:=MA(C,5);

{-----------------------------------5日乖离率---}五日乖离率:=(c-AA05)/AA05*100;

BB05:=atan((aa05/ref(aa05,1)-1)*100)*180/3.1416;

速度5:=sma(ema((AA05-ref(AA05,1))/ref(AA05,1),3)*100,3,1);

加速度5:=ema((速度5-ref(速度5,1)),3);

AA10:=MA(C,10);

AA20:=MA(c,20);

BB10:=atan((aa10/ref(aa10,1)-1)*100)*180/3.1416;

AA30:=MA(C,30);

三拾日乖离率:=(c-AA30)/AA30*100;

{-----------------3日乖离率---}(AA20-AA30)>ref((AA20-AA30),1) and AA20>ref(aa20,1) and AA30>ref(AA30,1);

(AA30-AA20)

BB30:=atan((aa30/ref(aa30,1)-1)*100)*180/3.1416;

强势狙击选股:filter(BB30>30 and BB10>45 and cross(BB05,60),10);

加仓:=filter(count(cross(BB05,30),5)>=1 and AA05>ref(aa05,1) and 三拾日乖离率>ref(三拾日乖离率,1) and AA10>ref(AA10,1)and 加速度5>ref(加速度5,1) and 速度5>ref(速度5,1) ,10) ;

MR:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and AA05>ref(AA05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)

青云直上选股:if(filter(MR,10),30,0),COLORblue,LINETHICK3;

if(filter(MR,10),20,0),COLORblack,LINETHICK3;

DRAWTEXT(青云直上选股,36,'?青'),COLORblue;

QUAN:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM(VOL,13))*100<=-28 AND (CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34))*100<=-19AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND (COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 AND IF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)AND REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)0.02 OR C>REF(C,1)*1.01) AND V1.1,5)>3),3);

DRAWTEXT(QUAN,88,'弱市百发百中'),COLORffff00;

弱市百发百中:IF(QUAN,88,0),COLORffff00,LINETHICK2;

IF(QUAN,60,0),COLORffff00,LINETHICK2;

{---6日RSI--------------------------------------------下破80逃顶---}LC := REF(CLOSE,1);

RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

逃顶:CROSS(80,RSI)*68,LINETHICK3 ,colorgreen;

CROSS(80,RSI)*50,LINETHICK3 ,colorblack;

DRAWTEXT(CROSS(80,RSI),68,'顶 '),colorgreen;

{---乖离率--------------------------------------------------背离---}BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;

BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;

BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;

MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6

MN:=MA(MM,3);

VAR24:=LLV(LOW,36);

VAR25:=HHV(HIGH,30);

VAR26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,4)*25;

{-----------KDJ----}底背离:IF(MN<-4 ,-11,0),COLORA67D3D,LINETHICK3;

顶背离: IF((VAR26>90),110,100), COLORgreen,LINETHICK3;

IF(MN<-4 ,-8,0),COLORblack,LINETHICK2;

IF((VAR26>90),106,100), COLORblack,LINETHICK3;

100*yy,COLORffff00, LINETHICK1;

{趋势买卖}{-------------------------------------------------KDJ---}V1:=LLV(LOW,10);

V2:=HHV(H,25);

价位线:=EMA((C-V1)/(V2-V1)*4,4);

买入:STICKLINE(yy and CROSS(价位线,0.3),50,5,2,0),COLOR00CCFF,LINETHICK1;

STICKLINE(CROSS(价位线,0.3),30,5,2,0),COLORRED,LINETHICK1;

卖出:STICKLINE(yy and CROSS(3.5,价位线),60,100,2,0),COLORRED,LINETHICK1;

STICKLINE(CROSS(3.5,价位线),80,100,2,0),COLORFF9900,LINETHICK1;

DRAWTEXT(CROSS(价位线,0.3),45,'←B'),COLORFFAA66;

DRAWTEXT(CROSS(3.5,价位线),75,'←S'),COLORFFFFCC;

VAR2Q:=REF(LOW,1);

VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;

VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);

VAR5Q:=LLV(LOW,30);

VAR6Q:=HHV(VAR4Q,30);

VAR7Q:=IF(MA(CLOSE,58),1,0);

VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;

VAR9Q:=IF(VAR8Q>100,100,VAR8Q);

AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;

AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;

AA5:=SMA(AA4,13,8);

走势:=CEILING(SMA(AA5,13,8));

AA6:=SMA(AA3,21,8);

{---乖离率-------------------------------------------------------}BIAS1:=(C-MA(C,6))/MA(C,6)*100;

BIAS2:=(C-MA(C,12))/MA(C,12)*100;

BIAS3:=(C-MA(C,24))/MA(C,24)*100;

BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;

乖离1:=MA(BIAS,3);

乖离:IF(CROSS(BIAS,乖离1) AND 乖离1<-9,28,0),COLORAAAAFF,LINETHICK3;

DRAWTEXT(乖离,32,'?乖'),COLORAAAAFF;

IF(CROSS(BIAS,乖离1) AND 乖离1<-9,20,0),COLORblack,LINETHICK3;

VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);

准备建仓:EMA(IF(L<= LLV(L,30),VARC,0),3),COLORff00ff,LINETHICK2;

TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);

HD:=(HIGH - REF(HIGH,1));

LD:=(REF(LOW,1) - LOW);

DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );

DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);

神偷线:=(((DMP ) * 100) / TR);

辅助线:=((DMM * 100) / TR);

动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));

ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);

VAR3:=MA(CLOSE,2);

VAR7:=REF(VAR3,1);

【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);

准备:( IF(((动向趋势线 > 88) AND (神偷线 < 5.8)),68,0)),LINETHICK1,COLORFF00FF;

{---CCI-----------------------------------------------------}TYP := (HIGH + LOW + CLOSE)/3;

cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*500-250;

K:=SMA(RSV,3,1);

Var1:=(CLOSE*2+HIGH+LOW)/4;

SK:= EMA(Var1,13)-EMA(Var1,73);

SD:= EMA(SK,2);

买点选股:(cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03)or (cross(sk,sd) and sk<=-0.14 ) or (cross(sk,sd) and sk<=0.05and (v/ma(v,5)>2 or c/ref(c,1)>0.035));

IF(买点选股,28,0),COLORyellow,LINETHICK3;

IF(买点选股,22,0),COLORblack,LINETHICK3;

DRAWTEXT(买点选股,32,'?买'),COLORyellow;

{---RSI----------------------------------------------------}RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);

TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);

PDI:=((DMP * 100) / TR1);

MDI:=((DMM * 100) / TR1);

ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);

AV:=(RSI5 + ADX);

DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);

WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));

NEWVOL:=(RSI5 - WR10);

天之:=(AV + NEWVOL);

低入:if(CROSS(天之,0),28,0),LINETHICK3,COLOR9370DB;

if(CROSS(天之,0),22,0),LINETHICK3,COLORblack;

DRAWTEXT(低入,32,'?入'),COLOR9370DB;

N:=20;

{----------------------------------------------BOLL-趋势-----}MID:=MA(C,N);

VART1:=POW((C-MID),2);

VART2:=MA(VART1,N);

VART3:=SQRT(VART2);

UPPER:=MID+2*VART3;

LOWER:=MID-2*VART3;

BOLL:=REF(MID,1);

UB:=REF(UPPER,1);

LB:=REF(LOWER,1);

LOWER1:=MID-VART3;

LB1:=REF(LOWER1,1);

股价线:(C-LB1)/(UB-LB)*100,COLORyellow, LINETHICK1;

{股价线:((C-LB1)/(UB-LB)-0.3)/0.5*100;

}{均衡的-100,+100}趋势线:MA(股价线,6),COLORred, LINETHICK3;

地量:=VOL

三十日地量:地量>0,LINETHICK2;

地量1:=VOL

六十日地量:地量1>0;

地量2:=VOL

一百二十日地量:地量2>0;

即涨:CROSS(-100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55)),-45)AND CLOSE>SMA(CLOSE,60,5) AND SMA(CLOSE,23,5)>REF(SMA(CLOSE,23,5),1)AND SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1),23,1)>REF(SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1),23,1),1),COLOrEBC79E,LINETHICK2;

DRAWTEXT(即涨,1.3,'即涨'),COLOREBC79E;

牛大底:"1A0001$CLOSE"/REF("1A0001$CLOSE",23)<0.78AND C/REF(C,120)<0.558 and ref(c,1)/l<1.5and ref(c,1)<>ref(o,1) and ref(c,2)<>ref(o,2) and ref(c,3)<>ref(o,3),COLOr4080FF,LINETHICK2;

DRAWTEXT(牛大底,1.8,'牛大底'),COLOR4080FF;

W1:=C=HHV(C,20);

{-------------------------突破20日高点---}W2:=BARSLAST(W1);

W3:=IF(W2>0,REF(C,W2),REF(C,W2));

W4:=CROSS(C,REF(W3,1));

突破:W4 AND COUNT(W4,5)=1,LINETHICK2,COLOR4D4DFF;

DRAWTEXT(突破,-5,'突破'),COLORffff00;

90*yy,COLORGREEN, LINETHICK1;

50*yy,COLORwhite, LINETHICK1;

DRAWGBKLAST(CLOSE>OPEN,STRIP(RGB(0,0,55),RGB(95,0,95),1));

DRAWGBKLAST(CLOSE

end;

大智慧FFS-B主图指标公式

MA1:MA(CLOSE,5);

MA2:MA(CLOSE,10)

MA3:MA(CLOSE,20);

MA4:MA(CLOSE,60);

MA5:MA(CLOSE,120);

角5 :ATAN(ma1/REF(ma1,1)-1)*180/3.1416*100,LINETHICK0;

角10:ATAN(ma2/REF(ma2,1)-1)*5730,PRECIS2,LINETHICK0;

角20:ATAN(ma3/REF(ma3,1)-1)*5730,PRECIS2,LINETHICK0;

角60:ATAN(ma4/REF(ma4,1)-1)*5730,PRECIS2,LINETHICK0;

DRAWGBK(ma3>ma4),COLOR100015;

{用趋势换背景色写K线颜色分红蓝黄绿紫青???}DRAWGBK(ma3

MID := MA(CLOSE,20);

UPPER:= MID + 2*STD(CLOSE,20);

LOWER:= MID - 2*STD(CLOSE,20);

FILLRGN(MID,UPPER,1,RGB(78,0,0),1,RGB(78,0,0)),LAYER6;

FILLRGN(MID,LOWER,1,RGB(0,0,88),1,RGB(0,0,88)),LAYER6;

STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7.8,0),COLOR0000aa,LAYER4;

STICKLINE(CLOSE>=OPEN,h,l,0.1,0),COLOR0000aa,LAYER4;

STICKLINE(CLOSE

STICKLINE(CLOSE

qp:=IF(L>ma1,L/ma1,IF(H1.03;

STICKLINE(qp,O,C,0.1,0),COLOR00FFFF,LAYER4;

总股本:=FINANCE2(35)/10000;

流通盘:=FINANCE2(37)/10000;

DRAWTEXTABS(15,20,'总股本:'+NUMTOSTRN(总股本,2)+'亿'),COLOR00cccc;

DRAWTEXTABS(160,20,'流通盘:'+NUMTOSTRN(流通盘,2)+'亿'),COLOR00cccc;

每股收益:=FINANCE2(3);

每股市盈率:=DYNAINFO(39);

每股净资产:=FINANCE2(4);

每股现金流:=FINANCE2(6);

主营收入同比:=FINANCE2(11);

净利润同比增长:=FINANCE2(10);

每股未分配:=FINANCE2(8);

每股公积金:=FINANCE2(7);

资产负债率:=FINANCE2(20)/FINANCE2(14)*100;

每股市净率:=DYNAINFO(58);

DRAWTEXTABS(160,35,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),COLOR00cc00;

DRAWTEXTABS(160,50,'每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),COLOR00cccc;

DRAWTEXTABS(160,65,'每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),COLOR00cc00;

DRAWTEXTABS(15,35,'每股经营现金流:'+NUMTOSTRN(每股现金流,2)+'元'),COLOR00cc00;

DRAWTEXTABS(15,50,'主收入同比增长:'+NUMTOSTRN(主营收入同比,2)+'%'),COLOR00cccc;

DRAWTEXTABS(15,65,'净利润同比增长:'+NUMTOSTRN(净利润同比增长,2)+'%'),COLOR00cc00;

DRAWTEXTABS(15,80,'每股未分配:'+NUMTOSTRN(每股未分配,2)+'元'),COLOR00cccc;

DRAWTEXTABS(160,80,'每股公积金:'+NUMTOSTRN(每股公积金,2)+'元'),COLOR00cccc;

DRAWTEXTABS(15,95,'资产负债率:'+NUMTOSTRN(资产负债率,2)+'%'),COLOR00cc00;

DRAWTEXTABS(160,95,'每股市净率:'+每股市净率+'倍 '),COLOR00cc00;

A4:=MA(CLOSE,20);

A5:=(CLOSE > MA(CLOSE,5));

A6:=(MA(CLOSE,5) > MA(CLOSE,10));

A7:=(CLOSE > MA(CLOSE,10));

A8:=(MA(CLOSE,5) > MA(CLOSE,20));

A9:=(CLOSE > MA(CLOSE,20));

A10:=REF(A4,1);

A11:=(A4 > A10);

AVX:=(((((IF(A5,10,(0 - 10)) + IF(A6,10,(0 - 10))) + IF(A7,10,(0 - 10))) + IF(A8,10,(0 - 10))) + IF(A9,10,(0 - 10))) + IF(A11,10,(0 - 10)));

DSLX:=(CLOSE / INDEXC);

DSLX1:=MA(DSLX,5);

DSLX2:=MA(DSLX,10);

V1:=MA(VOL,5);

V2:=MA(VOL,10);

TJTS1:=BARSTATUS=2 and c<200;

TJTS2:=BARSTATUS=2 and c>200;

k2:=hhv(h,barslast(DISPSTATUS=1)+1);

DRAWTEXT(TJTS1 and ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。 '),ALIGN2,colorDC143C;

DRAWTEXT(TJTS1 and ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右。 '),ALIGN2,colorDC143C;

DRAWTEXT(TJTS1 and ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右。 '),ALIGN2,colorDC143C;

DRAWTEXT(TJTS1 and ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右。 '),ALIGN2,color0000FF;

DRAWTEXT(TJTS1 and ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望。 '),ALIGN2,color00FF00;

DRAWTEXT(TJTS1 and ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓。 '),ALIGN2,color00FF00;

DRAWTEXT(TJTS1 and ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股放量下跌,走势明显偏弱,离场观望。 '),ALIGN2,color00FF00;

DRAWTEXT(TJTS1 and ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股缩量下跌,走势偏弱,离场观望。 '),ALIGN2,color00FF00;

DRAWTEXT(TJTS1 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股形态良好,强势明显,量能充足,可以继续持有。 '),ALIGN2,color00FFFF;

DRAWTEXT(TJTS1 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险。 '),ALIGN2,color00FFFF;

DRAWTEXT(TJTS1 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。 '),ALIGN2,color00FFFF;

DRAWTEXT(TJTS1 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股走势趋弱,量能不足,减持大部分筹码。 '),ALIGN2,color00FFFF;

DRAWTEXT(TJTS1 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股形态不佳,注意成交量的变化,但目前不适合参与。 '),ALIGN2;

DRAWTEXT(TJTS1 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)) ,k2*0.99,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。 '),ALIGN2;

DRAWTEXT(TJTS1 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股有走强迹象,但量能不足,趋势不明,不适合操作。 '),ALIGN2;

DRAWTEXT(TJTS1 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)) ,k2*0.99,'该股走势太弱,没有参与价值。 '),ALIGN2;

DRAWTEXT(TJTS2 and (CROSS(AVX,1) AND (V1 >= V2)) ,k2*0.99,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右, '),ALIGN2,color0000FF;

DRAWTEXT(TJTS2 and (CROSS(AVX,1) AND (V1 >= V2)) ,k2*0.98,' 如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。 '),ALIGN2,color0000FF;

DRAWTEXT(TJTS2 and (CROSS(AVX,1) AND (V1 < V2)) ,k2*0.99,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌, '),ALIGN2,color0000FF;

DRAWTEXT(TJTS2 and (CROSS(AVX,1) AND (V1 < V2)) ,k2*0.98,' 可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。 '),ALIGN2,color0000FF;

DRAWTEXT(TJTS2 and (CROSS(1,AVX) AND (V1 >= V2)) ,k2*0.99,'大盘形态走坏,重仓者可以减去大部分仓位。 '),ALIGN2,color00FF00;

DRAWTEXT(TJTS2 and (CROSS(1,AVX) AND (V1 < V2)) ,k2*0.99,'大盘缩量调整,注意风险,短线清仓观望。 '),ALIGN2,color00FF00;

DRAWTEXT(TJTS2 and (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) ,k2*0.99,'大盘走势良好,量能理想,可以继续持有强势股。 '),ALIGN2,color00FFFF;

DRAWTEXT(TJTS2 and (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) ,k2*0.99,'大盘形态良好,但量能稍显不足,随时准备减仓。 '),ALIGN2,color00FFFF;

DRAWTEXT(TJTS2 and (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) ,k2*0.99,'大盘趋势不明,注意成交量变化,目前不适宜进场。 '),ALIGN2;

W:=BARSLAST(DISPSTATUS=1);

低涨:(H/LLV(LOW,W)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;

高跌:(L/HHV(HIGH,W)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;

天日:BARSLAST(L=LLV(LOW,W)),COLOR00FFFF,LINETHICK0,PRECIS0;

天:BARSLAST(H=HHV(HIGH,W)),COLOR00FFFF,LINETHICK0,PRECIS0;

{以下设置提示文字部分}DRAWTEXTREL(10,890,'■目前可见K线:'+NUMTOSTRN(W+1,0)+'天'),COLOR00aa00;

DRAWTEXTREL(10,920,'■低点至今日最高点上涨:'+NUMTOSTRN(低涨,2)+'% '+NUMTOSTRN(天日,0)+'天'),COLORaa22aa;

DRAWTEXTREL(10,950,'■高点至今日最低点下跌:'+NUMTOSTRN(高跌,2)+'% '+NUMTOSTRN(天,0)+'天'),COLOR00aa00;

DRAWTEXTREL(10,980,'所属板块:'+BKNAME),COLORaa22aa;

DRAWTEXTREL(10,740,'◆上市日期:'+STR(FINANCE2(2))+'日'),Color0077aa;

DRAWTEXTREL(10,770,'◆上涨家数:'+NUMTOSTRN(INDEXADV,0)+', 下跌家数:'+NUMTOSTRN(INDEXDEC,0)),COLORaa7700;

当季股东人数:=PFFIN(4253,0);

DRAWTEXTREL(10,800,'◆当季股东人数:'+当季股东人数+',人均持股:'+CEILING(CAPITAL*100/当季股东人数) ),COLOR0077aa;

{筹码集中度:=COST(10)/(COST(80)-COST(10));

不准,应该用均线做权重计算,大均线大权重,或加角度,,好像都不理想}{吸筹拉升区}成本集中度{90?}:=(COST(95)-COST(05))/(COST(95)+COST(05))*100;

{底仓区 成本集中度 70? :=(COST(85)-COST(15))/(COST(85)+COST(15))*100;

}获利盘:=WINNER(CLOSE)*100;

浮筹比例:=(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100;

DRAWTEXTREL(10,830,'◆成本集中度:'+成本集中度+'%,获利盘:'+获利盘+'%,浮筹比例:'+浮筹比例+'%'),COLORaa7700;

VAR2B:='预计2009末期报表公布日';

VAR4B:=F10FIND(VAR2B,1);

DRAWTEXTABS(20,265,'' +F10TEXT(VAR4B,36)),COLORFFFF00;

TIPTEXT(DISPSTATUS=2,0,'公历'+YEAR+'-'+MONTH+'-'+DAY+', 星期'+WEEKDAY+', 农历'+LYEAR+'-'+LMONTH+'-'+LDAY+', 时间'+HOUR+':'+MINUTE);

{};

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。


财经频道