短线不可少的经典指标“愚公观景”副图 源码

[复制链接]
查看135 | 回复0 | 2022-7-24 08:33:08 | 显示全部楼层 |阅读模式

短线不可少的经典指标“愚公观景”副图 源码

VAR32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10;
JM:=(3*SMA(SMA(VAR32,2,1),2,1)-2*SMA(SMA(SMA(VAR32,2,1),2,1),3,1));
火:BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1)),COLORRED,NODRAW;
山:COUNT(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1),5),COLORGREEN,NODRAW;
STICKLINE(山>0,火,0,4,0),COLORRED;
买入或持股:0,COLORRED;
STICKLINE(山>0,火,山,4,1),COLORFFCC66;
下跌抛出:0,COLORFFCC66;
STICKLINE(山=0 AND 火=0,0,1,4,1),COLORWHITE;
STICKLINE(山<火,火,山,4,0),COLOR00FF00;
K:SMA(SMA(VAR32,2,1),2,1),COLORWHITE;
D:SMA(SMA(SMA(VAR32,2,1),2,1),3,1),COLORYELLOW;
J:(3*SMA(SMA(VAR32,2,1),2,1)-2*SMA(SMA(SMA(VAR32,2,1),2,1),3,1)),COLORFF00FF;
IF(J<=REF(J,1),J,DRAWNULL),COLORGREEN;
顶:10,COLORGREEN,NODRAW;
STICKLINE(REF(山,1)=0 AND 山>0,0,5{-1},2,0),COLORYELLOW;
DRAWTEXT(REF(火,3)>0 AND REF(火,2)>0 AND REF(火,1)>0 AND 火=0 AND REF(火,1)>山,REF(火,1),'●'),COLORRED;
DRAWTEXT(REF(火,3)>0 AND REF(火,2)>0 AND REF(火,1)>0 AND 火=0 AND REF(火,1)>山,REF(火,1),'¤'),COLORYELLOW;
DRAWICON(CROSS(D,K),D+0.3,2),COLORGREEN;
DRAWICON(CROSS(K,D),D-0.3,1),COLORRED;
 

611544173.jpg

611544173.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则