当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码精选:MACD高低点划线,分时多空,进场副图

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、MACD高低点划线

MACD高低点划线(源码 副图 通达信 贴图)无未来函数的划线公式

指标很直观,很好用,多用熟能生巧。
改良模式已经运用大数据模式了,非常先进
 
{MACD高低点划线}
NNN:=STRCAT(CON2STR(YEAR,0),' 年 ');
YYY:=STRCAT(CON2STR(MONTH,0),' 月 ');
RRR:=STRCAT(CON2STR(DAY,0),' 日 ');
WWW:=STRCAT('星期',CON2STR(WEEKDAY,0));
SSS:=STRCAT(STRCAT(STRCAT(NNN,YYY), RRR),WWW);
DRAWTEXT_FIX(C>0,0.77,0,0,SSS);
DRAWTEXT_FIX(C>0,0.004,1,0,DYBLOCK),COLORYELLOW,LINETHICK2;
DRAWTEXT_FIX(C>0,0.06,1,0,HYBLOCK),COLORRED,LINETHICK2;
DRAWTEXT_FIX(C>0,0.12,1,0,GNBLOCK),COLORWHITE,LINETHICK2;
快量:(EMA(CLOSE,12) - EMA(CLOSE,26));
慢量:EMA(快量,9),COLOR00FFFF;
MACD:=2*(快量-慢量);
资金线:=HHV(MACD,1)*0.98,LINETHICK1,COLORRED;
资金3日线:=HHV(MACD,3)*0.98,LINETHICK1;
资金5日线:=HHV(MACD,5)*0.98,COLORWHITE,LINETHICK1;
持股:=IF(资金线>=REF(资金线,1) AND 资金3日线>=资金线 AND 资金3日线>=REF(资金3日线,1) AND 资金3日线=资金5日线,1.5,0),COLORWHITE;
{DRAWICON(REF(持股<1.5,1) AND 持股,资金线,1);
DRAWICON(REF(资金线=资金5日线,1) AND 资金线<资金5日线,资金5日线,2);}
骑牛技术:0,COLORGRAY;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,3,0),COLORRED;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,3,0),COLOR008080;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),MACD,0,3,0),COLOR00FF00;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,3,0),COLORFFFFFF;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,3,0 ),COLORFFAA00;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,3.3 ,0 ),COLORFFBB11;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,2.2,0 ),COLORFFCC22;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,1.65 ,0 ),COLORFFDD33;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,1.1 ,0 ),COLORFFEE44;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,0.55 ,0 ),COLORFFFF55;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,0,0 ),COLOR00E600;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,3.5,0 ),COLOR007700;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,2.7,0 ),COLOR008E00;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,2.1,0 ),COLOR009900;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,1.5,0 ),COLOR00B500;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,0.9,0 ),COLOR00D500;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,0.3,0 ),COLOR00E600;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,0,1 ),COLOR00E600;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,3.5,0),COLOR0044AA;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,3.4,0),COLOR0055AA;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,3.2,0),COLOR0066BB;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,3.0,0),COLOR0077BB;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,2.7,0),COLOR0088CC;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,2.4,0),COLOR0099CC;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,2.1,0),COLOR00AADD;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,1.8,0),COLOR00BBDD;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,1.4,0),COLOR00CCEE;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,1.0,0),COLOR00DDEE;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,0.6,0),COLOR00EEEE;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,0.2,0),COLOR00F0F3;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,0.05,0),COLOR00F6F3;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,3.5,0) ,COLOR00005A;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,3.4,0) ,COLOR00006A;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,3.3,0) ,COLOR00007A;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,3.2,0) ,COLOR00008A;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,3.1,0) ,COLOR00009A;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,2.8,0) ,COLOR0000AA;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,2.5,0) ,COLOR0000BA;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,2.1,0) ,COLOR0000CA;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,1.7,0) ,COLOR0000DA;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,1.2,0) ,COLOR0000EA;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,0.7,0) ,COLOR0000F5;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,0.2,0) ,COLOR0000FC;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,0.05,0),COLOR0000FF;
A:=BARSLAST(FILTERX(MACD=HHV(MACD,BARSLAST(MACD<0)),BARSLAST(MACD<0)));
DRAWTEXT_FIX(1,0.88,5,0,'~☆~股民学院 www.58188.com ~☆~'),COLORYELLOW;
B:=REF(MACD,A);
STICKLINE(A,B*1.05,B,4,0);
A1:=BARSLAST(FILTERX(MACD=LLV(MACD,BARSLAST(MACD>0)),BARSLAST(MACD>0)));
B1:=REF(MACD,A1);
STICKLINE(A1,B1*1.1,B1,4,2);



2、分时多空

公式用法很简单: 红色线做多,蓝色线做空

{分时多空}
主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK3;
B:=主趋势线>REF(主趋势线,1);
IF(B-1,主趋势线,DRAWNULL)COLORBLUE,LINETHICK3;
AA:=EMA(C,5) > EMA(C,20);
BB:=EMA(C,5) < EMA(C,20);
CC:= EMA(C,5) > EMA(C,10);
CC1:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<OPEN;
STICKLINE(AA,H,L,0,0),COLORRED;
STICKLINE(AA,O,C,3,1),COLORRED;
STICKLINE(AA AND DD,O,C,3,0),COLORRED;
STICKLINE(BB,H,L,0,0),COLORGREEN;
STICKLINE(BB,O,C,3,1),COLORGREEN;
STICKLINE(BB AND DD,O,C,3,0),COLORGREEN;
STICKLINE(BB AND CC,H,L,0,1),COLORWHITE;
STICKLINE(BB AND CC,O,C,3,1),COLORWHITE;
STICKLINE(BB AND CC AND DD,O,C,3,0),COLORWHITE;
STICKLINE(AA AND CC1,H,L,0,0),COLORWHITE;
STICKLINE(AA AND CC1,O,C,3,1),COLORWHITE;
STICKLINE(AA AND CC1 AND DD,O,C,3,0),COLORWHITE;
AAA:=CONST(HHV(C,90));
DRAWTEXT(C AND CURRBARSCOUNT=80 ,AAA, '红色线做多,蓝色线做空。 '),COLORYELLOW; 
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;
{股民学院 www.58188.com 整理}



3、进场副图,原创让你资产翻倍

进场副图,原创 不加密

 
本人花了很多时间,在系统中测试了几十个公式选出的,具有高胜率,介入点准确,并且都是在最低点,买入后第二天就涨的特点,当然极端行情除外。
按此公式操作,你的交易账户会红旗飘飘,资产成倍增加,不赚钱都难啊!
 
此公式也符合投资家巴菲特的投资理念,以便利的价格买入最优秀的公司,当然优秀的公司需要我们去挑选。但按此公式作为交易策略,你就不会去追涨杀跌,高买低卖,操作起来也累也赚不到钱。
 
本公式是实时行情公式,所有有一个取得实时动态行情的未来函数,收盘后永不漂移,不影响使用,保守的投资者可在出信号后尾盘前介入。

{进场副图}
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,56),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
AA:=VAR8>REF(VAR8,1);
DR:=100;ZRQ:=3;
DJ:=REF(LLV(L,100),3);
ZD:=REFDATE(DJ,DATE);
XG:=L=ZD;
XGA:=AA AND XG,COLORRED,LINETHICK2;
XG1:=XGA>REF(XGA,1)*75;
起爆:=XG1>REF(XG1,1)COLORRED,LINETHICK2;
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
去除停牌:=DYNAINFO(4)>0;
选股:=起爆 AND S2 AND S3 AND 去除停牌;
进场:=(XG1>REF(XG1,1));
STICKLINE(进场,0,1,1,0),COLORWHITE;


上一篇:通达信源码精选:基本面主图,精准BS,分时趋势

下一篇:通达信精选下载组合公式6个