通达信黄金战神指标公式源码副图

1.【区域划分】紫色为高风险区,需谨慎;橙色区域为安全区,可结合其他指标考虑上车;中间区域红色区持股,绿色区持币。
2. 【绿钻】:上车信号;【蓝柱】:离场信号 }

rsi1:=(CLOSE-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
RSI2:=100*(HHV(H,9)-CLOSE)/(HHV(H,9)-LLV(L,9));
TJ1:=SMA(RSI2,9,1)+100;
TJ2:=SMA(RSI1,3,1);
TJ3:=SMA(TJ2,3,1)+100;
区分线:=TJ3-TJ1+50;
VAR2:=LLV(L,33);
VAR3:=HHV(H,21);
VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,10)*-1+100;
QSX:=100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1);
STICKLINE(C,100,90,4,0),COLORC80064;
STICKLINE(C,90,80,4,0),COLORFF8080 ;
STICKLINE(区分线>REF(区分线,1),20,80,4,0),COLOR6C6CFF;
STICKLINE(区分线<REF(区分线,1),20,80,4,0),COLOR5C891B;
STICKLINE((QSX>REF(QSX,1) AND 区分线<REF(区分线,1)),20,80,4,0),COLOR6C6CFF;
STICKLINE((QSX<REF(QSX,1) AND 区分线>REF(区分线,1)),20,80,4,0),COLOR5C891B;
STICKLINE(C,20,10,4,0),COLOR0068D0;
STICKLINE(C,10,0,4,0),COLOR004488;
顶分线:=90,COLORC08080;
底分线:=10,COLOR4080FF;
趋势线:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),LINETHICK3,COLORFF00FF;
当前安全度:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),CIRCLEDOT,LINETHICK1,COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=6,5,'高安全区'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=6,15,'安全区'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=6,45,'绿色持币'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=6,50,'(持股)'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=6,55,'红色持股'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=6,85,'风险区'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=6,95,'高风险区'),COLORWHITE;
{拉升}
TJ4:=LLV(L,17);
TJ5:=SMA(Abs(L-REF(L,1)),17,1);
TJ6:=SMA(MAX(L-REF(L,1),0),17,2);
Q:=-(EMA(IF(L<=TJ4,TJ5/TJ6,-3),1));
STICKLINE(crOSS(Q,0),15,0,4,0), COLORFF80FF,LINETHICK2;
拉升: IF(CROSS(Q,0),1,0),COLORFF00FF;
Q1:= (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, COLOR00FF00,LINETHICK2;
STICKLINE(CROSS(Q1,-24),20,0,4,0),COLORMAGENTA,LINETHICK2;
暴力拉升: IF(CROSS(Q1,-24),1,0),COLORMAGENTA;
VAR22:=expma(EXPMA(EXPMA((2*CLOSE+H+L)/4,4),4),4);
TIMA:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,2));
DIMA:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,1));
STICKLINE(DIMA>TIMA AND DIMA<0,10,0,1,0),COLORRED;
开始拉升:STICKLINE(DIMA>TIMA AND DIMA<0,10,0,1,0)=1,COLOR8080FF;
{<<波段绝品>>}
VATJ1:=(HHV(H,9)-CLOSE)/(HHV(H,9)-LLV(L,9))*100-70;
VATJ2:=SMA(VATJ1,9,1)+100;
VATJ3:=(CLOSE-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
VATJ4:=SMA(VATJ3,3,1);
VATJ5:=SMA(VATJ4,3,1)+100;
VATJ6:=VATJ5-VATJ2;
QSX1: IF(VATJ6>45,VATJ6-45,0),COLOR0080FF,LINETHICK2;
VATJ7:=REF(L,1);
VATJ8:=SMA(ABS(L-VATJ7),3,1)/SMA(MAX(L-VATJ7,0),3,1)*100;
VATJ9:=EMA(IF(CLOSE*1.3,VATJ8*10,VATJ8/10),3);
VATJ10:=LLV(L,30);
VATJ11:=HHV(VATJ9,30);
VATJ12:=IF(MA(CLOSE,58),1,0);
VATJ13:=EMA(IF(L<=VATJ10,(VATJ9+VATJ11*2)/2,0),3)/999*VATJ12;
波动王:=IF(VATJ13>100,100,VATJ13);
STICKLINE(波动王>0 AND 波动王>REF(波动王,1),0 ,波动王*1.2,3.5,0 ),COLOR0080FF{COLOR00FFFF};
STICKLINE(波动王>0 AND 波动王>REF(波动王,1),0 ,波动王*1.2,2.5,0 ),COLOR2291FF{COLOR5555FF};
STICKLINE(波动王>0 AND 波动王>REF(波动王,1),0 ,波动王*1.2,1.5,0 ),COLOR1E8EFF{COLOR7777FF};
STICKLINE(波动王>0 AND 波动王>REF(波动王,1),0 ,波动王*1.2,0.5,0 ),COLOR3E9EFF{COLOR9999FF};
STICKLINE(REF(QSX1,1)< QSX1, QSX1,REF(QSX1,1),3.5,0),COLOR0000B9;
STICKLINE(REF(QSX1,1)< QSX1, QSX1,REF(QSX1,1),2.8,0),COLOR0000B9;
STICKLINE(REF(QSX1,1)< QSX1, QSX1,REF(QSX1,1),2.0,0),COLOR0000D0;
STICKLINE(REF(QSX1,1)< QSX1, QSX1,REF(QSX1,1),1.2,0),COLOR0000EA;
STICKLINE(REF(QSX1,1)< QSX1, QSX1,REF(QSX1,1),0.4,0),COLOR0000FF;
STICKLINE(REF(QSX1,1)> QSX1, QSX1,REF(QSX1,1),3.5,0),COLOR009100;
STICKLINE(REF(QSX1,1)> QSX1, QSX1,REF(QSX1,1),2.8,0),COLOR00A600;
STICKLINE(REF(QSX1,1)> QSX1, QSX1,REF(QSX1,1),2.0,0),COLOR00A600;
STICKLINE(REF(QSX1,1)> QSX1, QSX1,REF(QSX1,1),1.2,0),COLOR00AE00;
STICKLINE(REF(QSX1,1)> QSX1, QSX1,REF(QSX1,1),0.4,0),COLOR00D200;
离场:=CROSS(82,RSI);
STICKLINE(离场,离场,10,3.5,0),COLORFF0000;
STICKLINE(离场,离场,15,2.5,0),COLORFF0000;
STICKLINE(离场,离场,20,1.5,0),COLORFF0000;
STICKLINE(离场,离场,25,0.5,0),COLORFFCC00;
STICKLINE(离场,离场,30,0.1,0),COLOR00D700;
D1:=(C+L+H)/3;
D2:=EMA(D1,6);
D3:=EMA(D2,5);
买:=CROSS(D2,D3);
强弱分线:50,COLORFF0000,POINTDOT;
DRAWICON(买,19,27);
DRAWICON(买,16,1);
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VARR1),10,15);
DRAWTEXT(CROSS(82,VARR1),35,'离场'),COLORYELLOW;



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

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

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

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