CQHL春秋互撸捕捉主力运作轨迹通达信公式 副图 源码附图
VAR1:=(CLOSE*2+HIGH+LOW)/4;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR3:=EMA(VAR2,5);
中轴:0;
空方主力:(-2)*(VAR2-VAR3)*3.8,COLORGREEN;
多方主力:2*(VAR2-VAR3)*3.8,COLORRED;
VAR4:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR5:=EMA(VAR4,9);
VAR6:=(VAR4-VAR5)*2;
STICKLINE(VAR6>0 AND VAR6>REF(VAR6,1),0,空方主力,1.5,1),COLORLIRED;
STICKLINE(VAR6>0 AND VAR6<REF(VAR6,1),0,空方主力,1.5,0),COLORLIRED;
STICKLINE(VAR6<0 AND VAR6<REF(VAR6,1),0,空方主力,1.5,1),COLORLIGREEN;
STICKLINE(VAR6<0 AND VAR6>REF(VAR6,1),0,空方主力,1.5,0),COLORLIGREEN;
STICKLINE(VAR6>0 AND VAR6>REF(VAR6,1),0,-空方主力,1.5,1),COLORLIRED;
STICKLINE(VAR6>0 AND VAR6<REF(VAR6,1),0,-空方主力,1.5,0),COLORLIRED;
STICKLINE(VAR6<0 AND VAR6<REF(VAR6,1),0,-空方主力,1.5,1),COLORLIGREEN;
STICKLINE(VAR6<0 AND VAR6>REF(VAR6,1),0,-空方主力,1.5,0),COLORLIGREEN;
STICKLINE(VAR6>0 AND VAR6>REF(VAR6,1) AND REF(VAR6,2)>REF(VAR6,1),0,空方主力,1.2,0),COLORYELLOW;
STICKLINE(VAR6>0 AND VAR6>REF(VAR6,1) AND REF(VAR6,2)>REF(VAR6,1),0,-空方主力,1.2,0),COLORYELLOW;
STICKLINE(VAR6>0 AND VAR6/REF(VAR6,1)>=1.65,0,空方主力,0.7,0),COLORRED;
STICKLINE(VAR6>0 AND VAR6/REF(VAR6,1)>=1.65,0,-空方主力,0.7,0),COLORRED;
VAR7:=MACD.DIF#WEEK(6,13,5);
VAR8:=MACD.DEA#WEEK(6,13,5);
VAR9:=MACD.DIF#MONTH(6,13,5);
VAR10:=MACD.DEA#MONTH(6,13,5);
STICKLINE(CROSS(VAR7,VAR8),0.1,(-0.1),2,0),COLORWHITE;
未来函数检测结果如下:
该公式包含未来函数:#MONTH
该公式包含未来函数:#WEEK
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:(收盘价*2+最高价+最低价)/4
VAR2赋值:VAR1的13日指数移动平均-VAR1的34日指数移动平均
VAR3赋值:VAR2的5日指数移动平均
输出中轴:0
输出空方主力:(-2)*(VAR2-VAR3)*3.8,画绿色
输出多方主力:2*(VAR2-VAR3)*3.8,画红色
VAR4赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
VAR5赋值:VAR4的9日指数移动平均
VAR6赋值:(VAR4-VAR5)*2
STICKLINE(VAR6>0 AND VAR6>1日前的VAR6,0,空方主力,1.5,1),COLORLIRED
STICKLINE(VAR6>0 AND VAR6<1日前的VAR6,0,空方主力,1.5,0),COLORLIRED
STICKLINE(VAR6<0 AND VAR6<1日前的VAR6,0,空方主力,1.5,1),COLORLIGREEN
STICKLINE(VAR6<0 AND VAR6>1日前的VAR6,0,空方主力,1.5,0),COLORLIGREEN
STICKLINE(VAR6>0 AND VAR6>1日前的VAR6,0,-空方主力,1.5,1),COLORLIRED
STICKLINE(VAR6>0 AND VAR6<1日前的VAR6,0,-空方主力,1.5,0),COLORLIRED
STICKLINE(VAR6<0 AND VAR6<1日前的VAR6,0,-空方主力,1.5,1),COLORLIGREEN
STICKLINE(VAR6<0 AND VAR6>1日前的VAR6,0,-空方主力,1.5,0),COLORLIGREEN
STICKLINE(VAR6>0 AND VAR6>1日前的VAR6 AND 2日前的VAR6>1日前的VAR6,0,空方主力,1.2,0),画黄色
STICKLINE(VAR6>0 AND VAR6>1日前的VAR6 AND 2日前的VAR6>1日前的VAR6,0,-空方主力,1.2,0),画黄色
STICKLINE(VAR6>0 AND VAR6/1日前的VAR6>=1.65,0,空方主力,0.7,0),画红色
STICKLINE(VAR6>0 AND VAR6/1日前的VAR6>=1.65,0,-空方主力,0.7,0),画红色
VAR7赋值:MACD.DIF#WEEK(6,13,5)
VAR8赋值:MACD.DEA#WEEK(6,13,5)
VAR9赋值:MACD.DIF#MONTH(6,13,5)
VAR10:=MACD.DEA#MONTH(6,13,5)
STICKLINE(VAR7上穿VAR8,0.1,(-0.1),2,0),画白色