副图公式源码支持 手机/电脑
GUP1:=LLV(LOW,10);
GUP2:=HHV(HIGH,25);
GUP3:=100*(C-LLV(L,34))/(HHV(C,34)-LLV(L,34));
GUA1:=C=HHV(C,20);
GUA2:=BARSLAST(GUA1);
GUA3:=IF(GUA2>0,REF(C,GUA2),REF(C,GUA2));
GUA4:=CROSS(C,REF(GUA3,1));
GUB1:=100*(C-LLV(L,34))/(HHV(C,34)-LLV(L,34));
GUB2:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
GUB3:=LLV(GUB2,3);
GUA:EMA((CLOSE-GUP1)/(GUP2-GUP1)*4,4)*30,LINETHICK1,COLORRED;
GUB:MA(GUB2,12),COLORGREEN,LINETHICK1;
STICKLINE(GUB3<GUB,GUB3,GUB,6,0),COLORFFDE00;
STICKLINE(GUB2>0,GUB3,GUB2,6,0),COLORRED;
STICKLINE(GUB3>GUB,GUB,GUB3,6,0),COLOR38B0DE;
STICKLINE(GUB3=GUB2 AND GUB2>GUB,GUB,GUB3,6,0),COLORFF00FF;
STICKLINE(REF(GUB1,1)<1 AND GUB1>1,0,15,6,0),COLORWHITE;
STICKLINE(GUA4 AND COUNT(GUA4,5)=1,85,100,6,0),COLORYELLOW;
DRAWTEXT(CROSS(GUA,GUB),GUA,'抄'),COLORYELLOW;
DRAWTEXT(CROSS(GUB,GUA),GUA,'逃'),COLORGREEN;
选股公式源码
{选股公式:抄}
GUP1:=LLV(LOW,10);
GUP2:=HHV(HIGH,25);
GUP3:=100*(C-LLV(L,34))/(HHV(C,34)-LLV(L,34));
GUB1:=100*(C-LLV(L,34))/(HHV(C,34)-LLV(L,34));
GUB2:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
GUA:=EMA((CLOSE-GUP1)/(GUP2-GUP1)*4,4)*30,LINETHICK1,COLORRED;
GUB:=MA(GUB2,12),COLORGREEN,LINETHICK1;
抄:CROSS(GUA,GUB);
{卖出公式:逃}
GUP1:=LLV(LOW,10);
GUP2:=HHV(HIGH,25);
GUP3:=100*(C-LLV(L,34))/(HHV(C,34)-LLV(L,34));
GUB1:=100*(C-LLV(L,34))/(HHV(C,34)-LLV(L,34));
GUB2:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
GUA:=EMA((CLOSE-GUP1)/(GUP2-GUP1)*4,4)*30,LINETHICK1,COLORRED;
GUB:=MA(GUB2,12),COLORGREEN,LINETHICK1;
逃:CROSS(GUB,GUA);
|