操盘圣兽 同花顺副图指标源码
VAR1:=EMA(EMA(CLOSE,9),9);VR:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(VR<0,VR,0,3,1),COLORCCCCCC;A10:=CROSS(VR,0);没有行情:IF(VR<0,VR,0),COLORCCCCCC,LINETHICK0;行情出现:IF(A10,5,0),LINETHICK0,COLOR00AAAA;DRAWTEXT(A10,-5,'起'),coloryellow;STICKLINE(VR>REF(VR,1) AND VR>0,VR,0,3,1),COLOR0000AA;主升浪:IF(VR>REF(VR,1) AND VR>0,VR,0),COLOR0000DD,LINETHICK0;VAR2:=100*WINNER(CLOSE*0.95);STICKLINE(VAR2>50 AND COST(85)<CLOSE AND VR>0,VR,0,3,1),COLOREE00EE;牛市行情:IF(VAR2>50 AND COST(85)<CLOSE AND VR>0,VR,0),COLORFF00FF,LINETHICK0;STICKLINE(VR<REF(VR,1) AND VR>0,VR,0,3,1),COLOR00AA00;出货行情:IF(VR<REF(VR,1) AND VR>0,VR,0),COLOR00FF00,LINETHICK0;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:收盘价的9日指数移动平均,9)
VR赋值:(VAR1-1日前的VAR1)/1日前的VAR1*1000
当满足条件VR<0时,在VR和0之间画柱状线
A10赋值:VR上穿0
如果VR<0返回VR否则返回0
如果A10返回5否则返回0
当满足条件A10时,在-5和'起'位置书写文字
STICKLINE(VR>1日前的VR AND VR>0,VR,0,3,1),COLOR0000AA
输出主升浪:IF(VR>1日前的VR AND VR>0,VR,0),COLOR0000DD,LINETHICK0
VAR2赋值:100*收盘价*0.95计算的获利盘比例
STICKLINE(VAR2>50 AND 获利盘为85%的成本分布<收盘价 AND VR>0,VR,0,3,1),COLOREE00EE
输出牛市行情:IF(VAR2>50 AND 获利盘为85%的成本分布<收盘价 AND VR>0,VR,0),COLORFF00FF,LINETHICK0
STICKLINE(VR<1日前的VR AND VR>0,VR,0,3,1),COLOR00AA00
输出出货行情:IF(VR<1日前的VR AND VR>0,VR,0),COLOR00FF00,LINETHICK0