副图公式源码支持: 手机/电脑
RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);
J1:=IF(CLOSE>QJ,VOL,0);
J2:=IF(CLOSE<QJ,VOL,0);
GUP44:=SMA(RV,3,1);
GUP55:=SMA(GUP44,3,1);
DRAWICON(CROSS(GUP44,GUP55) AND GUP55<30,2,1);
DRAWICON(CROSS(GUP55,GUP44) AND GUP55>30,97,2);
DRAWBAND(GUP55,RGB(0,22,224),GUP44,RGB(255,50,50));
GUK:EMA(SMA(RG,3,1),2),COLORFFFFFF;
GUD:SMA(GUK,3,1),COLOR00FFFF;
DRAWTEXT(CROSS(GUP44,GUP55) AND CROSS(GUK,GUD),10,'共振点'),COLOR00FFFF;
共振:=(CROSS(GUP44,GUP55) AND CROSS(GUK,GUD));
STICKLINE(共振>0,0,100,2,0),COLOR008888;
STICKLINE(共振>0,0,100,1.5,0),COLOR00AAAA;
STICKLINE(共振>0,0,100,0.8,0),COLOR00DDDD;
STICKLINE(共振>0,0,100,0.3,0),COLOR00FFFF;
GUP1:=1;
GUP2:=((((2*CLOSE)+HIGH)+LOW) / 4);
低位金叉进:20,COLORFF00FF,LINETHICK2;
高位死叉出:90,COLORBLUE,LINETHICK2;
GUP4:=LLV(LOW,5);
GUP5:=HHV(HIGH,4);
C1:=(EMA((((GUP2-GUP4)/(GUP5-GUP4))*100),4)*GUP1),COLORFF00FF,LINETHICK2;
C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*GUP1),COLORFFFFFF,LINETHICK2;
条件:=CROSS(C1,C2) AND C1<40;
条件0:=CROSS(C2,C1) AND C1>90;
条件1:=CROSS(C1,C2);
条件2:=CROSS(C2,C1);
条件3:=CROSS(C1,C2) AND REF(C1,1)<20;
条件4:=CROSS(C2,C1) AND REF(C1,1)>80;
DRAWTEXT(条件,20,'买点'),COLORRED;
STICKLINE(条件,0,20,2,0),COLORRED;
DRAWTEXT(CROSS(C1,75),70,'危险'),COLORGREEN;
DRAWTEXT(条件3,65,'安全'),COLORRED;
DRAWTEXT(条件4,85,'逃顶'),COLORRED;
STICKLINE(条件4,100,80,2,0),COLORGREEN;
GUP200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
GUP300:=SMA(SMA(GUP200,3,1),3,1)/28.57;
GUP400:=EMA(GUP300,5);
操盘:=3*GUP300-2*GUP400;
A1:=CROSS(操盘,GUP300) AND GUP300<2.1 AND C>O;
STICKLINE(A1,30,0,4,0),COLOR770077;
STICKLINE(A1,30,0,3,0),COLOR990099;
STICKLINE(A1,30,0,2,0),COLORBB00BB;
STICKLINE(A1,30,0,1,0),COLORDD00DD;
STICKLINE(A1,30,0,0.3,0),COLORFF00FF;
DRAWTEXT(A1,36,'发财'),COLORRED;
选股公式源码:
{选股公式一:发财}
GUP200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
GUP300:=SMA(SMA(GUP200,3,1),3,1)/28.57;
GUP400:=EMA(GUP300,5);
操盘:=3*GUP300-2*GUP400;
A1:=CROSS(操盘,GUP300) AND GUP300<2.1 AND C>O;
发财:A1;
{选股公式二:买点}
GUP1:=1;
GUP2:=((((2*CLOSE)+HIGH)+LOW) / 4);
GUP4:=LLV(LOW,5);
GUP5:=HHV(HIGH,4);
C1:=(EMA((((GUP2-GUP4)/(GUP5-GUP4))*100),4)*GUP1),COLORFF00FF,LINETHICK2;
C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*GUP1),COLORFFFFFF,LINETHICK2;
条件:=CROSS(C1,C2) AND C1<40;
买点:条件;
{选股公式三:共振点}
RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
GUP44:=SMA(RV,3,1);
GUP55:=SMA(GUP44,3,1);
GUK:=EMA(SMA(RG,3,1),2),COLORFFFFFF;
GUD:=SMA(GUK,3,1),COLOR00FFFF;
共振点:CROSS(GUP44,GUP55) AND CROSS(GUK,GUD);
{选股公式四:红箭头图标}
RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
GUP44:=SMA(RV,3,1);
GUP55:=SMA(GUP44,3,1);
红箭头图标:CROSS(GUP44,GUP55) AND GUP55<30; |