通达信笑口常开主图指标公式
通达信主力多空资金+量能饱和度+能量潮综合判断指标公式
通达信笑口常开主图指标公式:
W:=55;
MID:=13;
{asi};
LC:=REF(CLOSE,1);
AA:=Abs(HIGH-LC);
BB:=ABS(LOW-LC);
CC:=ABS(HIGH-REF(LOW,1));
DD:=ABS(LC-REF(OPEN,1));
R:=IF(AA>BB AND AA>CC,AA+BB/2+DD/4,IF(BB>CC AND BB>AA,BB+AA/2+DD/4,CC+DD/4));
X:=(CLOSE-LC+(CLOSE-OPEN)/2+LC-REF(OPEN,1));
SI:=8*X/R*MAX(AA,BB);
ASI:=SUM(SI,0);
{线性回归斜率};
TP:=(O+H+L+C)/4;
长:EMA(SLOPE(TP,13)*1+TP,W),POINTDOT,COLORCYAN;
压力轨道:长+2*stD(TP,W),COLORLIGRAY,crOSSDOT;
支撑轨道:长-2*STD(TP,W),COLORLIGRAY,CROSSDOT;
IF(长>REF(长,1),长,DRAWNULL),POINTDOT,COLORMAGENTA;
{ rsi & macd };
RLC:=REF(TP,1);
RSI1:=SMA(MAX(TP-RLC,0),8,1)/SMA(ABS(TP-RLC),8,1)*100;
DIF0:=EMA(ASI,21)-EMA(ASI,34);
DEA0:=EMA(DIF0,MID);
MacD0:=DIF0-DEA0;
DRAWICON(EXIST(RSI1<20,3) AND MACD0>REF(MACD0,1),H*1.01,5);
通达信志愿主图指标公式