长、中、短线加量中看庄
-
相关简介:长、中、短线加量中看庄 长、中、短线源码 TG:(MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOSE,13)+MA(CLOSE,21))/4; AA:HHV(TG,3); BB:LLV(TG,3); 趋势线:=MA(TG,N),coloryellow; PARTLINE(趋势线,趋势线REF(趋势线,1),RGB(255,0,0),趋势线REF(趋势线,1),RGB(0,255,0)),LINETHICK1; FILLRGN(趋势线,REF(趋势线,1),趋势线REF(趋势线,1)
-
文章来源:股海网作者:股海网发布时间:2016-08-03浏览次数:
长、中、短线加量中看庄
长、中、短线源码
TG:(MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOSE,13)+MA(CLOSE,21))/4;
AA:HHV(TG,3);
BB:LLV(TG,3);
趋势线:=MA(TG,N),coloryellow;
PARTLINE(趋势线,趋势线>REF(趋势线,1),RGB(255,0,0),趋势线<REF(趋势线,1),RGB(0,255,0)),LINETHICK1;
FILLRGN(趋势线,REF(趋势线,1),趋势线>REF(趋势线,1),RGB(255,0,0),趋势线<=REF(趋势线,1),RGB(0,255,0) );
STICKLINE(BB >趋势线 ,BB,趋势线,1,1),COLOR0000AA;
STICKLINE(BB <趋势线 ,BB,趋势线,1,1),COLOR008800;
STICKLINE(BB-REF(BB,1)>0 ,AA,BB,7,0),color0000DD;
STICKLINE(BB-REF(BB,1)<0 ,BB,AA,7,0),color008800;
PARTLINE(AA,AA>REF(AA,1),RGB(255,0,0),AA<REF(AA,1),RGB(0,255,0)),LINETHICK1;
PARTLINE(BB,BB>REF(BB,1),RGB(255,0,0),BB<REF(BB,1),RGB(0,255,0)),LINETHICK1;
TG1:=(MA(CLOSE,2)+MA(CLOSE,3)+MA(CLOSE,4)+MA(CLOSE,5))/4;
AA1:HHV(TG1,3);
PARTLINE(AA1,AA1>REF(AA1,1),RGB(255,0,255),AA1<REF(AA1,1),RGB(0,55,250)),LINETHICK2;
趋势线1:=MA(TG,N1),coloryellow;
PARTLINE(趋势线1,趋势线1>REF(趋势线1,1),RGB(255,255,0),趋势线1<REF(趋势线1,1),RGB(0,55,255)),LINETHICK1;
FILLRGN(趋势线1,REF(趋势线1,2),趋势线1>REF(趋势线1,2),RGB(255,255,0),趋势线1<=REF(趋势线1,2),RGB(0,55,255) );
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
HY1:=REF(EMA(V1,3),1);
实时线:=MA(CLOSE,2),Color006400;
神秘线:=HY1,Color400080;
DRAWTEXT(CROSS(CLOSE,HY1),LOW,'买点'),LINETHICK2,coloryellow;
DRAWTEXT(CROSS(HY1,CLOSE),HIGH*1.02,'卖点'),LINETHICK3,colorwhite;
STICKLINE(CLOSE < OPEN,CLOSE,OPEN,0.5,0),Color787800;
STICKLINE(CLOSE < OPEN,CLOSE,OPEN,8,0),ColorA0A000;
STICKLINE(CLOSE < OPEN,CLOSE,OPEN,7,0),ColorB4B400;
STICKLINE(CLOSE < OPEN,CLOSE,OPEN,6,0),ColorC8C000;
STICKLINE(CLOSE < OPEN,CLOSE,OPEN,5,0),ColorD2D200;
STICKLINE(CLOSE < OPEN,CLOSE,OPEN,4,0),ColorDCDC00;
STICKLINE(CLOSE < OPEN,CLOSE,OPEN,3,0),ColorE6E600;
STICKLINE(CLOSE < OPEN,CLOSE,OPEN,2,0),ColorF0F000;
STICKLINE(CLOSE < OPEN,CLOSE,OPEN,1,0),ColorFFFF00;
STICKLINE(CLOSE>OPEN,HIGH,LOW,0.5,0) ,COLORFFBBFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;
量中看庄源码
N:=27;
N2:=9;
N4:=16;
VAR1:=IF(DATE>=1030131,1,1);
VAR2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR3:=SMA(VAR2,3,1)*VAR1;
VAR4:=SMA(VAR3,N2,1)*VAR1;
VAR5:=3*VAR3-2*VAR4*VAR1;
STICKLINE(VOL AND VAR5>VAR4,0,VOL,2,1),colorred;
STICKLINE(VOL AND VAR5<VAR4,0,VOL,2,1),colorgreen;
STICKLINE(VOL AND VAR4<N4,-10,VOL*0.5,2,0),colorblue;
VARN2:=CLOSE-REF(CLOSE,1);
VARN3:=IF(CLOSE-REF(CLOSE,1)>=0,VARN2,0);
VARN4:=REF(CLOSE,1)-CLOSE;
VARN5:=IF(CLOSE-REF(CLOSE,1)<=0,VARN4,0);
VARN6:=SUM(VARN3,16)/SUM(VARN5,16);
VARN7:=100-100/(1+VARN6);
VARN8:=EMA(VARN7,16);
VARN9:=EMA(VARN8,8);
VARNA:=EMA(VARN8,45);
MO:=(VARN8-VARNA);
ML:=(VARN9-VARNA);
VARN1A:=EMA(CLOSE,32);
VARN2A:=MA(OPEN,32);
趋势:=(VARN1A-VARN2A);
STICKLINE(MO>ML AND 趋势<0 AND MO>REF(MO,3) AND 趋势>REF(趋势,3),VOL,0,3,0), coloryellow;