资金统计 双龙出海副图指标 通达信 贴图介绍
资金统计 双龙出海副图指标 通达信 贴图
资金统计副图源码:
{个股DDX}
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),NODRAW;
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=1 AND(DDX)>=0,0.03,0.25,0,STRCAT(STRCAT(' ',CON2STR(DDX,2)),' ')),COLOR0000FF;{数据}
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDX)<0,0.02,0.25,0,STRCAT(STRCAT(' ',CON2STR(DDX,2)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDY)>=0,0.13,0.25,0,STRCAT(STRCAT(' ',CON2STR(DDY,2)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDY)<0,0.12,0.25,0,STRCAT(STRCAT(' ',CON2STR(DDY,2)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDZ)>=0,0.23,0.25,0,STRCAT(STRCAT(' ',CON2STR(DDZ,2)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(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=1 AND(特大单)>=0,0.33,0.25,0,STRCAT(STRCAT(' ',CON2STR(特大单,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(特大单)<0,0.32,0.25,0,STRCAT(STRCAT(' ',CON2STR(特大单,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)>=0,0.43,0.25,0,STRCAT(STRCAT(' ',CON2STR(大单,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)<0,0.42,0.25,0,STRCAT(STRCAT(' ',CON2STR(大单,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)>=0,0.53,0.25,0,STRCAT(STRCAT(' ',CON2STR(中单,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)<0,0.52,0.25,0,STRCAT(STRCAT(' ',CON2STR(中单,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)>=0,0.63,0.25,0,STRCAT(STRCAT(' ',CON2STR(小单,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)<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=1 AND(主力力度)>=0,0.73,0.25,0,STRCAT(STRCAT(' ',CON2STR(主力力度,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(主力力度)<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=1 AND(主动率)>=0,0.83,0.25,0,STRCAT(STRCAT(' ',CON2STR(主动率,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(主动率)<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=1 AND(BBD)>=0,0.94,0.25,0,STRCAT(STRCAT(' ',CON2STR(BBD,0)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(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=1 AND(特大单3)>=0,0.33,0.45,0,STRCAT(STRCAT(' ',CON2STR(特大单3,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(特大单3)<0,0.32,0.45,0,STRCAT(STRCAT(' ',CON2STR(特大单3,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单3)>=0,0.43,0.45,0,STRCAT(STRCAT(' ',CON2STR(大单3,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单3)<0,0.42,0.45,0,STRCAT(STRCAT(' ',CON2STR(大单3,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单3)>=0,0.53,0.45,0,STRCAT(STRCAT(' ',CON2STR(中单3,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单3)<0,0.52,0.45,0,STRCAT(STRCAT(' ',CON2STR(中单3,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单3)>=0,0.63,0.45,0,STRCAT(STRCAT(' ',CON2STR(小单3,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单3)<0,0.62,0.45,0,STRCAT(STRCAT(' ',CON2STR(小单3,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(特大单5)>=0,0.33,0.65,0,STRCAT(STRCAT(' ',CON2STR(特大单5,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(特大单5)<0,0.32,0.65,0,STRCAT(STRCAT(' ',CON2STR(特大单5,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单5)>=0,0.43,0.65,0,STRCAT(STRCAT(' ',CON2STR(大单5,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单5)<0,0.42,0.65,0,STRCAT(STRCAT(' ',CON2STR(大单5,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单5)>=0,0.53,0.65,0,STRCAT(STRCAT(' ',CON2STR(中单5,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单5)<0,0.52,0.65,0,STRCAT(STRCAT(' ',CON2STR(中单5,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单5)>=0,0.63,0.65,0,STRCAT(STRCAT(' ',CON2STR(小单5,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单5)<0,0.62,0.65,0,STRCAT(STRCAT(' ',CON2STR(小单5,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(特大单10)>=0,0.33,0.85,0,STRCAT(STRCAT(' ',CON2STR(特大单10,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(特大单10)<0,0.32,0.85,0,STRCAT(STRCAT(' ',CON2STR(特大单10,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单10)>=0,0.43,0.85,0,STRCAT(STRCAT(' ',CON2STR(大单10,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单10)<0,0.42,0.85,0,STRCAT(STRCAT(' ',CON2STR(大单10,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单10)>=0,0.53,0.85,0,STRCAT(STRCAT(' ',CON2STR(中单10,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单10)<0,0.52,0.85,0,STRCAT(STRCAT(' ',CON2STR(中单10,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单10)>=0,0.63,0.85,0,STRCAT(STRCAT(' ',CON2STR(小单10,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单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=1 AND(主力力度3)>=0,0.73,0.45,0,STRCAT(STRCAT(' ',CON2STR(主力力度3,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(主力力度3)<0,0.72,0.45,0,STRCAT(STRCAT(' ',CON2STR(主力力度3,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(主力力度5)>=0,0.73,0.65,0,STRCAT(STRCAT(' ',CON2STR(主力力度5,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(主力力度5)<0,0.72,0.65,0,STRCAT(STRCAT(' ',CON2STR(主力力度5,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(主力力度10)>=0,0.73,0.85,0,STRCAT(STRCAT(' ',CON2STR(主力力度10,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(主力力度10)<0,0.72,0.85,0,STRCAT(STRCAT(' ',CON2STR(主力力度10,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(主动率3)>=0,0.83,0.45,0,STRCAT(STRCAT(' ',CON2STR(主动率3,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(主动率3)<0,0.82,0.45,0,STRCAT(STRCAT(' ',CON2STR(主动率3,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(主动率5)>=0,0.83,0.65,0,STRCAT(STRCAT(' ',CON2STR(主动率5,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(主动率5)<0,0.82,0.65,0,STRCAT(STRCAT(' ',CON2STR(主动率5,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(主动率10)>=0,0.83,0.85,0,STRCAT(STRCAT(' ',CON2STR(主动率10,1)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(主动率10)<0,0.82,0.85,0,STRCAT(STRCAT(' ',CON2STR(主动率10,1)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(BBD3)>=0,0.94,0.45,0,STRCAT(STRCAT(' ',CON2STR(BBD3,0)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(BBD3)<0,0.93,0.45,0,STRCAT(STRCAT(' ',CON2STR(BBD3,0)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(BBD5)>=0,0.94,0.65,0,STRCAT(STRCAT(' ',CON2STR(BBD5,0)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(BBD5)<0,0.93,0.65,0,STRCAT(STRCAT(' ',CON2STR(BBD5,0)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(BBD10)>=0,0.94,0.85,0,STRCAT(STRCAT(' ',CON2STR(BBD10,0)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(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=1 AND(DDX3)>=0,0.03,0.45,0,STRCAT(STRCAT(' ',CON2STR(DDX3,2)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDX3)<0,0.02,0.45,0,STRCAT(STRCAT(' ',CON2STR(DDX3,2)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDY3)>=0,0.13,0.45,0,STRCAT(STRCAT(' ',CON2STR(DDY3,2)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDY3)<0,0.12,0.45,0,STRCAT(STRCAT(' ',CON2STR(DDY3,2)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDZ3)>=0,0.23,0.45,0,STRCAT(STRCAT(' ',CON2STR(DDZ3,2)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDZ3)<0,0.22,0.45,0,STRCAT(STRCAT(' ',CON2STR(DDZ3,2)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDX5)>=0,0.03,0.65,0,STRCAT(STRCAT(' ',CON2STR(DDX5,2)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDX5)<0,0.02,0.65,0,STRCAT(STRCAT(' ',CON2STR(DDX5,2)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDY5)>=0,0.13,0.65,0,STRCAT(STRCAT(' ',CON2STR(DDY5,2)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDY5)<0,0.12,0.65,0,STRCAT(STRCAT(' ',CON2STR(DDY5,2)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDZ5)>=0,0.23,0.65,0,STRCAT(STRCAT(' ',CON2STR(DDZ5,2)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDZ5)<0,0.22,0.65,0,STRCAT(STRCAT(' ',CON2STR(DDZ5,2)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDX10)>=0,0.03,0.85,0,STRCAT(STRCAT(' ',CON2STR(DDX10,2)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDX10)<0,0.02,0.85,0,STRCAT(STRCAT(' ',CON2STR(DDX10,2)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDY10)>=0,0.13,0.85,0,STRCAT(STRCAT(' ',CON2STR(DDY10,2)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDY10)<0,0.12,0.85,0,STRCAT(STRCAT(' ',CON2STR(DDY10,2)),' ')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDZ10)>=0,0.23,0.85,0,STRCAT(STRCAT(' ',CON2STR(DDZ10,2)),' ')),COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(DDZ10)<0,0.22,0.85,0,STRCAT(STRCAT(' ',CON2STR(DDZ10,2)),' ')),COLOR00FF00;
双龙无双副图源码:
DRAWTEXT_FIX(1,0.00,0.00,0,'
'),COLORYELLOW;
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(涨停,H,L,0,0),COLORRED;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;
圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
石:=SMA(灵,13,8);
仙:=CEILING(SMA(石,13,8));
编著:=SMA(圣,21,8);
AABB:=IF(L,CONST(L),DRAWNULL);
启动:STICKLINE(仙-编著>75,AABB,AABB*0.99,15,1),COLOR0000FF;
{VARZT:=BARSLAST(平台启动);}
{DRAWTEXT(VARZT=1,0.99*(AABB+AABB*0.98)/2,'平台启动'),COLORYELLOW;}
AAA:=(3*C+H+L+O)/6;
VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));
短线:VAR1,COLORWHITE;
中线:VAR6,COLORYELLOW;
下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;
TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1;
立桩量:=FILTER(TJ1,5);
TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));
突破:=TJ2=1;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;
STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;
TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));
三天法则:=TJ3=1;
成立:=三天法则 AND 突破;
条件成立:=FILTER(成立,3);
DRAWTEXT(条件成立,L*0.99,'成立'),COLORYELLOW;
{www.guziyuan.cn 股旁网_最新股票指标公式}
STICKLINE(C>=O,C,O,3,0),COLOR000045;
STICKLINE(C>=O,C,O,2.5,0),COLOR000065;
STICKLINE(C>=O,C,O,2,0),COLOR000085;
STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;
STICKLINE(C>=O,C,O,1,0),COLOR0000C5;
STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;
STICKLINE(C>=O,H,L,0,0),COLOR0000F5;
STICKLINE(C<O,C,O,3,0),COLOR353500;
STICKLINE(C<O,C,O,2.5,0),COLOR454500;
STICKLINE(C<O,C,O,2,0),COLOR555500;
STICKLINE(C<O,C,O,1.5,0),COLOR656500;
STICKLINE(C<O,C,O,1,0),COLOR757500;
STICKLINE(C<O,C,O,0.5,0),COLOR858500;
STICKLINE(C<O,H,L,0,0),COLOR959500;
HIGHN:=10;
LOWN:=10;
HIGHDISPLAY:=0;
LOWDISPLAY:=0;
ZGDISPLAY:=0;
MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H*1.02,2);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
上轨:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORBLUE,LINETHICK1;
DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;
DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,L*0.98,1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
下轨:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK1;
ZGSTAR:=(上轨+下轨)/2;
ZGEND:=CONST((上轨+下轨)/2);
STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK1;
DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT;
DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;
VAR7:=0;
VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
买1:=VAR10;
买2:=(VAR11+VAR13+VAR15+VAR17);
卖1:=(VAR12+VAR14+VAR16+VAR18);
B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买'),COLORRED;
S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;
DRAWTEXT(卖1>0,HIGH*1.02,'卖'),COLORGREEN;
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,1) ;
DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,2);
ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;
VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
K:=EMA(VAR7,5)*2, , COLORFF00FF;
D:=EMA(K,5), , COLORWHITE;
J:=K*3-D*2, ,COLORYELLOW;
VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
HS:=VOL/CAPITAL*100, , COLORGREEN;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95,'冲天炮'),LINETHICK1,COLORFF00FF;
VAR1A:=IF(VARE>0,VARE,0);
VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;
VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;
DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*0.95,'大顶(底)') COLORWHITE;
指标王:=CROSS(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,3,1),SMA(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,3,1),3,1)) AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,3,1)<20;
DRAWTEXT(指标王,L,'主力建仓'),COLORYELLOW;
DRAWTEXT(VAR1,L*0.98,'★短买'),COLORYELLOW;
DRAWTEXT(CROSS(MA(C,3),MA(C,9)) AND C>=REF(C,1) AND C>O,L*0.98,'★加仓'),COLORMAGENTA;
下降压力线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),LINETHICK2;
STICKLINE(CURRBARSCOUNT=2,L,L,10,0),COLORGREEN,;
DRAWNUMBER(ISLASTBAR,REF(L,1),REF(L,1));
gd54554