副图公式源码支持 手机/电脑
N:=5; N1:=21;
GUP1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK1;
GUP2:=8,COLORGREEN,LINETHICK0;
小心买: IF(CROSS(GUP1,GUP2),60,0),LINETHICK2,COLORLIRED;
DRAWTEXT(小心买,85,'小低买'),COLORYELLOW,COLORLIRED;
有庄:= IF(GUP1<=8,50,0),COLORCYAN,LINETHICK2;
低买线: 20,LINETHICK2,COLORLIMAGENTA;
GUP1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
GUP2A:=SMA(GUP1A,9,1)+100;
GUP3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GUP4A:=SMA(GUP3A,3,1);
GUP5A:=SMA(GUP4A,3,1)+100;
GUP6A:=GUP5A-GUP2A;
买:=IF(GUP6A>N1,GUP6A-N1,0),COLORLIRED;
钻石柱:IF(CROSS(买,0.01),72,0),STICK,COLORMAGENTA,LINETHICK6;
DRAWICON(钻石柱>0,72,25);
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
操盘线:SMA(RSV,3,1),LINETHICK2,COLORRED;
散户线:SMA(操盘线,3,1),LINETHICK3,COLORYELLOW;
STICKLINE(REF(买,1)<买,买,REF(买,1),3,0),COLORLIMAGENTA;
STICKLINE(REF(买,1)>买,买,REF(买,1),3,0),COLORGREEN;
选股公式源码
{选股公式一:钻石柱}
N:=5; N1:=21;
GUP1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
GUP2A:=SMA(GUP1A,9,1)+100;
GUP3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GUP4A:=SMA(GUP3A,3,1);
GUP5A:=SMA(GUP4A,3,1)+100;
GUP6A:=GUP5A-GUP2A;
买:=IF(GUP6A>N1,GUP6A-N1,0),COLORLIRED;
{RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
操盘线:SMA(RSV,3,1),LINETHICK2,COLORRED;
散户线:SMA(操盘线,3,1),LINETHICK3,COLORYELLOW;
STICKLINE(REF(买,1)<买,买,REF(买,1),3,0),COLORLIMAGENTA;
STICKLINE(REF(买,1)>买,买,REF(买,1),3,0),COLORGREEN;}
{DRAWICON(钻石柱>0,72,25);}
钻石柱:CROSS(买,0.01),COLORMAGENTA,LINETHICK6;
{选股公式二:小心买}
N:=5; N1:=21;
GUP1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK1;
GUP2:=8,COLORGREEN,LINETHICK0;
GUP1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
GUP2A:=SMA(GUP1A,9,1)+100;
GUP3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GUP4A:=SMA(GUP3A,3,1);
GUP5A:=SMA(GUP4A,3,1)+100;
GUP6A:=GUP5A-GUP2A;
小心买:CROSS(GUP1,GUP2),LINETHICK2,COLORLIRED;
|