Z_J1:=EMA(C,2)-EMA(C,150);
Z_J2:=EMA(Z_J1,100);
Z_J3:=2*(Z_J1-Z_J2);
Z_J4:=POW(Z_J3,3)*0.1+POW(Z_J3,1);
主线:=IF(Z_J3>0.1,Z_J4,0)*5;
G_J1:=EMA(C,2)-EMA(C,89);
G_J2:=EMA(G_J1,30);
G_J3:=2*(G_J1-G_J2)*9.8;
G_J4:=POW(G_J3,3)*0.1+POW(G_J3,2);
攻线:=IF(G_J3>0.015,G_J4,0)/28,COLORRED;
存金:=IF(攻线=0,-ABS(G_J4/28),0),LINETHICK1,COLORYELLOW;
XG:CROSS(攻线,主线);
九毛八公式解读
Z_J1赋值:收盘价的2日指数移动平均-收盘价的150日指数移动平均 Z_J2赋值:Z_J1的100日指数移动平均 Z_J3赋值:2*(Z_J1-Z_J2) Z_J4赋值:Z_J3的3乘幂*0.1+Z_J3的1乘幂 主线赋值:如果Z_J3>0.1,返回Z_J4,否则返回0*5 G_J1赋值:收盘价的2日指数移动平均-收盘价的89日指数移动平均 G_J2赋值:G_J1的30日指数移动平均 G_J3赋值:2*(G_J1-G_J2)*9.8 G_J4赋值:G_J3的3乘幂*0.1+G_J3的2乘幂 攻线赋值:如果G_J3>0.015,返回G_J4,否则返回0/28,画红色 存金赋值:如果攻线=0,返回-G_J4/28的绝对值,否则返回0,线宽为1,画黄色 输出XG:攻线上穿主线