同花顺指标公式 同花顺天马金叉死叉决定买卖指标公式
2015-1-29 11:35:04 股票入门 http://rumen.southmoney.com
南方财富网带来同花顺指标公式 同花顺天马金叉死叉决定买卖指标公式:
指标介绍:
低位白线对黄线金叉时买入,高位白线对黄线死叉时卖出。
二分位:(H+L)/2 ,LINETHICK3,coloryellow,POINTDOT;
MID1 : MA(CLOSE,18),POINTDOT,LINETHICK3,colorwhite;
UPPER1: MID1 + 2*STD(CLOSE,14),linethick2,coloryellow;
LOWER1: MID1 - 2*STD(CLOSE,14),linethick2,coloryellow;
VAR1:=UPPER1;
FF:=VAR1》REF(VAR1,1);
PARTLINE(VAR1,FF,RGB(255,0,0),1,RGB(0,255,0)),LINETHICK4;
VAR2:=LOWER1;
FF:=VAR2》REF(VAR2,1); PARTLINE(VAR2,FF,RGB(255,0,0),1,RGB(0,255,0)),LINETHICK4;
VAR3:=MA(CLOSE,18);
FF:=VAR3》REF(VAR3,1);PARTLINE(VAR3,FF,RGB(255,0,0),1,RGB(3,3,255)),LINETHICK4;
VAR4:=MA(CLOSE,4);
FF:=VAR4》REF(VAR4,1); PARTLINE(VAR4,FF,RGB(235,1,1),1,RGB(3,3,255)),LINETHICK3;
RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,5,1);
J:=3*K-2*D;
X:=REF(J,1)REF(H,1) AND C》REF(C,1) AND C》REF(O,1) AND L》REF(L,1);
STICKLINE(X,L ,L,20,0),COLOR008888;
STICKLINE(X,L ,H,0,0),COLORFF00FF;
STICKLINE(X,C ,O,5,0),COLORFF00FF;
WR:=“W&R”(14);
DRAWICON(FILTER(CROSS(WR,(0 - 81)),10),L,4);//威廉买点↑ ↓
DRAWICON(FILTER(CROSS((0 -19),WR),10),H,5);//威廉卖点
DRAWTEXT(FILTER(CROSS(WR,(0 - 81)),21),L,‘威廉买’),ALIGN0,colorred;//威廉买点
公式源码:
天马图H1:EMA(CLOSE,8);
H2:EMA(天马图H1,20);
LH:EMA(CLOSE,240),colorred;
Var1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
Var2:=SMA(Var1,5,1);
Var3:=SMA(Var2,8,1);
Var4:=CROSS(Var2,Var3) AND Var3《20;
Var5:=CLOSE》LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND Var4;
Var6:=IF(CLOSE》1000,Var4,Var5);
STICKLINE(天马图H1》H2,天马图H1,H2,1,1),coloryellow;
STICKLINE(天马图H1》H2,天马图H1,H2,1,2),;
STICKLINE(天马图H1 DRAWTEXT(CROSS(天马图H1,H2),天马图H1*0.962,‘’),coloryellow;
DRAWTEXT(CROSS(天马图H1,H2),天马图H1*0.98,‘●’),colorwhite;
DRAWTEXT(CROSS(天马图H1,H2),天马图H1*0.952,‘’),colorred;
DRAWTEXT(CROSS(天马图H1,H2),天马图H1*0.982,‘●’),colorred;
DRAWTEXT(CROSS(天马图H1,H2),天马图H1*0.98,‘↑’),coloryellow;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。