副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=IF(G1>=REF(G1,1),G4-G3+G1-G2+G1-REF(G1,1),G4-G3+G1-G2);
GUP2:=IF(G1<=REF(G1,1),G3-G2+G4-G1+REF(G1,1)-G1,G3-G2+G4-G1);
GUP3:=VOL*GUP1/(GUP1+GUP2);
GUP4:=VOL-GUP3;
买入量:=SUM(GUP3,1);
卖出量:=SUM(GUP4,1);
DDX1买入量-卖出量)*VOL/CAPITAL*1,COLORSTICK,LINETHICK2;
STICKLINE(DDX1>0,0,DDX1,3,0),COLOR000088;
STICKLINE(DDX1>0,0,DDX1,2.5,0),COLOR0000AA;
STICKLINE(DDX1>0,0,DDX1,1.5,0),COLOR0000CC;
STICKLINE(DDX1>0,0,DDX1,1,0),COLOR0000EE;
STICKLINE(DDX1<0,0,DDX1,3,0),COLOR008800;
STICKLINE(DDX1<0,0,DDX1,2.5,0),COLOR00AA00;
STICKLINE(DDX1<0,0,DDX1,1.5,0),COLOR00CC00;
STICKLINE(DDX1<0,0,DDX1,1,0),COLOR00EE00;
DDX11:SMA(DDX1,3,1),COLORFFFFFF;
DDX12:SMA(DDX11,3,1),COLOR00FFFF;
DDX13:EMA(DDX12,5),COLORFF00FF;
机会DX1>0 AND MA(V,5)>MA(MA(V,5),5) AND CROSS(DDX11,DDX12),LINETHICK,COLORRED;
DRAWTEXT(机会,DDX1*1.56,'↑'),LINETHICK9,COLORRED;
IF(DDX12>REF(DDX12,1),DDX12,DRAWNULL),COLORYELLOW,LINETHICK3;
选股公式源码
{选股公式:机会}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=IF(G1>=REF(G1,1),G4-G3+G1-G2+G1-REF(G1,1),G4-G3+G1-G2);
GUP2:=IF(G1<=REF(G1,1),G3-G2+G4-G1+REF(G1,1)-G1,G3-G2+G4-G1);
GUP3:=VOL*GUP1/(GUP1+GUP2);
GUP4:=VOL-GUP3;
买入量:=SUM(GUP3,1);
卖出量:=SUM(GUP4,1);
DDX1:=(买入量-卖出量)*VOL/CAPITAL*1,LINETHICK2;
DDX11:=SMA(DDX1,3,1),COLORFFFFFF;
DDX12:=SMA(DDX11,3,1),COLOR00FFFF;
机会DX1>0 AND MA(V,5)>MA(MA(V,5),5) AND CROSS(DDX11,DDX12),COLORRED;
|