通达信主力控盘雷达 源码
VAR1:=CLOSE-LOW;
VAR2:=HIGH-LOW;
VAR3:=CLOSE-HIGH;
VAR4:=IF(CLOSE>=0,(VAR1/VAR2+VAR3/VAR2)*VOL,(VAR3/VAR2+VAR1/VAR2)*VOL);
主力控盘雷达: SUM(VAR4,10)/10000, VOLSTICK;{}
增减力度:(MA(CLOSE,34.000) - CLOSE) / MA(CLOSE, 34.000) * 10.000,COLOR6666FF;
STICKLINE(CROSS( 1.700,增减力度), 3,0, 3,0),COLORWHITE;
DRAWTEXT(CROSS( 1.700,增减力度), 8.000,'底'),COLORWHITE;
进仓:STICKLINE(C/REF(C,1)>1.0618, 3,0, 3,0),COLORYELLOW;
DRAWTEXT(C/REF(C,1)>1.0618, 10.000,'进'),COLORYELLOW;
STICKLINE(FILTER(CROSS(0.019100,增减力度),21), 5,0, 3,0),COLORRED;
DRAWTEXT(FILTER(CROSS(0.019100,增减力度),21), 13,'析'),COLORRED;
逢高出局:STICKLINE(FILTER(C/REF(C,1)>1.0918,21), 15,0, 3,0),COLORFFAAFF;
DRAWTEXT(FILTER(C/REF(C,1)>1.0918,21), 30,'出'),COLORFFAAFF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:收盘价-最低价
VAR2赋值:最高价-最低价
VAR3赋值:收盘价-最高价
VAR4赋值:IF(收盘价>=0,(VAR1/VAR2+VAR3/VAR2)*成交量,(VAR3/VAR2+VAR1/VAR2)*成交量)
输出
主力控盘雷达: 10的VAR4日累和/10000, 成交量STICK
输出{}
增减力度:(收盘价的34.000日简单移动平均 - 收盘价) / 收盘价的 34.000日简单移动平均 * 10.000,COLOR6666FF
STICKLINE( 1.700上穿增减力度, 3,0, 3,0),画白色
DRAWTEXT( 1.700上穿增减力度, 8.000,'底'),画白色
输出
进仓:STICKLINE(C/1日前的C>1.0618, 3,0, 3,0),画黄色
DRAWTEXT(C/1日前的C>1.0618, 10.000,'进'),画黄色
STICKLINE(FILTER(0.019100上穿增减力度,21), 5,0, 3,0),画红色
DRAWTEXT(FILTER(0.019100上穿增减力度,21), 13,'析'),画红色
输出
逢高出局:STICKLINE(FILTER(C/1日前的C>1.0918,21), 15,0, 3,0),COLORFFAAFF
DRAWTEXT(FILTER(C/1日前的C>1.0918,21), 30,'出'),COLORFFAAFF