副图公式源码支持: 手机/电脑
N1:=21;
N2:=42;
WR1:100-100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1)),COLORYELLOW;
WR2:100-100*(HHV(HIGH,N2)-CLOSE)/(HHV(HIGH,N2)-LLV(LOW,N2)),LINETHICK2,COLORRED;
上线:80.00,COLORGREEN,LINETHICK1;
中线:50.00,COLORC0C0C0,LINETHICK1;
下线:20.00,COLORRED,LINETHICK1;
DRAWICON(CROSS(WR2,20),20,13);
DRAWICON(CROSS(WR2,50),50,13);
DRAWICON(CROSS(80,WR2) OR CROSS(80,WR1),80,2);
DRAWTEXT(CROSS(WR2,20),20,'WR买1'),COLORRED;
DRAWTEXT(CROSS(WR2,50),50,'WR买2'),COLORRED;
DRAWTEXT(CROSS(80,WR2) OR CROSS(80,WR1),80,'卖出'),COLORGREEN;
选股公式源码
{选股公式一:WR买1}
N1:=21;
N2:=42;
WR1:=100-100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1)),COLORYELLOW;
WR2:=100-100*(HHV(HIGH,N2)-CLOSE)/(HHV(HIGH,N2)-LLV(LOW,N2)),LINETHICK2,COLORRED;
上线:=80.00,COLORGREEN,LINETHICK1;
中线:=50.00,COLORC0C0C0,LINETHICK1;
下线:=20.00,COLORRED,LINETHICK1;
{DRAWICON(CROSS(WR2,20),20,13);}
WR买1:CROSS(WR2,20);
{选股公式二:笑脸图标}
N1:=21;
N2:=42;
WR1:=100-100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1)),COLORYELLOW;
WR2:=100-100*(HHV(HIGH,N2)-CLOSE)/(HHV(HIGH,N2)-LLV(LOW,N2)),LINETHICK2,COLORRED;
上线:=80.00,COLORGREEN,LINETHICK1;
中线:=50.00,COLORC0C0C0,LINETHICK1;
下线:=20.00,COLORRED,LINETHICK1;
{DRAWICON(CROSS(WR2,50),50,13);}
WR买2:CROSS(WR2,50); |