1.【通达信】量化擒龙先手!通达主附/选股指标源码分享
2.通达信换手率看主力指标公式源码
3.请问 通达信的信对系统ddi指标源码
4.真正实用的通达信技术指标在这里,分型顶底+妖股来了,照指指标附带源码
5.手机版通达信指标精选更新:副图--“指明灯”(源码)
【通达信】量化擒龙先手!标源主附/选股指标源码分享
通达信量化擒龙先手!码通主附图/选股指标源码分享
一. 指标简介:
二. 主图指标源码
MA5:MA(C,达信angular源码打包5);
MA:MA(C,);
MA:MA(C,);
MA:MA(C,);
DIF1:=EMA(CLOSE,)-EMA(CLOSE,);
DEA1:=EMA(DIF1,9);
AAA1:=(DIF1-DEA1)*2*;
AAA上:=IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL);
AAA下:=IF(AAA1
买:=;
入:=AAA1-REF(AAA1,1);
正大:=CROSS(入,买);
DIF:=EMA(CLOSE,)-EMA(CLOSE,);
DEA:=EMA(DIF,);
AAA:=(DIF-DEA)*2*;
牛股:=CROSS(AAA-REF(AAA,1),);
正大牛股:=正大 AND 牛股;
HSL:=V/CAPITAL*>5;
S1:=IF(NAMELIKE('S'),0,1);
S2:=IF(NAMELIKE('*'),0,1);
Z3:=NOT(INBLOCK('近期解禁'));
Z4:=NOT(INBLOCK('拟减持'));
Z5:=NOT(INBLOCK('股东减持'));
Z6:=NOT(INBLOCK('基金减持'));
Z7:=NOT(INBLOCK('即将解禁'));
Z8:=IF(CODELIKE(''),0,1);
Z9:=IF(CODELIKE('8'),0,1);
去掉:=S1 AND S2 AND Z3 AND Z4 AND Z5 AND Z6 AND Z7 AND Z8 AND Z9;
AA:=MA(CLOSE,8);
BB:=((ATAN((AA - REF(AA,1))) * 3.) * );
均线:=MA(CLOSE,);
均线:=MA(CLOSE,);
均线:=MA(CLOSE,);
天马:=((((((OPEN <= 均线) AND ((均线 - REF(均线,1)) > 0))
AND (CLOSE > 均线)) AND (BB > 1)) AND ((CLOSE / OPEN) > 1.)));
{ 股价必涨}
AA:=IF(CLOSE/REF(CLOSE,1)>1. AND HIGH/CLOSE<1. AND IF(CLOSE>REF(CLOSE,1),,0)>0, , 0);
SS:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)
SC:=LHHV(MA((LOW+HIGH+CLOSE)/3,5),) AND C>REF(C,1) AND C>O;
MR:=SC AND COUNT(SS,2);
BB:=MR AND NOT(REF(MR,1));
股价必涨:=AA OR BB OR 天马;
{ 抄底}
二十日换手率:=BETWEEN(SUM(HSCOL,),,);{ 意思是 日换手率介于---之间}
DFO:=(C-REF(C,1))/REF(C,1)*<-5;
AAO:=BARSLAST(DFO);
突破:=CROSS(C,REF(O,AAO));
抄底:=二十日换手率 AND 突破;
三.副图指标源码:
DIF1:=EMA(CLOSE,)-EMA(CLOSE,);
DEA1:=EMA(DIF1,9);
AAA1:=(DIF1-DEA1)*2*;
AAA上:=IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL);
AAA下:=IF(AAA1
买:=;
入:=AAA1-REF(AAA1,1);
正大:=CROSS(入,买);
DIF:=EMA(CLOSE,)-EMA(CLOSE,);
DEA:=EMA(DIF,);
AAA:=(DIF-DEA)*2*;
牛股:=CROSS(AAA-REF(AAA,1),);
正大牛股:=正大 AND 牛股;
HSL:=V/CAPITAL*>5;
S1:=IF(NAMELIKE('S'),0,1);
S2:=IF(NAMELIKE('*'),0,1);
Z3:=NOT(INBLOCK('近期解禁'));
Z4:=NOT(INBLOCK('拟减持'));
Z5:=NOT(INBLOCK('股东减持'));
Z6:=NOT(INBLOCK('基金减持'));
Z7:=NOT(INBLOCK('即将解禁'));
Z8:=IF(CODELIKE(''),0,1);
Z9:=IF(CODELIKE('8'),0,1);
去掉:=S1 AND S2 AND Z3 AND Z4 AND Z5 AND Z6 AND Z7 AND Z8 AND Z9;
AA:=MA(CLOSE,8);
BB:=((ATAN((AA - REF(AA,1))) * 3.) * );
均线:=MA(CLOSE,);
均线:=MA(CLOSE,);
均线:=MA(CLOSE,);
天马:=((((((OPEN <= 均线) AND ((均线 - REF(均线,1)) > 0))
AND (CLOSE > 均线)) AND (BB > 1)) AND ((CLOSE / OPEN) > 1.)));
{ 股价必涨}
AA:=IF(CLOSE/REF(CLOSE,1)>1. AND HIGH/CLOSE<1. AND IF(CLOSE>REF(CLOSE,1),,0)>0, , 0);
SS:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)
SC:=LHHV(MA((LOW+HIGH+CLOSE)/3,5),) AND C>REF(C,1) AND C>O;
MR:=SC AND COUNT(SS,2);
BB:=MR AND NOT(REF(MR,1));
股价必涨:=AA OR BB OR 天马;
{ 抄底}
二十日换手率:=BETWEEN(SUM(HSCOL,),,);{ 意思是 日换手率介于---之间}
DFO:=(C-REF(C,1))/REF(C,1)*<-5;
AAO:=BARSLAST(DFO);
突破:=CROSS(C,REF(O,AAO));
抄底:=二十日换手率 AND 突破;
四. 选股指标源码
指标源码内容与前文一致,仅包含主图和副图指标源码,源码用于量化分析股票。通达指标包括移动平均线、信对系统MACD、照指指标股价波动判断、标源换手率分析等,码通通过设置条件筛选出具有投资潜力的达信股票。使用时根据具体市场情况和策略进行调整。源码注意:指标的通达有效性需结合市场情况综合判断,不应单一依赖。
通达信换手率看主力指标公式源码
以下是一个通达信中用于分析主力指标的换手率公式源码:
N设为5;
X_1计算公式为:如果SETCODE等于0或1,取倍的volume,否则取VOL,然后除以FINANCE(7)的百分之一百;
X_2则是对DBQRV.ZS的N日移动平均值;
换手率显示为X_1,不绘制,开元免费java源码颜色为灰色;
X_3通过调整公式计算换手率与价格波动幅度的关系;
主买信号由IF语句判断,当收盘价大于开盘价时,X_3乘以(高-低);否则,如果收盘价小于开盘价,X_3乘以(高-收盘价+(开盘价-低));
主卖信号类似,同样是基于收盘价与开盘价的关系,但颜色不同,显示为主卖均线为1日移动平均,不绘制,颜色为青色;
换手率均线则是bc ssc qp源码对换手率的1日移动平均,同样不绘制;
换手异动和5分别表示日和5日的指数移动平均值的换手率异动指标,不绘制,**和**,分别用于快速和短期的异动监控;
最后,当换手异动5日指标小于日指标加时,显示为灰色。
请问 通达信的ddi指标源码
N:=;N1:=;M:=;M1:=5;TR1:=MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1)));
DMZ:=IF((H+L)<=(REF(H,1)+REF(L,1)),0,TR);
DMF:=IF((H+L)>=(REF(H,1)+REF(L,1)),0,TR);
DIZ:=SUM(DMZ,N)/(SUM(DMZ,N)+SUM(DMF,N));
DIF:=SUM(DMF,N)/(SUM(DMF,N)+SUM(DMZ,N));
DDI:DIZ-DIF,COLORSTICK,LINETHICK3;
ADDI:SMA(DDI,N1,M),COLORWHITE,LINETHICK1;
AD:MA(ADDI,M1),COLORYELLOW,LINETHICK1;
真正实用的通达信技术指标在这里,分型顶底+妖股来了,附带源码
有些人认为我发布的技术指标华而不实,毫无辅助判断价值。傲玩 c 源码然而,我认为这种看法是错误的。技术指标并非一朝一夕之物,若你在使用过程中遭遇损失,可能是方法不当或指标本身存在误差。
今日,我将用自己常用的技术指标与传统指标进行对比,以证明技术指标的实际效用。
分型顶底幅图指标是一种典型的“优化MACD”指标,与传统MACD相比,spdif输出源码输出它更为详细,能直观显示出金叉与死叉的分界线,同时成交量的高低也更为明确。
分型顶底幅图公式代码如下:
DIFF:EMA(CLOSE,7) - EMA(CLOSE,); DEA:EMA(DIFF,9); DRAWBAND(DIFF,RGB(,,),DEA,RGB(,,)); MACD:2*(DIFF-DEA),COLORSTICK; A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)); A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,,),"RSI.RSI2"(6,,)),1)); B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,,),A3+1)<"RSI.RSI1"(6,,) AND CROSS("RSI.RSI1"(6,,),"RSI.RSI2"(6,,)); C1:=BARSLAST(REF(CROSS(DEA,DIFF),1)); D1:=REF(C,C1+1)DIFF AND CROSS(DEA,DIFF); C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1)); D2:=REF(C,C2+1)"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)); C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,,),"RSI.RSI1"(6,,)),1)); D3:=REF(C,C3+1)"RSI.RSI1"(6,,) AND CROSS("RSI.RSI2"(6,,),"RSI.RSI1"(6,,)); STICKLINE(B1>0,-0.1,0,1,0),COLORRED; STICKLINE(B2>0,-0.1,0,1,0),COLORFFFF; STICKLINE(B3>0,-0.1,0,1,0),COLORYELLOW; STICKLINE(D1>0,0.1,0,1,0),COLORFF; STICKLINE(D2>0,0.1,0,1,0),COLORFFCC; STICKLINE(D3>0,0.1,0,1,0),COLORWHITE; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORYELLOW; STICKLINE(MACD=REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORMAGENTA; STICKLINE(C>0,0,0,,1),COLORBLUE; MACD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT; KDJ底背:IF(B2>0,-0.1,0),COLORFFFF,POINTDOT; RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT; MACD顶背:IF(D1>0,0.1,0),COLORFF,POINTDOT; KDJ顶背:IF(D2>0,0.1,0),COLORFFCC,POINTDOT; RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT; 强:IF(DIFF>MA(DIFF,2),DIFF,DRAWNULL),COLORRED,LINETHICK2; 弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA,LINETHICK2; DRAWICON(CROSS(DIFF,DEA),DEA,5); DRAWICON(CROSS(DEA,DIFF),DEA,); A:=REF(DIFF,1)REF(DIFF,1); B:=REF(DIFF,1)>REF(DIFF,2) AND REF(DIFF,2)>REF(DIFF,3) AND DIFF 0),0,MACD,0.1,0),COLORCC; STICKLINE((MACD > 0),0,MACD*0.9,0.1,0),COLOREE; STICKLINE((MACD > 0),0,MACD*0.8,0.1,0),COLORFF; STICKLINE((MACD > 0),0,MACD*0.7,0.1,0),COLORFF; STICKLINE((MACD > 0),0,MACD*0.6,0.1,0),COLORFF; STICKLINE((MACD > 0),0,MACD*0.5,0.1,0),COLORFF; STICKLINE((MACD > 0),0,MACD*0.4,0.1,0),COLORFF; STICKLINE((MACD > 0),0,MACD*0.3,0.1,0),COLORBBFF; STICKLINE((MACD > 0),0,MACD*0.2,0.1,0),COLORDDFF; STICKLINE((MACD > 0),0,MACD*0.1,0.1,0),COLORFFFF; STICKLINE((MACD < 0),0,MACD,0.1,0),COLORCC; STICKLINE((MACD < 0),0,MACD*0.9,0.1,0),COLOREE; STICKLINE((MACD < 0),0,MACD*0.8,0.1,0),COLORFF; STICKLINE((MACD < 0),0,MACD*0.7,0.1,0),COLORFF; STICKLINE((MACD < 0),0,MACD*0.6,0.1,0),COLORFF; STICKLINE((MACD < 0),0,MACD*0.5,0.1,0),COLORFF; STICKLINE((MACD < 0),0,MACD*0.4,0.1,0),COLORFF; STICKLINE((MACD < 0),0,MACD*0.3,0.1,0),COLORFFBB; STICKLINE((MACD < 0),0,MACD*0.2,0.1,0),COLORFFDD; STICKLINE((MACD < 0),0,MACD*0.1,0.1,0),COLORFFFF;
手机版通达信指标精选更新:副图--“指明灯”(源码)
手机版通达信指标精选:副图“指明灯”源码解析 今天,我们带来手机版通达信的新鲜指标更新,副图上的一盏“指明灯”——助您在交易中找到方向。下面是一些关键的源码片段: RSV 指标:RSV = (CLOSE - LLV(LOW, 9)) / (HHV(HIGH, 9) - LLV(LOW, 9)) * ;
K 线:K = SMA(RSV, 3, 1);
D 线:D = SMA(K, 3, 1);
J 线:J = 3 * K - 2 * D;
特别注意:2 线以深红色显示,5 线以浅蓝色显示,线以深蓝色粗线呈现。 接下来,VAR1 与 VAR2 的计算提供了价格动态的洞察: VAR1 = C - REF(C, 1); VAR2 = * EMA(EMA(VAR1, 6), 6) / EMA(EMA(ABS(VAR1), 6), 6), 6); MA5 和 MA 是短期和长期移动平均线的代表: MA5 = EMA(C, 5); MA = EMA(C, ); 然后是UP和DOWN的画线技术,用于捕捉趋势变化:UP: 当MA和MA5交叉上穿时,显示蓝色上升线。
DOWN: 当MA5和MA交叉下穿时,显示绿色下降线。
而BT函数则综合判断趋势和反转信号: BT = (VAR2的最低点出现在2周期和7周期内,且连续2周期VAR2为负,且DOWN线的下一根低于上一根,且UP线高于DOWN线上一根)的信号。 最后,TJ1、TJ2和ST则进一步细化了不同的牛熊状态:TJ1: 长周期看跌,短周期看涨,价格低于高位%时,显示不同颜色的牛状态。
TJ2: 长周期看跌,价格低于周期波动范围的中位线,标记为大牛。
ST: 当短期上升趋势被打破,价格低于长期上移趋势时,卖出信号以绿色标记。
请记住,这些公式源码仅为学习和研究用途,任何商业或非法使用需自行负责。指标观点仅供参考,实际操作时请自行判断并承担风险。如需技术支持或解码,请联系我们的团队,我们将尽快回复。感谢您的关注和点赞,一起分享投资智慧!