把源码(绿色柱)改写成选股公式
2020/1/13 18:50:36
公式编写说明:
F:=100*(C-REF(C,1))/REF(C,1); 今小昨:=IF(C<REF(O,1) AND F<0,1,0); S1:=今小昨; 今小前:IF(C<REF(O,2) AND F<0,1,0),LINETHICK0; S2:=今小前;YE:=(HIGH+LOW+CLOSE)/3;YE1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));YE2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-YE);YE3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);YE4:=IF(HIGH=LOW,1,YE-MIN(CLOSE,OPEN));YE5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);YE6:=SUM((YE1*YE5),1);{散户卖出}YE7:=SUM((YE2*YE5),1);{主力卖出}YE8:=SUM((YE3*YE5),1);{散户买入}YE9:=SUM((YE4*YE5),1);{主力买入}STICKLINE((YE6+YE7)>0 AND S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)),(YE6+YE7),0,0.1,0),COLORGREEN;这是一个含有未来函数的公式,用来做参考用的,本人是菜鸟捣鼓了半天也没把选股信号分离出来,请老师改把绿色柱作为选股公式,非常感谢!
公式源码示例:
F:=100*(C-REF(C,1))/REF(C,1);
今小昨:=IF(C<REF(O,1) AND F<0,1,0);
S1:=今小昨;
今小前:=IF(C<REF(O,2) AND F<0,1,0);
S2:=今小前;
YE:=(HIGH+LOW+CLOSE)/3;
YE1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
YE2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-YE);
YE5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
YE6:=SUM((YE1*YE5),1);{散户卖出}
YE7:=SUM((YE2*YE5),1);{主力卖出}
XG:(YE6+YE7)>0 AND S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1));
看股 吧公式 www.kangu ba.com
其它股票公式列表