通达信CCI共振副图指标 三周期三指标共振抓牛股妖股 源码


VAR11:=0.618/3;
VAR12:=2*HIGH-LOW/3;
VAR13:=IF(CLOSE>60,618,61.8)/3;
逃顶:LOG(VAR11)*DMA(EMA(CLOSE,60),
SUM(VOL,60)/CAPITAL)*EXP(VAR12)/POW(VAR13,6)/2,NODRAW;


{RSI}
正向周1:("RSI.RSI1#WEEK"),COLORMAGENTA,LINETHICK1;
正向月1:("RSI.RSI1#MONTH"),COLORWHITE,LINETHICK1;
正向周2:("RSI.RSI2#WEEK"),COLORMAGENTA,LINETHICK3;
正向月2:("RSI.RSI2#MONTH"),COLORWHITE,LINETHICK3;
DRAWTEXT(ISLASTBAR,正向月1,' ←正向月1'),COLORRED;
DRAWTEXT(ISLASTBAR,正向周1,' ←正向周1'),COLORRED;
STICKLINE(正向周1>50 OR 正向周1>50,100,110,0.8,0),COLORMAGENTA;
STICKLINE(正向月1>50 OR 正向月2>50,120,110,0.8,0),COLORRED;
STICKLINE(正向月1<正向周1,120,130,0.8,0),COLORYELLOW;
{WR}
反向周1:("WR.WR1#WEEK"),COLORGREEN,LINETHICK3;
反向月1:("WR.WR1#MONTH"),COLORFFFF00,LINETHICK5;
反向周2:("WR.WR2#WEEK"),COLORGREEN,LINETHICK1;
反向月2:("WR.WR2#MONTH"),COLORFFFF00,LINETHICK5;
DRAWTEXT(ISLASTBAR,反向月1,' ←反向月1'),COLORGREEN;
DRAWTEXT(ISLASTBAR,反向周1,' ←反向周1'),COLORGREEN;

DRAWBAND(正向月1,RGB(255,80,0),反向月1,RGB(0,80,255));
DRAWBAND(正向周1,RGB(255,0,80),反向周1,RGB(80,0,255));
{CCI月周日}
换手:VOL/CAPITAL*100,NODRAW,COLORRED;
牛熊线:100,COLORGREEN,DOTLINE;
{CCI日周月}
月C:("CCI.CCI#MONTH"(14)),COLOR000080,LINETHICK5;
周C:("CCI.CCI#WEEK"(14)),COLORYELLOW,LINETHICK3;
STICKLINE(月C<周C AND 月C>200,周C,月C,2.5,0),COLORRED;
日C:=("CCI.CCI"(14)),COLOR8080FF,LINETHICK2;
QS:=周C>=月C AND 周C>=200 AND 月C>=110;
STICKLINE(QS,-115,-105,3,0),COLORRED;

{RSI波段}
LC:=REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,LINETHICK2;
MA6:=MA(RSI6,6),COLORGREEN;
短波:=IF(MA6>REF(MA6,1) OR RSI6>MA6,MA6,DRAWNULL),COLORRED,LINETHICK2;
{游侠副图}
TYPD:=IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3;
游侠CCI:=EMA((TYPD-MA(TYPD,36.0270012))/(0.015*AVEDEV(TYPD,36.0270012)),2.0332),COLORWHITE,LINETHICK2;
日:游侠CCI,COLORWHITE,LINETHICK2;
粉低吸:EVERY(游侠CCI<-150 AND 游侠CCI<REF(游侠CCI,1),3),NODRAW,COLORFF00FF;
STICKLINE(游侠CCI<-150,游侠CCI,-150,2,0),COLORFF80FF;
STICKLINE(C>0,-150,-151,2,0),COLORBLUE;

{CCI日周月}{改编 BY SHUHONG}
{BSQJ指标}{买卖区间}
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(买线>=卖线,0,10,2,1),COLOR2040FF;
STICKLINE(买线<卖线,0,-10,2,1),COLOR6CE424;
DRAWTEXT(ISLASTBAR,月C,' ←月C'),COLORRED;
DRAWTEXT(ISLASTBAR,周C,' ←周C'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,日,' ←日'),COLORWHITE;

200,COLORYELLOW,DOTLINE;
50,COLORMAGENTA,DOTLINE;
20,COLORRED,DOTLINE;
STICKLINE(月C>200,200,月C,0.5,1),COLORYELLOW;
STICKLINE(反向周1<20 OR 反向周2<20,-20,-10,0.8,0),COLORRED;
STICKLINE(反向月1<20 OR 反向月2<20,-20,-30,0.8,0),COLORMAGENTA;
STICKLINE(反向周1<反向月1,-40,-30,0.8,0),COLORYELLOW;
DRAWICON(CROSS(日C,100) AND 周C>=月C AND 周C>=200 AND 月C>=110,日C,38);
DRAWICON(CROSS(游侠CCI,100) AND 周C>=月C AND 周C>=200 AND 月C>=110 ,游侠CCI,34);
DRAWICON(CROSS(游侠CCI,110) AND 周C>=月C AND 周C>=200 AND 月C>=0 AND 短波,游侠CCI,1);

TYP2:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP2-MA(TYP2,14))*1000/(15*AVEDEV(TYP2,14)),COLOR4080FF;
ECCI:EMA(CCI,13),COLORWHITE,DOTLINE;


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

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

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