老帅李华杰
管理员
管理员
  • UID2
  • 粉丝19
  • 关注0
  • 发帖数315
  • 社区居民
  • 忠实会员
  • 喜欢达人
  • 原创写手
阅读:2397回复:0

原创五星评级副图源码

楼主#
更多 发布于:2023-08-20 15:33

1;
LH:=100-EMA((HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100,34);
J:=EMA(LH,21);
DRAWTEXT(LH>J,1.6,'★'),COLORRED;
DRAWTEXT(LH<J,1.6,'★'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,1.6,'    LHJ'),COLORYELLOW;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
DRAWTEXT(DIF>DEA,1.5,'★'),COLORRED;
DRAWTEXT(DIF<DEA,1.5,'★'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,1.5,'    MACD'),COLORYELLOW;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DRAWTEXT(K>D,1.4,'★'),COLORRED;
DRAWTEXT(K<D,1.4,'★'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,1.4,'    KDJ'),COLORYELLOW;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))*1000/(15*AVEDEV(TYP,14));
DRAWTEXT(CCI>100,1.3,'★'),COLORRED;
DRAWTEXT(CCI<100,1.3,'★'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,1.3,'    CCI'),COLORYELLOW;
DRAWTEXT(C>SAR.SAR,1.2,'★'),COLORRED;
DRAWTEXT(C<SAR.SAR,1.2,'★'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,1.2,'    SAR'),COLORYELLOW;
DRAWTEXT(RSI.RSI1>50,1.1,'★'),COLORRED;
DRAWTEXT(RSI.RSI1<50,1.1,'★'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,1.1,'    RSI'),COLORYELLOW;
DRAWTEXT(ISLASTBAR=1,1.75,'    评级'),COLORYELLOW;
LHJY1:=LH>J;
LHJY2:=DIF>DEA;
LHJY3:=K>D;
LHJY4:=CCI>100;
LHJY5:=C>SAR.SAR;
LHJY6:=RSI.RSI1>50;
LHJXY:LHJY1 + LHJY2 + LHJY3 + LHJY4 + LHJY5 + LHJY6,NODRAW;
STICKLINE(1,1.7,1.8,3,1),COLOR666666;
DRAWNUMBER(1,1.77,LHJXY),COLORLIGRAY;
DRAWNUMBER(LHJXY=6,1.77,LHJXY),COLORMAGENTA;
DRAWNUMBER(LHJXY=5,1.77,LHJXY),COLORRED;
LHJXG:LHJY1 AND LHJY2 AND LHJY3 AND LHJY4 AND LHJY5 AND LHJY6,NODRAW;

最新喜欢:

13528995001135289...
好的指标等于至高的阵地,明察秋毫自然马到成功; 微信手机同号:15907742318 老帅李华杰
游客

返回顶部