通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
DRAWRECTREL(0,0,998,998,RGB(0,0,1));
DRAWRECTREL(100,0,900,998,RGB(0,0,1));
DRAWRECTREL(200,0,800,998,RGB(0,0,1));
DRAWRECTREL(300,0,700,998,RGB(0,0,1));
DRAWRECTREL(400,0,600,998,RGB(0,0,1));
DRAWRECTREL(500,0,500,998,RGB(255,255,0));
DRAWRECTREL(0,200,998,200,RGB(255,255,0));
DRAWRECTREL(0,400,998,400,RGB(255,255,0));
DRAWRECTREL(0,600,998,600,RGB(255,255,0));
DRAWRECTREL(0,800,998,800,RGB(255,255,0));
DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7);
DDY:=IF(TRADENUM 0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0),NODRAW;
DDZ:=IF(TRADENUM 0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0),N
ODRAW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.03,0.03,0, DDX )COLOR0000FF;{项目};
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.13,0.03,0, DDY )COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.23,0.03,0, DDZ )COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDX) =0,0.03,0.25,0,STRCAT(STRCAT(
,CON2STR(DDX,2)), )),COLOR0000FF;{数据}
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDX) 0,0.02,0.25,0,STRCAT(STRCAT(
,CON2STR(DDX,2)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDY) =0,0.13,0.25,0,STRCAT(STRCAT(
,CON2STR(DDY,2)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDY) 0,0.12,0.25,0,STRCAT(STRCAT(
,CON2STR(DDY,2)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDZ) =0,0.23,0.25,0,STRCAT(STRCAT(
,CON2STR(DDZ,2)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDZ) 0,0.22,0.25,0,STRCAT(STRCAT(
,CON2STR(DDZ,2)), )),COLOR00FF00;
特大单:=((L2_AMO(0,2)/10000.0)+(-L2_AMO(0,3)/10000.0));
大单:=((L2_AMO(1,2)/10000.0)+(-L2_AMO(1,3)/10000.0));
中单:=((L2_AMO(2,2)/10000.0)+(-L2_AMO(2,3)/10000.0));
小单:=((L2_AMO(3,2)/10000.0)+(-L2_AMO(3,3)/10000.0));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.32,0.03,0, 特大单 )COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.43,0.03,0, 大单 )COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.53,0.03,0, 中单 )COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.63,0.03,0, 小单 )COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单) =0,0.33,0.25,0,STRCAT(STRCAT(
,CON2STR(特大单,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单) 0,0.32,0.25,0,STRCAT(STRCAT(
,CON2STR(特大单,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单) =0,0.43,0.25,0,STRCAT(STRCAT(
,CON2STR(大单,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单) 0,0.42,0.25,0,STRCAT(STRCAT(
,CON2STR(大单,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单) =0,0.53,0.25,0,STRCAT(STRCAT(
,CON2STR(中单,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单) 0,0.52,0.25,0,STRCAT(STRCAT(
,CON2STR(中单,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单) =0,0.63,0.25,0,STRCAT(STRCAT(
,CON2STR(小单,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单) 0,0.62,0.25,0,STRCAT(STRCAT(
,CON2STR(小单,1)), )),COLOR00FF00;
主力力
度:=ABS(LARGEINTRDVOL*100/VOL)-ABS(LARGEOUTTRDVOL*100/VOL),NODRAW;
主动率:=(ACTINVOL-ACTOUTVOL)/(ACTINVOL+ACTOUTVOL)*100;
BBD:=(LARGETRDINNUM-LARGETRDOUTNUM);
DRAWTEXT_FIX(1,0.715,0.03,0,STRCAT( 主力力度 , )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主力力度) =0,0.73,0.25,0,STRCAT(STRCAT(
,CON2STR(主力力度,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主力力度) 0,0.72,0.25,0,STRCAT(STRCAT(
,CON2STR(主力力度,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.81,0.03,0,STRCAT( 主动率 , %%
)),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主动率) =0,0.83,0.25,0,STRCAT(STRCAT(
,CON2STR(主动率,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主动率) 0,0.82,0.25,0,STRCAT(STRCAT(
,CON2STR(主动率,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.93,0.03,0,STRCAT( BBD , )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(BBD) =0,0.94,0.25,0,STRCAT(STRCAT(
,CON2STR(BBD,0)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(BBD) 0,0.93,0.25,0,STRCAT(STRCAT(
,CON2STR(BBD,0)), )),COLOR00FF00;
特大单3:=SUM(特大单,3);
特大单5:=SUM(特大单,5);
特大单10:=SUM(特大单,10);
大单3:=SUM(大单,3);
大单5:=SUM(大单,5);
大单10:=SUM(大单,10);
中单3:=SUM(中单,3);
中单5:=SUM(中单,5);
中单10:=SUM(中单,10);
小单3:=SUM(小单,3);
小单5:=SUM(小单,5);
小单10:=SUM(小单,10);
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单3) =0,0.33,0.45,0,STRCAT(STRCAT(
,CON2STR(特大单3,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单3) 0,0.32,0.45,0,STRCAT(STRCAT(
,CON2STR(特大单3,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单3) =0,0.43,0.45,0,STRCAT(STRCAT(
,CON2STR(大单3,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单3) 0,0.42,0.45,0,STRCAT(STRCAT(
,CON2STR(大单3,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单3) =0,0.53,0.45,0,STRCAT(STRCAT(
,CON2STR(中单3,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单3) 0,0.52,0.45,0,STRCAT(STRCAT(
,CON2STR(中单3,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单3) =0,0.63,0.45,0,STRCAT(STRCAT(
,CON2STR(小单3,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单3) 0,0.62,0.45,0,STRCAT(STRCAT(
,CON2STR(小单3,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单5) =0,0.33,0.65,0,STRCAT(STRCAT(
,CON2STR(特大单5,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单5) 0,0.32,0.65,0,STRCAT(STRCAT(
,CON2STR(特大单5,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单5) =0,0.43,0.65,0,STRCAT(STRCAT(
,CON2STR(大单5,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单5) 0,0.42,0.65,0,STRCAT(STRCAT(
,CON2STR(大单5,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单5) =0,0.53,0.65,0,STRCAT(STRCAT(
,CON2STR(中单5,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单5) 0,0.52,0.65,0,STRCAT(STRCAT(
,CON2STR(中单5,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单5) =0,0.63,0.65,0,STRCAT(STRCAT(
,CON2STR(小单5,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单5) 0,0.62,0.65,0,STRCAT(STRCAT(
,CON2STR(小单5,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单
10) =0,0.33,0.85,0,STRCAT(STRCAT( ,CON2STR(特大单10,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(特大单10) 0,0.32,0.85,0,STRCAT(STRCAT(
,CON2STR(特大单10,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单10) =0,0.43,0.85,0,STRCAT(STRCAT(
,CON2STR(大单10,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(大单10) 0,0.42,0.85,0,STRCAT(STRCAT(
,CON2STR(大单10,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单10) =0,0.53,0.85,0,STRCAT(STRCAT(
,CON2STR(中单10,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(中单10) 0,0.52,0.85,0,STRCAT(STRCAT(
,CON2STR(中单10,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单10) =0,0.63,0.85,0,STRCAT(STRCAT(
,CON2STR(小单10,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(小单10) 0,0.62,0.85,0,STRCAT(STRCAT(
,CON2STR(小单10,1)), )),COLOR00FF00;
主力力度3:=SUM(主力力度,3);
主动率3:=SUM(主动率,3);
BBD3:=SUM(BBD,3);
主力力度5:=SUM(主力力度,5);
主动率5:=SUM(主动率,5);
BBD5:=SUM(BBD,5);
主力力度10:=SUM(主力力度,10);
主动率10:=SUM(主动率,10);
BBD10:=SUM(BBD,10);
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主力力度
3) =0,0.73,0.45,0,STRCAT(STRCAT( ,CON2STR(主力力度3,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主力力度3) 0,0.72,0.45,0,STRCAT(STRCAT(
,CON2STR(主力力度3,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主力力度
5) =0,0.73,0.65,0,STRCAT(STRCAT( ,CON2STR(主力力度5,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主力力度5) 0,0.72,0.65,0,STRCAT(STRCAT(
,CON2STR(主力力度5,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主力力度
10) =0,0.73,0.85,0,STRCAT(STRCAT( ,CON2STR(主力力度10,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主力力度
10) 0,0.72,0.85,0,STRCAT(STRCAT( ,CON2STR(主力力度10,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主动率3) =0,0.83,0.45,0,STRCAT(STRCAT(
,CON2STR(主动率3,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主动率3) 0,0.82,0.45,0,STRCAT(STRCAT(
,CON2STR(主动率3,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主动率5) =0,0.83,0.65,0,STRCAT(STRCAT(
,CON2STR(主动率5,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主动率5) 0,0.82,0.65,0,STRCAT(STRCAT(
,CON2STR(主动率5,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主动率
10) =0,0.83,0.85,0,STRCAT(STRCAT( ,CON2STR(主动率10,1)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(主动率10) 0,0.82,0.85,0,STRCAT(STRCAT(
,CON2STR(主动率10,1)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(BBD3) =0,0.94,0.45,0,STRCAT(STRCAT(
,CON2STR(BBD3,0)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(BBD3) 0,0.93,0.45,0,STRCAT(STRCAT(
,CON2STR(BBD3,0)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(BBD5) =0,0.94,0.65,0,STRCAT(STRCAT(
,CON2STR(BBD5,0)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(BBD5) 0,0.93,0.65,0,STRCAT(STRCAT(
,CON2STR(BBD5,0)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(BBD10) =0,0.94,0.85,0,STRCAT(STRCAT(
,CON2STR(BBD10,0)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(BBD10) 0,0.93,0.85,0,STRCAT(STRCAT(
,CON2STR(BBD10,0)), )),COLOR00FF00;
DDX3:=SUM(DDX,3);
DDY3:=SUM(DDY,3);
DDZ3:=SUM(DDZ,3);
DDX5:=SUM(DDX,5);
DDY5:=SUM(DDY,5)
;DDZ5:=SUM(DDZ,5);
DDX10:=SUM(DDX,10);
DDY10:=SUM(DDY,10);
DDZ10:=SUM(DDZ,10);
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDX3) =0,0.03,0.45,0,STRCAT(STRCAT(
,CON2STR(DDX3,2)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDX3) 0,0.02,0.45,0,STRCAT(STRCAT(
,CON2STR(DDX3,2)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDY3) =0,0.13,0.45,0,STRCAT(STRCAT(
,CON2STR(DDY3,2)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDY3) 0,0.12,0.45,0,STRCAT(STRCAT(
,CON2STR(DDY3,2)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDZ3) =0,0.23,0.45,0,STRCAT(STRCAT(
,CON2STR(DDZ3,2)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDZ3) 0,0.22,0.45,0,STRCAT(STRCAT(
,CON2STR(DDZ3,2)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDX5) =0,0.03,0.65,0,STRCAT(STRCAT(
,CON2STR(DDX5,2)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDX5) 0,0.02,0.65,0,STRCAT(STRCAT(
,CON2STR(DDX5,2)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDY5) =0,0.13,0.65,0,STRCAT(STRCAT(
,CON2STR(DDY5,2)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDY5) 0,0.12,0.65,0,STRCAT(STRCAT(
,CON2STR(DDY5,2)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDZ5) =0,0.23,0.65,0,STRCAT(STRCAT(
,CON2STR(DDZ5,2)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDZ5) 0,0.22,0.65,0,STRCAT(STRCAT(
,CON2STR(DDZ5,2)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDX10) =0,0.03,0.85,0,STRCAT(STRCAT(
,CON2STR(DDX10,2)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDX10) 0,0.02,0.85,0,STRCAT(STRCAT(
,CON2STR(DDX10,2)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDY10) =0,0.13,0.85,0,STRCAT(STRCAT(
,CON2STR(DDY10,2)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDY10) 0,0.12,0.85,0,STRCAT(STRCAT(
,CON2STR(DDY10,2)), )),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDZ10) =0,0.23,0.85,0,STRCAT(STRCAT(
,CON2STR(DDZ10,2)), )),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1AND(DDZ10) 0,0.22,0.85,0,STRCAT(STRCAT(
,CON2STR(DDZ10,2)), )),COLOR00FF00;
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);
VAR5 REF(VAR5,1);
VAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘 0,控盘,0,1,0),COLORWHITE;
A10:=CROSS(控盘,0);
无庄控盘:IF(控盘 0,控盘,0),COLORWHITE,NODRAW;
盘始控盘:IF(A10,5,0),LINETHICK1,COLORYELLOW;
STICKLINE(控盘 REF(控盘,1)AND控盘 0,控盘,0,1,0),COLORRED;
有庄控盘:IF(控盘 REF(控盘,1)AND控盘 0,控盘,0),COLORRED,NODRAW;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR2 50ANDCOST(85) CLOSEAND控盘 0,控
盘,0,1,0),COLORFF00FF;
高度控盘:IF(VAR2 50ANDCOST(85) CLOSEAND控盘 0,控
盘,0),COLORFF00FF,NODRAW;
STICKLINE(控盘 REF(控盘,1)AND控盘 0,控盘,0,1,0),COLOR00FF00;
主力出盘:IF(控盘 REF(控盘,1)AND控盘 0,控盘,0),COLOR00FF00,NODRAW;
主力筹码峰值:
EMA(WINNER(CLOSE)*70,8),COLORRED;
筹码峰值:
EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,8),COLOR00FF00;
获利:MA(WINNER(1.001*CLOSE)*100-WINNER(COST(0))*100,1),LINETHICK0;
获利4:MEMA(获利,4),COLOR0000FF;
获利8:EMA(EMA(获利,8),13),COLORgreen;
FILLRGN(获利4,获利8,获利4 获利8,rgb(80,0,80),获利4 获利8,rgb(0,80,80)),layer5;
DRAWGBK(获利4 获利8,STRIP(RGB(0,0,255),RGB(0,40,40),0)),LAYER0;
AA:=获利4-获利8;
STICKLINE(AA 0,AA/2,0,16,0),Color0598FF;
STICKLINE(AA 0,AA/2,0,16,0),ColorFF9900;;
主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF00FF,LINETHICK2;
指数:
EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORFFAA66,LINETHICK3;
A1:=COST(85);
A2:=COST(15);
A3:=A1-A2;
A4:=(A1+A2)/2;
A5:=A3/A4*100 10;
B1:=HHV(h,250);
B2:=LLV(l,250);
B3:=B1-B2;
B4:=(A4-B2) B3/2;
A5ANDB4;
强弱分界:80,COLORYELLOW;
主力筹码集中度:WINNER(C)*100,COLORRED,LINETHICK2;
散筹筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100,COLORGREEN,LINETHICK2;
VAR1:=1;
VAR2:=1/WINNER(CLOSE);
VAR3:=MA(CLOSE,13);
VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);
VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);
VARA:=3*VAR8-2*SMA(VAR8,15,1);
VARB:=3*VAR9-2*SMA(VAR9,15,1);
VARC:=100-VARB;
主力:(100-VARA)*VAR1,COLOR0099FF;
散户:MA(WINNER(CLOSE*0.95)*100,3)*VAR1,COLORYELLOW;
新庄:(100-IF(VAR2 5,IF(VAR2 100,VAR2,VAR4-10),0))*VAR1,COLORGREEN,LINETHICK1,POINTDOT;
VARD:=散户 VAR4;
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,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:=VAR18 =25ANDVAR19 -95ANDVAR1F 20ANDVAR1B -30ANDVAR1E 30ANDVAR11-CLOSE =-0.25ANDVAR15 22ANDVAR16 28ANDVAR17 50;
STICKLINE(VARD,VAR4,散户,5,0),COLORWHITE;
STICKLINE(1,新庄,100,1,0),COLORGREEN;
STICKLINE(VAR20,0,80,5,0),COLORRED,LINETHICK3;
100,COLORGREEN,LINETHICK2;
0,COLORYELLOW,LINETHICK2;
:15,COLORBLUE,LINETHICK2;
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
主力能量:(主力-均量)COLORRED,NODRAW;
大户量:(大户-均量)COLORMAGENTA,NODRAW;
中户量:(中户-均量)COLORYELLOW,NODRAW;
散户量:(散户-均量),NODRAW;
操盘:STICKLINE(主力能量 =0AND主力能量 =REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORRED;
减仓:STICKLINE(主力能量 =0AND主力能量 REF(主力能量,1),4.5,4.5+主力能量,1,0),COLOR00CC20;
反弹:STICKLINE(主力能量 0AND主力能量 =REF(主力能量,1),4.5,4.5+主力能量,1,0),COLOR00CCCC;
寻底:STICKLINE(主力能量 0AND主力能量 REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORFF9900;
DRAWTEXT(ISLASTBAR=1,IF(主力能量 =0,4.2,4.8), ),COLORRED;
操盘1:STICKLINE(大户量 =0AND大户量 =REF(大户量,1),3,3+大户量,1,0),COLORRED;
减仓1:STICKLINE(大户量 =0AND大户量 REF(大户量,1),3,3+大户量,1,0),COLOR00CC20;
反弹1:STICKLINE(大户量 0AND大户量 =REF(大户量,1),3,3+大户量,1,0),COLOR00CCCC;
寻底1:STICKLINE(大户量 0AND大户量 REF(大户量,1),3,3+大户量,1,0),COLORFF9900;
DRAWTEXT(ISLASTBAR=1,IF(大户量 =0,2.7,3.3), 大户 ),COLORMAGENTA;
操盘2:STICKLINE(中户量 =0AND中户量 =REF(中户量,1),1.5,1.5+中户量,1,0),COLORRED;
减仓2:STICKLINE(中户量 =0AND中户量 REF(中户量,1),1.5,1.5+中户量,1,0),COLOR00CC20;
反弹2:STICKLINE(中户量 0AND中户量 =REF(中户量,1),1.5,1.5+中户量,1,0),COLOR00CCCC;
寻底2:STICKLINE(中户量 0AND中户量 REF(中户量,1),1.5,1.5+中户量,1,0),COLORFF9900;
DRAWTEXT(ISLASTBAR=1,IF(中户量 =0,1.2,1.8), 中户 ),COLORYELLOW;
操盘3:STICKLINE(散户量 =0AND散户量 =REF(散户量,1),0,散户量,1,0),COLORRED;
减仓3:STICKLINE(散户量 =0AND散户量 REF(散户量,1),0,散户量,1,0),COLOR00CC20;
反弹3:STICKLINE(散户量 0AND散户量 =REF(散户量,1),0,散户量,1,0),COLOR00CCCC;
寻底3:STICKLINE(散户量 0AND散户量 REF(散户量,1),0,散户量,1,0),COLORFF9900;
DRAWTEXT(ISLASTBAR=1,IF(散户量 =0,-0.3,0.3), 散户 ),COLORGREEN;
红买盘:MA(C,3),COLORRED,NODRAW;
绿卖盘:MA(C,3),COLORGREEN,NODRAW;
黄反弹:MA(C,3),COLORYELLOW,NODRAW;
蓝寻底:MA(C,3),COLORFF9900,NODRAW;
:VOL,COLORWHITE,NODRAW;
均量5:MA(成交量,5)/50000,COLORMAGENTA,LINETHICK2;
均量20:MA(成交量,20)/50000,COLOR00FFFF,LINETHICK2;
均量120:MA(成交量,120)/50000,COLOR00CC20,LINETHICK2;
B:=ZIG(3,50/5)*1;
G:=MA(B,2);
D:=CROSS(B,G)*10;
W:=CROSS(G,B)*10;
DRAWTEXT(W=10,4, 卖 ),COLORWHITE;
DRAWTEXT(D=10,4, 买 ),COLORCYAN;
N:=5;
a:=100*v/capital;
b:=100*(winner(c)-ref(winner(c),1));
m:=n-1;
筹码穿透率:b/a,VOLSTICK;
n筹码穿透率:100*(winner(c)-ref(winner(c),m))/n*ma(a,n);
M:=30;
A1:=WINNER(C*(1-M/100))-WINNER(C*(1+M/100))*100;
A1 -40,COLORYELLOW,LINETHICK2;
羚羊踪迹:3*SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1)-2*SMA(SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1),3,1);
潜伏期:IF(羚羊踪迹 =90,90,100);
LOWV:=LLV(C,15);
HIGHV:=HHV(C,15);
RSV:=EMA((C-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
1:=REF(羚羊踪迹 =10,1)ANDK REF(K,1);
吸筹1:=羚羊踪迹 =10;
N:=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),3.2,1),COLORYELLOW,LINETHICK1;
牛股2:=CROSS(VAR1,8);
吸筹2:=VAR1 =8;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=IF(MA(CLOSE,34),1,0);
VAR8:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8 100,100,VAR8);
吸筹3:=CROSS(VAR9 20,0.5);
N1:=9;
M1:=3;
M2:=3;
P:=9;
快线:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
慢线:=SMA(快线,M1,1);
空:=SMA(慢线,M2,1);
牛股3:=BARSLAST(CROSS(慢线,空)) PANDCROSS(慢线,空)AND慢线 20;
羚羊饮水:IF(吸筹1OR吸筹2OR吸筹3,18,0),STICK,COLORGRAY;
致命攻击:IF(CROSS(牛股1,0.5)OR牛股2OR牛股3,58,0),STICK,LINETHICK2,COLORRED;
公式解读:
公式编写要求:
当天涨幅不超过3个点以下的公式(就是想选出3个点以下的,也包过阴线)。
公式编写方法:
c/ref(c,1) 1 c/ref(c,1) 1.03;