通达信趋势起妖主图指标公式源码

HJ29:=3;
DRAWGBK(CLOSE>OPEN,RGB(10,0,0),RGB(0,0,0),1,2,1);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
M3:MA(CLOSE,3),POINTDOT,COLORWHITE,LINETHICK2;
IF(M3>=REF(M3,1),M3,DRAWNULL),COLORRED,LINETHICK3;
IF(M3<=REF(M3,1),M3,DRAWNULL),COLORGREEN,LINETHICK3;
MA5:MA(CLOSE,5),POINTDOT,COLORWHITE,LINETHICK2;
IF(MA5>=REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK3;
IF(MA5<=REF(MA5,1),MA5,DRAWNULL),COLORGREEN,LINETHICK3;
M7:MA(CLOSE,7),POINTDOT,COLORWHITE,LINETHICK2;
IF(M7>=REF(M7,1),M7,DRAWNULL),COLORRED,LINETHICK3;
IF(M7<=REF(M7,1),M7,DRAWNULL),COLORGREEN,LINETHICK3;
M10:MA(CLOSE,10),POINTDOT,COLORWHITE,LINETHICK2;
IF(M10>=REF(M10,1),M10,DRAWNULL),COLORRED,LINETHICK2;
IF(M10<=REF(M10,1),M10,DRAWNULL),COLORGREEN,LINETHICK3;
M15:MA(CLOSE,15),POINTDOT,COLORWHITE,LINETHICK2;
IF(M15>=REF(M15,1),M15,DRAWNULL),COLORRED,LINETHICK3;
IF(M15<=REF(M15,1),M15,DRAWNULL),COLORGREEN,LINETHICK3;
M20:MA(CLOSE,20),POINTDOT,COLORWHITE,LINETHICK2;
IF(M20>=REF(M20,1),M20,DRAWNULL),COLORRED,LINETHICK3;
IF(M20<=REF(M20,1),M20,DRAWNULL),COLORGREEN,LINETHICK2;
M25:MA(CLOSE,25),POINTDOT,COLORWHITE,LINETHICK2;
IF(M25>=REF(M25,1),M25,DRAWNULL),COLORRED,LINETHICK3;
IF(M25<=REF(M25,1),M25,DRAWNULL),COLORGREEN,LINETHICK2;
M30:MA(CLOSE,30),POINTDOT,COLORWHITE,LINETHICK2;
IF(M30>=REF(M30,1),M30,DRAWNULL),COLORRED,LINETHICK3;
IF(M30<=REF(M30,1),M30,DRAWNULL),COLORGREEN,LINETHICK2;
M45:MA(CLOSE,45),COLORRED,LINETHICK2;
IF(M45>=REF(M45,1),M45,DRAWNULL),COLORRED,LINETHICK3;
IF(M45<=REF(M45,1),M45,DRAWNULL),COLORGREEN,LINETHICK2;
M60:MA(CLOSE,60),COLORRED,LINETHICK2;
IF(M60>=REF(M60,1),M60,DRAWNULL),COLORRED,LINETHICK3;
IF(M60<=REF(M60,1),M60,DRAWNULL),COLORGREEN,LINETHICK2;
M90:MA(CLOSE,90),COLORRED,LINETHICK2;
IF(M90>=REF(M90,1),M90,DRAWNULL),COLORRED,LINETHICK3;
IF(M90<=REF(M90,1),M90,DRAWNULL),COLORGREEN,LINETHICK2;
M120:MA(CLOSE,120),COLORRED,LINETHICK2;
IF(M120>=REF(M120,1),M120,DRAWNULL),COLORRED,LINETHICK3;
IF(M120<=REF(M120,1),M120,DRAWNULL),COLORGREEN,LINETHICK2;
M160:MA(CLOSE,160),COLORRED,LINETHICK2;
IF(M160>=REF(M160,1),M160,DRAWNULL),COLORRED,LINETHICK3;
IF(M160<=REF(M160,1),M160,DRAWNULL),COLORGREEN,LINETHICK2;
M200:MA(CLOSE,200),COLORRED,LINETHICK2;
IF(M200>=REF(M200,1),M200,DRAWNULL),COLORRED,LINETHICK3;
IF(M200<=REF(M200,1),M200,DRAWNULL),COLORGREEN,LINETHICK2;
M250:MA(CLOSE,250),COLORRED,LINETHICK2;
IF(M250>=REF(M250,1),M250,DRAWNULL),COLORRED,LINETHICK3;
IF(M250<=REF(M250,1),M250,DRAWNULL),COLORGREEN,LINETHICK2;
XA_1:=CLOSE;
XA_2:=REF(XA_1,10)=HHV(XA_1,2*10+1);
XA_3:=FILTER(XA_2,10);
XA_4:=BACKSET(XA_3,10+1);
XA_5:=FILTER(XA_4,10);
XA_6:=REF(XA_1,10)=LLV(XA_1,2*10+1);
XA_7:=FILTER(XA_6,10);
XA_8:=BACKSET(XA_7,10+1);
XA_9:=FILTER(XA_8,10);
XA_10:=(CLOSE/REF(CLOSE,BARSLAST(XA_5))-1)*100;
STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,HIGH,CLOSE,0.8,0),COLORYELLOW,LINETHICK3;
°:REF(CLOSE,BARSLAST(XA_5)),POINTDOT,COLORGREEN;
IF(BARSLAST(XA_5),REF(CLOSE,BARSLAST(XA_5)),DRAWNULL),POINTDOT,COLORGREEN,LINETHICK0;
XA_11:=IF(REF(CLOSE,1)*1.1-CLOSE<0.01,1,0);
STICKLINE(XA_11,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(XA_11,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(XA_11,HIGH,LOW,0,0),COLORYELLOW;
XA_12:=FILTER(BACKSET(FILTER(REF(HIGH,10)=HHV(HIGH,2*10+1),10),10+1),10);
XA_13:=FILTER(BACKSET(FILTER(REF(LOW,10)=LLV(LOW,2*10+1),10),10+1),10);
XA_14:=REF(HIGH,BARSLAST(XA_12));
XA_15:=REF(LOW,BARSLAST(XA_13));
XA_16:=BARSLAST(XA_12)<BARSLAST(XA_13) AND NOT(XA_12);
波顶:IF(XA_16,XA_14,XA_14),POINTDOT,COLORBLACK;
XA_17:=MA(CLOSE,10);
XA_18:=MA(CLOSE,30);
XA_19:=CLOSE*vol;
XA_20:=EMA((expma(XA_19,23)/EXPMA(VOL,23)+EXPMA(XA_19,54)/EXPMA(VOL,54)+EXPMA(XA_19,108)/EXPMA(VOL,108)+EXPMA(XA_19,316)/EXPMA(VOL,316))/4,34);
通道:1.0668*XA_20,COLORBLACK;
XA_21:=DMA(AMOUNT/(89*VOL),VOL/CAPITAL);
XA_22:=CLOSE>REF(HHV(CLOSE,89),1);
XA_23:=DMA(AMOUNT/(89*VOL),VOL/CAPITAL);
XA_24:=crOSS(CLOSE,XA_23) AND XA_22;
{DRAWTEXT(XA_24,LOW*0.99,2),COLORRED;
DRAWTEXT(XA_24,LOW*0.99,3),COLORBLACK;}
STICKLINE(XA_24,CLOSE,OPEN,3.2,0),COLOR0077FF;
STICKLINE(XA_24,CLOSE,OPEN,2.5,0),COLOR0099FF;
STICKLINE(XA_24,CLOSE,OPEN,1.9,0),COLOR00BBFF;
STICKLINE(XA_24,CLOSE,OPEN,1.2,0),COLOR00DDFF;
STICKLINE(XA_24,CLOSE,OPEN,0.3,0),COLORYELLOW;
XA_25:=Abs(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
XA_26:=DMA((2.15*CLOSE+LOW+HIGH)/4,XA_25);
XA_27:=EMA(XA_26,200)*1.118;
XA_28:=EMA(XA_26,200)*1.118;
XA_29:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>9;
XA_30:=CROSS(CLOSE,XA_27) AND XA_29;
XA_31:=CROSS(CLOSE,通道) AND REF(CLOSE,1)*1.08-CLOSE<0.008 AND CLOSE>OPEN*0.5;
DRAWICON(XA_31,HIGH*0.98,13);
{DRAWTEXT(XA_31,HIGH*0.98,1),COLORYELLOW;}
XA_32:=XA_24 AND XA_30;
DRAWICON(XA_32,HIGH*0.96,13);
{DRAWTEXT(XA_32,HIGH*0.96,1),COLORYELLOW;}
XA_33:=CROSS(CLOSE,XA_27) AND XA_29;
DRAWICON(XA_33,HIGH*0.94,13);
{DRAWTEXT(XA_33,HIGH*0.94,1),COLORYELLOW;}
XA_34:=MA(CLOSE,20);
XA_35:=MA(CLOSE,60);
XA_36:=MA5>=XA_17 AND XA_17>=XA_34 AND XA_34>=XA_18 AND XA_18>=XA_35 AND MA(VOL,5)>=MA(VOL,10);
XA_37:=EMA(CLOSE,12)-EMA(CLOSE,26);
 

源码未粘贴完.............

下载附件完整源码.....



未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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