同花顺YG趋势系统公式
-
相关简介:同花顺YG趋势系统公式 红色表示上升趋势,可重仓持有;绿色表示下跌趋势,宜空仓观望;灰色表示上升趋势可能发生反转,宜减轻仓位以防范风险;粉色表示下跌趋势可能发生反转,宜轻仓试探把握机会; 资金流出:=-ZJLC[-1]; 资金流入:=ZJLR[-1]; r:=资金流出+资金流入; avgprice:=(2*C+H+L)/4; yg1:=IF(avgpriceREF(avgprice,1) AND VOLREF(VOL,1) AND r0,3,0);// yg2:=IF(avgpriceREF(a
-
文章来源:股海网作者:股海网发布时间:2015-03-02浏览次数:
同花顺YG趋势系统公式
红色表示上升趋势,可重仓持有;绿色表示下跌趋势,宜空仓观望;灰色表示上升趋势可能发生反转,宜减轻仓位以防范风险;粉色表示下跌趋势可能发生反转,宜轻仓试探把握机会;
资金流出:=-ZJLC[-1];
资金流入:=ZJLR[-1];
r:=资金流出+资金流入;
avgprice:=(2*C+H+L)/4;
yg1:=IF(avgprice>REF(avgprice,1) AND VOL>REF(VOL,1) AND r>0,3,0);//
yg2:=IF(avgprice>REF(avgprice,1) AND VOL<REF(VOL,1) AND r>0,2,0);
yg3:=IF(avgprice>REF(avgprice,1) AND VOL<REF(VOL,1) AND r<0,1,0);
yg4:=IF(avgprice<REF(avgprice,1) AND VOL<REF(VOL,1) AND r>0,-1,0);
yg5:=IF(avgprice<REF(avgprice,1) AND VOL<REF(VOL,1) AND r<0,-2,0);
yg6:=IF(avgprice<REF(avgprice,1) AND VOL>REF(VOL,1) AND r<0,-3,0);
yg:=yg1+yg2+yg3+yg4+yg5+yg6;
zhpf:=SMA(0.5*SMA(yg,n1,1)+0.31*SMA(yg,n2,1)+0.19*SMA(yg,n3,1),M,1);
//yg均线
m1=0.5;
m2=0.31;
m3=0.19;
pri:=(2*C+H+L)/4;
pri1:=SMA(pri,n4,1);
pri2:=SMA(pri,n5,1);
pri3:=SMA(pri,n6,1);
avgp:=m1*pri1+m2*pri2+m3*pri3;
STICKLINE(zhpf>0 AND C>avgp,0,zhpf,8),color0000ff;//上升趋势
STICKLINE(zhpf<0 AND C<avgp,0,zhpf,8),color00ff00;//下跌趋势
STICKLINE(zhpf<0 AND C>avgp,0,zhpf,8),colorlired;//下跌趋势反转
STICKLINE(zhpf>0 AND C<avgp,0,zhpf,8),colorgray;//上升趋势反转
STICKLINE(zhpf>0 AND C>avgp AND zhpf<REF(zhpf,1) AND avgp<REF(avgp,1),0,zhpf,8),colorgray;//上升趋势反转2
STICKLINE(zhpf<0 AND C<avgp AND zhpf>REF(zhpf,1) AND avgp>REF(avgp,1),0,zhpf,8),colorlired;//下跌趋势反转2