通达信【筹码先知】主图指标 轻松选股抓黑马 用法详解 源码
HGW1:=REF(CLOSE,1);
HGW2:=REF(CLOSE,2);
HGW3:=REF(CLOSE,3);
HGW4:=REF(CLOSE,4);
HGW5:=REF(CLOSE,5);
HGW6:=REF(CLOSE,6);
HGW7:=HGW2<=HGW3 AND HGW2<=HGW4 AND HGW2<=HGW5 AND HGW2<=HGW6;
HGW8:=C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20);
HGW9:=CLOSE>O AND HGW1>HGW2;
HGW10:=CLOSE>HGW1;
HGW11:=IF(NAMELIKE('S'),1,0)=0;
HGW12:=IF(NAMELIKE('ST'),1,0)=0;
HGW13:=IF(NAMELIKE('*S'),1,0)=0;
HGW14:=IF((CLOSE=0 OR V=0),0,1);
HGW15:=CLOSE/FINANCE(33);
HGW16:=HGW15>0;
HGW17:=HGW11 AND HGW12 AND HGW13 AND HGW14 AND HGW16;
HGW18:=HGW7 AND HGW8 AND HGW9 AND HGW10 AND HGW17 AND HGW1/HGW2<=1.05;
HGW26:=CLOSE*CAPITAL/1000000;
HGW28:=CON2STR(HGW26,0);
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,20),COLORMAGENTA;
STICKLINE(HGW18,O,O+0.382*(C-O),3,0),COLORYELLOW;
STICKLINE(HGW18,O+0.382*(C-O),C,3,0),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0,0.05,0,DYBLOCK);
DRAWTEXT_FIX(HGW26>1,0,0.1,0,HGW28);
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:FINANCE
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
HGW1赋值:1日前的收盘价
HGW2赋值:2日前的收盘价
HGW3赋值:3日前的收盘价
HGW4赋值:4日前的收盘价
HGW5赋值:5日前的收盘价
HGW6赋值:6日前的收盘价
HGW7赋值:HGW2<=HGW3 AND HGW2<=HGW4 AND HGW2<=HGW5 AND HGW2<=HGW6
HGW8赋值:C>C的5日简单移动平均 AND C>C的10日简单移动平均 AND C>C的20日简单移动平均
HGW9赋值:收盘价>O AND HGW1>HGW2
HGW10:=收盘价>HGW1
HGW11:=IF(NAMELIKE('S'),1,0)=0
HGW12:=IF(NAMELIKE('ST'),1,0)=0
HGW13:=IF(NAMELIKE('*S'),1,0)=0
HGW14:=IF((收盘价=0 OR V=0),0,1)
HGW15:=收盘价/FINANCE(33)
HGW16:=HGW15>0
HGW17:=HGW11 AND HGW12 AND HGW13 AND HGW14 AND HGW16
HGW18:=HGW7 AND HGW8 AND HGW9 AND HGW10 AND HGW17 AND HGW1/HGW2<=1.05
HGW26:=收盘价*当前流通股本/1000000
HGW28:=CON2STR(HGW26,0)
输出MA5:收盘价的5日简单移动平均,画白色
输出MA10:收盘价的10日简单移动平均,画黄色
输出MA20:收盘价的20日简单移动平均,画洋红色
STICKLINE(HGW18,O,O+0.382*(C-O),3,0),画黄色
STICKLINE(HGW18,O+0.382*(C-O),C,3,0),画红色
当满足条件ISLASTBAR时,在横轴0纵轴0位置书写文字
当满足条件ISLASTBAR时,在横轴0纵轴0.05位置书写文字
当满足条件HGW26>1时,在横轴0纵轴0.1位置书写文字