通达信长短期价差指标公式
-
相关简介:SHORT:=13;LONG:=28;M:=8; 长短期价差:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); M日均线:EMA(长短期价差,M); MACD:(长短期价差-M日均线)*2,LINETHICK0; STICKLINE((MACD 0),0,MACD,2,0),COLOR0000CC; STICKLINE((MACD 0),0,MACD*0.9,2,0),COLOR0000EE; STICKLINE((MACD 0),0,MACD*0.8,2,0),COLOR00
-
文章来源:股海网作者:股海网发布时间:2019-01-26浏览次数:
SHORT:=13;LONG:=28;M:=8;
长短期价差:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
M日均线:EMA(长短期价差,M);
MACD:(长短期价差-M日均线)*2,LINETHICK0;
STICKLINE((MACD > 0),0,MACD,2,0),COLOR0000CC;
STICKLINE((MACD > 0),0,MACD*0.9,2,0),COLOR0000EE;
STICKLINE((MACD > 0),0,MACD*0.8,2,0),COLOR0011FF;
STICKLINE((MACD > 0),0,MACD*0.7,2,0),COLOR0033FF;
STICKLINE((MACD > 0),0,MACD*0.6,2,0),COLOR0055FF;
STICKLINE((MACD > 0),0,MACD*0.5,2,0),COLOR0077FF;
STICKLINE((MACD > 0),0,MACD*0.4,2,0),COLOR0099FF;
STICKLINE((MACD > 0),0,MACD*0.3,2,0),COLOR00BBFF;
STICKLINE((MACD > 0),0,MACD*0.2,2,0),COLOR00DDFF;
STICKLINE((MACD > 0),0,MACD*0.1,2,0),COLOR00FFFF;
STICKLINE((MACD < 0),0,MACD,2,0),COLORCC0033;
STICKLINE((MACD < 0),0,MACD*0.9,2,0),COLOREE0033;
STICKLINE((MACD < 0),0,MACD*0.8,2,0),COLORFF1133;
STICKLINE((MACD < 0),0,MACD*0.7,2,0),COLORFF3333;
STICKLINE((MACD < 0),0,MACD*0.6,2,0),COLORFF5533;
STICKLINE((MACD < 0),0,MACD*0.5,2,0),COLORFF7733;
STICKLINE((MACD < 0),0,MACD*0.4,2,0),COLORFF9933;
STICKLINE((MACD < 0),0,MACD*0.3,2,0),COLORFFBB33;
STICKLINE((MACD < 0),0,MACD*0.2,2,0),COLORFFDD33;
STICKLINE((MACD < 0),0,MACD*0.1,2,0),COLORFFFF33;
VAR1:=3;
VAR3:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));
DRAWICON(CROSS(VAR3,VAR1),0,1);