同花顺牛气冲天副图指标
源码
箱顶:HHV(MA((LOW+HIGH+CLOSE+O)/4,5),58),color00aaff,linethick4;
箱底:LLV(MA((LOW+HIGH+CLOSE+O)/4,6),58),colorred, linethick4;
Var2:=EMA((HIGH+LOW+CLOSE)/3*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*20/10+箱底,2);
Var3:=(3*Var2-2*SMA(Var2,5,1))*0.3;
Var4:=(HHV(INDEXH,13)-INDEXC)/(HHV(INDEXH,13)-LLV(INDEXL,13));
Var5:=EMA(3*Var4-2*SMA(Var4,18,1),5);
Var6:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8));
Var7:=3*SMA(Var6,3,1)-2*SMA(SMA(Var6,3,1),5,1);
Var8:=(INDEXC*2+INDEXH+INDEXL)/4;
Var9:=EMA(Var8,13)-EMA(Var8,34);
VarA:=EMA(Var9,5);
资金流向:=(Var9-VarA+箱底)*1,coloryellow;
VarG1:=1.86*EMA(CLOSE,12)-EMA(CLOSE,34);
趋势力度:VarG1,colorFFAA99;
as:=箱底;
牛气冲天:STICKLINE( 趋势力度>=as,as ,趋势力度 ,4 ,0 ) ,colorred ;
STICKLINE( 趋势力度<= REF(趋势力度,1) AND 趋势力度>as,as ,趋势力度 ,4 ,1 ) ,colorwhite;
趁机派发:STICKLINE( REF(趋势力度,2)<= REF(趋势力度,1) AND 趋势力度>as,as ,趋势力度 ,4 ,0 ) ,colorgreen ;
DRAWICON(REF(趋势力度,2)<= REF(趋势力度,1) AND 趋势力度>as ,趋势力度 ,2 );
熊气盖天:STICKLINE( 趋势力度
MA3:MA(C,3),colorblue,linethick2;
MA34:MA(C,34),colorwhite,linethick2;
DRAWTEXT( CROSS(MA3 , 箱底),L , '试'),colorred;
DRAWTEXT( CROSS(MA3 , MA34),L, '买'),colorred;
DRAWTEXT( CROSS(MA3 , 箱顶) AND C>箱顶,箱顶 , '追'),color00EEAA;
DRAWTEXT( CROSS(箱顶,MA3)AND C<箱顶 ,H , '卖') ,colorblue;
DRAWTEXT( REF(资金流向 ,2)资金流向
AND 资金流向>箱顶 AND C>箱顶,H*1.0051, '顶'),colorwhite;