通达信强龙抬头副图指标,捕捉强势股起爆点的短线利器!源码
{龙抬头}{副图公式}
HGW1:=MA(WINNER(CLOSE*0.9)*100*CLOSE,3),COLORWHITE,LINETHICK1;
HGW2:=IF(HGW1>10,HGW1,0)/2,COLORBLUE,LINETHICK1;
HGW3:=IF(DATETODAY(DATE)<9872,1,DRAWNULL),COLORGREEN,LINETHICK1;
HGW4:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
HGW5:=REF(C,3),COLORCYAN,LINETHICK1;
HGW6:=REF(C,9),COLORMAGENTA,LINETHICK1;
HGW7:=IF(DATE<HGW6,1,DRAWNULL),COLORBROWN,LINETHICK1;
HGW8:=CROSS(HGW4,HGW5),COLORLIGRAY,LINETHICK1;
HGW9:=CROSS(HGW4,HGW5) AND HIGH>REF(HIGH,1) AND CLOSE>REF(CLOSE,1),COLORLIBLUE,LINETHICK1;
HGW10:=CROSS(HGW5,HGW4),COLORLIGREEN,LINETHICK1;
HGW11:=LLV(LOW,21),COLORLICYAN,LINETHICK1;
HGW12:=HHV(HIGH,21),COLORLIRED,LINETHICK1;
HGW13:=EMA((CLOSE-HGW11)/(HGW12-HGW11)*100,5);
HGW14:=EMA((CLOSE-HGW11)/(HGW12-HGW11)*50,13);
HGW15:=CROSS(HGW13,HGW14);
HGW16:=IF(CLOSE>REF(CLOSE,1),88,0);
HGW17:=IF(CLOSE/REF(CLOSE,1)>1.05 AND HIGH/CLOSE<1.01 AND HGW16>0,91,0);
龙头:FILTER(HGW17>90,45)=1,COLORYELLOW;
STICKLINE(龙头,LOW*20.93,0,3,0),COLORYELLOW,LINETHICK4;
资金流入:HGW2,COLORMAGENTA,LINETHICK2;
资金流出:MA(HGW2,5),COLORGREEN,LINETHICK2;
HGW2,STICK,COLORRED,LINETHICK1;
未来函数检测结果如下:
该公式包含未来函数:WINNER
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{龙抬头}{副图公式}
HGW1赋值:MA(收盘价*0.9计算的获利盘比例*100*收盘价,3),画白色,LINETHICK1
如果HGW1>10返回HGW1否则返回0
HGW3赋值:IF(DATETODAY(DATE)<9872,1,DRAWNULL),画绿色,LINETHICK1
HGW4赋值:4*SMA((收盘价-5日内最低价最低值)/(5日内最高价最高值-5日内最低价最低值)*100,5,1)-3*SMA(SMA((收盘价-5日内最低价最低值)/(5日内最高价最高值-5日内最低价最低值)*100,5,1),3.2,1)
HGW5赋值:3日前的C,画青色,LINETHICK1
HGW6赋值:9日前的C,画洋红色,LINETHICK1
如果DATE
HGW8赋值:HGW4上穿HGW5,COLORLIGRAY,LINETHICK1
HGW9赋值:HGW4上穿HGW5 AND 最高价>1日前的最高价 AND 收盘价>1日前的收盘价,COLORLIBLUE,LINETHICK1
HGW10赋值:HGW5上穿HGW4,COLORLIGREEN,LINETHICK1
HGW11赋值:21日内最低价最低值,COLORLICYAN,LINETHICK1
HGW12赋值:21日内最高价最高值,COLORLIRED,LINETHICK1
HGW13赋值:EMA((收盘价-HGW11)/(HGW12-HGW11)*100,5)
HGW14赋值:EMA((收盘价-HGW11)/(HGW12-HGW11)*50,13)
HGW15赋值:HGW13上穿HGW14
HGW16赋值:IF(收盘价>1日前的收盘价,88,0)
HGW17赋值:IF(收盘价/1日前的收盘价>1.05 AND 最高价/收盘价<1.01 AND HGW16>0,91,0)
输出龙头:HGW17>90的45过滤=1,画黄色
当满足条件龙头时,在最低价*20.93和0之间画柱状线
输出资金流入:HGW2,画洋红色, 线宽为2
输出资金流出:HGW2的5日简单移动平均,画绿色, 线宽为2
HGW2,STICK,画红色,LINETHICK1