❶ 请大家帮忙把大智慧宝塔线源码改成通达信的;
B1:=REF(C,1);
B2:=REF(C,2);
SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(C<REF(C,1) AND REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2) AND REF(C,2)>REF(C,1),2,IF(C<REF(C,2) AND REF(C,2)<REF(C,1),-2,0))));
SM:=IF(REF(SS,1)<0 OR REF(SS,1)>0,REF(SS,1),IF(REF(SS,2)<0 OR REF(SS,1)>0,REF(SS,2),IF(REF(SS,3)<0 OR REF(SS,1)>0,REF(SS,3),IF(REF(SS,5)<0 OR REF(SS,1)>0,REF(SS,5),IF(REF(SS,6)<0 OR REF(SS,1)>0,REF(SS,6),IF(REF(SS,7)<0 OR REF(SS,1)>0,REF(SS,7),0))))));
MC:IF(REF(SS,1)<0 OR REF(SS,1)>0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2))),COLORFF00FF;
STICKLINE(SS=1 OR SM>=1 AND SS=0,B1,C,4,1),COLORRED;
STICKLINE(SS=-1 OR SM<=-1 AND SS=0,B1,C,4,0),COLORFF9000;
STICKLINE(SS=2,B2,C,4,1),COLORRED;
STICKLINE(SS=-2,B2,C,4,0),COLORFF9000;
STICKLINE((SS=-1 OR SS=-2) AND SM>0,B2,B1,4,1),COLORRED;
STICKLINE((SS=1 OR SS=2) AND SM<0,B2,B1,4,0),COLORFF9000;
可以通过,但显示效果不如大智慧
❷ 求通达信顶底趋势指标源码
顶底趋势指标(通达信)
此指标是我精心收藏的指标,无未来函数,真正的好指标。图片演示在下面网址里.
趋势:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1) ,COLORGREEN;
STICKLINE(趋势>50,趋势,50,4,0),COLOR32329B;
STICKLINE(50>趋势,趋势,50,4,0),COLOR326400;
IF(趋势>50, 趋势,DRAWNULL), COLORRED;
RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);
DEA:=EMA(DIFF,6);
MACD:=2*(DIFF-DEA);
转点:=IF(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0);
STICKLINE(转点=1,50,50,6,0),COLORYELLOW;
STICKLINE(转点=0,50,50,6,0),COLORCYAN;
顶部:90,COLORYELLOW;
底部:10,COLORCYAN;
判断:SMA(趋势,3,1),COLORFF00FF, LINETHICK2;
IF( 趋势>判断,判断,DRAWNULL), COLORYELLOW, LINETHICK2;
IF( 趋势<判断,判断,DRAWNULL) ,COLORFFF000,LINETHICK2;
DRAWICON(CROSS(趋势,判断),判断,1);
DRAWICON(CROSS(趋势,顶部),顶部,2);
LC:= REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2:=SMA(VAR1,9,1)+100;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1)+100;
VAR6:=VAR5-VAR2;
短线1: IF(VAR6>45,VAR6-45,0),COLORA6B8C1;
VAR2Q:=REF(LOW,1);
VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;
VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);
VAR5Q:=LLV(LOW,30);
VAR6Q:=HHV(VAR4Q,30);
VAR7Q:=IF(MA(CLOSE,58),1,0);
VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;
VR2:=REF(LOW,1);
VR3:=SMA(ABS(LOW-VR2),3,1)/SMA(MAX(LOW-VR2,0),3,1)*100;
VR4:=EMA(IF(CLOSE*1.3,VR3*10,VR3/10),3);
VR5:=LLV(LOW,30);
VR6:=HHV(VR4,30);
VR7:=IF(MA(CLOSE,58),1,0);
VR8:=EMA(IF(LOW<=VR5,(VR4+VR6*2)/2,0),3)/618*VR7;
VR9:=IF(VR8>100,100,VR8);
主力进场:STICKLINE(VR9>-150,0,VR9,3,0), , COLORFF00FF;
洗盘:IF(VR9<REF(VR9,1),VR9,0),COLORGREEN,NODRAW;
STICKLINE(VR9<REF(VR9,1),0,VR9,3,0),COLORGREEN;
短线获利:STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,60,25,2,0),COLORYELLOW;
VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VARK2:=REVERSE(VARK1);
VARK3:=SMA(VARK1,3,1);
逃顶:=CROSS(82,RSI);
STICKLINE( 逃顶,逃顶,20,5,0),COLORFF5500;
STICKLINE( 逃顶,逃顶,30,3,0),COLORFF8800;
STICKLINE( 逃顶,逃顶,30,2,0),COLORFFAA00;
STICKLINE( 逃顶,逃顶,30,1,0),COLORFFCC00;
D1:=(C+L+H)/3;
D2:=EMA(D1,6);
D3:=EMA(D2,5);
BBUY:=CROSS(D2,D3);
风险区:80,COLORFF85FF;
安全区:20,COLORYELLOW,POINTDOT;
天线:100,COLORFFFF00;
强弱线:50,COLORGREEN,POINTDOT;
DRAWICON(BBUY,(LOW *1),1);
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VARR1),HIGH,15);
DRAWTEXT(CROSS(82,VARR1),35,'逃'),COLORYELLOW;
MAV:=(2*C+H+L)/4;
VAR9:=LLV(LOW,34);
VAR7:=HHV(HIGH,34);
SK:= EMA((MAV-VAR9)/(VAR7-VAR9)*100,13);
SD: EMA(0.667*REF(SK,1)+0.333*SK,2);
高抛:80, POINTDOT;
低吸:20, POINTDOT;
强弱分界:50, POINTDOT;
DRAWTEXT(CROSS(SD,16),低吸,'●主力'),COLORF0FF00,LINETHICK3;
❸ 怎样在通达信宝塔线指标幅图上设置均线
如果你的电脑上有均线指标就行,进入k线图页面,上边工具栏中有个分析,点击后有指标管理,点击后又出现导入导出,点导入就可以添加指标了。不过均线一般都是行情软件自带的,希望对你有帮助
❹ 通达信 mass 梅斯线 公式指标源码
N1:=9;
N2:=25;
M:=6;
MASS:SUM(MA(HIGH-LOW,N1)/MA(MA(HIGH-LOW,N1),N1),N2);
MAMASS:MA(MASS,M);
❺ 手机板通达信有宝塔线指标吗
通达信手机版目前没有宝塔线指标,但可以使用用户自己编写的宝塔线指标。
❻ 钱龙旗舰版宝塔线(TOWER)指标的源代码
【宝塔线】TOWER——指标源码
B0:=REF(c-0,2);B1:=REF(c,1);B2:=REF(c,2);B3:=REF(c,3);B4:=REF(c,4);
CMAX:=MAX(MAX(MAX(c,B1),B2),B3);CMIN:=MIN(MIN(MIN(c,B1),B2),B3);
STICKLINE(c=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND c>=B2 OR
B2=CMAX AND B3=CMIN AND c>=B1 OR B3=CMAX AND c>=B1 AND c>=B2,B1,c,5,1),COLORRED ;
STICKLINE(c=CMAX AND B1=CMIN,B2,c,5,1),COLORRED;
STICKLINE(c=CMIN AND (B1
B2=CMIN AND B3=CMAX AND c
STICKLINE(B1=CMAX AND c=CMIN,B2,c,5,0),colorgreen;
STICKLINE(B1=CMIN AND c>=B2 OR (B2=CMIN AND B1<=B3 OR
B3=CMIN AND B1<=B2) AND B2=B1,B1,B2,5,0),COLORGREEN;
STICKLINE(B1=CMAX AND cB3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND c
❼ 想用通达信的宝塔线指标选股,但是没有宝塔线的公式,有谁有和通达信宝塔线一样的指标公式吗
通达信的宝塔线要想选股确实很有难度因为通达信的宝塔线没有公式代码,如果想编写选股建议先说清楚条件,虽然没有代码但也可以按条件编写没有问题。
❽ 求助 通达信 特色型指标 XLPL 源码
你要的XLPL(吸拉派落)指标源码,我大致编写了下,公式计算结果与系统指标是一样的;
但由于还有瑕疵(显示的颜色有差异),所以还不能提供,请理解!
❾ 通达信股票软件里的系统默认K线怎么改成宝塔线
快捷键:mtow 即可;或者在K线时,点右键--主图类型---宝塔线。
宝塔线指标TOWER是以不同颜色(或虚实体)的棒线来区分股价涨跌的一种图表型指标。它主要是把股价多空之间的争斗过程和力量转变表现在图表中,借以研判未来股价的涨跌趋势及选择适当的买卖时机。股价下跌用绿色柱体表示,股价上涨用红色柱体表示。