通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
以下是通达信淘金牛妖副图指标公式源码
通达信淘金牛妖副图指标公式源码
多方能量:7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
,3,1),2,1),LINETHICK1,COLORRED;
空方能量:EMA(MA(多方能量,5),7),LINETHICK1,COLORGREEN;
{STICKLINE(空方能量<=多方能量,空方能量,多方能量,2,1),COLOR000099;
STICKLINE(空方能量>多方能量,空方能量,多方能量,2,1),COLORGREEN;
STICKLINE(多方能量>80AND多方能量>=空方能量,多方能量,80,1,0),COLORYELLOW;
STICKLINE(空方能量<15AND空方能量<=多方能量,空方能量,15,1,0),COLORBLUE;}
50,COLORRED;
60,CIRCLEDOT;
20,CIRCLEDOT;
8,CIRCLEDOT;
0;100;
VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*50;
AA:(EMA(VAR1,3))*2;
BB:MA(AA,3);
DRAWBAND(AA,RGB(150,0,150),BB,RGB(150,150,150));
STICKLINE(AA>=BB,53,47,4,0),COLOREE82EE;
STICKLINE(AA<BB,53,47,4,1),COLORB3EE3A;
STICKLINE(CROSS(AA,20),58,42,2,0),COLORB23AEE;
VAR2:8,COLORGREEN,LINETHICK0;
IF(CROSS(AA,VAR2),40,0),STICK,LINETHICK2;
DRAWICON(CROSS(AA,VAR2),40,13);
{淘金牛妖}
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),;
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),;
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),;
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),;
强势线:80,DOTLINE;
分水岭:50,DOTLINE;
弱势线:20,DOTLINE;
DRAWTEXT(CROSS(中期,80)ANDREF(中期,1)<80and="">REF(MA(C,5),1)AND多方能量>空方能量,中期+2,'买');
DRAWTEXT(CROSS(长期,80)ANDREF(长期,1)<80and="">REF(MA(C,5),1)AND多方能量>空方能量,中期,'稳升');
DRAWTEXT(CROSS(80,长期)ANDCROSS(80,中长期)ANDCROSS(80,中期)ANDREF(长期,1)>80
ANDREF(中期,1)>80ANDREF(中长期,1)>80AND空方能量>多方能量,长期,'绝卖'),COLORGREEN;
DRAWTEXT(CROSS(80,短期)ANDREF(短期,1)>80AND多方能量>空方能量,长期+2,'调'),COLORGREEN;
DRAWTEXT(CROSS(80,长期)ANDREF(长期,1)>80AND空方能量>多方能量,长期+4,'必卖'),COLORGREEN;
DRAWTEXT(CROSS(80,短期)ANDREF(短期,1)>80AND空方能量>多方能量,短期+2,'卖'),COLORGREEN;
DRAWICON(CROSS(多方能量,空方能量)ANDREF(多方能量,1)<REF(空方能量,1),多方能量,34);
DRAWICON(CROSS(空方能量,多方能量)ANDREF(多方能量,1)>REF(空方能量,1),空方能量,35);
能量走势:(多方能量-空方能量)+50,LINETHICK2,COLORYELLOW;
DRAWTEXT(CROSS(AA,VAR2)AND多方能量>空方能量,49,'买');
DRAWICON(CROSS(AA,20)AND多方能量>空方能量,30,1);
STICKLINE(CROSS(AA,20)AND多方能量>空方能量,20,30,0.2,0),COLORRED;
评论(0)