副图公式源码支持 手机/电脑
VOLUME:VOL,VOLSTICK;
GUP1:=VOL<REF(LLV(VOL,13),1);
STICKLINE(GUP1,0,V,2,0),COLOR1D7300;
DRAWBAND(20,RGB(65,20,28),10,RGB(65,80,68));
DRAWBAND(90,RGB(25,60,28),80,RGB(20,100,50));
GUP2:=SMA(((INDEXC-LLV(INDEXL,30))/(HHV(INDEXH,30)-LLV(INDEXL,30))*100),3,1),COLORGRAY;
G30:=SMA(((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100),3,1);
STICKLINE(G30>=50,50,G30,3,0),COLOR000080;
STICKLINE(G30>=50,50,G30,2,0),COLOR0000A6;
STICKLINE(G30>=50,50,G30,1,0),COLOR0000CE;
STICKLINE(G30>=50,50,G30,0,0),COLOR0000FF;
STICKLINE(G30<50,50,G30,3,0),COLOR800000;
STICKLINE(G30<50,50,G30,2,0),COLORB00000;
STICKLINE(G30<50,50,G30,1,0),COLORD50000;
STICKLINE(G30<50,50,G30,0,0),COLORFF0000;
大盘:GUP2,COLORYELLOW;
G250:=SMA(((CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100),3,1),COLORGREEN;
DRAWICON(CROSS(90,G30),G30,2);
DRAWICON(CROSS(G30,大盘) AND G30<50,G30,1);
DRAWICON(CROSS(G30,G250),20,38),COLORMAGENTA;
DRAWTEXT(CROSS(G30,G250),20,'反转'),COLORMAGENTA;
选股公式源码
{选股公式一:红箭头图标}
GUP2:=SMA(((INDEXC-LLV(INDEXL,30))/(HHV(INDEXH,30)-LLV(INDEXL,30))*100),3,1),COLORGRAY;
G30:=SMA(((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100),3,1);
大盘:=GUP2,COLORYELLOW;
G250:=SMA(((CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100),3,1),COLORGREEN;
红箭头图标:CROSS(G30,大盘) AND G30<50;
{选股公式二:反转}
GUP1:=VOL<REF(LLV(VOL,13),1);
GUP2:=SMA(((INDEXC-LLV(INDEXL,30))/(HHV(INDEXH,30)-LLV(INDEXL,30))*100),3,1),COLORGRAY;
G30:=SMA(((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100),3,1);
G250:=SMA(((CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100),3,1),COLORGREEN;
反转:CROSS(G30,G250); |