CN1:=HHV(V,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);
AD:=SUM(CN07,3);
DA:=SUM(CN06,3);
趋势线:=(AD-DA);
买入卖出线:=0;
红三角:crOSS(趋势线,买入卖出线);