股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信新版龙头博弈主图指标公式源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-8-12 11:32:57

{指标介绍:
1、“笑脸”信号表示低开大阳线;它的意思是在相对低位的大阳线和相对高位大阴线之中,有一种K线属于异常的K线,它有别于一般的大阳线和大阴线。这就是操盘手常说的“老鼠仓”K线。这是一种特殊的K线形态。有时,一只个股在运行中的某一天,突然以低开很多开盘,然后迅速拉升,当天大涨,甚至有时会由跌停拉到涨停。
2、最近2日一直存在涨停的K线(这里设置的大于9.80就算),会显示黄色字体“龙”信号;
3、经过一段时间的连续急跌后,突然“刹车”出现的信号,会显示“黄钻石”信号,急跌后超级大黑马;
4、“钱袋子”信号表示建仓买入;红钻石表示“妖股突破”启动信号;
5、除“黄钻石”信号,其他信号均在多头趋势下出现;左右左侧观察,右侧买入的战法;
6、主图洋红色持股线上持有;收盘跌破红色线卖出;}

涨停:=IF((C-REF(C,1))*100/REF(C,1)>=9.80,1,0);
涨停龙:=EVERY(涨停,2);
DRAWTEXT(涨停龙,L*1.02,'↙龙'),COLORYELLOW;
STICKLINE(涨停龙,OPEN,CLOSE,1,0),COLORYELLOW;
UU:=3;
A88:=SUM(C*V,UU);
B88:=SUM(V,UU);
价值线:MA(A88/B88,7)COLORYELLOW,LINETHICK2;
ABC41:=REF(CLOSE,1);
ABC42:=((SMA(MAX((CLOSE - ABC41),0),7,1) / SMA(Abs((CLOSE - ABC41)),7,1)) * 100);
ABC43:=((SMA(MAX((CLOSE - ABC41),0),13,1) / SMA(ABS((CLOSE - ABC41)),13,1)) * 100);
ABC44:=((BARSLAST((ABC43 < 23)) <= 3) AND crOSS(ABC42,ABC43));
ABC45:=((((CLOSE - MA(CLOSE,23)) / MA(CLOSE,20)) * 100) < -12.5);
ABC46:=LLV(LOW,5);
ABC47:=HHV(HIGH,10);
ABC48:=EMA((((CLOSE - ABC46) / (ABC47 - ABC46)) * 100),4);
ABC49:=EMA(((0.667 * REF(ABC48,1)) + (0.333 * ABC48)),2);
DRAWTEXT((((0 - (-1 * ABC44)) AND ABC45) AND CROSS(ABC48,ABC49)) AND (ABC48 <=25),LOW*1.008,'急跌后超级大黑马'),COLORMAGENTA;
DRAWICON((((0 - (-1 * ABC44)) AND ABC45) AND CROSS(ABC48,ABC49)) AND (ABC48 <=25),L-0.10,26);
DRAWICON((((0 - (-1 * ABC44)) AND ABC45) AND CROSS(ABC48,ABC49)) AND (ABC48 <=25),L-0.38,26);
持股线1:MA(CLOSE,15),COLORMAGENTA,LINETHICK2;
AAA:MA(CLOSE,60),COLORBB0000;
DRAWKLINE(H,O,L,C);
时长:=120;
换手次数:=2;
选择方式:=1;
BBB:IF(选择方式=1,CONST(SUMBARS(V/ (7)*100,换手次数)),时长),NODRAW;
KK:=BBB;
高:=CONST(HHV(H,KK));
低:=CONST(LLV(L,KK));
CCC:=(高-低);
均价:=AMOUNT/V/100,NODRAW;
L0:=低+CCC*0/9;
L1:=低+CCC*1/9;
L2:=低+CCC*2/9;
L3:=低+CCC*3/9;
L4:=低+CCC*4/9;
L5:=低+CCC*5/9;
L6:=低+CCC*6/9;
L7:=低+CCC*7/9;
L8:=低+CCC*8/9;
L9:=低+CCC*9/9;
ABC_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
ABC_9:=FILTER(ABC_8,10);
ABC_10:=BARSLAST(ABC_9);
ABC_11:=REF(HIGH,ABC_10+2);
ABC_12:=REF(HIGH,ABC_10+1);
ABC_13:=REF(HIGH,ABC_10);
ABC_14:=MAX(ABC_11,ABC_12);
ABC_15:=MAX(ABC_14,ABC_13);
ABC_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
ABC_17:=ABC_10< 150;
ABC_18:=(OPEN-ABC_15)/ABC_15*100< 30;
ABC_19:=(CLOSE-LLV(LOW,ABC_10))/LLV(LOW,ABC_10)*100< 50;
ABC_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100< 30;
ABC_21:=vol/MA(VOL,5)< 3.5;
ABC_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100< 80;
ABC_25:=ABC_16 AND ABC_17 AND ABC_18 AND ABC_19 AND ABC_20 AND ABC_21 AND ABC_22;
暴利:=FILTER(ABC_25,15);
MA54:=MA(CLOSE,54)NODRAW;
PL1:=(((CLOSE-MA54)/MA54)< 0.1);
PL2:=(((CLOSE-AAA)/AAA)< 0.3);
偏离率:=(((PL1=1) AND (PL2=1))*0.2);
平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);
妖股突破:=平台突破=-0.1;
XDF:=(暴利 OR 妖股突破);
ABCA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
ABCAA:= (7)/(REF(CLOSE,1))>1.05 AND ( (7)/O>1.05);
FLIGA:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
妖股:=XDF AND C/REF(C,1)>1.095 AND FLIGA AND ABCAA;
DRAWICON(妖股,L*1.0,25);
LC11:=REF(CLOSE,1),NODRAW;
rsi11:=((SMA(MAX((CLOSE - LC11),0),3,1) / SMA(ABS((CLOSE - LC11)),3,1)) * 100);
FF:=EMA(CLOSE,3);
日:=150;
昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
收盘破红必跑:MA(CLOSE,7)COLORRED ,LINETHICK2;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
mtm1:=C-REF(C,1);
DX:=100*EMA(EMA(MTM1,6),6)/EMA(EMA(ABS(MTM1),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX< 0,2) AND CROSS(DX,MA(DX,2)),1,0);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
送礼:=O/REF(C,1)< 0.96 AND C/REF(C,1)>1.03 AND C/O>1.05 AND REF(C,1)/REF(C,2)>0.911;
DRAWICON(送礼,L*1.0,5);
DRAWTEXT(送礼,L*1.02,'↙老鼠仓'),COLORMAGENTA;
XG1:=MACD>0;
DRAWICON(买 AND XG1,L*1.0,9);
A63:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A64:=SMA(A63,3,1);
A5:=SMA(A64,3,1);
A6:=3*A64-2*A5;
A76:=C-REF(C,1);
A68:=100*EMA(EMA(A76,6),6)/EMA(EMA(ABS(A76),6),6);
买88:=LLV(A68,2)=LLV(A68,7) AND COUNT(A68< 0,2) AND CROSS(A68,MA(A68,2));
STICKLINE(买88,OPEN,CLOSE,2.5,0)COLORMAGENTA;
STICKLINE(买88,OPEN,CLOSE,1,0),COLORWHITE;





回复

举报

QQ|

GMT+8, 2024-11-16 09:55

快速回复 返回顶部 返回列表