(同花顺的黄金柱和将军柱,出信号往前看第三个价K线就是黄金柱或将军柱,复制下方源码到附图指标内即可)
真阴线:=C<REF(C,1) AND C<=O;
假阳线:=C<REF(C,1) AND C>=O;
阴线:=真阴线>0 OR 假阳线>0;
阴线天数:=BARSLAST(阴线);
阴线实体最高价:=MAX(REF(C,阴线天数),REF(O,阴线天数));
阴线成交量:=REF(V,阴线天数);
阳胜条件:=阴线天数>0 AND C>=阴线实体最高价 AND V>=阴线成交量;
阳胜:=IF(阳胜条件>0 AND REF(阳胜条件,1)=0,1,0);
价三日不破底:=MA(C,3)>=REF(O,3) AND MA(C,3)<REF(C,3)
OR (C>=REF(O,3) AND REF(C,1)>=REF(O,3) AND REF(C,2)>=REF(O,3)
AND C<REF(C,3) AND REF(C,1)<REF(C,3) AND REF(C,2)<REF(C,3));
量三日不过头:=(V<REF(V,1) AND REF(V,1)<REF(V,2)) OR MA(V,3)<REF(V,3);
将军柱:IF(REF(阳胜,3)>0 AND 价三日不破底>0 AND 量三日不过头>0 ,10,0);
价三日不破顶:=MA(C,3)>=REF(C,3) OR (C>=REF(C,3) AND REF(C,1)>=REF(C,3) AND REF(C,2)>=REF(C,3));
黄金柱条件1:=C>=REF(C,1) AND REF(C,1)>=REF(C,2) AND REF(C,2)>=REF(C,3);
黄金柱:IF((REF(阳胜,3)>0 AND 黄金柱条件1>0) OR (REF(阳胜,3)>0 AND 价三日不破顶>0 AND 量三日不过头>0) ,10,0),coloryellow; |