公式网 股票指标公式源码分享 登录 注册
公式指标平网
未来函数检测
首页 金钻指标 通达信公式 大智慧公式 同花顺公式 文华财经公式 东财通公式 飞狐公式 操盘手公式 其他公式 公式解答 股票软件 股票池
当前位置:→ 公式网 > 通达信公式 > 正文 → 正文

通达信自动标注形态主图指标公式源码

发布时间:2024/8/6 15:00:03  浏览次数:

十三:=EMA(C,13),COLOR0000FF;
二十:=EMA(C,20),COLORFF00FF;
STICKLINE(C>十三,H,L,0,0),COLORRED;
STICKLINE(C>十三,C,O,-1,1),COLORRED;
STICKLINE(C=十三,H,L,0,0),COLORFFFFFF;
STICKLINE(C<十三,H,L,0,0),COLOR00FFFF;
STICKLINE(C<十三,O,C,-1,1),COLOR00FFFF;
STICKLINE(C<二十,O,C,-1,1),COLORFFFF00;
STICKLINE(C<二十,H,L,0,0),COLORCYAN;
{自适应均线}
DIR1:=Abs(CLOSE-REF(CLOSE,5));
VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);
ER1:=DIR1/VIR1;
CS1:=ER1*(0.8-2/8)+2/8;
CQ1:=CS1*CS1;
AMA1:=EMA(DMA(CLOSE,CQ1),2) ,COLORWHITE;
DIR2:=ABS(CLOSE-REF(CLOSE,10));
VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
ER2:=DIR2/VIR2;
CS2:=ER2*(0.8-2/24)+2/24;
CQ2:=CS2*CS2;
AMA2:EMA(DMA(CLOSE,CQ2),2),COLORGREEN,LINETHICK1;
AMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,DRAWNULL),COLORRED,LINETHICK3;
{大阳过平台形态}
N:=5;
大阳:=(C/REF(C,1)-1)*100>=N AND V>REF(V,1);
DRAWICON(大阳,L*0.98,13);
STICKLINE(大阳,O,C,2,0),COLORYELLOW;
DRAWTEXT(大阳,L*0.97,'↖大阳过平台形态'),COLORYELLOW;
{以涨停板或者大阳来突破左侧的高点,5日线和10日线具有上升的攻击角度}
A1:=(MA(C,5)-REF(MA(C,5),1))/MA(C,5)>0.015;
A2:=CLOSE>=REF(HHV(HIGH,30),1);
A3:=C>REF(C,1)*1.07;
XG:=(A1 AND A2 AND A3);
DRAWICON(XG,L*0.96,23);
STICKLINE(XG,O,C,2,0),COLORRED;
DRAWTEXT(XG,L*0.96,'↖大阳来突破左侧的高点'),COLORRED;
TYX2:=MA(REF(HHV((C+L+O+H)/4,10),1),3);
加速k线:=REF(COUNT(C<TYX2,5)=5,1) AND C>TYX2 AND C>O;
DRAWICON(加速K线,L*0.95,1);
STICKLINE(加速K线,O,C,2,0),COLORRED;
DRAWTEXT(加速K线,L*0.938,'↖加速K线点'),COLORBLUE;
TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);
启爆K线:=REF(COUNT(C<TYX3,5)=5,1) AND C>TYX3 AND C>O;
DRAWICON(启爆K线,L*0.94,7);
STICKLINE(启爆K线,O,C,2,0),COLORRED;
DRAWTEXT(启爆K线,L*0.928,'↖启爆K线'),COLORBLUE;
大阳突破:=HHV(C,13)/REF(HHV(C,13),1)>1.018;
DRAWICON(大阳突破,L*0.93,25);
DRAWTEXT(大阳突破,L*0.92,'↖大阳突破'),COLORYELLOW;
{蓄势待发}
V0:=EMA(C,5);
EMA10:=EMA(C,10);
EMA20:=EMA(C,20);
EMA30:=EMA(C,30);
EMA60:=EMA(C,60);
M1:=1000*EMA10/EMA60<=1015 AND 1000*EMA10/EMA60>=975;
M2:=1000*EMA20/EMA60<=1020 AND 1000*EMA20/EMA60>=980;
M3:=1000*EMA30/EMA60<=1015 AND 1000*EMA30/EMA60>=985;
M4:=M1 AND M2 AND M3 AND crOSS(V0,EMA10);
M5:=M1 AND M2 AND M3 AND CROSS(V0,EMA30);
T1:=1000*EMA10/EMA30<=1010 AND 1000*EMA10/EMA30>=990;
T2:=1000*EMA20/EMA30<=1010 AND 1000*EMA20/EMA30>=990;
T3:=T1 AND T2 AND CROSS(V0,EMA10);
T4:=T1 AND T2 AND CROSS(V0,EMA30);
XG1:=(M4 OR M5 OR T3 OR T4);
DRAWICON(XG1,L*0.98,1);
STICKLINE(XG1,O,C,2,0),COLORMAGENTA;
DRAWTEXT(XG1,L*0.97,'↖蓄势待发'),COLORMAGENTA;
{两阳夹阴}
XG2:=(C>O AND REF(C,1)<REF(O,1) AND REF(C,2)>REF(O,2)
AND C>REF(O,1) AND C>MA(C,5) AND MA(C,5)>MA(C,10));
DRAWICON(XG2,L*0.98,1);
STICKLINE(XG2,O,C,2,0),COLORMAGENTA;
DRAWTEXT(XG2,L*0.97,'↖两阳夹阴'),COLORMAGENTA;
A81:=REF(C,2)>REF(O,2)*1.03;{确定前天阳线实体大小}
A82:=REF(C,1)<REF(O,1)*1.005 AND REF(C,1)<REF(C,2);{确定昨天为阴线收盘价低于前天收盘价}
A83:=C>O*1.023 AND C>REF(C,1)*0.99;{确定今天阳线实体收盘价大于昨天阴线}
两阳夹一阴:=(A81 AND A82 AND A83 );
DRAWICON(两阳夹一阴,L*0.97,13);
STICKLINE(两阳夹一阴,O,C,2,0),COLORYELLOW;
DRAWTEXT(两阳夹一阴,L*0.96,'↖两阳夹一阴'),COLORYELLOW;
AA:=MA(C,5)>MA(C,30) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,30);
BB:=C>O AND REF(C,1)<REF(O,1) AND REF(C,2)>REF(O,2);
CC:=AMO>REF(AMO,1)*2 OR REF(AMO,2)>REF(AMO,3)*2 AND REF(AMO,1)<REF(AMO,2) AND REF(AMO,1)<AMO;
XG6:=(AA AND BB AND CC);
DRAWICON(XG6,L*0.90,7);
DRAWTEXT(XG6,L*0.89, '↖两阳一阴擒涨停 '),COLORYELLOW;
两阳夹一阴1:=COUNT(C>O,3)=2 AND REF(C<O,1) AND C/REF(C,1)>=1.05;
DRAWTEXT(两阳夹一阴1,L*0.89, '↖两阳夹一阴1');

通达信自动标注形态主图指标公式源码

通达信自动标注形态主图指标公式源码

资源下载链接   资源大小:unknow

手机移动版 - 关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © GSZX.COM.CN ,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识