通达信多赢趋势指标公式
获利盘:=WINNER(C)*100;
近邻筹码:=WINNER(C*POW(1.1,0.75))*100-WINNER(C*POW(1.1,-0.75))*100;
获利纵横:获利盘-近邻筹码,COLORFFFFFF,LINETHICK1;
AA:=IF(获利纵横>=30,获利纵横,30);
QSSJ:=BARSLAST(COUNT(获利纵横>=30,2)=2);
备钱阻击:IF(QSSJ<=3 AND COUNT(获利纵横<REF(获利纵横,1),2)=2,-10,30),COLOR00FF00;
A0:=(L+H+C*2)/4;
A1:EMA(A0,14)COLORBLUE,LINETHICK2;
A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;
买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;
卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;
DRAWTEXT((REF(备钱阻击,1)=-10 AND 备钱阻击=30 AND REF(A1X,1)<=0 AND 买入持股),备钱阻击,'^买');
DRAWTEXT(REF(A1X<0 AND A2X<0,1) AND A1X>=0,买入持股,'*买'),COLORLIGRAY;
DRAWTEXT(CROSS(获利纵横,备钱阻击),获利纵横,'主升');
未来函数检测结果如下:
该公式包含未来函数:WINNER
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
获利盘赋值:C计算的获利盘比例*100
近邻筹码赋值:C*POW(1.1,0.75计算的获利盘比例)*100-WINNER(C*POW(1.1,-0.75))*100
输出
获利纵横:获利盘-近邻筹码,COLORFFFFFF, 线宽为1
如果获利纵横>=30返回获利纵横否则返回30
QSSJ赋值:上次统计2日满足获利纵横>=30的天数=2距今天数
输出
备钱阻击:IF(QSSJ<=3 AND COUNT(获利纵横<1日前的获利纵横,2)=2,-10,30),COLOR00FF00
A0赋值:(L+H+C*2)/4
输出
A1:A0的14日指数移动平均 画蓝色, 线宽为2
A2赋值:A0的25日指数移动平均 画淡蓝色, 线宽为2
A1X:=(A1-1日前的A1)/1日前的A1*100,NODRAW
A2X:=(A2-1日前的A2)/1日前的A2*100,NODRAW
如果A1X>=0返回A1否则返回DRAWNULL
如果A1X<0 AND A2X<0返回A1否则返回DRAWNULL
DRAWTEXT((1日前的备钱阻击=-10 AND 备钱阻击=30 AND 1日前的A1X<=0 AND 买入持股),备钱阻击,'^买')
DRAWTEXT(1日前的A1X<0 AND A2X<0 AND A1X>=0,买入持股,'*买'),COLORLIGRAY
DRAWTEXT(获利纵横上穿备钱阻击,获利纵横,'主升')