大智慧宝华均线主图源码
-
相关简介:大智慧宝华均线主图源码 A11:=REF(C,10)=HHV(C,2*10+1); B1:=FILTER(A11,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10); A22:=REF(C,10)=LLV(C,2*10+1); B2:=FILTER(A22,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10); A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD)); T1:=BARS
-
文章来源:股海网作者:股海网发布时间:2013-03-22浏览次数:
大智慧宝华均线主图源码
A11:=REF(C,10)=HHV(C,2*10+1);
B1:=FILTER(A11,10);
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
A22:=REF(C,10)=LLV(C,2*10+1);
B2:=FILTER(A22,10);
C2:=BACKSET(B2,10+1);
LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD));
B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD);
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波峰:IF(T1,A,A),POINTDOT,COLORYELLOW;
STICKLINE(T1,A,A,4,0),COLORYELLOW;
波谷:IF(T2,B,B),POINTDOT,COLORFFC8FF;
STICKLINE(T2,B,B,4,0),COLORFFC8FF;
工作线14:EMA(C,14);
二号线25:EMA(C,25),COLORRED;
分水岭55:EMA(C,55),COLOR00FF00;
九号线99:EMA(CLOSE,99),LINETHICK2,COLOR008FFF;
M120:MA(C,120),COLORWHITE,LINETHICK2;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
DEA:=EMA(DIFF,9);
MACD:=0.90*(DIFF-DEA);
TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);
STICKLINE(TJ,H,L,0.5,0),COLORYELLOW;
STICKLINE(TJ,O,C,4,0),COLORYELLOW;
STICKLINE(TJ1 AND TJ AND C>O,H,L,0.5,0),COLORF00FF0;
STICKLINE(TJ1 AND TJ AND C>O,O,C,4,0),COLORF00FF0;
STICKLINE(TJ1 AND TJ AND C<O,H,L,0.5,0),COLORFF9933;
STICKLINE(TJ1 AND TJ AND C<O,O,C,4,0),COLORFF9933;
STICKLINE(DIFF<DEA,H,L,0.5,0),COLORGREEN;
STICKLINE(DIFF<DEA,O,C,4,0),COLORGREEN;
VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(VAR1,13)-EMA(VAR1,73);
SD:= EMA(SK,2);
DRAWTEXT((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.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短线'),COLORRED;
STICKLINE((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.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0.5,0),COLORRED;
STICKLINE((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.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,10,1),LINETHICK3,COLORRED;
VAR4:=(LOW+HIGH+CLOSE+OPEN)/4;
CB:=MA(VAR4,5);
A2:=HHV(CB,60);
B11:=LLV(CB,20);
DRAWTEXT(FILTER((A2>REF(A2,1) AND B11>REF(B11,1)),5),H+0.1,'卖'),COLOR00FF00;
======================
C1:=C;
C2:=REF(C,1);
C3:=REF(C,2);
STICKLINE((C1>C2) AND (C2>C3),C1,C2, 10, 1) ;
STICKLINE((C1<C2) AND (C2<C3),C1,C2, 10, 1);
STICKLINE((C1>C2) AND (C2<C3) AND (C1>C3),C1,C3, 10, 1);
STICKLINE((C1>C2) AND (C2<C3) AND (C1>C3),C3,C2, 10, 1 );
STICKLINE((C1<C2) AND (C2>C3) AND (C1<C3),C2,C3, 10, 1 );
STICKLINE((C1<C2) AND (C2>C3) AND (C1<C3),C1,C3, 10, 1 );
STICKLINE((C1<C2) AND (C2>C3) AND (C1>=C3),C1,C2, 10, 1 );
STICKLINE((C1>C2) AND (C2<C3) AND (C1<=C3),C1,C2, 10, 1 );
STICKLINE((C1=C2) AND (C1<C3),C1*1.002,C2, 10, 1 );
STICKLINE((C2=C3) AND (C1>C2),C1,C3, 10, 1 );
STICKLINE((C1=C2) AND (C1>C3),C1*1.002,C2, 10 ,1);
STICKLINE((C2=C3) AND (C1<C2),C1,C3, 10, 1 );