把《黑马上山》副图中,当A线上穿B线作一预警并显示向上箭头符号
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
选股票看什么指标最好 >股票指标网
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
编写要求:
解答:
网友求助:
请老师把下面的《黑马上山》公式改为选股公式:当A线上穿B线时.另外改一个当A线上穿B线时在线上面显示红色箭头(当副图用),谢谢.
公式:
N:=38;N1:=5;N2:=13;
VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
A: SMA(VAR1,7,1),LINETHICK2;
VAR2:=SMA(A,5,1);
B: IF(CROSS(A,VAR2) AND CROSS(MA(C,N1),MA(C,N2) AND A>50) ,VAR2*2,VAR2),COLORYELLOW;
VAR4:= EMA(CLOSE,8);
VAR5:= EMA(CLOSE,20);
STICKLINE(A>VAR2,A,B,0,0), , COLORF00FF0;
STICKLINE(A<VAR2,A,VAR2,0,0), ,COLOR00FF00 ;
解答如下:
N:=38;N1:=5;N2:=13;
VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
A: SMA(VAR1,7,1),LINETHICK2;
VAR2:=SMA(A,5,1);
B: IF(CROSS(A,VAR2) AND CROSS(MA(C,N1),MA(C,N2) AND A>50) ,VAR2*2,VAR2),COLORYELLOW;
VAR4:= EMA(CLOSE,8);
VAR5:= EMA(CLOSE,20);
STICKLINE(A>VAR2,A,B,0,0), , COLORF00FF0;
STICKLINE(A<VAR2,A,VAR2,0,0), ,COLOR00FF00 ;
DRAWICON(CROSS(A,VAR2),A,1);
DRAWICON(CROSS(VAR2,A),A,2);
===================
{预警}
VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
A:=SMA(VAR1,7,1);
VAR2:=SMA(A,5,1);
CROSS(A,VAR2);
VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
A: SMA(VAR1,7,1),LINETHICK2;
VAR2:=SMA(A,5,1);
B: IF(CROSS(A,VAR2) AND CROSS(MA(C,N1),MA(C,N2) AND A>50) ,VAR2*2,VAR2),COLORYELLOW;
VAR4:= EMA(CLOSE,8);
VAR5:= EMA(CLOSE,20);
STICKLINE(A>VAR2,A,B,0,0), , COLORF00FF0;
STICKLINE(A<VAR2,A,VAR2,0,0), ,COLOR00FF00 ;
DRAWICON(CROSS(A,VAR2),A,1);
DRAWICON(CROSS(VAR2,A),A,2);
===================
{预警}
VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
A:=SMA(VAR1,7,1);
VAR2:=SMA(A,5,1);
CROSS(A,VAR2);
选股票看什么指标最好 >股票指标网
精彩评论