之一步:COPY:指标原码;第二:在功能----专家系统----公式管理器---用户---点其他类型---新建---空白处复制指标原码---取名顾比均线---(可以测试一下,看能否通过学习)确认。退出。就加好了。使用时与调用其它指标一样。如顾比均线---GBJX 就OK了
现在软件没有自带的“顾比”。
但是顾比均线所有软件都支持,自己可以在指标里自编。
源码很简单:
{顾比均线}主图
MA1:EMA(CLOSE,3),COLORYELLOW;
MA2:EMA(CLOSE,5),COLORYELLOW;
MA3:EMA(CLOSE,8),COLORYELLOW;
MA4:EMA(CLOSE,10),COLORRED;
MA5:EMA(CLOSE,12),COLORRED;
MA6:EMA(CLOSE,15),COLORRED;
MA7:EMA(CLOSE,30),COLORGREEN;
短买: DRAWICON(CROSS(MA1,MA2),l-0.2,4),COLORRED;
短卖: DRAWICON(CROSS(MA2,MA1),h+0.1,5),COLORGREEN;
红三角买入: DRAWICON( CROSS(MA4,MA7),l-0.25,8),COLORRED;
MA8:EMA(CLOSE,35),COLORGREEN;
MA9:EMA(CLOSE,40),COLORGREEN;
MA10:EMA(CLOSE,45),COLORBLUE;
MA11:EMA(CLOSE,50),COLORBLUE;
MA12:EMA(CLOSE,60),COLORBLUE;
E3:EMA(C,3),COLOR61DC16;
E5:EMA(C,5),COLOR61DC16;
E8:EMA(C,8),COLOR61DC16;
E10:EMA(C,10),COLOR61DC16;
E12:EMA(C,12),COLOR61DC16;
E15:EMA(C,15),COLOR61DC16;
E30:EMA(C,30),COLORD1875A;
E35:EMA(C,35),COLORD1875A;
E40:EMA(C,40),COLORD1875A;
E45:EMA(C,45),COLORD1875A;
E50:EMA(C,50),COLORD1875A;
E60:EMA(C,60),COLORD1875A;
IF(E3REF(E3,1),E3,DRAWNULL),COLORYELLOW;
IF(E5REF(E5,1),E5,DRAWNULL),COLORYELLOW;
IF(E8REF(E8,1),E8,DRAWNULL),COLORYELLOW;
IF(E10REF(E10,1),E10,DRAWNULL),COLORYELLOW;
IF(E12REF(E12,1),E12,DRAWNULL),COLORYELLOW;
IF(E15REF(E15,1),E15,DRAWNULL),COLORYELLOW;
IF(E30REF(E30,1),E30,DRAWNULL),COLORFF00FF;
IF(E35REF(E35,1),E35,DRAWNULL),COLORFF00FF;
IF(E40REF(E40,1),E40,DRAWNULL),COLORFF00FF;
IF(E45REF(E45,1),E45,DRAWNULL),COLORFF00FF;
IF(E50REF(E50,1),E50,DRAWNULL),COLORFF00FF;
IF(E60REF(E60,1),E60,DRAWNULL),COLORFF00FF;
STICKLINE(CO,C,O,1,0),COLORRED;
STICKLINE(CO,H,L,0,0),COLORRED;
STICKLINE(C=O,C,O,1,0),COLORFFFF52;
STICKLINE(C=O,H,L,0,0),COLORFFFF52;
DRAWICON(EMA(C,8)EMA(C,15) AND EMA(C,40)REF(EMA(C,40),1) AND CROSS(EMA(C,3),EMA(C,35)),L-0.20,24);
DRAWICON(EMA(C,15)EMA(C,40) AND EMA(C,35)REF(EMA(C,35),1) AND CROSS(EMA(C,3),EMA(C,5)),L-0.20,25);
DRAWICON(ABS(EMA(C,15)-EMA(C,60))/C0.01 AND EMA(C,15)EMA(C,30) AND OEMA(C,3) AND CEMA(C,3) AND OEMA(C,15) AND CEMA(C,15) AND OEMA(C,30) AND CEMA(C,30) AND OEMA(C,60) AND CEMA(C,60),L-0.20,27);
DRAWICON(ABS(EMA(C,45)-EMA(C,30))/C0.011 AND EMA(C,3)EMA(C,15) AND EMA(C,15)EMA(C,40) AND CROSS(EMA(C,5),EMA(C,60)),L-0.20,13);
A1:=OPENEMA(C,20) OR OPENEMA(C,40) OR OPENEMA(C,60);
A2:=CMAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60)));
A3:=V/MA(V,10)1.2;
A4:=C/REF(C,1)1.049;
出水芙蓉:=A1 AND A2 AND A3 AND A4 AND OEMA(C,60) AND CEMA(C,60);
DRAWICON(出水芙蓉,L-0.20,9);
你好,通达信选股公式源码如下。
次日涨停
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W20,REF(C,W2),REF(C,W2));
W4:=交叉(C,REF(W3,1));
W4和计数(W4,5)=1;
黄转紫选股
差异:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(差异,9);
MACD:=(DIFF-DEA)*2;
紫柱:MACDREF(MACD,1)和REF(MACD,1)低位金叉选股
差异:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(差异,9);
MACD:=(DIFF-DEA)*2;
低位金叉:交叉(差异,DEA)和差异二次金叉选股
差异:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(差异,9);
MACD:=(DIFF-DEA)*2;
JCCOUNT:=计数(交叉(差异,数据包络分析),BARSLAST(数据包络分析=0));
二次金叉:交叉(差异,DEA)和DEA绝地反弹
(1)
VAR1:=参考值(低,1);
VAR2:= *** A(ABS(低VAR1),13,1)/ *** A(更大值(低VAR1,0),13,1)*100;
VAR3:=EMA(如果(关闭*1.2,VAR2*13,VAR2/13),13);
VAR4:=LLV(低,34);
VAR5:=HHV(VAR3,34);
VAR6:=如果(LLV(低,55),1,0);
VAR7:=EMA(如果(低)XL1:=MA(低,2)*0.96;
XL2:=MA(低,26)*0.85;
XL3:=REF(XL1,1)启动:=如果(XL3,0,VAR7*3),则为红色;
XG:启动25;
(2)
倒退((参考(关闭,1)关闭打开和ABS(关闭参考(关闭,1))/关闭A2:=过滤器(A1ND资本REF(V,1)=LLV(V,4)和V=REF(V,1)
HHV(V,3)=参考(V,1)和HHV(V,5)=参考(V,1)和HHV(V,21)=参考(V,1)
和V=REF(V,1)
010,T020;
1.三线粘合
M:=1;
M5:=MA(闭合,5);
M10:=MA(闭合,10);
M20:=MA(闭合,20);
K1:=更大值(更大值(M5,M10),更大值(M10,M20));
K2:=MIN(MIN(M5,M10),MIN(M10,M20));
A:=更大(M5,更大(M10,M20))/MIN(M5,最小(M10,M20))A1:=(K1/K2-1)A2:=(K1/K2-1)A3:=VREF(V,1)*1.5和VMA(V,5);
XG:A和A1,A2和A3,CO和VREF(V,1),资本2.三条线粘合
N1:=5;N2:=10;N3:=20;M:=1;
MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3);
A3:=VREF(V,1)*1.5和VMA(V,5);
更大值(MA1,更大值(MA2,MA3))/MIN(MA1,最小值(MA2,MA3))CO和VREF(V,1)和财务(7)A3及资本3.均线粘合
M:=1;
M5:=MA(闭合,5);
M10:=MA(闭合,10);
M20:=MA(闭合,20);
K1:=更大值(更大值(M5,M10),更大值(M10,M20));
K2:=MIN(MIN(M5,M10),MIN(M10,M20));
A:=更大(M5,更大(M10,M20))/MIN(M5,最小(M10,M20))A1:=(K1/K2-1)A2:=(K1/K2-1)A3:=VREF(V,1)*1.5和VMA(V,5);
XG:A和A1以及A2和A3;
3.金叉选股指标
快线:=均线(均线)(均线(收盘,2,2,2),;
慢线:=EMA(参考(快线,1),2);
A3:=VREF(V,1)*1.5和VMA(V,5);
交叉(快线,慢线) 和CO和
五 =MA(V,21)和VREF(V,1),资本
通达信PBX 指标源码如下
PBX1:(EMA(CLOSE,M1)+MA(CLOSE,M1*2)+MA(CLOSE,M1*4))/3;
PBX2:(EMA(CLOSE,M2)+MA(CLOSE,M2*2)+MA(CLOSE,M2*4))/3;
PBX3:(EMA(CLOSE,M3)+MA(CLOSE,M3*2)+MA(CLOSE,M3*4))/3;
PBX4:(EMA(CLOSE,M4)+MA(CLOSE,M4*2)+MA(CLOSE,M4*4))/3;
PBX5:(EMA(CLOSE,M5)+MA(CLOSE,M5*2)+MA(CLOSE,M5*4))/3;
PBX6:(EMA(CLOSE,M6)+MA(CLOSE,M6*2)+MA(CLOSE,M6*4))/3;