飞狐飘零M.K.R副图指标
源码
input:short(12),long(26),m(9),n1(6),n2(12),n3(24);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLORRED;
STICKLINE(MACD>=0 AND MACD<=REF(MACD,1),0,MACD,1,0),COLORGREEN;
STICKLINE(MACD<=0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLORYELLOW;
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1),0,MACD,1,0),COLORBLUE;
AC : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),COLORMAGENTA;
AD
LC := REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*4,COLORGREEN;
RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*4,COLORGREEN,LINETHICK2;
VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*2;
K:SMA(VAR1,3,1),COLORRED;
D:SMA(K,3,1),COLORRED,LINETHICK2;