首页 > > 详细

通达信逆时钟副图指标 可用于分时或者日线 源码分享 附图

DRAWTEXT_FIX(1,0.49,0.9,1,'@---------------------------------------');
{当满足条件1时,在横轴0.49纵轴0.9位置书写文字;}

DRAWTEXT_FIX(1,0.68,0.9,1,'----------------------------------------@');
{当满足条件1时,在横轴0.68纵轴0.9位置书写文字;}

DRAWTEXT_FIX(1,0.68,0.1,1,'----------------------------------------@');
{当满足条件1时,在横轴0.68纵轴0.1位置书写文字;}

DRAWTEXT_FIX(1,0.49,0.1,1,'@---------------------------------------');
{当满足条件1时,在横轴0.49纵轴0.1位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.34,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.34位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.36,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.36位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.38,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.38位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.40,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.40位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.42,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.42位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.44,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.44位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.46,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.46位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.48,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.48位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.50,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.50位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.52,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.52位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.54,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.54位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.56,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.56位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.58,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.58位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.60,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.60位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.62,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.62位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.64,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.64位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.66,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.66位置书写文字;}

DRAWTEXT_FIX(1,0.794,0.665,1,'︱');
{当满足条件1时,在横轴0.794纵轴0.665位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.34,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.34位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.36,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.36位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.38,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.38位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.40,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.40位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.42,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.42位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.44,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.44位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.46,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.46位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.48,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.48位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.50,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.50位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.52,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.52位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.54,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.54位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.56,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.56位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.58,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.58位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.60,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.60位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.62,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.62位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.64,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.64位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.66,1,'︱');
{当满足条件1时,在横轴0.21纵轴0.66位置书写文字;}

DRAWTEXT_FIX(1,0.69,0.89,1,'/');
{当满足条件1时,在横轴0.69纵轴0.89位置书写文字;}

DRAWTEXT_FIX(1,0.70,0.87,1,'/');
{当满足条件1时,在横轴0.70纵轴0.87位置书写文字;}

DRAWTEXT_FIX(1,0.71,0.85,1,'/');
{当满足条件1时,在横轴0.71纵轴0.85位置书写文字;}

DRAWTEXT_FIX(1,0.72,0.83,1,'/');
{当满足条件1时,在横轴0.72纵轴0.83位置书写文字;}

DRAWTEXT_FIX(1,0.73,0.81,1,'/');
{当满足条件1时,在横轴0.73纵轴0.81位置书写文字;}

DRAWTEXT_FIX(1,0.74,0.79,1,'/');
{当满足条件1时,在横轴0.74纵轴0.79位置书写文字;}

DRAWTEXT_FIX(1,0.75,0.77,1,'/');
{当满足条件1时,在横轴0.75纵轴0.77位置书写文字;}

DRAWTEXT_FIX(1,0.76,0.75,1,'/');
{当满足条件1时,在横轴0.76纵轴0.75位置书写文字;}

DRAWTEXT_FIX(1,0.77,0.73,1,'/');
{当满足条件1时,在横轴0.77纵轴0.73位置书写文字;}

DRAWTEXT_FIX(1,0.78,0.71,1,'/');
{当满足条件1时,在横轴0.78纵轴0.71位置书写文字;}

DRAWTEXT_FIX(1,0.69,0.12,1,'\');
{当满足条件1时,在横轴0.69纵轴0.12位置书写文字;}

DRAWTEXT_FIX(1,0.70,0.14,1,'\');
{当满足条件1时,在横轴0.70纵轴0.14位置书写文字;}

DRAWTEXT_FIX(1,0.71,0.16,1,'\');
{当满足条件1时,在横轴0.71纵轴0.16位置书写文字;}

DRAWTEXT_FIX(1,0.72,0.18,1,'\');
{当满足条件1时,在横轴0.72纵轴0.18位置书写文字;}

DRAWTEXT_FIX(1,0.73,0.20,1,'\');
{当满足条件1时,在横轴0.73纵轴0.20位置书写文字;}

DRAWTEXT_FIX(1,0.74,0.22,1,'\');
{当满足条件1时,在横轴0.74纵轴0.22位置书写文字;}

DRAWTEXT_FIX(1,0.75,0.24,1,'\');
{当满足条件1时,在横轴0.75纵轴0.24位置书写文字;}

DRAWTEXT_FIX(1,0.76,0.26,1,'\');
{当满足条件1时,在横轴0.76纵轴0.26位置书写文字;}

DRAWTEXT_FIX(1,0.77,0.28,1,'\');
{当满足条件1时,在横轴0.77纵轴0.28位置书写文字;}

DRAWTEXT_FIX(1,0.78,0.30,1,'\');
{当满足条件1时,在横轴0.78纵轴0.30位置书写文字;}

DRAWTEXT_FIX(1,0.22,0.70,1,'\');
{当满足条件1时,在横轴0.22纵轴0.70位置书写文字;}

DRAWTEXT_FIX(1,0.23,0.72,1,'\');
{当满足条件1时,在横轴0.23纵轴0.72位置书写文字;}

DRAWTEXT_FIX(1,0.24,0.74,1,'\');
{当满足条件1时,在横轴0.24纵轴0.74位置书写文字;}

DRAWTEXT_FIX(1,0.25,0.76,1,'\');
{当满足条件1时,在横轴0.25纵轴0.76位置书写文字;}

DRAWTEXT_FIX(1,0.26,0.78,1,'\');
{当满足条件1时,在横轴0.26纵轴0.78位置书写文字;}

DRAWTEXT_FIX(1,0.27,0.80,1,'\');
{当满足条件1时,在横轴0.27纵轴0.80位置书写文字;}

DRAWTEXT_FIX(1,0.28,0.82,1,'\');
{当满足条件1时,在横轴0.28纵轴0.82位置书写文字;}

DRAWTEXT_FIX(1,0.29,0.84,1,'\');
{当满足条件1时,在横轴0.29纵轴0.84位置书写文字;}

DRAWTEXT_FIX(1,0.30,0.86,1,'\');
{当满足条件1时,在横轴0.30纵轴0.86位置书写文字;}

DRAWTEXT_FIX(1,0.31,0.88,1,'\');
{当满足条件1时,在横轴0.31纵轴0.88位置书写文字;}

DRAWTEXT_FIX(1,0.215,0.30,1,'/');
{当满足条件1时,在横轴0.215纵轴0.30位置书写文字;}

DRAWTEXT_FIX(1,0.225,0.28,1,'/');
{当满足条件1时,在横轴0.225纵轴0.28位置书写文字;}

DRAWTEXT_FIX(1,0.235,0.26,1,'/');
{当满足条件1时,在横轴0.235纵轴0.26位置书写文字;}

DRAWTEXT_FIX(1,0.245,0.24,1,'/');
{当满足条件1时,在横轴0.245纵轴0.24位置书写文字;}

DRAWTEXT_FIX(1,0.255,0.22,1,'/');
{当满足条件1时,在横轴0.255纵轴0.22位置书写文字;}

DRAWTEXT_FIX(1,0.265,0.20,1,'/');
{当满足条件1时,在横轴0.265纵轴0.20位置书写文字;}

DRAWTEXT_FIX(1,0.275,0.18,1,'/');
{当满足条件1时,在横轴0.275纵轴0.18位置书写文字;}

DRAWTEXT_FIX(1,0.285,0.16,1,'/');
{当满足条件1时,在横轴0.285纵轴0.16位置书写文字;}

DRAWTEXT_FIX(1,0.295,0.14,1,'/');
{当满足条件1时,在横轴0.295纵轴0.14位置书写文字;}

DRAWTEXT_FIX(1,0.305,0.12,1,'/');
{当满足条件1时,在横轴0.305纵轴0.12位置书写文字;}

DRAWRECTREL(198,500,800,501,90);
{相对位置上画矩形;}

DRAWRECTREL(500,10,501,990,90);
{相对位置上画矩形;}

DRAWTEXT_FIX(1,0.53,0.95,1,'阳转信号'),COLORYELLOW;
{当满足条件1时,在横轴0.53纵轴0.95位置书写文字,画黄色;}

DRAWTEXT_FIX(1,0.78,0.88,1,'买进信号'),COLORYELLOW;
{当满足条件1时,在横轴0.78纵轴0.88位置书写文字,画黄色;}

DRAWTEXT_FIX(1,0.75,0.48,1,'加仓'),COLORYELLOW;
{当满足条件1时,在横轴0.75纵轴0.48位置书写文字,画黄色;}

DRAWTEXT_FIX(1,0.78,0.20,1,'观望'),COLORYELLOW;
{当满足条件1时,在横轴0.78纵轴0.20位置书写文字,画黄色;}

DRAWTEXT_FIX(1,0.53,0.08,1,'警戒信号'),COLORYELLOW;
{当满足条件1时,在横轴0.53纵轴0.08位置书写文字,画黄色;}

DRAWTEXT_FIX(1,0.26,0.10,1,'卖出信号'),COLORYELLOW;
{当满足条件1时,在横轴0.26纵轴0.10位置书写文字,画黄色;}

DRAWTEXT_FIX(1,0.25,0.48,1,'清仓'),COLORYELLOW;
{当满足条件1时,在横轴0.25纵轴0.48位置书写文字,画黄色;}

DRAWTEXT_FIX(1,0.25,0.88,1,'观望'),COLORYELLOW;
{当满足条件1时,在横轴0.25纵轴0.88位置书写文字,画黄色;}

DRAWTEXT_FIX(1,0.21,0.31,1,'@');
{当满足条件1时,在横轴0.21纵轴0.31位置书写文字;}

DRAWTEXT_FIX(1,0.21,0.68,1,'@');
{当满足条件1时,在横轴0.21纵轴0.68位置书写文字;}

DRAWTEXT_FIX(1,0.79,0.32,1,'@');
{当满足条件1时,在横轴0.79纵轴0.32位置书写文字;}

DRAWTEXT_FIX(1,0.79,0.68,1,'@');
{当满足条件1时,在横轴0.79纵轴0.68位置书写文字;}

价涨幅1:=(C-REF(C,1))/REF(C,1);
{价涨幅1赋值:(收盘价-1日前的收盘价)/1日前的收盘价;}

量涨幅1:=(V-REF(V,1))/REF(V,1);
{量涨幅1赋值:(成交量(手)-1日前的成交量(手))/1日前的成交量(手);}

价涨幅:=SUM(价涨幅1,0);
{价涨幅赋值:价涨幅1的历史累和;}

量涨幅:=SUM(量涨幅1,0);
{量涨幅赋值:量涨幅1的历史累和;}

量涨幅2:=EMA(量涨幅,50)/EMA(价涨幅,20);
{量涨幅2赋值:量涨幅的50日指数移动平均/价涨幅的20日指数移动平均;}

量涨幅线:=量涨幅/量涨幅2;
{量涨幅线赋值:量涨幅/量涨幅2;}

A1:=CROSS(价涨幅,0) OR CROSS(价涨幅,量涨幅);
{A1赋值:价涨幅上穿0 或 价涨幅上穿量涨幅;}

A2:=V>MA(V,20);
{A2赋值:成交量(手)>成交量(手)的20日简单移动平均;}

A3:=C/REF(C,1)*100-100>-1 AND C/REF(C,1)*100-100< 3.5;
{A3赋值:收盘价/1日前的收盘价*100-100>-1 和 收盘价/1日前的收盘价*100-100<3.5;}

A4:=CURRBARSCOUNT=1;
{A4赋值:到最后交易的周期=1;}

买入信号:=A1+A2+A3+A4;
{买入信号赋值:A1+A2+A3+A4;}

DRAWNUMBER_FIX(买入信号=4,0.78,0.85,1,C),COLORRED;
{当满足条件买入信号=4时,在横轴0.78纵轴0.85位置书写数字,画红色;}

A5:=V/MA(V,20)>2;
{A5赋值:成交量(手)/成交量(手)的20日简单移动平均>2;}

加仓:=买入信号+A5;
{加仓赋值:买入信号+A5;}

DRAWNUMBER_FIX(加仓=5,0.75,0.45,1,C),COLORRED;
{当满足条件加仓=5时,在横轴0.75纵轴0.45位置书写数字,画红色;}

观望1:=C>REF(C,1) AND V>REF(V,1);
{观望1赋值:收盘价>1日前的收盘价 和 成交量(手)>1日前的成交量(手);}

DRAWNUMBER_FIX(观望1=1 AND A4,0.78,0.16,1,C),COLORRED;
{当满足条件观望1=1和A4时,在横轴0.78纵轴0.16位置书写数字,画红色;}

警戒:=C>REF(C,1) AND V< MA(V,5);
{警戒赋值:收盘价>1日前的收盘价 和 成交量(手)<成交量(手)的5日简单移动平均;}

DRAWNUMBER_FIX(警戒=1 AND A4,0.6,0.08,1,C),COLORRED;
{当满足条件警戒=1和A4时,在横轴0.6纵轴0.08位置书写数字,画红色;}

卖出:=C< REF(C,1) AND V< REF(V,1);
{卖出赋值:收盘价<1日前的收盘价 和 成交量(手)<1日前的成交量(手);}

DRAWNUMBER_FIX(卖出=1 AND A4,0.30,0.10,1,C),COLORCYAN;
{当满足条件卖出=1和A4时,在横轴0.30纵轴0.10位置书写数字,画青色;}

清仓:=C< REF(C,1) AND V>REF(V,1) AND C< MA(C,5);
{清仓赋值:收盘价<1日前的收盘价 和 成交量(手)>1日前的成交量(手) 和 收盘价<收盘价的5日简单移动平均;}

DRAWNUMBER_FIX(清仓=1 AND A4,0.30,0.48,1,C),COLORCYAN;
{当满足条件清仓=1和A4时,在横轴0.30纵轴0.48位置书写数字,画青色;}

阳转:=C< MA(C,60) AND C>REF(C,1) AND V>MA(V,5);
{阳转赋值:收盘价<收盘价的60日简单移动平均 和 收盘价>1日前的收盘价 和 成交量(手)>成交量(手)的5日简单移动平均;}

DRAWNUMBER_FIX(阳转=1 AND A4,0.58,0.95,1,C),COLORRED;
{当满足条件阳转=1和A4时,在横轴0.58纵轴0.95位置书写数字,画红色;};
联系我们 - QQ: 88652583
© 2014 www.93stock.com
代写选股公式网!
声明:警惕假冒分子冒充本站提供证券咨询服务,选股公式网为非证券咨询机构,本站不提供有关股评、投资分析报告、股市预测,证券咨询等服务。本站仅提供股票、期货、黄金、外汇的软件技术交流与分享。本站文章为互联网文章,其仅供参考,并不构成投资建议。