修正过滤上涨下降误信号
修正过滤上涨下降误信号可使上涨利润最大化和及时止损!!!
薛斯主图源码
{N 80 120 102
M 2 20 7}
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:AA*N/100;
通道2:AA*(200-N)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
通道3:(1+M/100)*DD;
通道4:(1-M/100)*DD;
XG:CROSS(通道2,通道4) {加一句,过滤上涨误信号!}AND 通道2>REF(通道2,3);
{XG:通道3>=REF(通道3,2) AND 通道4>=REF(通道4,2) AND D;}
DRAWTEXT(XG,HIGH+0.06,' ←介入'),COLORYELLOW;
DRAWICON(XG,HIGH+0.15,9);
Z:CROSS(通道3,通道1) {加一句,过滤下降误信号!}AND 通道2<REF(通道2,1);
DRAWTEXT(Z,HIGH+0.06,' ←卖出'),COLORWHITE;
DRAWICON(Z,HIGH+0.1,15);
========================================================
{薛斯战法选股}
通道2:=XS2.通道2;
通道4:=XS2.通道4;
XG:CROSS(通道2,通道4) {加一句,过滤上涨误信号!}}AND 通道2>REF(通道2,3);