以下是专用版主图指标公式源码和使用说明
主力专用版牛股突破主图指标公式源码:
{时间}
DRAWNUMBER(FILTER(CROSS(C,DYNAINFO(3)*1.1-0.01),60),C*0.99,TIME),COLORYELLOW;
{所属}
DRAWTEXT_FIX(C 0,0.09,0.78,0,DYBLOCK),COLORYELLOW,LINETHICK2;{地域}
DRAWTEXT_FIX(C 0,0.35,0.78,0,HYBLOCK),COLORYELLOW,LINETHICK2;{行业}
DRAWTEXT_FIX(C 0,0.09,1,0,GNBLOCK),COLORCYAN,LINETHICK2;{概念}
DRAWICON(FILTER(CROSS(C,DYNAINFO(3)*1.1-0.01),60),C,1);
DRAWNUMBER(FILTER(CROSS(C,DYNAINFO(3)*1.1-0.01),60),C*0.99,TIME),COLORWHITE;
{划线与拉冲突标记}
XG:HHV(H,480),DOTLINE,COLORCYAN;
STICKLINE(FILTER(CROSS(C,REF(XG,1)),10)ANDC REF(XG,1),C*0.998,C,1,0),COLORWHITE;{和突配套的白色柱子}
DRAWTEXT(FILTER(CROSS(C,REF(XG,1)),10)ANDC REF(XG,1),C*0.995,'突')ANDC ZTPRICE(REF(CLOSE,1),0.1),COLORYELLOW;
RQ:=DATETODAY(DATE)-DATETODAY(REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT))+1;
JY:=BARSLAST((RQ-REF(RQ,1))!=WEEKDAY-REF(WEEKDAY,1)ORTOTALBARSCOUNT-CURRBARSCOUNT=0)+1;
MA01:=REF(C,JY);GOODGUPIAO:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW;
MA02:=REF(MA01,JY);
MA03:=REF(MA02,JY);
MA04:=REF(MA03,JY);
MA05:=REF(MA04,JY);
MA6:=REF(MA05,JY);
MA7:=REF(MA6,JY);
MA8:=REF(MA7,JY);
MA9:=REF(MA8,JY);
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*8/9,COLORLIRED,DOTLINE;
支撑:L1+P1*0.5/9,COLORGREEN,DOTLINE;
XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE));
主力:=EXPMA(CLOSE/XX,20);
大户:=EXPMA(CLOSE/XX,60);
:=EXPMA(CLOSE/XX,120);
底:=1;
中:=1.022,NODRAW;
高:=1.033;
DRAWICON(LONGCROSS(支撑,C,2),C-0.01,7);
STICKLINE(LONGCROSS(支撑,C,2),C,阻力,0,-1),COLORCYAN;
DRAWICON(LONGCROSS(C,阻力,2)ANDC ZTPRICE(REF(CLOSE,1),0.1),C+0.01,8);
STICKLINE(LONGCROSS(C,阻力,2),C,支撑,0,-1),COLORRED;
{流通市值}
DRAWTEXT_FIX(1,0.60,0.78,0,STRCAT(STRCAT('流通市值:',CON2STR(FINANCE(46)*C/100000000,2)),'亿元'))COLORYELLOW;
DRAWTEXT_FIX(1,0.60,0.55,0,STRCAT(STRCAT('昨日换手:',CON2STR(REF(V,1)#DAY/FINANCE(7)*10000,2)),'%'))COLORYELLOW;
{竞价情况}
JJCJL:=DYNAINFO(15)/DYNAINFO(4)/100;
JJJEDW:=IF(DYNAINFO(15) 10000,'万元','元');
JJJE:=IF(DYNAINFO(15) 10000,CON2STR(DYNAINFO(15)/10000,1),CON2STR(DYNAINFO(15),1));
JJJE1:=STRCAT(JJJE,JJJEDW);
JJ:=STRCAT('竞价量额:',STRCAT(CON2STR(JJCJL/10000,2),'万手'));
JJ1:=STRCAT(JJ,'=');
DRAWTEXT_FIX(1,0.09,0.65,0,STRCAT(JJ1,JJJE1))COLORMAGENTA;{竞价量额位置}
{DRAWTEXT_FIX(1,0.95,0.50,0,STRCAT('占昨成交:',STRCAT(CON2STR(DYNAINFO(15)/引用.昨日额#DAY*100,2),'%')))COLORYELLOW;}
今日竞价股数:=DYNAINFO(15)/DYNAINFO(4);
牛股突破主图:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
指标公式:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
sxxd1:=SMA(指标公式,9,1);
sddd1:=SMA(sxxd1,3,1);
AA:3*sxxd1-2*sddd1,,COLOR7FFF00;
sddd2:=AA 1*REF(AA,1);
sddd3:=LLVBARS(LOW,50);
sddd4:=SUM(VOL,sddd3);
sddd5:=HHVBARS(HIGH,50);
sddd6:=SUM(VOL,sddd5);
牛股突破主图0:=(CLOSE-REF(OPEN,sddd5))/REF(OPEN,sddd5)*100;
牛股突破主图1:=HHV(AA,5);
DDC1:EMA(sxxd1,3),COLORFFDDCC;
DDC2:EMA(DDC1,3),COLORFFBBCC;
DDC3:EMA(DDC2,3),COLORFF99CC;
DDC4:EMA(DDC3,3),COLORFF55CC;
DDC5:EMA(DDC4,3),COLORFF33CC;
DDC6:EMA(DDC5,3),COLORFF11CC;
A:EMA(DDC4,3),,COLORFF00CC;
DRAWTEXT(CROSS(AA,20)AND牛股突破主图0 -13,10,''),COLOR00FF00;
DRAWTEXT(CROSS(AA,DDC5)ANDREF(AA,1) 34,REF(AA,1),''),COLORRED
;
DRAWTEXT(CROSS(DDC1,AA)ANDREF(AA,1) 80,REF(AA,3),''),COLORCFB53B
;
DRAWTEXT(CROSS(AA,DDC1)ANDsddd2ANDDDC1 20AND牛股突破主图 9ORDDC1 1*REF(DDC1,1)
AND牛股突破主图 4ANDDDC1 60,30,'拉'),COLORFFFFCC;R1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
sdwww1:=SMA(R1,9,1)+100;
sdwww3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
sdwww4:=SMA(sdwww3,3,1);
sdwww5:=SMA(sdwww4,3,1)+100;
sdwww6:=sdwww5-sdwww1;
fsew:IF(sdwww6 0,sdwww6-0,0),COLORYELLOW,POINTDOT;
STICKLINE(REF(fsew,1) fsew,fsew,REF(fsew,1),4,1),COLORYELLOW;
STICKLINE(REF(fsew,1) fsew,fsew,REF(fsew,1),4,1),COLORFF00FF;
NUM:=13;SHORT:=3;LONG:=5;
LC:=REF(C,1);
WRSI:=SUM(MAX(C-LC,0),6)/SUM(ABS(C-LC),6)*100;
AAA:=CROSS(WRSI,20);
VAR1:=3;
VAR2:=(3)*(SMA(((C-LLV(L,27))/(HHV(H,27)-LLV(L,27)))*(100),5,1))-(2)*(SMA(SMA(((C-LLV(L,27))/(HHV(H,27)-LLV(L,27)))*(100),5,1),3,1));
BBB:=IF(CROSS(VAR2,VAR1),100,0);
YXT:=AAAANDBBB;
牛熊线:(LLV(REF(L,1),2)+(HHV(REF(H,1),2)-LLV(REF(L,1),2))/2),COLOR005BF5,NODRAW;
DRAWTEXT(YXT,-0.8,'*牛*'),COLORFFFFFF;
STICKLINE(YXT,0,15,1,0),COLORFFFFFF;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
公式一:=(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX 0,2)ANDCROSS(DX,MA(DX,2)));
DIFF:=EMA(CLOSE,10)-EMA(CLOSE,22);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
公式二:=CROSS(MACD,REF(MACD,1))ANDREF(MACD,1)
VAR3:=((((2*CLOSE)+HIGH)+LOW)/4);
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
C1:=(EMA((((VAR3-VAR4)/(VAR5-VAR4))*100),4));
C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2));
公式三:=CROSS(C1,C2)ANDC2
马:(公式一+公式二+公式三) =2,COLORYELLOW,NODRAW;
STICKLINE(马,0,8,1,0),COLORYELLOW;
DRAWTEXT(马,-0.8,'*马*'),COLORYELLOW;
ZF:=(C/REF(C,1)-1)*100;
:SUM(ZF,3),COLORMAGENTA,LINETHICK2;
IF(趋势 REF(趋势,1)AND趋势 =0,趋势,DRAWNULL),COLORRED,LINETHICK2;
IF(趋势 REF(趋势,1)AND趋势 0,趋势,DRAWNULL),COLORCYAN,LINETHICK2;
超涨:IF(MA(ZF,3) =5,15,0),COLOR0000FF;
WK:=趋势=LLV(趋势,4)AND趋势-HHV(趋势,4) =0-20ANDHHV(趋势,4)
挖坑:IF(WK,0-10,0),COLORGREEN;
超跌:IF(MA(ZF,3) =0-5,0-15,0),COLORBLUE;
CZSJ:=BARSLAST(超涨=15);
CDSJ:=BARSLAST(超跌=0-15);
CZQY:=CZSJ =8ANDCZSJ =CDSJANDCOUNT(MA(趋势,3) =0-5,CZSJ)=CZSJ;
CDQY:=CDSJ =8ANDCDSJ =CZSJANDCOUNT(MA(趋势,3) =5,CDSJ)=CDSJ;
关注期:IF(CZQY,CZSJ+1,0),COLORYELLOW,POINTDOT;
跟踪期:IF(CDQY,0-CDSJ-1,0),COLORWHITE,POINTDOT;
STICKLINE(CZQY,REF(趋势,CZSJ),REF(趋势,CZSJ),3,1),COLORYELLOW;
STICKLINE(CDQY,REF(趋势,CDSJ),REF(趋势,CDSJ),3,1),COLORWHITE;
MAV:=(2*C+H+L)/4;
VAR6:=LLV(LOW,34);
VAR7:=HHV(HIGH,34);
SK:=EMA((MAV-VAR6)/(VAR7-VAR6)*100,13);
SD:EMA(0.667*REF(SK,1)+0.333*SK,2);
高抛:80,POINTDOT;
低吸:20,POINTDOT;
强弱分界:50,POINTDOT;
DRAWTEXT(CROSS(SD,16),低吸,●买入↑),COLORF0FF00,LINETHICK3;
DRAWTEXT(CROSS(85,SD),高抛,●出逃↓),COLORF5F5DC,LINETHICK3;
TR:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SUM(IF(HD 0ANDHD LD,HD,0),14);
DMM:=SUM(IF(LD 0ANDLD HD,LD,0),14);
PDI:=DMP*100/TR;
MDI:=DMM*100/TR;0;
GG:=PDI-MDI;IF(GG 0,GG,0),LINETHICK2;
IF(GG 0,GG,0),COLORFFFF00,LINETHICK2;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW =VAR4,VAR3,0),3);
主力进场:IF(VAR5 REF(VAR5,1),VAR5,0),COLORRED;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,6,0),COLOR000055;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,4.12,0),COLOR000077;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,4.2,0),COLOR000099;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.10,0),COLOR0000BB;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.18,0),COLOR0000DD;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.6,0),COLOR0000FF;
洗盘:IF(VAR5 REF(VAR5,1),VAR5,0),color00ff00;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,6,0),COLOR005500;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,4.12,0),COLOR007700;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,4.2,0),COLOR009900;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.10,0),COLOR00BB00;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.18,0),COLOR00DD00;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.6,0),COLOR00FF00;
主力专用版牛股突破主图指标公式截图