macd顶底背离dif线背离共振副图金叉选股 股票指标炒股软件公式
23
2024 / 11 / 20
2023-06-06 21:10:17 通达信指标网
{名称:KDJ_MACD };
{原创及版权:属于JIPGEMLING.见凌见};
{参数设置:SHORT(2,300,12); LONG(2,300,26); MID(2,100,9)};
{参数设置:M1(2,100,4); M2(2,100,3); NXCCI(6,60,9)};
{参数设置:YS(1,4,1) ;1=MACD由RSV衍生,2=由K衍生;3=由D衍生;4=由J衍生};
{坐标线位置: -50;-20;20;50;80;100 };
{额外Y轴分界 值1=0 };
{系统设置:多日线=10日}
{MID(1,100,5)这见凌见不给的小鱼放上的};
{特色参数; 见凌见(羊红)上冲一品茶缘(红) 是好股 可作分时线的技术指标};
强弱: 0, CIRCLEDOT;
{MACD优化----一品茶缘}
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26),COLORRED;
DEA:EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
主升:=DIFF>0 AND DIFF>DEA,COLORRED;
STICKLINE(主升,DIFF,DEA,8,0),COLOR0000FF;
{见凌见};
T:=PERIOD;
SJ:=T>1;
SHORT:=IF(SJ,SHORT,18);
LONG:=IF(SJ,LONG,38);
MID:=IF(SJ,MID,SQRT(SHORT*LONG)/2);
NXCCI:=9;
{经原点校正之KDJ,可用于抄新股};
BG:=BARSCOUNT(CLOSE);
LL:=LLV(L,SHORT);
HH:=HHV(H,SHORT);
CC:=CLOSE;
RSV:=(CC-LL)/(1.001*HH-LL)*100;
RSV_JGL:=IF(BG>0,RSV,50);
KK:=SMA(RSV_JGL,M1,1);
DD:=SMA(KK,M2,1);
JJ:=2.7*KK-1.7*DD;
{附加显示};
TS:=(KK>REF(KK,1) OR (DD>REF(DD,1)))AND (C>(H+L)/2);
FH:=JJ>REF(JJ,1)OR TS;
{由RSV或JJ 衍生 XD_MACD};
DIF_XD:1.7*(EMA(IF(YS=1,RSV_JGL,IF(YS=2,KK,IF(YS=3,DD,JJ))),LONG)-50)/20,COLORGREEN;
DEA_XD:=EMA(DIF_XD,MID),COLORGREEN;
转强:IF(DIF_XD>REF(DIF_XD,1)OR FH,DIF_XD,DRAWNULL),COLORRED,LINETHICK1;
STICKLINE(主升,转强,DIFF,0,0),COLORFF00FF;
原文链接:https://www.tdxzb.com/?id=1374
本文版权:如无特别标注,本站文章均为原创。