将主力进出副图改在主图上显示
2020/4/22 19:09:16
公式编写说明:
请老师将主力进出{白色线上穿黄色线而且在紫线之上时}副图改在主图上显示“主力加入”副图源码: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)<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;即,选股输出信号在主图上显示
公式源码回答:
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;
投股票 网 www.tou18.c n
股市公式下载推荐