通达信金牛趋势副图指标 上升趋势加速小涨 源码


{DRAWGBK(CLOSE>0,RGB(0,10,10),RGB(88,0,0),0,2,0);}
Q0:=1;
{DRAWTEXT_FIX(1,0.00,0.00,0,'
公式简解:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0.0,0,'(一)、绿横线出现是股价“下降”趋势出现,绿“加速”是继续下降信号,卖出为主,绿横线下方小绿柱是股价下降过程中的卖出信号。'),COLORGREEN;
DRAWTEXT_FIX(1,0.06,0.20,0,'(二)、红横线出现是股价“上升”趋势出现,红“加速”是继续上升信号,买入为主,红横线下方小红柱是股价上升过程中的买入信号。
'),COLORMAGENTA;}
X_111:=EMA((CLOSE-REF(CLOSE,1))/REF(CLOSE,3),10)*100;
X_222:=EMA(EMA(EMA(EMA(X_111,2),2),2),3);
X_333:=(CLOSE-MA(CLOSE,26))/MA(CLOSE,26)*100;
X_444:=1;

A555:=IF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100>0 AND MA(CLOSE,5)>MA(CLOSE,10) AND X_333>EMA(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,5) AND X_222>REF(X_222,1),MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,0);
持股线:=(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100>0 AND MA(CLOSE,5)>MA(CLOSE,10) AND X_333>EMA(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,5) AND DYNAINFO(17)>0)*A555/3.5,COLORRED;
X_555:=MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100;
X_666:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
X_777:=X_666+3*STD(X_666,10);
X_888:=MA(CLOSE,26)+2*STD(CLOSE,26);
X_999:=(VOL>0 AND A555>0 AND X_222>REF(X_222,1))*EMA(A555,5);
X_1010:=(VOL>0 AND BARSLASTCOUNT(A555>0)=1 AND CROSS(EMA(CLOSE,2),HHV(EMA(CLOSE,5),26)))*EMA(A555,2);
X_1111:=(VOL>0 AND BARSLASTCOUNT(A555>0)=1 AND CROSS(EMA(CLOSE,2),HHV(EMA(CLOSE,5),26)))*(-3);
X_1212:=(VOL>0 AND EMA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),2)>MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4) AND MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4)>REF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4),1) AND SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100>64.5 AND EMA(CLOSE,1)>(X_777 OR X_888))*EMA(A555,5)/2.5,COLORCYAN;
负数现—防下跌:=(持股线-X_1212),COLORWHITE;{,NODRAW不画该线};

设置线:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10,COLORWHITE,LINETHICK2;
X_4:=(HIGH+LOW+OPEN+CLOSE)/4;
X_5:=EMA(X_4,13)-EMA(X_4,34);
X_6:=EMA(X_5,5);
X_7:=(X_5-X_6)*5;
X_8:=IF(X_7>=1000,1000,IF(X_7<=X_4,X_4,X_7));
X_9:=FORCAST(FORCAST(X_8,32),10);
X_10:=(CLOSE-EMA(CLOSE,13))/EMA(CLOSE,13)*(0-100);
X_11:=EMA(X_10/10+EMA(CLOSE,13),8);
X_12:=EMA(CLOSE,3);
X_13:=EMA(SLOPE(CLOSE,22)*20+CLOSE,45);
X_14:=IF(PERIOD>8 AND PERIOD<11,MA(X_13,1),IF(PERIOD=8,MA(X_13,4),IF(PERIOD=7,MA(X_13,8),IF(PERIOD=6,MA(X_13,16),IF(PERIOD=5,MA(X_13,32),0)))));
X_15:=X_14*0.865;
X_16:=IF(X_12>X_14,X_12,X_15);
买卖线:=REVERSE(X_16)+2*X_9,COLORMAGENTA;
拐点:=IF(EMA((1-CLOSE/SMA(CLOSE,5,1))*100*CLOSE/100+EMA(CLOSE,13),9)<设置线 AND 设置线>买卖线,EMA((1-CLOSE/SMA(CLOSE,5,1))*100*CLOSE/100+EMA(CLOSE,13),9),设置线),COLORRED,LINETHICK2;
逢高卖出:=LLV(MA(HIGH,(3)),1),LINETHICK2,COLORYELLOW;
{5138系统}
MA55:=MA(C,55);
EXPA:=EXPMA(C,6)COLORRED,LINETHICK2;
M5:=MA(CLOSE,5)COLORWHITE;
M5138线:=MA(C,5)-MA(C,13)+MA(C,8),DOTLINE,COLORCYAN,LINETHICK1;
M52:=MA(M5138线,2),COLORYELLOW,LINETHICK1;
M53:=(M5138线*1.045),COLORYELLOW,LINETHICK1;
M54:=(M5138线*1.090),COLORYELLOW,LINETHICK1;
M55:=(M5138线*1.135),COLORYELLOW,LINETHICK1;
DIF0:=CROSS(C,M5138线),COLORYELLOW,LINETHICK1;
DI:=CROSS(M5138线,M52);
{调整涨停买卖}
C2:=REF(C,1);
普涨停:=(C2*1.1),COLORYELLOW;
创涨停:=(C2*1.2),COLORYELLOW,NODRAW;
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
停:=(涨停,OPEN,CLOSE,1,0),COLORYELLOW;
ZT:=(H/REF(C,1)-1)*100>=9.97,COLORYELLOW;
选股:=ZT AND C<H,COLORWHITE;
杀:=IF(C>ZT,1,0)COLORCYAN;
ZT2:=(H/REF(C,1)-1)*100>=19.97,COLORYELLOW;
杀2:=IF(ZT2,0,1)COLORWHITE;
杀3:=IF(C<普涨停 AND 普涨停>C,1,0)COLORYELLOW;
杀4:=IF(涨停>0,0,1)COLORYELLOW;
{=============================}
XA_1:=STRCAT(HYBLOCK,3);
XA_2:=STRCAT(XA_1,DYBLOCK);
XA_3:=STRCAT(XA_2,3);
金牛:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25),COLORYELLOW;
金钻趋势:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1,COLORRED,LINETHICK2;
金牛2:=EMA(金钻趋势,25),COLORCYAN,LINETHICK2;
下降趋势:IF(金牛<REF(金牛,1),5,0),COLORGREEN,LINETHICK2;
DRAWTEXT(CROSS(下降趋势,0.00001),下降趋势+下降趋势*1.0,'下'),COLORGREEN;
DRAWTEXT(CROSS(下降趋势,0.00001),下降趋势+下降趋势*0.4,'降'),COLORGREEN;
DRAWTEXT(CROSS(下降趋势,0.00001),下降趋势+下降趋势*1.0,' 趋'),COLORGREEN;
DRAWTEXT(CROSS(下降趋势,0.00001),下降趋势+下降趋势*0.4,' 势'),COLORGREEN;
上升趋势:IF(金牛>REF(金牛,1),5,0),COLORMAGENTA,LINETHICK2;
XG47:=IF(金牛2>REF(金牛2,1),2,0),COLORMAGENTA,LINETHICK2;
DRAWTEXT(CROSS(上升趋势,0.00001),上升趋势+上升趋势*1.0,'上'),COLORMAGENTA;
DRAWTEXT(CROSS(上升趋势,0.00001),上升趋势+上升趋势*0.4,'升'),COLORMAGENTA;
DRAWTEXT(CROSS(上升趋势,0.00001),上升趋势+上升趋势*1.0,' 趋'),COLORMAGENTA;
DRAWTEXT(CROSS(上升趋势,0.00001),上升趋势+上升趋势*0.4,' 势'),COLORMAGENTA;
XG:=IF(L<REF(金钻趋势,1) AND C>M5138线 AND 上升趋势>0,1,0) AND 金钻趋势>M5138线 OR IF(L<REF(金牛2,1) AND XG47>0 AND 上升趋势>0,1,0) AND 金钻趋势>M5138线 OR IF(O<REF(金钻趋势,1) AND 逢高卖出>=拐点 AND M5138线>=M52 AND C>M5138线 ,1,0) AND 金钻趋势>M5138线 OR IF(L<REF(金钻趋势,1) AND 逢高卖出>=拐点 AND M5138线>=M52 AND C>M5138线 ,1,0) AND 金钻趋势>M5138线,STICK,COLORRED,LINETHICK2;
X:=IF(金钻趋势>LOW AND 金钻趋势<HIGH,1,0) AND 金钻趋势>M5138线 AND M5138线>=M52,COLORYELLOW;{黄金钻};
X1:=IF(金钻趋势>LOW AND 金钻趋势<HIGH,1,0) AND 金钻趋势>M5138线 AND EXPA>=M5,COLORYELLOW;{黄金钻};
X2:=IF(金钻趋势>LOW AND 金钻趋势<HIGH,1,0) AND 上升趋势>0 AND MA55>L,COLORYELLOW;
X3:=金钻趋势>LOW AND 金钻趋势>M5138线 AND C>M5138线 AND DIF0,COLORYELLOW;
买:IF(XG AND C>M5138线 AND DI OR X3 AND C>M5138线 AND DI OR X AND C>M5138线 AND DI OR X1 AND C>M5138线 AND DI OR X2 AND C>M5138线 AND DI,4,0),STICK,COLORRED,LINETHICK2;

卖涨3:=O>C AND H>金牛 AND 杀4,COLORRED,LINETHICK1;{H>金牛 AND M53>C AND }
卖涨2:=H>金牛 AND M55>H AND M54>C AND 杀4,COLORRED,LINETHICK1;{H>金牛 AND M53>C AND }
卖涨:=H>金牛 AND M53>C AND 杀4,COLORRED,LINETHICK1;{H>金牛 AND M53>C AND }
卖H:=H>金牛 AND M53>C AND H AND 杀4,COLORYELLOW,LINETHICK1;{H>金牛 AND M53>C AND }
卖C:=H>金牛 AND M53>C AND C AND 杀4,COLORCYAN,LINETHICK1;{H>金牛 AND M53>C AND }
卖2:=H>金牛 AND M53>C AND 杀4,COLORYELLOW,LINETHICK2;{ AND 下降趋势>上升趋势}
卖3:=C>金牛 AND M53>H AND 杀4,COLORCYAN,LINETHICK1;
卖:IF(卖涨 AND 卖H AND 卖C OR 卖2 OR 卖3 OR 卖涨2 OR 卖涨3 AND M52>M5138线,4,0),STICK,COLORGREEN,LINETHICK2;{ OR 卖2 OR 卖3}
{卖在创业版妖股涨停板}
ZT88:=C/REF(C,1)>1.197 AND CLOSE=HIGH;
ZT188:=REF(C,1)/REF(C,2)>1.197 AND REF(CLOSE,1)=REF(HIGH,1);
ZT288:=REF(C,2)/REF(C,3)>1.197 AND REF(CLOSE,2)=REF(HIGH,2);
ZT388:=REF(C,3)/REF(C,4)>1.197 AND REF(CLOSE,3)=REF(HIGH,3);
ZT488:=REF(C,4)/REF(C,5)>1.197 AND REF(CLOSE,4)=REF(HIGH,4);
ZT588:=REF(C,5)/REF(C,6)>1.197 AND REF(CLOSE,5)=REF(HIGH,5);
三:=ZT88 AND ZT188{ AND ZT288 AND ZT388 AND ZT488 AND ZT588};
创停:=H>金牛 AND M55>C AND M54<C,COLORCYAN,LINETHICK1;{H>金牛 AND M53>C AND }
卖HH:=H>金牛 AND M55>C AND M54<C AND H,COLORCYAN,LINETHICK1;{H>金牛 AND M53>C AND }
卖CC:=H>金牛 AND M55>C AND M54<C AND C,COLORCYAN,LINETHICK1;{H>金牛 AND M53>C AND }
卖在创涨停:IF(负数现—防下跌<0 AND 三 AND 创停 AND 卖HH AND 卖CC AND C>=创涨停,4,0),STICK,COLORABCDFF,LINETHICK6;{ OR 卖2 OR 卖3}
DIF88:=CROSS(卖在创涨停,1) AND 上升趋势>0,COLORMAGENTA,LINETHICK1;
DRAWTEXT(CROSS(DIF88,0.00001),上升趋势+上升趋势*1.0,'卖'),COLORABCDFF;
DRAWTEXT(CROSS(DIF88,0.00001),上升趋势+上升趋势*0.4,'在'),COLORABCDFF;
DRAWTEXT(CROSS(DIF88,0.00001),上升趋势+上升趋势*1.0,' 创'),COLORABCDFF;
DRAWTEXT(CROSS(DIF88,0.00001),上升趋势+上升趋势*0.4,' 停'),COLORABCDFF;
{卖在普通版妖股涨停板}
VOLUME:=VOL,VOLSTICK;
放:=VOL>REF(VOL,1)*4;
ZT8:=C/REF(C,1)>1.097 AND CLOSE=HIGH;
ZT18:=REF(C,1)/REF(C,2)>1.097 AND REF(CLOSE,1)=REF(HIGH,1);
ZT28:=REF(C,2)/REF(C,3)>1.097 AND REF(CLOSE,2)=REF(HIGH,2);
ZT38:=REF(C,3)/REF(C,4)>1.097 AND REF(CLOSE,3)=REF(HIGH,3);
ZT48:=REF(C,4)/REF(C,5)>1.097 AND REF(CLOSE,4)=REF(HIGH,4);
ZT58:=REF(C,5)/REF(C,6)>1.097 AND REF(CLOSE,5)=REF(HIGH,5);
六:=ZT8 AND ZT18 AND ZT28 AND ZT38 AND ZT48 AND ZT58;
卖在普涨停:IF(负数现—防下跌<0 AND 放 AND 六 AND M53>C,4,0),STICK,COLORLIBLUE,LINETHICK6;
DIF99:=CROSS(卖在普涨停,1) AND 上升趋势>0,COLORMAGENTA,LINETHICK1;
DRAWTEXT(CROSS(DIF99,0.00001),上升趋势+上升趋势*1.0,'卖'),COLORLIBLUE;
DRAWTEXT(CROSS(DIF99,0.00001),上升趋势+上升趋势*0.4,'在'),COLORLIBLUE;
DRAWTEXT(CROSS(DIF99,0.00001),上升趋势+上升趋势*1.0,' 普'),COLORLIBLUE;
DRAWTEXT(CROSS(DIF99,0.00001),上升趋势+上升趋势*0.4,' 停'),COLORLIBLUE;
DIF2:=CROSS(金钻趋势,金牛2) AND 上升趋势>0,COLORMAGENTA,LINETHICK1;
DRAWTEXT(CROSS(DIF2,0.00001),上升趋势+上升趋势*1.0,'加'),COLORMAGENTA;
DRAWTEXT(CROSS(DIF2,0.00001),上升趋势+上升趋势*0.4,'速'),COLORMAGENTA;
DRAWTEXT(CROSS(DIF2,0.00001),上升趋势+上升趋势*1.0,' 上'),COLORMAGENTA;
DRAWTEXT(CROSS(DIF2,0.00001),上升趋势+上升趋势*0.4,' 涨'),COLORMAGENTA;
DIF4:=CROSS(金牛2,金钻趋势) AND 下降趋势>0;
DRAWTEXT(CROSS(DIF4,0.00001),下降趋势+下降趋势*1.0,'加'),COLORGREEN;
DRAWTEXT(CROSS(DIF4,0.00001),下降趋势+下降趋势*0.4,'速'),COLORGREEN;
DRAWTEXT(CROSS(DIF4,0.00001),下降趋势+下降趋势*1.0,' 下'),COLORGREEN;
DRAWTEXT(CROSS(DIF4,0.00001),下降趋势+下降趋势*0.4,' 跌'),COLORGREEN;





未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:XMA
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图