副图公式源码支持 手机/电脑
RSV:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
STICKLINE((K>=D),D,REF(D,1),4,0),COLOR0000FF;
STICKLINE((K<D),D,REF(D,1),4,0),COLORFFF000;
强弱线:50,COLOR00FF00,POINTDOT;
GUP1:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);
GUP2:=((CLOSE-LLV(LOW,(5)*(9)))/(HHV(HIGH,(5)*(9))-LLV(LOW,(5)*(9))))*(100);
GUP3:=((CLOSE-LLV(LOW,(20)*(9)))/(HHV(HIGH,(20)*(9))-LLV(LOW,(20)*(9))))*(100);
K1:=SMA(GUP1,3,1);
K2:=SMA(GUP2,3+1,1);
K3:=SMA(GUP3,3+2,1);
D1:=SMA(K1,3,1);
D2:=SMA(K2,3+1,1);
D3:=SMA(K3,3+2,1);
DRAWTEXT(CROSS(K1,D1),REF(D,1),'▲'),COLORGRAY;
DRAWTEXT(CROSS(K2,D2),REF(D,1),'◆'),COLORFF00FF;
DRAWTEXT(CROSS(K3,D3),REF(D,1),'★'),COLORLIRED;
▲短线金叉:IF(CROSS(K1,D1),1,0),COLORGRAY;
◆中线金叉:IF(CROSS(K2,D2),1,0),COLORFFAAFF;
★长线金叉:IF(CROSS(K3,D3),1,0),COLORLIRED;
选股公式源码
{选股公式一:短线金叉}
GUP1:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);
GUP2:=((CLOSE-LLV(LOW,(5)*(9)))/(HHV(HIGH,(5)*(9))-LLV(LOW,(5)*(9))))*(100);
GUP3:=((CLOSE-LLV(LOW,(20)*(9)))/(HHV(HIGH,(20)*(9))-LLV(LOW,(20)*(9))))*(100);
K1:=SMA(GUP1,3,1);
K2:=SMA(GUP2,3+1,1);
K3:=SMA(GUP3,3+2,1);
D1:=SMA(K1,3,1);
D2:=SMA(K2,3+1,1);
D3:=SMA(K3,3+2,1);
▲短线金叉:CROSS(K1,D1);
{选股公式二:中线金叉}
GUP1:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);
GUP2:=((CLOSE-LLV(LOW,(5)*(9)))/(HHV(HIGH,(5)*(9))-LLV(LOW,(5)*(9))))*(100);
GUP3:=((CLOSE-LLV(LOW,(20)*(9)))/(HHV(HIGH,(20)*(9))-LLV(LOW,(20)*(9))))*(100);
K1:=SMA(GUP1,3,1);
K2:=SMA(GUP2,3+1,1);
K3:=SMA(GUP3,3+2,1);
D1:=SMA(K1,3,1);
D2:=SMA(K2,3+1,1);
D3:=SMA(K3,3+2,1);
▲中线金叉:CROSS(K2,D2);
{选股公式三:长线金叉}
GUP1:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);
GUP2:=((CLOSE-LLV(LOW,(5)*(9)))/(HHV(HIGH,(5)*(9))-LLV(LOW,(5)*(9))))*(100);
GUP3:=((CLOSE-LLV(LOW,(20)*(9)))/(HHV(HIGH,(20)*(9))-LLV(LOW,(20)*(9))))*(100);
K1:=SMA(GUP1,3,1);
K2:=SMA(GUP2,3+1,1);
K3:=SMA(GUP3,3+2,1);
D1:=SMA(K1,3,1);
D2:=SMA(K2,3+1,1);
D3:=SMA(K3,3+2,1);
▲长线金叉:CROSS(K3,D3);
|