九毛八公式指标
公式模块:
请高手帮忙把两个通达信公式合并成一个公式
(用“踏雪无痕n”老师的方法合并后。两个公式的线条总是变得同原来图形不一样比例了,
总是一个变大,一个变小的,也有些两个大小变化都不太明显。
就问要怎么解决这个问题呢?)
两个公式中的零轴线需要重合。
公式1代码如下:图例在附件中
CN1:=HHV(V,5);{5日最高量}
CN2:=O>C;
CN02:=C>O;
CN03:=C=O;
CN04:=((SUM(V,5)/CN1));
CN05:=IF(CN04>0.3,1,0);{大资金}
CN06:=IF(CN2 AND CN05,V,0);{大资金流出}
CN07:=IF(CN02 AND CN05,V,0);{大资金流入}
CN08:=IF(CN03 AND CN05,V,0);{不明流向大资金}
累积资金流入:SUM(CN07,9),COLORFFFF66,LINETHICK1;
累积资金流出:SUM(CN06,9);
净流入:(累积资金流入-累积资金流出),COLOR0000FF;
不明流向大资金:SUM(CN08,9),COLORMAGENTA;
公式2代码如下:图例在下面
REFLINE:0;
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,5);
macd := 2*(DIFF-DEA);
X1:=EMA(DIFF,5)*5;
X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;
X3:IF(X2>0,X2,0),POINTDOT,COLORRED;
X4:IF(X2<0,X2,0),POINTDOT,COLORGREEN;
资金动能A:X2,COLORYELLOW,LINETHICK2;
资金动能B:X1,COLORFFFF00,LINETHICK2;
DRAWICON((crOSS(资金动能A,资金动能B) AND 资金动能B<-0.25),资金动能B,1);
DRAWICON((CROSS(资金动能B,资金动能A) AND 资金动能A>0.25),资金动能A,2);
REFLINE:=0;
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,5);
MacD
:=
2*(DIFF-DEA);
X1:=EMA(%&&&&&%,5)*5;
X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;
X3:=IF(X2>0,X2,0),POINTDOT,COLORRED;
X4:=IF(X2<0,X2,0),POINTDOT,COLORGREEN;
资金动能A:X2*1000,COLORYELLOW,LINETHICK2;
资金动能B:X1*1000,COLORFFFF00,LINETHICK2;
DRAWICON((CROSS(资金动能A,资金动能B)
AND 资金动能B<-0.25),资金动能B,1);
DRAWICON((CROSS(资金动能B,资金动能A) AND
资金动能A>0.25),资金动能A,2);
CN1:=HHV(V,5);{5日最高量}
CN2:=O>C;
CN02:=C>O;
CN03:=C=O;
CN04:=((SUM(V,5)/CN1));
CN05:=IF(CN04>0.3,1,0);{大资金}
CN06:=IF(CN2 AND
CN05,V,0);{大资金流出}
CN07:=IF(CN02 AND CN05,V,0);{大资金流入}
CN08:=IF(CN03 AND CN05,V,0);{不明流向大资金}
累积资金流入:SUM(CN07,9)/100,COLORFFFF66,LINETHICK1;
累积资金流出:SUM(CN06,9)/100;
净流入:(累积资金流入-累积资金流出),COLOR0000FF;
不明大资金:SUM(CN08,9)/100,COLORMAGENTA;