
多空博弈金叉共振之两军对垒主升浪副图指标公式:
ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
XY:=SHCM/(ZLCM+SHCM);
XX:=ZLCM/(ZLCM+SHCM);
S4:=SUMBARS(VOL,XY*CAPITAL*3)*CAPITAL/200,COLORBLUE;
Z4:=SUMBARS(VOL,XX*CAPITAL*3)*CAPITAL/200,COLORRED;
XG:FILTER(CROSS(Z4,S4),60);
DRAWTEXT_FIX(1,0.60,0.75,0,'账户开户:WYKH169 '),COLORYELLOW;
{ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
XY:=SHCM/(ZLCM+SHCM);
XX:=ZLCM/(ZLCM+SHCM);
S4:=SUMBARS(VOL,XY*CAPITAL*3)*CAPITAL/200,COLORBLUE;
Z4:=SUMBARS(VOL,XX*CAPITAL*3)*CAPITAL/200,COLORRED;
XG:FILTER(CROSS(Z4,S4),60);
ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
XY:=SHCM/(ZLCM+SHCM);
XX:=ZLCM/(ZLCM+SHCM);
S4:=SUMBARS(VOL,XY*CAPITAL*3)*CAPITAL/200,COLORBLUE;
Z4:=SUMBARS(VOL,XX*CAPITAL*3)*CAPITAL/200,COLORRED;
XG:FILTER(CROSS(Z4,S4),60);};
多空博弈金叉共振之两军对垒主升浪副图指标公式逐行解释:
ZLCM赋值:以收盘价计算的获利盘比例*70的3日指数移动平均
SHCM赋值:(以收盘价*1.1计算的获利盘比例-以收盘价*0.9计算的获利盘比例)*80的3日指数移动平均
XY赋值:SHCM/(ZLCM+SHCM)
XX赋值:ZLCM/(ZLCM+SHCM)
S4赋值:成交量(手)累加至XY*当前流通股本(手)*3的天数*当前流通股本(手)/200,画蓝色
Z4赋值:成交量(手)累加至XX*当前流通股本(手)*3的天数*当前流通股本(手)/200,画红色
输出XG:Z4上穿S4的60日过滤
当满足条件1时,在横轴0.60纵轴0.75位置书写文字,画黄色