大智慧指标公式源码概况:
指标类别:大智慧公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
AA3:EMA((((SLOPE(C,18))*20)+C),55);
AA4:EMA(C,10);
xg:CROSS(AA4,AA3);
HJ_1:=HHV(HIGH,9)-LLV(LOW,9);
HJ_2:=HHV(HIGH,9)-CLOSE;
HJ_3:=CLOSE-LLV(LOW,9);
HJ_4:=HJ_2/HJ_1*100-70;
HJ_5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
HJ_6:=(2*CLOSE+HIGH+LOW)/4;
HJ_7:=SMA(HJ_3/HJ_1*100,3,1);
HJ_8:=LLV(LOW,34);
HJ_9:=SMA(HJ_7,3,1)-SMA(HJ_4,9,1);
HJ_10:=IF(HJ_9 100,HJ_9-100,0);
HJ_11:=HHV(HIGH,34);
HJ_12:=EMA((HJ_6-HJ_8)/(HJ_11-HJ_8)*100,8);
HJ_13:=EMA(HJ_12,5);
STICKLINE(HJ_12 0ANDHJ_12-HJ_13 =0,19,20,0,0),COLORRED;
STICKLINE(HJ_12 0ANDHJ_12-HJ_13 0,19,20,0,1),COLORGREEN;
第二指标交叉线:HJ_12-HJ_13,COLORRED,LINETHICK2;
STICKLINE(HJ_12-HJ_13 0,HJ_12,HJ_13,2,0),COLORRED;
买入条件:-第二指标交叉线,COLORYELLOW;
STICKLINE(HJ_12-HJ_13 0,HJ_12,HJ_13,2,0),COLORGREEN;
卖出:REF(第二指标交叉线,1) 0AND第二指标交叉线 =0OR(第二指标交叉线 1AND第二指标交叉线 =0ANDCLOSE OPEN),COLORRED;
高位线:85,COLORRED,LINETHICK2;
机会线:20,NODRAW,COLORGREEN;
底线:0,COLORLICYAN,LINETHICK2;
买入:卖出=0ANDREF(第二指标交叉线,1) 0AND第二指标交叉线 0,COLORLICYAN;
STICKLINE(买入,0,22,2,0),COLORYELLOW;
加仓:STICKLINE(买入,0,15,5,0),COLORMAGENTA;
STICKLINE(买入,0,5,5,0),COLORFF7700;
STICKLINE(买入,0,5,4.5,0),COLORFF8800;
STICKLINE(买入,0,5,4,0),COLORFF9900;
STICKLINE(买入,0,5,3.5,0),COLORFFAA00;
STICKLINE(买入,0,5,3,0),COLORFFBB00;
STICKLINE(买入,0,5,2.5,0),COLORFFCC00;
STICKLINE(买入,0,5,2,0),COLORFFDD00;
STICKLINE(买入,0,5,1,0),COLORFFEE00;
STICKLINE(买入,0,15,4.5,0),COLOR102099;
STICKLINE(买入,0,15,4,0),COLOR1020AA;
STICKLINE(买入,0,15,3.5,0),COLOR1020BB;
STICKLINE(买入,0,15,3,0),COLOR1020CC;
STICKLINE(买入,0,15,2.5,0),COLOR1020DD;
STICKLINE(买入,0,15,2,0),COLOR1020EE;
STICKLINE(买入,0,15,1,0),COLORYELLOW;
DRAWTEXT(买入,25,14),COLORYELLOW;
DRAWTEXT_FIX(1,0.21,0.12,1,19),COLORYELLOW;
DRAWTEXT_FIX(1,0.41,0.12,1,18),COLORYELLOW;
PDI大于ADX同时大于ADXR也大于MDI;第二:MDI小于ADX同时也小于ADXR;第三:PDI在前一日是下跌或走平,在当日上拐,是上涨.以上条件同时满足的预警公式DMI源码:参数:N29014M2606TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD 0 amp; amp;HD LD,HD,0),N);DMM:=EXPMEMA(IF(LD 0 amp; amp;LD HD,LD,0),N);PDI:DMP*100/TR;MDI:DMM*100/TR;ADX:EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);ADXR:EXPMEMA(ADX,M);
VA:=IF(CLOSE REF(CLOSE,1),VOL,-VOL);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0),COLOR00FFFF;
MAOBV:MA(OBV,13),COLOR996699;
箱顶:HHV(OBV,20),COLOR0000FF;
箱底:LLV(OBV,20),COLOR00FF00;
UPPER:MAOBV+2*STD(OBV,20),COLORMAGENTA;
LOWER:MAOBV-2*STD(OBV,20),COLORFF0000;
公式:
FZ:=REF(C,1)*1.1-C 0.01;
VA:=IF(CLOSE REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV:=MA(OBV,13);
箱底:=LLV(OBV,20);
UPPER:=MAOBV+2*STD(OBV,20);
A1:=CAPITAL/1000000 20;
ST:=EXIST(C/REF(C,1) 1.055,60);
停牌:=DYNAINFO(4) 0;
XG:(OBV=箱底ORCROSS(MAOBV,OBV))ANDA1ANDSTAND停牌ANDCOUNT(FZ,10) 0;
A:=EXPMEMA(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;
DMP:=EXPMEMA(IF(HD 0 amp; amp;HD LD,HD,0),14);
DMM:=EXPMEMA(IF(LD 0 amp; amp;LD HD,LD,0),14);
PDI:=DMP*100/A,COLORREDLINETHICK2;
MDI:=DMM*100/A,LINETHICK2;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:=EXPMEMA(ADX,6);
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
去除ST股:=EXIST((C-REF(C,1))/REF(C,1)*100 5.6,60);
去除停牌:=DYNAINFO(17)!=0;{不为0}
去除高低价:=DYNAINFO(7) 5ANDDYNAINFO(7) 15;
去除大小盘股:=CAPITAL/1000000 3.5;
N:PDI MDIANDPDI ADXANDPDI ADXRANDADX MDIANDADXR MDIANDCROSS(ADX,ADXR)AND长期 30ANDDIF DEAANDMACD 0AND去除ST股AND去除停牌AND去除大小盘股AND去除高低价;
公式解读:
[源码注释]大智慧公式动态公式解读公式解读:
公式编写要求:
昨日股价跳空跌停选股公式。
公式编写方法:
REF(O =DTPRICE(REF(C,1),0.1),1);