同花顺趋势操盘公式
-
相关简介:同花顺趋势操盘公式 使用说明: 1.操盘线上穿趋势线买入。 2.操盘线下穿趋势线卖出。 源码 VAR1:=(EMA(C,12)-EMA(C,26))*100+50; VAR2:=EMA(VAR1,9); VAR3:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10; VAR4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100; VAR5:=SMA(VAR4,13,8); VAR6:=SMA(VAR3,21,8); VAR
-
文章来源:股海网作者:股海网发布时间:2015-11-08浏览次数:
同花顺趋势操盘公式
使用说明:
1.操盘线上穿趋势线买入。
2.操盘线下穿趋势线卖出。
源码
VAR1:=(EMA(C,12)-EMA(C,26))*100+50;
VAR2:=EMA(VAR1,9);
VAR3:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10;
VAR4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR5:=SMA(VAR4,13,8);
VAR6:=SMA(VAR3,21,8);
VAR7:=MA(C,80)-MA(C,10)/7;
VAR8:=EMA(C,5);
VAR9:=MA((LLV(C,9))*1.1,14);
VAR10:=2*VAR9-VAR8-C*0.1;
VAR11:=IF(((VAR8-VAR10)*5>0),(POW((VAR8-VAR10)*5,2))/10,(-1*(POW((VAR8-VAR10)*(5),2)))/(10));
VAR12:=IF((VAR11>0),VAR11-0,12);
VAR13:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;
操盘线:CEILING(SMA(VAR5,13,8)),LINETHICK2,COLOR0000FF;
趋势线: MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*
SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK2,colorblue;
STICKLINE(FILTER(CROSS(趋势线,VAR12)AND 趋势线>REF(C,1) OR CROSS(趋势线,操盘线) AND 趋势线<20 OR 趋势线>REF(趋势线,1)
AND 趋势线<35 AND C>REF(C,1),5),5,20,2,2),COLOR00FF00;
底部:IF((趋势线-VAR6<(-65)),20,40),COLORF0F000;
顶部:IF((趋势线-VAR6>85),80,100),COLORF0F000;
DRAWICON(IF(VAR13<15,15,0),20,1);
黄金区:IF(VAR13<15,15,0),coloryellow;
强弱分界:50,POINTDOT,COLORAABBDD,LINETHICK2;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
yxf:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
买:IF(FILTER(yxf=1,5),80,0),STICK,colorred,linethick0;
A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV
(L,55))*100,5,1);
fy:=EMA(A51,5);
A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
qs:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));
点:IF(CROSS(qs,0)AND fy<40,80,0),STICK,coloryellow,linethick0;
DRAWTEXT_FIX(1,0.01,0.82,0,'--群313235217 林永·提供--'),colorwhite;