副图公式源码支持 手机/电脑
N:=5; N1:=21;
CHP1:=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;
CHP2:=8,COLORGREEN,LINETHICK0;
小心买: IF(CROSS(CHP1,CHP2),60,0),LINETHICK2,COLORLIRED;
DRAWTEXT(小心买,85,'小低买'),COLORYELLOW,COLORLIRED;
有庄:= IF(CHP1<=8,50,0),COLORCYAN,LINETHICK2;
低买线: 20,LINETHICK2,COLORLIMAGENTA;
CHP1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
CHP2A:=SMA(CHP1A,9,1)+100;
CHP3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
CHP4A:=SMA(CHP3A,3,1);
CHP5A:=SMA(CHP4A,3,1)+100;
CHP6A:=CHP5A-CHP2A;
买:=IF(CHP6A>N1,CHP6A-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;
CHP1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
CHP2A:=SMA(CHP1A,9,1)+100;
CHP3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
CHP4A:=SMA(CHP3A,3,1);
CHP5A:=SMA(CHP4A,3,1)+100;
CHP6A:=CHP5A-CHP2A;
买:=IF(CHP6A>N1,CHP6A-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;
CHP1:=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;
CHP2:=8,COLORGREEN,LINETHICK0;
CHP1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
CHP2A:=SMA(CHP1A,9,1)+100;
CHP3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
CHP4A:=SMA(CHP3A,3,1);
CHP5A:=SMA(CHP4A,3,1)+100;
CHP6A:=CHP5A-CHP2A;
小心买:CROSS(CHP1,CHP2),LINETHICK2,COLORLIRED;
|