把ddi飞狐公式中三角形改成选股公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

解答:

 网友求助:

为什么在副图上不能显示三角形标志,能帮我解决并改成选股公式吗?
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=EMA(EMA(EMA(VAR1,4),4),4);
J2:partline(J>REF(J,1),J),colorred;
J1:partline(J<REF(J,1),J)color00ff00;
J0:=(VAR2-REF(VAR2,1))/REF(VAR2,1) AND J>REF(J,1) AND REF(J,1)<REF(J,2);
DRAWICON(J0,J,1);
AAAA1:=BARSLAST(REF(J0,1));
BBBB1:=REF(C,AAAA1+1)>C AND REF(D,AAAA1+1)<D AND J0;
DRAWTEXT(BBBB1,J-0.10,'▲'),COLORWHITE;

 
解答如下:
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=EMA(EMA(EMA(VAR1,4),4),4);
J: (VAR2-REF(VAR2,1))/REF(VAR2,1)*100, COLORSTICK;
D: MA(J,3) COLORYELLOW;
K: MA(J,1)COLORWHITE;
J2:partline(J>REF(J,1),J),colorred;
J1:partline(J<REF(J,1),J)color00ff00;
J0:j<-0.5 and J>REF(J,1) AND REF(J,1)<REF(J,2);
DRAWICON(J0,J,1);
AAAA1:=BARSLAST(REF(J0,1));
BBBB1:=REF(C,AAAA1+1)>C AND REF(D,AAAA1+1)<D AND J0;
DRAWTEXT(BBBB1,J-0.10,'▲'),COLORWHITE;

//============================================
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=EMA(EMA(EMA(VAR1,4),4),4);
J:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100;
j<-0.5 and J>REF(J,1) AND REF(J,1)<REF(J,2);
 

 


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