macd顶底背离dif线背离共振副图金叉选股 股票指标炒股软件公式
26
2024 / 11 / 20
2022-10-13 09:08:55 通达信指标网
{公式名称: 捉妖金钻主图
公式描述: 金钻指标
无参数
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:无
公式源码:}
XA_1:=MA(CLOSE,5);
XA_2:=MA(CLOSE,36);
XA_3:=XA_2*0.99;
XA_4:=XA_2*0.97;
XA_5:=XA_3/XA_1;
XA_6:=XA_5>=1 AND XA_5<1.02;
XA_7:=CROSS(CLOSE,XA_1) AND CROSS(CLOSE,XA_3);
XA_8:=(HIGH+LOW)/2;
XA_9:=XA_3;
XA_10:=XA_6 AND XA_7 AND XA_3>XA_1 AND OPEN<XA_1;
XA_11:=FILTER(XA_10,40)*1;
DRAWTEXT(XA_11,LOW*0.99,'顶'),COLORYELLOW;
DRAWICON(XA_11,LOW*0.975,29);
DRAWTEXT_FIX(ISLASTBAR,0.5,0,0,HYBLOCK),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.55,0,0,DYBLOCK),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,GNBLOCK),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.5,0.03,0,FGBLOCK),COLORMAGENTA;
A3:MA(CLOSE,3),DOTLINE;
A13:MA(CLOSE,13),DOTLINE;
A21:MA(CLOSE,21),DOTLINE;
XA_12:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
XA_13:=BARSLASTCOUNT(CLOSE>REF(CLOSE,1));
XA_14:=CLOSE>REF(CLOSE,1);
XA_15:=XA_14*XA_12;
XA_16:=SUM(XA_15,XA_13) AND REFXV(CLOSE<REF(CLOSE,1),1);
XA_17:=SUM(XA_15,XA_13);
DRAWTEXT(XA_16=1 AND XA_13>=3 AND XA_17<=10,HIGH*1.01,VARCAT(VAR2STR(XA_17,1),'顶2')),COLORMAGENTA;
DRAWTEXT(XA_16=1 AND XA_13>=3 AND XA_17>10,HIGH*1.01,VARCAT(VAR2STR(XA_17,1),'3')),COLORYELLOW;
XA_18:=BARSLASTCOUNT(CLOSE<REF(CLOSE,1));
XA_19:=CLOSE<REF(CLOSE,1);
XA_20:=XA_19*XA_12;
XA_21:=SUM(XA_20,XA_18) AND REFXV(CLOSE>REF(CLOSE,1),1);
XA_22:=SUM(XA_20,XA_18);
DRAWTEXT(XA_21=1 AND XA_18>=3 AND XA_22<(-10),LOW*0.99,VARCAT(VAR2STR(XA_22*(-1),1),'买')),COLORGREEN;
DRAWTEXT_FIX(1,0.915,0.93,0,'3-'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.96,0.93,0,CONST(XA_13)),COLORRED;
DRAWTEXT_FIX(1,0.98,0.93,0,4),COLORYELLOW;
DRAWTEXT_FIX(1,0.915,1,0,5),COLORGREEN;
DRAWNUMBER_FIX(1,0.96,1,0,CONST(XA_18)),COLORGREEN;
DRAWTEXT_FIX(1,0.98,1,0,4),COLORGREEN;
XA_23:=REF(CLOSE,1);
XA_24:=CLOSE/REF(CLOSE,1)>1.099 AND HIGH>LOW;
XA_25:=IF(CLOSE>=1,10000,100000);
XA_26:=1.1*XA_23-49/XA_25;
XA_27:=1.05*XA_23-49/XA_25;
XA_28:=0.9*XA_23+51/XA_25;
XA_29:=0.95*XA_23+51/XA_25;
XA_30:=NAMELIKE(6) OR NAMELIKE(7);
XA_31:=IF(XA_30,CLOSE>=XA_27,CLOSE>=XA_26);
XA_32:=IF(XA_30,CLOSE<=XA_29,CLOSE<=XA_28);
XA_33:=IF(XA_30,HIGH>=XA_27,HIGH>=XA_26);
XA_34:=IF(XA_30,LOW<=XA_29,LOW<=XA_28);
STICKLINE(XA_33,HIGH,MAX(CLOSE,OPEN),0,0),COLORMAGENTA;
STICKLINE(XA_34,LOW,MIN(CLOSE,OPEN),0,0),COLORLICYAN;
STICKLINE(XA_31,OPEN,CLOSE,1,0),COLORMAGENTA;
STICKLINE(XA_32,OPEN,CLOSE,1,0),COLORLICYAN;
原文链接:https://www.tdxzb.com/?id=663
本文版权:如无特别标注,本站文章均为原创。