通达信筹码平台支撑副图公式 指标源码 附图
HLP:WINNER(CLOSE)*100;
HLPH:=HHV(HLP,15),COLORBLUE,LINETHICK1;
HLPL:LLV(HLP,15),COLORYELLOW,LINETHICK1;
HLPM:LLV(HLP,60),COLORLIRED,LINETHICK3;
HLPD:LLV(HLP,6),COLORLICYAN,LINETHICK1;
STICKLINE(REF(HLP,1)=REF(HLPL,1) AND HLP>HLPL AND HLPL<10 AND ABS(HLPL-HLPM)<1,0,20,4,0),COLORMAGENTA;
STICKLINE(REF(HLP,1)=REF(HLPL,1) AND HLP>HLPL AND HLPL<=40 AND ABS(HLPL-HLPM)<1,0,20,2,0),COLORYELLOW;
STICKLINE(REF(HLP,1)=REF(HLPH,1) AND HLP<HLPH AND HLPH>80,80,100,2,0),COLORCYAN;
GG:IF(ABS(HLPL-HLPD)<1,HLPD,DRAWNULL),COLORLIMAGENTA,LINETHICK2;
DD:IF(ABS(HLPL-HLPM)<1,HLPM,DRAWNULL),COLORRED,LINETHICK3;
DRAWICON(ABS(HLPL-HLPD)<1 AND REF(HLP,1)=REF(HLPD,1) AND HLP>HLPD AND GG<60,HLPD-0.02,1);
未来函数检测结果如下:
该公式包含未来函数:WINNER
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出HLP:收盘价计算的获利盘比例*100
HLPH:=15日内HLP最高值, 画蓝色,LINETHICK1
HLPL:15日内HLP最低值,画黄色,LINETHICK1
HLPM:60日内HLP最低值,COLORLIRED, 线宽为3
HLPD:6日内HLP最低值,COLORLICYAN,LINETHICK1
STICKLINE(1日前的HLP=1日前的HLPL AND HLP>HLPL AND HLPL<10 AND HLPL-HLPM的绝对值<1,0,20,4,0),画洋红色
STICKLINE(1日前的HLP=1日前的HLPL AND HLP>HLPL AND HLPL<=40 AND HLPL-HLPM的绝对值<1,0,20,2,0),画黄色
STICKLINE(1日前的HLP=1日前的HLPH AND HLP80,80,100,2,0),画青色
输出GG:IF(HLPL-HLPD的绝对值<1,HLPD,DRAWNULL),COLORLIMAGENTA, 线宽为2
输出DD:IF(HLPL-HLPM的绝对值<1,HLPM,DRAWNULL),画红色, 线宽为3
DRAWICON(HLPL-HLPD的绝对值<1 AND 1日前的HLP=1日前的HLPD AND HLP>HLPD AND GG<60,HLPD-0.02,1)