出现持股指标
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

源码如下:Q_1:=C-REF(C,1);Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);Q_3:=CROSS(EMA(C,19),EMA(C,7));Q_4:=CROSS(EMA(C,7),EMA(C,19));Z1:=L=LLV(L,BARSLAST(Q_3)+1);Z2:=LLV(L,BARSLAST(Q_3)+1);Z3:=H=HHV(H,BARSLAST(Q_4)+1);Z4:=HHV(H,BARSLAST(Q_4)+1);Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0);Y1:=H=HHV(H,BARSLAST(Q_4)+1);Y2:=HHV(H,BARSLAST(Q_4)+1);Y3:=L=LLV(L,BARSLAST(Q_3)+1);Y4:=LLV(L,BARSLAST(Q_3)+1);Q_B:=DRAWLINE(Y1,Y2,Y3,Y4,0);X1:=LLV(Q_2,2)=LLV(Q_2,7) ;X2:=COUNT(Q_2<0,2);X3:=CROSS(Q_2,MA(Q_2,2));X4:=REF(Q_B,1)REF(Q_B,1);买进:=(X1 AND X2 AND X3) AND X4 AND X5;TJ:=IF(Q_B=1,80,20),STICK,COLORRED;持币:IF(Q_B

解答:

 

 
q_3:=cross(ema(c,19),ema(c,7));
q_4:=cross(ema(c,7),ema(c,19));
z1:=l=llv(l,barslast(q_3)+1);
z2:=llv(l,barslast(q_3)+1);
z3:=h=hhv(h,barslast(q_4)+1);
z4:=hhv(h,barslast(q_4)+1);
q_a:=drawline(z1,z2,z3,z4,0);
y1:=h=hhv(h,barslast(q_4)+1);
y2:=hhv(h,barslast(q_4)+1);
y3:=l=llv(l,barslast(q_3)+1);
y4:=llv(l,barslast(q_3)+1);
q_b:=drawline(y1,y2,y3,y4,0);
tj:=if(q_b<ref(q_b,1) and q_b=q_a,1,0);
持股:ref(tj,1)=0 and tj>=1;

选股票看什么指标最好 >股票指标网