将主力进出副图改在主图上显示
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

请老师将主力进出{白色线上穿黄色线而且在紫线之上时}副图改在主图上显示“主力加入”副图源码:VAR1:=(CLOSE+LOW+HIGH)/3; VAR2:=SUM(((VAR1-REF(LOW,1))-(HIGH-VAR1))*VOL/100000/(HIGH-LOW),0); VAR3:=EMA(VAR2,1); JCS:VAR3; JCM:MA(VAR3,12); JCL:MA(VAR3,26);选股{白色线上穿黄色线而且在紫色线之上时}VAR1:=(CLOSE+LOW+HIGH)/3; VAR2:=SUM(((VAR1-REF(LOW,1))-(HIGH-VAR1))*VOL/100000/(HIGH-LOW),0); VAR3:=EMA(VAR2,1); JCS:=VAR3; JCM:=MA(VAR3,12); JCL:=MA(VAR3,26);A1:=REF(JCS,2)>REF(JCS,1) AND REF(JCS,1)JCM AND JCM>JCL;A3:=BETWEEN(JCS/JCM,1.01,1.001) AND NDAY(JCS,JCM,5);XG:A1 AND A2 AND A3;即,选股输出信号在主图上显示

解答:

 MA1:MA(CLOSE,5);

MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,60);
VAR1:=(CLOSE+LOW+HIGH)/3; 
VAR2:=SUM(((VAR1-REF(LOW,1))-(HIGH-VAR1))*VOL/100000/(HIGH-LOW),0); 
VAR3:=EMA(VAR2,1); 
JCS:=VAR3; 
JCM:=MA(VAR3,12); 
JCL:=MA(VAR3,26);
A1:=REF(JCS,2)>REF(JCS,1) AND REF(JCS,1)<JCS;
A2:=JCS>JCM AND JCM>JCL;
A3:=BETWEEN(JCS/JCM,1.01,1.001) AND NDAY(JCS,JCM,5);
XG:=A1 AND A2 AND A3,LINETHICK0;
STICKLINE(XG,C,O,3,0),COLOR00FFFF;
STICKLINE(XG,L,H,0,0),COLOR00FFFF;
DRAWTEXT(XG,O*0.98,'主力加入'),COLORFF00FF;

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