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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 赵机三宝(源码 副图 贴图)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-10 19:10:34
赵机三宝(源码 副图 贴图)介绍

赵机三宝(源码 副图 贴图)

选股,看盘,都是看趋势,看共振,定出入点。
普通的自用,凑合而成的指标。

副图原码:引用:
N:=18;M1:=3;M2:=3;
DIFF:=(EMA(C,5)-EMA(C,26))/EMA(C,26)*1000,COLOR000000;
DDEA:=EMA(DIFF,50),COLOR000000;
MACD:2*(DIFF-DDEA)+50,COLOR000000;
STICKLINE(MACD<REF(MACD,1)AND MACD>50,50,MACD,1,0),COLORCYAN;
STICKLINE(MACD<REF(MACD,1)AND MACD<50,50,MACD,1,0),COLORCYAN;
STICKLINE(MACD>REF(MACD,1)AND MACD<50,50,MACD,1,0),COLORYELLOW;
STICKLINE(MACD>REF(MACD,1)AND MACD>50,50,MACD,1,0),COLORFF00FF;

BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
STICKLINE(CROSS(BIAS,乖离) AND 乖离<-9,8,0,2,0),COLORYELLOW;
中轴:50,COLORWHITE;

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
%K:MA(RSV,M1),COLORBLUE;
%D:MA(%K,M2),COLORAA00DD;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
VAR1:=HHV(DEA,53);
VAR2:=LLV(DEA,55);
VAR3:=DEA-(DIF-DEA);
UP:=IF(DIF>VAR1 AND DEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1);
DN:=IF(DIF<VAR2 AND DEA=VAR2,MIN(HHV(VAR2,10),VAR3),VAR2);
下美人眼:IF(DIF<DN,-5,DRAWNULL),COLOR00BB00,LINETHICK3; {通达信}
上美人眼:IF(DIF>UP,104,DRAWNULL),COLOR00BB00,LINETHICK3; {通达信};

J:=3*%K-2*%D,COLORWHITE;
OBV:=%K;
AAA1:=REF(OBV,5)=HHV(OBV,2*5+1);
BBB1:=FILTER(AAA1,5);
CCC1:=BACKSET(BBB1,5+1);
DDD1:=FILTER(CCC1,5);{高点}
AAA2:=REF(OBV,5)=LLV(OBV,2*5+1);
BBB2:=FILTER(AAA2,5);
CCC2:=BACKSET(BBB2,5+1);
DDD2:=FILTER(CCC2,5);{低点}
DRAWICON(DDD1,OBV,8);
DRAWICON(DDD2,OBV,7);


六日RSI:SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,LINETHICK2,COLORRED;
趋势线:DRAWLINE(六日RSI>=HHV(六日RSI,10),六日RSI,六日RSI<=LLV(六日RSI,3),HHV(六日RSI,3),1),COLORCYAN;
上穿:=CROSS(六日RSI,趋势线);
DRAWICON(上穿 AND 六日RSI<75,趋势线,25);

P:=5; N1:=6; HIGHN:=20;
LC:=REF(CLOSE,1);
AA:=REF(六日RSI,HIGHN)=HHV(六日RSI,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND 六日RSI=HHV(六日RSI,HIGHN+1);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
AA1:=REF(六日RSI,HIGHN)=LLV(六日RSI,2*HIGHN+1);
QY1:=BACKSET(AA1,HIGHN+1);
CC1:=FILTER(QY1,HIGHN) AND 六日RSI=LLV(六日RSI,HIGHN+1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
A1:=REF(六日RSI,P)=HHV(六日RSI,2*P+1);
B1:=FILTER(A1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);
A2:=REF(六日RSI,P)=LLV(六日RSI,2*P+1);
B2:=FILTER(A2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);
R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);
S11:=R11>REF(R11,1);
T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
U11:=T11>REF(T11,1);
MID:=MA(六日RSI,20);
UPPER:=MID + 2*STD(六日RSI,20);
LOWER:=MID - 2*STD(六日RSI,20);
高:=REF(HHV(六日RSI,360),1);
低:=REF(LLV(六日RSI,240),1);

DRAWICON(CC,六日RSI*1.03,2);
DRAWICON(CC1,六日RSI*0.97,1);
高压:DRAWLINE(CURRBARSCOUNT=GDCS2,六日RSI,CURRBARSCOUNT=GDCS1,六日RSI,1) COLORBLUE,POINTDOT,LINETHICK4;
低支:DRAWLINE(CURRBARSCOUNT=DDCS2,六日RSI,CURRBARSCOUNT=DDCS1,六日RSI,1) COLORRED,POINTDOT,LINETHICK4;

阻力:DRAWLINE(D1,六日RSI,S11,六日RSI,1),COLORYELLOW;
支撑:DRAWLINE(D2,六日RSI,U11,六日RSI,1),COLOR00FF00;
DRAWTEXT(CROSS(六日RSI,LOWER),LOWER,'抄'),COLOR00FF00;
DRAWTEXT(CROSS(LOWER,六日RSI),LOWER,'▼'),COLOR00FF00;
DRAWTEXT(CROSS(六日RSI,高),MID,'年高'),COLORYELLOW;
DRAWTEXT(CROSS(低,六日RSI),MID,'年低'),COLORYELLOW;

DRAWTEXT(CROSS(UPPER,六日RSI),UPPER,'逃'),COLORYELLOW;
DRAWTEXT(CROSS(六日RSI,UPPER),UPPER,'▲'),COLORYELLOW;
VM:MA(六日RSI,N1),COLORFF00FF,NODRAW;
STICKLINE(CROSS(BIAS,乖离) AND 乖离<-9,6,0,2,0),COLORRED;
DRAWTEXT(ISLASTBAR AND 六日RSI>REF(六日RSI,1),VM,' ▲'),COLORDD00FF;
DRAWTEXT(ISLASTBAR AND 六日RSI<REF(六日RSI,1),VM,' ▼'),COLORCCEE00;


 




 



gd16287

回复

举报

QQ|

GMT+8, 2024-12-28 10:16

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