通达信【点火启动】主副图指标 主升与波段的好助手 源码

{点火启动副图源码如下}

DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

JJ :=(C*3+H+L+O)/6;SK := EMA(JJ,13) - EMA(JJ,21);

SD := EMA(SK,3);

SP := EMA(SK,10);

A1:=EMA(C,7)-EMA(C,21);

B1:=EMA((0.668*REF

(A1,1)+0.333*A1),1);

B1,COLORSTICK;X1:=V/SUM(V,13);

X2:=DMA(C,X1);

X3:=(C-X2)/X2*40;

L2:=MA(AMOUNT/(100*V),13);

CYS13:= (C-L2)/L2*100;

做多:IF(A1>=B1,A1,B1),LINETHICK2,COLORRED;

做空:IF(B1-A1,B1,A1),COLORGREEN,LINETHICK2;

点火:STICKLINE(CYS13>5 AND DIFF>DEA AND C>=EMA(C,5) AND A1-B1>0,0,-做空,2,0 ),COLORRED;

范围:C>MA(C,30),COLORFF80FF,LINETHICK1 DOTLINE;

钱袋子:=BARSLASTCOUNT(点火)=1;



DRAWICON(点火,点火,1);

DRAWICON(钱袋子,点火,9);

点火6:=BARSLASTCOUNT(点火 AND REF(A1,1)<=REF(B1,1)AND REF(A1,0)>REF(B1,0))=1;

DRAWTEXT(点火6,0.38,'↙点火'),COLORRED;

主力强度:STICKLINE(X3>0 AND 做多>0,做多+0.1,做多,1,0),COLORYELLOW;

RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

J1:=DIFF;

J2:=DEA;

J3:=K;

J4:=D;

VL:=REF(LOW,1);

VH:=REF(H,1);

ABC1:=SMA(ABS(H-VH),13,1)/SMA(MAX(H-VH,0),13,1)*100;

ABC2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;

ABC3:=REF(CLOSE,1);

ABC4:=MA(ABC2,13);

ABC5:=LLV(L,34);

ABC6:=SMA(MAX(CLOSE-ABC3,0),6,1)/SMA(ABS(CLOSE-ABC3),6,1)*100;

ABC7:=CROSS(93,ABC6);

ABC8:=EMA(IF(L<=ABC5,ABC4,0),3);

ABC9:=H>LLV(L,0)*7;

ABC10:=(SMA(SMA((((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))) * 100),7,1),5,1));

ABC11:=((SMA(((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54)) * 100),7,1)) * 16.18) - (ABC10 * 10.9);

上攻:=FILTER(CROSS(J1,J2) AND VOL>REF(SUM(VOL,5),1),3),COLOR0066FF,LINETHICK2;

ACB10:=-100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10));

ACB45:=-100*(HHV(HIGH,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45));

ACB99:=-100*(HHV(HIGH,99)-CLOSE)/(HHV(HIGH,99)-LLV (LOW,99));

顶:= 0;

底1:=-95;


{点火启动主图源码如下}


EMACB13:=EMA(C,13),COLORWHITE;

EMACB21:=EMA(C,21),COLORYELLOW;

EMA34:=EMA(C,34),COLORFF00FF;

EMA60:=MA(C,60),COLORFFCC66;

ABC2:=(2*CLOSE+HIGH+LOW)/4;

MA5:MA(CLOSE,5),COLORFFFFFF, DOTLINE LINETHICK1;

ABC3:=IF(YEAR>=2099 AND MONTH>2,0,1);

ABC4:=LLV(LOW,5); ABC5:=HHV(HIGH,4);

SH:=EMA((ABC2-ABC4)/(ABC5-ABC4)*100,4)*ABC3;

ZJ:=EMA(0.667*REF(SH,1)+0.333*SH,2)*ABC3;

DRAWTEXT(CROSS(SH,ZJ) AND SH<30,L-0.05,'←低吸'),COLORLIRED;

DRAWTEXT(CROSS(ZJ,SH) AND SH>70,H+0.05,'←高抛'),COLORGREEN;

DRAWICON(CROSS(SH,ZJ) AND SH<30,L-0.05,1);

DRAWICON(CROSS(ZJ,SH) AND SH>70,H+0.05,2);

ABC9:=CLOSE-REF(CLOSE,5);

ABCA:=EMA(EMA(ABC9,5),5)/EMA(EMA(ABS(ABC9),5),5);

ABCC:=EMA(EMA(ABC9,20),20)/EMA(EMA(ABS(ABC9),20),20);

MC:=IF(ABCA>0 AND CROSS(ABCC,ABCA),90,100);

DRAWICON(MC<0,H+0.05,2); MX:=EMA(CLOSE,2);

卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);

B1:IF(CROSS(MX,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;

S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;

VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;

S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;

ACB0:=(L+H+C*2)/4;

ACB1:EMA(ACB0,14)COLORBLUE,LINETHICK2;

ACB2:=EMA(ACB0,25)COLORLIBLUE,LINETHICK2;

ACB1X:=(ACB1-REF(ACB1,1))/REF(ACB1,1)*100,NODRAW;

ACB2X:=(ACB2-REF(ACB2,1))/REF(ACB2,1)*100,NODRAW;

看多:IF(ACB1X>=0 AND BARSLAST(CROSS(ACB1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(ACB1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};

逃顶:IF(ACB1X<0 AND BARSLAST(CROSS(0,ACB1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,ACB1X))),DRAWNULL),COLORCYAN,{LINETHICK2};

MRCG:IF(ACB1X>=0,ACB1,DRAWNULL)COLORRED,LINETHICK3;

MC空仓:IF(ACB1X<0 AND ACB2X<0,ACB1,DRAWNULL)COLORGREEN,LINETHICK3;

STICKLINE(CROSS(ACB1X,0),H,L,0,0 ),COLOR9933FF;

STICKLINE(CROSS(ACB1X,0),C,O,3,0 ),COLORYELLOW ;

STICKLINE(CROSS(ACB1X,0),C,O,1,0 ),COLOR0033FF;

STICKLINE(CROSS(0,ACB1X),L,H,0,0 ),COLOR66CC33;

DRAWICON(CROSS(ACB1X,0),L,9);


来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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