前期回顾: 通达信【有庄控盘】套装指标 源码
通达信【主力波段】主/副图/选股指标 源码
【主力波段】指标是根据主力资金流入状态+波段操作的信号指标。
在第一次资金流入与波段买点共振时出信号!我做成了主图中的”钱袋子“信号。
副图的波段指标就很简单了,信号清晰,一目了然。
指标无未来函数,以下举例:
1、主力波段主图指标:T:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;{微信公众号:尊重市场}MP:=SUM(IF(HD>0&&HD>LD,HD,0),14);MM:=SUM(IF(LD>0&&LD>HD,LD,0),14);尊重市场:=MP*100/T;MD:=MM*100/T;A:=尊重市场-MD>=0;B:=尊重市场-MD<0;D:=(尊重市场-MD);F:=(尊重市场-MD);FF:=F<0;{微信公众号:尊重市场}N1:=10;N2:=5;N3:=4;ABC1:=(((HIGH + LOW) + (CLOSE * 2)) / 4) ;ABC3:=EMA(ABC1,N1);ABC4:=STD(ABC1,N1);ABC5:=((ABC1 - ABC3) * 100) / ABC4;ABC6:=EMA(ABC5,N2);RK7:=EMA(ABC6,N1);UP:=(EMA(ABC6,10) + (100 / 2)) - 5,COLORRED;DOWN:=EMA(UP,N3);ACB1:=EMA(DOWN,N3);ACB2:=EMA(ACB1,N3),COLORGREEN;ACB3:=EMA(ACB2,N3);ACB4:=EMA(ACB3,N3);CBA5:MA(C,5);{微信公众号:尊重市场}CBA10:MA(C,10);CBA20:MA(C,20);MA60:MA(C,60);主力波段1:=D>=0 AND UP > REF(UP,1);主力波段:BARSLASTCOUNT(主力波段1)=1;STICKLINE(主力波段,O,C,2.2,0),COLORYELLOW; DRAWICON(主力波段,L,9);
2、波段副图指标:N1:=10;N2:=5;N3:=4;ABC1:=(((HIGH + LOW)+(CLOSE*2)) / 4);ABC3:=EMA(ABC1,N1);ABC4:=STD(ABC1,N1);{微信公众号:尊重市场}ABC5:=((ABC1 - ABC3)*100) / ABC4;ABC6:=EMA(ABC5,N2);RK7:=EMA(ABC6,N1);UP:=(EMA(ABC6,10)+(100 / 2)) - 5,COLORRED;DOWN:=EMA(UP,N3);ACB1:=EMA(DOWN,N3);ACB2:=EMA(ACB1,N3),COLORGREEN;ACB3:=EMA(ACB2,N3);ACB4:=EMA(ACB3,N3);STICKLINE(UP < REF(UP,1),UP,MA(UP,3),5,0),COLORBLUE;STICKLINE(UP > REF(UP,1),UP,EMA(UP,3),5,0),COLORMAGENTA;
3、主力波段选股指标:
T:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;{微信公众号:尊重市场}
MP:=SUM(IF(HD>0&&HD>LD,HD,0),14);
MM:=SUM(IF(LD>0&&LD>HD,LD,0),14);
尊重市场:=MP*100/T;
MD:=MM*100/T;
A:=尊重市场-MD>=0;
B:=尊重市场-MD<0;
D:=(尊重市场-MD);
F:=(尊重市场-MD);
FF:=F<0;
{微信公众号:尊重市场}
N1:=10;
N2:=5;
N3:=4;
DIFF:= EMA(CLOSE,9) - EMA(CLOSE,26);
DEA:= EMA(DIFF,12);
MACD:= 2*(DIFF-DEA);
ZC:=50*(IF(MACD>REF(MACD,1) AND REF(MACD,1)>0 AND REF(MACD,2)>REF(MACD,1),0.2,0));
ABC1:=(((HIGH + LOW) + (CLOSE * 2)) / 4) ;
ABC3:=EMA(ABC1,N1);
ABC4:=STD(ABC1,N1);
ABC5:=((ABC1 - ABC3) * 100) / ABC4;
ABC6:=EMA(ABC5,N2);
RK7:=EMA(ABC6,N1);
UP:=(EMA(ABC6,10) + (100 / 2)) - 5,COLORRED;
DOWN:=EMA(UP,N3);
ACB1:=EMA(DOWN,N3);
ACB2:=EMA(ACB1,N3),COLORGREEN;
ACB3:=EMA(ACB2,N3);
ACB4:=EMA(ACB3,N3);
主力波段1:=D>=0 AND UP > REF(UP,1) AND MACD.MACD>0 AND ZC;
主力波段:=BARSLASTCOUNT(主力波段1)=1;
DRAWICON(主力波段,L,9);
◆通达信封龙决策系统指标◆封龙指标--分时看盘和小神◆封龙系列指标回顾1
◆封龙系列指标回顾2
◆封龙系列指标回顾3
|