TAG:副图

 网友求助:

请老师帮忙把(测底)和(潜伏)两个副图指标和并为一
另请老师看看第三个波段副图有没有可能也和并进去
先谢谢了!!!!
潜伏副图
N:=30;
ddxm:=(bigorder(1)-bigorder(2))*sum(vol,0)/capital*100;
ddx:(bigorder(1)-bigorder(2))*vol/capital*100;
ddx0:=ddxm-ref(ddxm,1);
ddl:(count(ddx0>0,0))/COUNT(c,0)*100,precis2;
ddx3:(ddxm-ref(ddxm,n))*100;
ddlm:(count(ddx0>0,n))/COUNT(C,n)*100,precis2;
ddmn:ddlm*ddx3/100;
ddm:ddl*ddx/100;
阶段涨幅:(c/ref(c,n)-1)*100,precis2;

测底副图
Var1:=(EMA(CLOSE,26)-EMA(CLOSE,52))/MA(CLOSE,120);
Var2:=EMA(Var1,4);
Var3:=1;
预测: Var3*Var2>REF(Var2,1);

波段副图
VAR1:=HHV(HIGH,25);
VAR2:=LLV(LOW,25);
阻力线:EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,20),COLORF0F000,LINETHICK2;
突破线:= EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,5);
操作线:突破线,COLORRED, LINETHICK2;

 

 

解答如下:

N:=30;
ddxm:=(bigorder(1)-bigorder(2))*sum(vol,0)/capital*100;
ddx:(bigorder(1)-bigorder(2))*vol/capital*100;
ddx0:=ddxm-ref(ddxm,1);
ddl:(count(ddx0>0,0))/COUNT(c,0)*100,precis2;
ddx3:(ddxm-ref(ddxm,n))*100;
ddlm:(count(ddx0>0,n))/COUNT(C,n)*100,precis2;
ddmn:ddlm*ddx3/100;
ddm:ddl*ddx/100;
阶段涨幅:(c/ref(c,n)-1)*100,precis2;

{测底副图}
Var1:=(EMA(CLOSE,26)-EMA(CLOSE,52))/MA(CLOSE,120);
Var2:=EMA(Var1,4);
Var3:=1;
预测: Var3*Var2>REF(Var2,1);

{波段副图}
VAR11:=HHV(HIGH,25);
VAR21:=LLV(LOW,25);
阻力线:EMA((CLOSE-VAR21)/(VAR11-VAR21)*100,20),COLORF0F000,LINETHICK2;
突破线:= EMA((CLOSE-VAR21)/(VAR11-VAR21)*100,5);
操作线:突破线,COLORRED, LINETHICK2;