大家好!今天跟大家分享一个精选指标,此指标十分简单,主图中有文字提示,我们的幅图 可以看到我们的持股天数,那我直接上图了
源码:VAR1:=1; VAR4:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100*VAR1; 变速率:(SMA(SMA(VAR4,2,1)+3*VAR1,2,1)-(MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100)); MACD2:=变速率; TJ:=MACD2>0;T:=MACD2<0; DRAWTEXT(BARSLAST(TJ)=1,MACD2,'1'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=2,MACD2,'2'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=3,MACD2,'3'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=5,MACD2,'5'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=8,MACD2,'8'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=13,MACD2,'13'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=21,MACD2,'21'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=34,MACD2,'34'),COLORYELLOW; DRAWTEXT(BARSLAST(TJ)=55,MACD2,'55'),COLORYELLOW; DRAWTEXT(BARSLAST(T)=1,MACD2,'1'),COLORGREEN; DRAWTEXT(BARSLAST(T)=2,MACD2,'2'),COLORGREEN; DRAWTEXT(BARSLAST(T)=3,MACD2,'3'),COLORGREEN; DRAWTEXT(BARSLAST(T)=5,MACD2,'5'),COLORGREEN; DRAWTEXT(BARSLAST(T)=8,MACD2,'8'),COLORGREEN; DRAWTEXT(BARSLAST(T)=13,MACD2,'13'),COLORGREEN; DRAWTEXT(BARSLAST(T)=21,MACD2,'21'),COLORGREEN; DRAWTEXT(BARSLAST(T)=34,MACD2,'34'),COLORGREEN; DRAWTEXT(BARSLAST(T)=55,MACD2,'55'),COLORGREEN; 喜欢的朋友点下关注,由于文章篇幅问题源码不完整,需要的朋友可以看个人简介,我会整理好完整版分享给大家! |