以下是通达信洗钱副图指标
通达信洗钱副图指标
源码
洗钱:=(CLOSE – LLV(LOW,32)) / (HHV(HIGH,32) – LLV(LOW,32)) * 1.2 * CLOSE;
洗钱A:=SMA(洗钱,13,1);
洗钱目的:=SMA(洗钱A,5.5,1.5);
K1:=BACKSET(洗钱目的>REF(洗钱目的,1),2);
IF(K1,洗钱目的,DRAWNULL),POINTDOT,COLORRED,LINETHICK4;
洗钱B:=3 * 洗钱A – 2 * 洗钱目的;
银行亏空:=IF(空方 > 洗钱B,洗钱B,空方),LINETHICK0;
{DRAWICON(CROSS(洗钱目的,洗钱B),洗钱目的,10);}
量:=(CLOSE – LLV(LOW,32)) / (HHV(HIGH,32) – LLV(LOW,32)) * 1.2 * CLOSE;
量1:=EMA(量,3);
量2:=EMA(量,5);
量3:=EMA(量,7);
STICKLINE(量1 >= 量2,量3,量1,3,0),COLOR0000AA;
STICKLINE(量1 >= 量2,量3,量1,2,0),COLOR0000CC;
STICKLINE(量1 >= 量2,量3,量1,1,0),COLOR0000EE;
STICKLINE(量1 <= 量2,量3,量1,3,0),COLORFF0000;
STICKLINE(量1 <= 量2,量3,量1,2,0),COLORFF5500;
STICKLINE(量1 <= 量2,量3,量1,1,0),COLORFF9900;
T1:=量2 >= 量3 AND 量1 < REF(量1,1);
T2:=量2 < 量3 AND 量1 > REF(量1,1);
{STICKLINE(T1,量1,量3,8,0),COLORFFBB11;}
STICKLINE(T1,量1,量3,3,0),COLORFFCC22;
STICKLINE(T1,量1,量3,2,0),COLORFFDD33;
{STICKLINE(T1,量1,量3,3,0),COLORFFEE44;
STICKLINE(T1,量1,量3,1,0),COLORFFFF55;
STICKLINE(T2,量1,量3,10,0),COLOR338FDD;}
STICKLINE(T2,量1,量3,2,0),COLORFF00FF;
{STICKLINE(T2,量1,量3,1,0),COLOR00DDFF;}
STICKLINE(T2,量1,量3,3,0),COLOR00AAFF;
{STICKLINE(T2,量1,量3,2.0,0),COLOR00CCFF;
STICKLINE(T2,量1,量3,1,0),COLOR00EEFF;}
银行收益:=IF(洗钱目的 > 洗钱B,洗钱目的,洗钱B),LINETHICK0,COLORFF00FF;
洗钱手段:=洗钱B,LINETHICK1,COLOR00FFFF;
IF(银行收益 <= REF(洗钱目的,1),银行收益, DRAWNULL),LINETHICK2,COLOR00FF00;
DRAWICON(CROSS(洗钱B,洗钱目的),洗钱B * 0.99,9);
评论(0)