副图公式源码支持 手机/电脑
GUP1:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
GUP2:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
GUP3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));
STICKLINE((GUP2<MA(GUP3,6)),CLOSE,OPEN,5,1),COLORGREEN;
STICKLINE((GUP2<MA(GUP3,6)),LOW,(MIN(OPEN,CLOSE)*1.001),0.6,0),COLORGREEN;
STICKLINE((GUP2<MA(GUP3,6)),MAX(OPEN,CLOSE),HIGH,0.6,0),COLORGREEN;
STICKLINE((GUP2>MA(GUP3,6)),OPEN,CLOSE,7,1),COLOR4440FF;
STICKLINE((GUP2>MA(GUP3,6)),HIGH,MAX(CLOSE,OPEN),0.6,0),COLOR4440FF;
STICKLINE((GUP2>MA(GUP3,6)),LOW,(MIN(CLOSE,OPEN)*1.001),0.8,0),COLOR4440FF;
STICKLINE(((OPEN>CLOSE) AND (GUP2>MA(GUP3,6))),(OPEN*0.998),(CLOSE*1.0025),4.5,0),COLORGREEN;
STICKLINE(((OPEN<CLOSE) AND (GUP2<MA(GUP3,6))),(CLOSE*0.998),(OPEN*1.0025),4.5,0),COLOR4440FF;
STICKLINE(((OPEN>CLOSE) AND (GUP2<MA(GUP3,6))),CLOSE,OPEN,7,0),COLORGREEN;
DRAWTEXT(CROSS(GUP2,MA(GUP3,6)),(LOW*0.984),'买' ),COLORRED;
DRAWTEXT(CROSS(MA(GUP3,6),GUP1),(HIGH*1.035),'卖' ),COLORGREEN;
M1:MA(CLOSE,13),COLORFFFF00;
M4MA(CLOSE,89)),COLOR4440FF;
选股公式源码
{选股公式:买}
GUP2:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
GUP3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));
买:CROSS(GUP2,MA(GUP3,6));
{卖出公式:卖}
GUP1:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
GUP3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));
卖:CROSS(MA(GUP3,6),GUP1);
|