以下是通达信资金相交公式源码贴图(无源码的请下载附件导入)
通达信指标 资金相交
CN601:=HHV(V,5);{5日最高量}
CN602:=O>C;
CN702:=C>O;
CN703:=C=O;
CN704:=((SUM(V,5)/CN601));
CN705:=IF(CN704>0.3,1,0);{大资金}
CN706:=IF(CN602 AND CN705,V,0);{大资金流出}
CN707:=IF(CN702 AND CN705,V,0);{大资金流入}
CN708:=IF(CN703 AND CN705,V,0);{不明流向大资金}
累积资金流出:SUM(CN706,9),COLORCYAN;
累积资金流入:SUM(CN707,9),COLORRED;
不明流向大资金:SUM(CN708,9),COLORWHITE;
CN709:=IF((CN703 OR CN602 OR CN702) AND CN705,V,0);{大资金累积}
累积大资金总和:SUM(CN709,9),COLORBLUE;
73588727.png
|