当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:绝对高手ddx,开盘预测,黄蓝买卖

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

绝对高手ddx:

DRAWBAND(0,RGB(0,139,255),0.5,RGB(0,139,255)),COLORFF8B00; 
DRAWBAND(0.5,RGB(0,120,0),1,RGB(0,120,0)),COLOR007800;  
DRAWBAND(1,RGB(187,0,187),1.5,RGB(187,0,187)),COLORBB00BB; 
DRAWBAND(1.5,RGB(255,58,133),2,RGB(255,58,133)),COLOR853AFF; 
DRAWBAND(2,RGB(255,152,0),2.5,RGB(255,152,0)),COLOR0098FF; 
DRAWTEXT(ISLASTBAR,0.25,'███'),COLORFF8B00; 
DRAWTEXT(ISLASTBAR,0.25,'冰冻'),COLORFFFFCC; 
DRAWTEXT(ISLASTBAR,0.75,'███'),COLOR007800; 
DRAWTEXT(ISLASTBAR,0.75,'冷门'),COLORWHITE; 
DRAWTEXT(ISLASTBAR,1.25,'███'),COLORBB00BB; 
DRAWTEXT(ISLASTBAR,1.25,'活跃'),COLORFFFFCC; 
DRAWTEXT(ISLASTBAR,1.75,'███'),COLOR853AFF; 
DRAWTEXT(ISLASTBAR,1.75,'热门'),COLORWHITE; 
DRAWTEXT(ISLASTBAR,2.25,'███'),COLOR0098FF; 
DRAWTEXT(ISLASTBAR,2.25,'高温'),COLORWHITE; {计算数据} 
R:=PERIOD; 
S:=FROMOPEN;
VA1:=EMA(CAPITAL/IF(R=0,SUM(VOL,S),VOL)/CLOSE,10)/CLOSE; 
地:IF(VA1>=2.5,2.5,VA1),COLORYELLOW,LINETHICK2; 
天: POW(ATAN(EMA(CAPITAL/IF(R=0,SUM(VOL,S),VOL)/CLOSE,10)),2),COLORB5CA43,LINETHICK2; 
趋势: EMA(WINNER(CLOSE)*100,10)/50,LINETHICK2,COLOR0015FF; 
买卖: EMA((-3)*(HHV(HIGH,30)-CLOSE)/(HHV(HIGH,30)-LLV(LOW,30))+2.7,9),COLORWHITE,LINETHICK2; {低位信号} 
低①:买卖<0,COLORRED,NODRAW; 
STICKLINE(低①,0,-0.1,3,0), COLORRED; 
低②:买卖<0.1 AND 买卖>0 AND 买卖>=REF(买卖,1),COLORGREEN,NODRAW; 
STICKLINE(低②,0,-0.1,2.5,0), COLORGREEN; 
低③:买卖<0.25 AND 买卖>0.1 AND 买卖>=REF(买卖,1),COLORYELLOW,NODRAW; 
STICKLINE(低③,0,-0.1,2,0), COLORYELLOW; 
低A:买卖<0 AND 买卖>=REF(买卖,1),COLOR0099FF,NODRAW; 
STICKLINE(低A,0.1,-0.1,3,0), COLOR0099FF; 
低B:买卖<REF(HHV(买卖,5),4) AND 买卖>=REF(买卖,1) AND 买卖<0.8 AND 趋势>=REF(趋势,1) AND REF(EXIST(买卖<=REF(买卖,1),2),1) AND REF(EXIST(买卖<=0,10),8),COLOR0099FF,NODRAW; 
STICKLINE(低B,0.3,0,3,0), COLOR0099FF; {高位信号} 
高①:买卖>2.5 AND 买卖>REF(买卖,1),COLORRED,NODRAW; 
STICKLINE(高①,2.6,2.4,3,0),COLORRED; 
高②:天>=1.9 AND 买卖>=2.2 AND CROSS(REF(HHV(买卖,3),3),天),COLOR007800,NODRAW; 
STICKLINE(高②,2.6,2.4,2.5,0),COLOR007800; 
高③:天<1.77 AND 买卖>=2.2 AND CROSS(REF(HHV(买卖,7),6),天),COLORFF8B00,NODRAW; 
STICKLINE(高③,2.6,2.4,2,0),COLORFF8B00; 
高A:买卖>2.45 AND 买卖<2.5 AND 买卖<=REF(买卖,1), COLORRED,NODRAW; 
STICKLINE(高A,2.5,2.4,3,0), COLORRED; 
高B:买卖>REF(LLV(买卖,5),4) AND 买卖<=REF(买卖,1) AND 买卖>1.5 AND 趋势<=REF(趋势,1) AND REF(EXIST(买卖>=REF(买卖,1),2),1) AND REF(EXIST(买卖>=2.48,10),8), COLOR0099FF,NODRAW; 
STICKLINE(高B,2.7,2.4,3,0), COLOR0099FF;
 



开盘预测:

STICKLINE(HOUR>=10 AND HOUR<11 ,0, V/((TIME-100000)/100+30)*240,2.5,1),COLORWHITE;
STICKLINE(HOUR>=11 AND HOUR<12 ,0, V/((TIME-110000)/100+90)*240,2.5,1),COLORWHITE;
STICKLINE(HOUR>=13 AND HOUR<=14,0, V/((TIME-130000)/100+120)*240,2.5,1),COLORWHITE;
STICKLINE(HOUR>=14 AND HOUR<=15,0, V/((TIME-140000)/100+180)*240,2.5,1),COLORWHITE;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));
STICKLINE(C>O,0,VOL,2.5,1),COLORRED;
STICKLINE(C<O ,0,VOL,2.5,1),COLORFFFF00;
STICKLINE(C=O AND C<REF(C,1),0,VOL,2.5,1),COLORFFFF00;
STICKLINE(C=O AND C>REF(C,1),0,VOL,2.5,1),COLORRED;
STICKLINE(主动买盘>0,0,主动买盘,2.5,0),COLORRED;
换手: VOL/CAPITAL*100;




黄蓝买卖(顶尖财经 股票学院: www.58188.com):

N:=20;

N1:=7;
N2:=69;
T1:=IF((DATE<=1341231),1,0);
M3:=EMA(CLOSE,3);
M8:=EMA(CLOSE,8),COLOR008000;
M13:=EMA(M8,13),COLOR0000FF;
M62:=EMA(M8,55),COLORF0F000;
VAR1:=EMA(M13,62);
M81:=EMA(M62,81),COLOR00FFFF;
M144:=EMA(VAR1,144),LINETHICK2,COLOR0000FF;
M250:=EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;
VAR2:=(CLOSE+HIGH+LOW)/(3);
VAR3:=(EMA(VAR2,10))*(T1);
VAR4:=(REF(VAR3,1))*(T1);
STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF;
STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),COLORFF0000;
VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);
VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);
DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.96),' ★'),COLOR00FFFF;
DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),' ↓卖'),COLORBLUE;
VAR7:=REF(CLOSE,1);
VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);
VAR9:=CROSS(N2,VAR8);
VARA:=(FILTER(VAR9,4))*(T1);
DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),COLORFFFFFF;
VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);
VARC:=LLV(LOW,34);
VARD:=HHV(HIGH,34);
VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);
VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),COLORFF00FF;
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((VARE>VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),COLOR00FFFF;
VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);
DRAWTEXT(IF((CLOSE<VAR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF;
 
N:=20;
N1:=7;
N2:=69;
T1:=IF((DATE<=1341231),1,0);
M3:=EMA(CLOSE,3);
M8:=EMA(CLOSE,8),COLOR008000;
M13:=EMA(M8,13),COLOR0000FF;
M62:=EMA(M8,55),COLORF0F000;
VAR1:=EMA(M13,62);
M81:=EMA(M62,81),COLOR00FFFF;
M144:=EMA(VAR1,144),LINETHICK2,COLOR0000FF;
M250:=EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;
VAR2:=(CLOSE+HIGH+LOW)/(3);
VAR3:=(EMA(VAR2,10))*(T1);
VAR4:=(REF(VAR3,1))*(T1);
STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF;
STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),COLORFF0000;
VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);
VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);
DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.96),' ★'),COLOR00FFFF;
DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),' ↓卖'),COLORBLUE;
VAR7:=REF(CLOSE,1);
VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);
VAR9:=CROSS(N2,VAR8);
VARA:=(FILTER(VAR9,4))*(T1);
DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),COLORFFFFFF;
VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);
VARC:=LLV(LOW,34);
VARD:=HHV(HIGH,34);
VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);
VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),COLORFF00FF;
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((VARE>VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),COLOR00FFFF;
VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);
DRAWTEXT(IF((CLOSE<VAR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF;

上一篇:通达信源码:拐点套利,见底准备,分时主力买卖

下一篇:通达信源码:趋势多空财神,牛熊争锋,拉升