大智慧公式源码概况:
指标类别:大智慧公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 主图
一、大智慧上升三角形选股公式
X_1:=OPEN<MA(CLOSE,5);
X_2:=OPEN<MA(CLOSE,10);
X_3:=OPEN<MA(CLOSE,20);
X_4:=OPEN<MA(CLOSE,30);
X_5:=CLOSE>MA(CLOSE,5);
X_6:=CLOSE>MA(CLOSE,10);
X_7:=CLOSE>MA(CLOSE,20);
X_8:=CLOSE>MA(CLOSE,30);
X_9:=X_1ANDX_2ANDX_3ANDX_4ANDX_5ANDX_6ANDX_7ANDX_8;
X_12:=100-90*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
X_13:=100-90*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
X_14:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),34);
X_15:=CROSS(X_13,MA(X_14,6));
X_16:=EMA(CLOSE,2);
X_17:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
X_18:=(CLOSE+LOW+HIGH)/3;
X_19:=EMA(X_18,2);
X_20:=EMA(X_19,5);
X_21:=CROSS(X_16,X_17);
X_22:=DYNAINFO(8)>0;
X_23:=NOT(NAMELIKE(1)ORNAMELIKE(2)ORNAMELIKE(3));
X_24:=X_23ANDX_22;
先锋金牛:X_9AND(X_15ORX_21)ANDX_24ANDCAPITAL<50000000;
上升趋势:EMA(CLOSE,5),colorwhite,linethick2;
支撑压力:EMA(CLOSE,21),coloryellow,linethick1;
Y:=EMA(CLOSE,10);
x:=EMA(CLOSE,16);
STICKLINE(上升趋势<支撑压力,支撑压力,上升趋势,0.1,0)
,color00ff00,linethick1;
DRAWTEXT(CROSS(上升趋势,支撑压力),上升趋势,'★买')
,ColorFF00FF;
drawtext((C<=x)and(上升趋势>Y),l*0.99,'●'),colore66878;
DRAWICON((C<=x)and(上升趋势>Y),l*0.97,4);
EXP1:=EMA(CLOSE,5);
EXP2:=EMA(CLOSE,18);
EXP3:=EMA(CLOSE,51);
XG:EXP2>EXP3ANDCROSS(EXP1,EXP2)ANDATAN(EXP1/EXP2*100-100)*56.3>=35ANDVOL>MA(VOL,2);
X:=30;
D:=60;
M5:=EMA(C,X);
M10:=EMA(C,D);
T:=BARSLAST(CROSS(M5,M10));
ST:=BARSLAST(CROSS(M10,M5));
T1:=SUMBARS(T=0,2);
T2:=SUMBARS(T=0,3);
ST1:=SUMBARS(ST=0,2);
ST2:=SUMBARS(ST=0,3);
H1:=IF(CONST(M5)>CONST(M10),HHV(H,T+1),REF(HHV(H,T+1),ST));
L1:=IF(CONST(M5)<CONST(M10),LLV(L,ST+1),REF(LLV(L,ST+1),T));
H2:=IF(CONST(M5)>CONST(M10),REF(HHV(H,T+1),ST),REF(HHV(H,T+1),ST1-1));
L2:=IF(CONST(M5)<CONST(M10),REF(LLV(L,ST+1),T),REF(LLV(L,ST+1),T1-1));
H3:=IF(CONST(M5)>CONST(M10),REF(HHV(H,T+1),ST1-1),REF(HHV(H,T+1),ST2-1));
L3:=IF(CONST(M5)<CONST(M10),REF(LLV(L,ST+1),T1-1),REF(LLV(L,ST+1),T2-1));
TJ1:=CONST(M5)>CONST(M10)ANDCURRBARSCOUNT>=CONST(T2)ANDCURRBARSCOUNT<=CONST(ST2)ANDL=CONST(L3);
TJ2:=CONST(M5)>CONST(M10)ANDCURRBARSCOUNT>=CONST(ST1)ANDCURRBARSCOUNT<=CONST(T2)ANDH=CONST(H3);
TJ3:=CONST(M5)>CONST(M10)ANDCURRBARSCOUNT>=CONST(T1)ANDCURRBARSCOUNT<=CONST(ST1)ANDL=CONST(L2);
TJ4:=CONST(M5)>CONST(M10)ANDCURRBARSCOUNT>=CONST(ST)ANDCURRBARSCOUNT<=CONST(T1)ANDH=CONST(H2);
TJ5:=CONST(M5)>CONST(M10)ANDCURRBARSCOUNT>=CONST(T)+1ANDCURRBARSCOUNT<=CONST(ST)+1ANDL=CONST(L1);
TJ6:=CONST(M5)>CONST(M10)ANDH=CONST(H1)ANDCURRBARSCOUNT<=CONST(ST2);
TJ7:=CONST(M5)<CONST(M10)ANDCURRBARSCOUNT>=CONST(ST2)ANDCURRBARSCOUNT<=CONST(T2)ANDH=CONST(H3);
TJ8:=CONST(M5)<CONST(M10)ANDCURRBARSCOUNT>=CONST(T1)ANDCURRBARSCOUNT<=CONST(ST2)ANDL=CONST(L3);
TJ9:=CONST(M5)<CONST(M10)ANDCURRBARSCOUNT>=CONST(ST1)ANDCURRBARSCOUNT<=CONST(T1)ANDH=CONST(H2);
TJ10:=CONST(M5)<CONST(M10)ANDCURRBARSCOUNT>=CONST(T)ANDCURRBARSCOUNT<=CONST(ST1)ANDL=CONST(L2);
TJ11:=CONST(M5)<CONST(M10)ANDCURRBARSCOUNT>=CONST(ST)+1ANDCURRBARSCOUNT<=CONST(T)+1ANDH=CONST(H1);
TJ12:=CONST(M5)<CONST(M10)ANDL=CONST(L1)ANDCURRBARSCOUNT<=CONST(T2);
DRAWLINE(TJ1,L,TJ2,H,0),COLORMAGENTA;
DRAWLINE(TJ2,H,TJ3,L,0),COLORMAGENTA;
DRAWLINE(TJ3,L,TJ4,H,0),COLORMAGENTA;
DRAWLINE(TJ4,H,TJ5,L,0),COLORMAGENTA;
DRAWLINE(TJ5,L,TJ6,H,0),COLORMAGENTA;
DRAWLINE(TJ7,H,TJ8,L,0),COLORGREEN;
DRAWLINE(TJ8,L,TJ9,H,0),COLORGREEN;
DRAWLINE(TJ9,H,TJ10,L,0),COLORGREEN;
DRAWLINE(TJ10,L,TJ11,H,0),COLORGREEN;
DRAWLINE(TJ11,H,TJ12,L,0),COLORGREEN;
HH:=CONST(MAX(MAX(H1,H2),H3));
LL:=CONST(MIN(MIN(L1,L2),L3));
Z:=(HH-LL)/2+LL;
DRAWLINE(TJ7,Z,ISLASTBAR,Z,0),COLORGREEN,DOTLINE;
DRAWTEXT(TJ7,CONST(Z)*1.01,VARCAT(VARCAT('中区价位:',VAR2STR(CONST(Z),2)),'元')),COLORGREEN;
HH1:=CONST(MAX(H1,MAX(H2,H3)));
LL1:=CONST(MIN(MIN(L1,L2),L3));
Z1:=(HH1-LL1)/2+LL1;
DRAWLINE(TJ1,Z1,ISLASTBAR,Z1,0),COLORMAGENTA,DOTLINE;
DRAWTEXT(TJ1,CONST(Z)*1.01,VARCAT(VARCAT('中区价位:',VAR2STR(CONST(Z1),2)),'元')),COLORMAGENTA;
LT:=BARSLAST(L=LLV(L,120));
CT:=CONST(LT)+1;
HT:=FINDHIGHBARS(H,CT,CT,1);
{HH:=FINDHIGH(H,CT,CT,1);
LL:=CONST(REF(L,LT));}
QD:=CURRBARSCOUNT=CT*2;
ZD:=CURRBARSCOUNT=CT;
DRAWLINE(QD,CONST(HH),ISLASTBAR,CONST(HH),0),COLORYELLOW;
DRAWLINE(QD,CONST(HH),ZD,LL,0),COLORYELLOW;
DRAWLINE(ZD,LL,ISLASTBAR,CONST(HH),0),COLORYELLOW;
LT:=BARSLAST(L=LLV(L,120));
CT:=CONST(LT)+1;
HT:=FINDHIGHBARS(H,CT,CT,1);
HH:=FINDHIGH(H,CT,CT,1);
LL:=CONST(REF(L,LT));
QD:=CURRBARSCOUNT=CT*2;
ZD:=CURRBARSCOUNT=CT;
DRAWLINE(QD,CONST(HH),ISLASTBAR,CONST(HH),0),COLORYELLOW;
DRAWLINE(QD,CONST(HH),ZD,LL,0),COLORYELLOW;
DRAWLINE(ZD,LL,ISLASTBAR,CONST(HH),0),COLORYELLOW;
[源码注释]大智慧公式动态翻译结果
点赋值:(最高价<1日前的收盘价和开盘价的较小值 AND 5日内最低价的最低值=10日内最低价的最低值)*1日前的收盘价和开盘价的较小值
距赋值:上次点距今天数,NODRAW
值赋值:距日前的点*(距<5)
输出选股:收盘价>值AND值>1的5日过滤
每日大智慧公式解答:
公式编写要求:
10日内有过跌停的选股指标。
公式编写方法:
DT:=C=DTPRICE(REF(C,1),0.1);
XG:COUNT(DT,10)>0;
评论(0)