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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信金牛涨停主图指标公式源码


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

{指标介绍:
1、橄榄色带系统,色带位置、宽窄和方向都有一定的讲究。色带位置在K线上面持币观望,静待机会。在K线下面继续持有。橄榄色色带比较窄,方向由平行转为上行,机会来了。
2、加多提示系统,出现“多”字图标考虑买入,出现红加号图标(绝大多数在“多”字图标后面),考虑加仓。
3、成本图形系统,即买入时的成本价位,分别反映不同阶段成本价位的情况,成本线有量王1和量王2两条线。成本线对下是压力位,上面的筹码是上行的压力。对上是支撑位,支撑股价不掉下来。}

所属地区:DRAWTEXT_FIX(1,0,0.05,0,1948),COLORCD7F32;
DRAWTEXT_FIX(1,0.05,0.05,0,DYBLOCK),COLORCYAN;
所属行业:DRAWTEXT_FIX(1,0,0.1,0,1949),COLORCD7F32;
DRAWTEXT_FIX(1,0.05,0.1,0,HYBLOCK),COLORCYAN;
所属概念:DRAWTEXT_FIX(1,0,0.15,0,1950),COLORCYAN;
DRAWTEXT_FIX(1,0.05,0.15,0,GNBLOCK),COLORCYAN;
所属风格:DRAWTEXT_FIX(1,0,0.2,0,1951),COLORCYAN;
DRAWTEXT_FIX(1,0.05,0.2,0,FGBLOCK),COLORCYAN;
ABC1:=CONST(DAYTODATE(DATETODAY(DATE)- (42)))+19000000;
DRAWTEXT_FIX(1,0,0.25,0,1952),COLORCYAN;
DRAWNUMBER_FIX(1,0.05,0.25,0,ABC1),COLORCYAN;
ABC2:=CLOSE/REF(CLOSE,1)>=1.095 AND CLOSE/REF(CLOSE,1)<=1.105 OR (CLOSE/REF(CLOSE,1)>=1.195 AND CLOSE/REF(CLOSE,1)<=1.205) OR (CLOSE/REF(CLOSE,1)>=1.295 AND CLOSE/REF(CLOSE,1)<=1.305) AND CLOSE=HIGH;
STICKLINE(ABC2,OPEN,CLOSE,1,0),COLORMAGENTA;
DRAWTEXT(ABC2,L*0.999,'★涨停'),COLORMAGENTA;
MA5:MA(CLOSE,5)DOTLINE COLORYELLOW;
ABC3:=AMOUNT*(OPEN+CLOSE)/2;
ABC4:=SUM(ABC3,21)/SUM(AMOUNT,21);
ABC5:=SUM(ABC3,55)/SUM(AMOUNT,55);
ABC6:=SUM(ABC3,144)/SUM(AMOUNT,144);
ABC7:=SUM(ABC3,377)/SUM(AMOUNT,377);
ABC8:=SUM(ABC3,34)/SUM(AMOUNT,34);
ABC9:=SUM(ABC3,89)/SUM(AMOUNT,89);
ABC10:=SUM(ABC3,233)/SUM(AMOUNT,233);
ABC11:=(ABC4+ABC5+ABC6+ABC7+ABC8+ABC9+ABC10)/7;
强势线:1.06*ABC11,COLORRED;
多空线:ABC11*0.8,COLORLIGREEN;
N1:=3;
N2:=5;
N3:=9;
N4:=13;
N5:=21;
N6:=34;
DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);
DEA:=EMA(DIFF,N2);
AAC1:=DIFF>DEA;
RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;
K:=SMA(RSV1,N1,1);
D:=SMA(K,N1,1);
AAC2:=K>D;
LC:=REF(CLOSE,1);
rsi1:=(SMA(MAX(CLOSE-LC,0),N2,1))/(SMA(Abs(CLOSE-LC),N2,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),N4,1))/(SMA(ABS(CLOSE-LC),N4,1))*100;
AAC3:=RSI1>RSI2;
RSV:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100;
Lwr1:=SMA(RSV,N1,1);
LWR2:=SMA(LWR1,N1,1);
AAC4:=LWR1>LWR2;
bbi:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;
AAC5:=CLOSE>BBI;
mtm:=CLOSE-REF(CLOSE,1);
mms:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1);
MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);
AAC6:=MMS>MMM;
bias:=(C-MA(C,N2))/MA(C,N2);
DIF:=(BIAS-REF(BIAS,16));
DBCD:=SMA(DIF,76,1);
MM:=MA(DBCD,5);
AAC7:=DBCD>MM;
持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0,COLORRED;
下跌:=MA(持股,12),COLOR6B8E23,LINETHICK0;
AAC8:=持股>下跌;
MT:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(MT,N3),N3)/EMA(EMA(ABS(MT),N3),N3);
MAZL:=MA(ZLGJ,5);
AAC9:=ZLGJ>MAZL;
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=vol/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE< OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE< OPEN,0-QJJ*(HIGH-LOW),0-VOL/2));
HSL:=(XVL/20)/1.15;
GJLL:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(GJLL,8);
LLJX:=EMA(GJLL,3);
ZJL:=LLJX,LINETHICK0,COLOR0000FF;
AAC10:=ZJL>0;
JCS:=(AAC1+AAC2+AAC3+AAC4+AAC5+AAC6+AAC7+AAC8+AAC9);
PP:=IF(JCS>5,1,0);
ACB1:=(CLOSE*2+HIGH+LOW)/4;
ACB2:=EMA(ACB1,13)-EMA(ACB1,21);
ACB3:=EMA(ACB2,2);
多头:=2*(ACB2-ACB3)*3.8;
DIF1:=EMA(CLOSE,9)-EMA(CLOSE,23);
DEAAC1:=EMA(DIF1,6);
macd:=(DIF1-DEAAC1)*2;
XG:=MACD>0;
金牛:=IF((crOSS(PP,0.99)),13,0);
强势:=IF(金牛,1,0) AND 多头>0 AND XG;
DRAWICON(强势,L,9);
STICKLINE(强势,OPEN,CLOSE,1,0),COLORYELLOW;





回复

举报

QQ|

GMT+8, 2024-11-6 02:54

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