以下是同花顺股势副图源码
位置决定股票的性质,即便于选股,又便于操作。登山线是操作的重要依据,庄家线是对于短期资本介入的平均成本。
DRAWGBKLAST((CLOSE>0),STRIP(RGB(0,0,0),RGB(250,200,200),1));
WS:=ZIG(3,15);
VERTLINE(WS<REF(WS,1),2),color999999,LINETHICK1;
庄家线:EMA(CLOSE,168),colorred,linethick1;
登山线:EMA(CLOSE,200),colorFFFFFF,linethick1;
C1:=EMA(INDEXC,500)/EMA(C,500);
D1:=INDEXO/C1;
D2:=INDEXH/C1;
D3:=INDEXL/C1;
D4:=INDEXC/C1;
STICKLINE(D4>=REF(D4,1),D3,D2,0,0),COLOR000099;
STICKLINE(D4>=REF(D4,1),D4,D1,9,1),COLOR0000A1;
STICKLINE(D4>=REF(D4,1),D4,D1,8,1),COLOR0000B2;
STICKLINE(D4>=REF(D4,1),D4,D1,7,1),COLOR0000C3;
STICKLINE(D4>=REF(D4,1),D4,D1,6,1),COLOR0000D4;
STICKLINE(D4>=REF(D4,1),D4,D1,5,1),COLOR0000E5;
STICKLINE(D4>=REF(D4,1),D4,D1,4,1),COLOR0000F6;
STICKLINE(D4>=REF(D4,1),D4,D1,3,1),COLOR0000AA;
STICKLINE(D4>=REF(D4,1),D4,D1,2,1),COLOR0000BB;
STICKLINE(D4< REF(D4,1),D3,D2,0,0),COLORFF5A00;
STICKLINE(D4< REF(D4,1),D4,D1,9,1),COLORFF6B00;
STICKLINE(D4< REF(D4,1),D4,D1,8,1),COLORFF7C00;
STICKLINE(D4< REF(D4,1),D4,D1,7,1),COLORFF8D00;
STICKLINE(D4< REF(D4,1),D4,D1,6,1),COLORFF9E00;
STICKLINE(D4< REF(D4,1),D4,D1,5,1),COLORFFAB00;
STICKLINE(D4< REF(D4,1),D4,D1,4,1),COLORFFBC00;
STICKLINE(D4< REF(D4,1),D4,D1,3,1),COLORFFCD00;
STICKLINE(D4< REF(D4,1),D4,D1,2,1),COLORFFEF00;
生命线:EMA(CLOSE,15),COLOR00FFFF,LINETHICK1;
STICKLINE(C<生命线,H,L,0,0),colorgreen;
STICKLINE(C<生命线,C,O,9,0),Culor007700;
STICKLINE(C<生命线,C,O,8,0),Culor008E00;
STICKLINE(C<生命线,C,O,7,0),Culor009900;
STICKLINE(C<生命线,C,O,6,0),Culor00A600;
STICKLINE(C<生命线,C,O,5,0),Culor00B500;
STICKLINE(C<生命线,C,O,4,0),Culor00C600;
STICKLINE(C<生命线,C,O,3,0),Culor00D500;
STICKLINE(C<生命线,C,O,2,0),Culor00E600;
STICKLINE(C>生命线,H,L,0,0),Culor0000FF;
STICKLINE(C>生命线,C,O,9,0),Culor0000A3;
STICKLINE(C>生命线,C,O,8,0),Culor0000B7;
STICKLINE(C>生命线,C,O,6,0),Culor0000C8;
STICKLINE(C>生命线,C,O,5,0),Culor0000D9;
STICKLINE(C>生命线,C,O,4,0),Culor0000CD;
STICKLINE(C>生命线,C,O,3,0),Culor0000E9;
STICKLINE(C>生命线,C,O,2,0),Culor0000EA;
STICKLINE(C>生命线,C,O,1,0),Culor0000FF;
GA:=EMA(C,34);
MA1:=FORCAST(GA,1);
PARTLINE(MA1,MA1<REF(MA1,1),RGB(0,100,250),MA1>REF(MA1,1),RGB(255,0,250)),DOTLINE,LINETHICK2;
Var2:=(CLOSE+HIGH+LOW)/3;
Var3:=EMA(Var2,15);
Var4:=REF(Var3,1);
STICKLINE(Var3>Var4,Var3,Var4,6,0),color00FFFF;
STICKLINE(Var3<Var4,Var3,Var4,6,0),colorFFFF00;
评论(0)