以下是通达信爱恨分明(红持股,绿持币)指标公式(无源码的请下载附件导入)
周J1:MA("KDJ.J#WEEK"(9,3,3) ,5);
A:=5,COLORRED;
B:=68,COLORGREEN;
DRAWTEXT(CROSS(周J1,5),9,'抄底'),COLORFF33FF;
DRAWTEXT(CROSS(周J1,68),72,'追涨'),COLORYELLOW;
VAR1:=周J1,COLORRED;
持股:IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),COLORRED;
持币:IF(VAR1<REF(VAR1,1),VAR1,DRAWNULL),COLORGREEN;
81599453.jpg
|