飞狐洗钱量能饱和度副图指标
-
相关简介:飞狐洗钱量能饱和度副图指标 源码 input:N(20,1,100); KLINE(O,H,L,C,0); ★洗钱★:=(CLOSE - LLV(LOW,32)) / (HHV(HIGH,32) - LLV(LOW,32)) * 1.2 * CLOSE; ★洗钱★A:=SMA(★洗钱★,13,1); 【洗钱】目的:SMA(★洗钱★A,5.5,1.5),POINTDOT,LINETHICK3,colorFF; ★洗钱★B:=3 * ★洗钱★A - 2 * 【洗钱】目的; 空方:=4 * 【洗钱】目
-
文章来源:股海网作者:股海网发布时间:2016-06-15浏览次数:
飞狐洗钱量能饱和度副图指标
源码
input:N(20,1,100);
KLINE(O,H,L,C,0);
★洗钱★:=(CLOSE - LLV(LOW,32)) / (HHV(HIGH,32) - LLV(LOW,32)) * 1.2 * CLOSE;
★洗钱★A:=SMA(★洗钱★,13,1);
【洗钱】目的:SMA(★洗钱★A,5.5,1.5),POINTDOT,LINETHICK3,colorFF;
★洗钱★B:=3 * ★洗钱★A - 2 * 【洗钱】目的;
空方:=4 * 【洗钱】目的- 3 * ★洗钱★A;
银行亏空:IF(空方 > ★洗钱★B,★洗钱★B,空方),LINETHICK0;
均价:=(CLOSE + HIGH + LOW + OPEN) / 4;
B:=(2 * EMA(LLV(均价,7),11) - 均价 * 55) / 100;
B1:=EMA(3 * B - 2 * SMA(B,14,1),3);
鹰眼空【反】线:=EMA(3 * B1 - 2 * SMA(B1,15,1),21);
波动:IF(鹰眼空【反】线 <= ★洗钱★B,空方,鹰眼空【反】线),LINETHICK0,color9900;
DRAWICON(CROSS(【洗钱】目的,★洗钱★B),【洗钱】目的,10);
DRAWICON(CROSS(★洗钱★B,【洗钱】目的),★洗钱★B * 0.99,12);
量:=(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,8,0),colorAA;
STICKLINE(量1 >= 量2,量3,量1,7,0),colorBB;
STICKLINE(量1 >= 量2,量3,量1,6,0),colorCC;
STICKLINE(量1 >= 量2,量3,量1,5,0),colorDD;
STICKLINE(量1 >= 量2,量3,量1,4,0),colorEE;
STICKLINE(量1 >= 量2,量3,量1,3,0),colorFF;
STICKLINE(量1 <= 量2,量3,量1,8,0),colorFF0000;
STICKLINE(量1 <= 量2,量3,量1,7,0),colorFF3300;
STICKLINE(量1 <= 量2,量3,量1,6,0),colorFF5500;
STICKLINE(量1 <= 量2,量3,量1,5,0),colorFF7700;
STICKLINE(量1 <= 量2,量3,量1,4,0),colorFF9900;
STICKLINE(量1 <= 量2,量3,量1,3,0),colorFFBB00;
STICKLINE(量1 <= 量2,量3,量1,2,0),colorFFDD00;
STICKLINE(量1 <= 量2,量3,量1,1,0),colorFFFF00;
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,7,0),colorFFCC22;
STICKLINE(T1,量1,量3,5,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,8,0),colorFF00FF;
STICKLINE(T2,量1,量3,1,0),colorDDFF;
STICKLINE(T2,量1,量3,8,0),colorAAFF;
STICKLINE(T2,量1,量3,6.6,0),colorBBFF;
STICKLINE(T2,量1,量3,4.4,0),colorCCFF;
STICKLINE(T2,量1,量3,3.3,0),colorDDFF;
STICKLINE(T2,量1,量3,2.2,0),colorEEFF;
STICKLINE(T2,量1,量3,1,0),colorFFFF;
银行收益:IF(【洗钱】目的 > ★洗钱★B,【洗钱】目的,★洗钱★B),LINETHICK0,colorFF00FF;
洗钱手段:★洗钱★B,LINETHICK0,colorFFFF;
PARTLINE(银行收益 <= REF(【洗钱】目的,1),银行收益),LINETHICK2,colorFF00;
{量能饱和度}
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));
饱和度:=IF(SAT>1,1,SAT)*100,COLORYELLOW;
SAT1:=REF(饱和度,BARSLAST(BARPOS=SYSPARAM(1)));
DRAWTEXT(SAT1 AND BARPOS=SYSPARAM(1),SYSPARAM(4),'量能饱和度:
DRAWNUMBER(SAT1 AND BARPOS=SYSPARAM(1),SYSPARAM(4),SAT1,0),ALIGN2,COLORFFEEBB;