「翔博精选指标」股海观潮(通达信指标 源码 测试图)
2021-12-22原创 编 辑:翔博软件
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL)/1000000;
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0),NODRAW;
M3:=MA(OBV,3);
STICKLINE(REF(OBV,1)>OBV,MAX(M3,OBV),MIN(M3,OBV),0,0),COLORDDDD05;
STICKLINE(REF(OBV,1)<OBV,MAX(M3,OBV),MIN(M3,OBV),0,0),COLOR0505BB;
STICKLINE(REF(OBV,1)>OBV,REF(OBV,1),OBV,3,0),COLORDDDD05;
STICKLINE(REF(OBV,1)<OBV,REF(OBV,1),OBV,3,1),COLOR0505BB;
MAV1:SMA(EMA(OBV,3),3,1),COLORFFFFFF,LINETHICK1;
MAV2:MA(MAV1,8),COLORFFFF00,LINETHICK1;
MAV3:MA(MAV2,8),COLORFF00FF,LINETHICK1;
MAV4:MA(MAV3,8),COLOR00FFFF,LINETHICK1;
KH:=MAX(MAV4,MAX(MAV1,MAX(MAV2,MAV3)))=MAV4;
KL:=MIN(MAV4,MIN(MAV1,MIN(MAV2,MAV3)))=MAV1;
IF(OBV>MA(OBV,5) AND REF(OBV<MAV1,1)AND KH AND KL,OBV,DRAWNULL) ,CIRCLEDOT,COLORFF99DD,LINETHICK5;
IF( OBV>MA(OBV,5) AND REF(OBV<MAV1,1)AND KH AND KL,OBV,DRAWNULL),CROSSDOT,COLORFFFFFF,LINETHICK3;
STICKLINE(REF(REF(OBV,1)<OBV AND MIN(M3,OBV)<REF(OBV,1),1) AND REF(OBV,1)>OBV,REF(OBV,1),OBV,3.5,0),COLOR00FFFF;
STICKLINE(REF(REF(OBV,1)>OBV AND MAX(M3,OBV)>REF(OBV,1),1) AND REF(OBV,1)<OBV ,REF(OBV,1),OBV,1,0),COLOR00FF00;
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0),NODRAW;
M3:=MA(OBV,3);
STICKLINE(REF(OBV,1)>OBV,MAX(M3,OBV),MIN(M3,OBV),0,0),COLORDDDD05;
STICKLINE(REF(OBV,1)<OBV,MAX(M3,OBV),MIN(M3,OBV),0,0),COLOR0505BB;
STICKLINE(REF(OBV,1)>OBV,REF(OBV,1),OBV,3,0),COLORDDDD05;
STICKLINE(REF(OBV,1)<OBV,REF(OBV,1),OBV,3,1),COLOR0505BB;
MAV1:SMA(EMA(OBV,3),3,1),COLORFFFFFF,LINETHICK1;
MAV2:MA(MAV1,8),COLORFFFF00,LINETHICK1;
MAV3:MA(MAV2,8),COLORFF00FF,LINETHICK1;
MAV4:MA(MAV3,8),COLOR00FFFF,LINETHICK1;
KH:=MAX(MAV4,MAX(MAV1,MAX(MAV2,MAV3)))=MAV4;
KL:=MIN(MAV4,MIN(MAV1,MIN(MAV2,MAV3)))=MAV1;
IF(OBV>MA(OBV,5) AND REF(OBV<MAV1,1)AND KH AND KL,OBV,DRAWNULL) ,CIRCLEDOT,COLORFF99DD,LINETHICK5;
IF( OBV>MA(OBV,5) AND REF(OBV<MAV1,1)AND KH AND KL,OBV,DRAWNULL),CROSSDOT,COLORFFFFFF,LINETHICK3;
STICKLINE(REF(REF(OBV,1)<OBV AND MIN(M3,OBV)<REF(OBV,1),1) AND REF(OBV,1)>OBV,REF(OBV,1),OBV,3.5,0),COLOR00FFFF;
STICKLINE(REF(REF(OBV,1)>OBV AND MAX(M3,OBV)>REF(OBV,1),1) AND REF(OBV,1)<OBV ,REF(OBV,1),OBV,1,0),COLOR00FF00;
STICKLINE(REF(REF(OBV,1)>OBV AND MAX(M3,OBV)>REF(OBV,1),1) AND REF(OBV,1)<OBV AND REF(OBV,1)<MAV2,REF(OBV,1),OBV,3.5,0),COLOR00FF00;