通达信系统优化版买卖点指标公式,大智慧黄金分割+数浪+压力支撑主图指标公式
admin888
|通达信系统优化版买卖点指标公式,大智慧黄金分割+数浪+压力支撑主图指标公式
通达信系统优化版买卖点指标公式
N:=11;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
LC:=REF(C,1);
CCI背:=IF(LLV(CCI,2)>LLV(CCI,7) AND LLV(L,2)<=LLV(L,7) AND HHV(H,10)>MA(CLOSE,60),1,0),COLORWHITE;
A1:=BARSLAST(REF(CROSS("MACDDIF"(12,26,9),"MACD.DEA"(12,26,9)),1));
B1:=REF(C,A1+1)>C &&
REF("MACD.DIF"(12,26,9),A1+1)<"MACD.DIF"(12,26,9) && CROSS ("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9));
C1:=BARSLAST(REF(CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9)),1));
D1:=REF(C,C1+1)
DRAWTEXT(D1,50,'M'),COLORWHITE;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
KL:=CROSS(J,0);
WRSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RL:=CROSS(WRSI,20);
WVR := SUM((IF(CLOSE>OPEN,
VOL,0)+IF(CLOSE=OPEN,VOL/2,0)),26)/SUM((IF(CLOSE
BIAS买:= CROSS(-6,(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100);
BIAS卖:=CROSS(BIAS,6);
买入:= CROSS(-6,(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100);
PSY买:= CROSS(10,PSY(12,1));
VR买:= CROSS(70,WVR);
MID :=MA(CLOSE,20);
LOWER:=MID-2*STD(CLOSE,20);
布林买:=CROSS(CLOSE,LOWER);
WROC=ROC(12,6);
变动速率买:=CROSS(WROC,0);
TRTR:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
PDM:=SUM(IF(HD>0&&HD>LD,HD,0),14);
MDM:=SUM(IF(LD>0&&LD>HD,LD,0),14);
PDI:=PDM*100/TRTR;
MDI:=MDM*100/TRTR;
趋向买:=CROSS(PDI,MDI);
WRSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
WK:=SMA(WRSV,3,1);
DN:=SMA(WK,3,1);
KD买:=CROSS(WK,DN)&&WK<20;
WMTM:=MTM;
MTM买:=CROSS(WMTM,0);
MTM卖:=CROSS(0,WMTM);
KH:=CROSS(100,J);
RH:=CROSS(80,WRSI);
UPPER:=MID+2*STD(CLOSE,20);
布林卖:=CROSS(CLOSE,UPPER);
变动速率卖:=CROSS(0,WROC);
MYPSY:=PSY(12,1);
心理线卖:=CROSS(MYPSY,85);
INDEX:=CCI(14);
商品路径卖:=CROSS(INDEX,100);
VR容量比率卖:=CROSS(WVR,250);
趋向卖:=CROSS(MDI,PDI);
KD卖:=CROSS(DN,WK)&&WK>80;
STICKLINE(CURRBARSCOUNT=1 ,110,-10,4,0),COLOR333344;
DRAWTEXT(CCI背 AND REF(CCI,1)<-150 AND C>O,100,'C'),COLORYELLOW;
DRAWTEXT(KL,100,'K'),COLORFF00FF;
DRAWTEXT(KD买,90,'KD'),COLORFF00FF;
DRAWTEXT(趋向买,80,' D'),COLORFF00FF;
DRAWTEXT(RL,70,'R'),COLORFF00FF;
DRAWTEXT(布林买,60,' BL'),COLORFF00FF;
DRAWTEXT(B1,50,'M'),COLORFF00FF;
DRAWTEXT(BIAS买,40,' BA'),COLORFF00FF;
DRAWTEXT(PSY买,30,' P'),COLORFF00FF;
DRAWTEXT(MTM买,20,' MT'),COLORFF00FF;
DRAWTEXT(VR买,10,' V'),COLORFF00FF;
DRAWTEXT(变动速率买,0,' RC'),COLORFF00FF;
DRAWTEXT(商品路径卖,100,'C'),COLORGREEN;
DRAWTEXT(KH,100,'K'),COLORGREEN;
DRAWTEXT(KD卖,90,'KD'),COLORGREEN;
DRAWTEXT(趋向卖,80,' D'),COLORGREEN;
DRAWTEXT(RH,70,'R'),COLORGREEN;
DRAWTEXT(布林卖,60,'BL'),COLORGREEN;
DRAWTEXT(D1,50,'M'),COLORGREEN;
DRAWTEXT(BIAS卖,40,'BA'),COLORGREEN;
DRAWTEXT(心理线卖,30,' P'),COLORGREEN;
DRAWTEXT(MTM卖,20,' MT'),COLORGREEN;
DRAWTEXT(VR容量比率卖,10,' V'),COLORGREEN;
DRAWTEXT(变动速率卖,0,' RC'),COLORGREEN;
STICKLINE(CURRBARSCOUNT=56 ,110,-10,60,0),COLOR333344;
DRAWTEXT(CURRBARSCOUNT=59,100,'C=CCI K=
KDJ'),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=59,90,'KD 随机指标'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,80,'D=DMI趋向指标'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,70,'R=RSI 相对强弱'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,60,'BL=BOLL 布林指标'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,50,'M=MACD 平滑异同平均'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,40,'BA=BIAS乖离率指标 '),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,30,'P=PSY 心理线指标 '),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,20,'MT=MTM 动量线指标'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,10,'V=VR 容量比率指标'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,0,'RC=ROC 变动速率指标 '),COLORGREEN;
大智慧黄金分割+数浪+压力支撑主图指标公式
N:=5;
x:=BARPOS-hhv(if(DISPSTATUS=1,BARPOS,0),0)+1;
hh:=hhv(h,x);
ll:=llv(l,x);
hl:=hh-ll;
a80:=.809*hl+ll;
a61:=.618*hl+ll;
a38:=.382*hl+ll;
a19:=.191*hl+ll;
a5:=.5*hl+ll;
DRAWTEXTREL(0,0,'最高 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄' ),COLORYELLOW;
DRAWTEXTREL(0,900+76,'最低.................................................................................................................................'),color00ff00;
DRAWTEXTREL(0,0.50*(900+76),'0.5..................................................................................................................................'),color0099ff;
DRAWTEXTREL(0,0.191*(900+76),'0.809................................................................................................................................'),colorred;
DRAWTEXTREL(0,0.382*(900+76),'0.618................................................................................................................................'),colorred;
DRAWTEXTREL(0,0.618*(900+76),'0.382................................................................................................................................'),colorred;
DRAWTEXTREL(0,0.809*(900+76),'0.191................................................................................................................................'),colorred;
DRAWTEXTREL(999,0.809*(900+76),'19.1%:'+NUMTOSTR(a19)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(999,0.618*(900+76),'38.2%:'+NUMTOSTR(a38)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(999,0.5*(900+76),'50%:'+NUMTOSTR(a5)),VALIGN2,ALIGN2,color0099ff;
DRAWTEXTREL(999,0.382*(900+76),'61.8%:'+NUMTOSTR(a61)),VALIGN2,ALIGN2,colorwhite;
DRAWTEXTREL(999,0.191*(900+76),'80.9%:'+NUMTOSTR(a80)),VALIGN2,ALIGN2,colorwhite;
V1:=MA(HIGH,30)*1.15;
V2:=MA(HIGH,3)*1.03;
V3:=MA(LOW,3)*0.97;
V4:=MA(LOW,30)*0.85;
GET:ZIG(3,N),COLORYELLOW;
PL5:=ZIG(3,5);
EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
PL10:=ZIG(3,10);
EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
PL20:=ZIG(3,20);
EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,40);
走弱1:=BARSLAST(PL5>REF(PL5,1));
走弱2:=BARSLAST(PL10>REF(PL10,1));
走弱3:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'㈠'),COLORFFFF00;
DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'㈡'),COLORFFFF00;
DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'㈢'),COLORFFFF00;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,L*0.94,'Ⅰ'),COLORFF6000;
DRAWTEXT(EX2 AND DTJD10=2,H*1.06,'Ⅱ'),COLORFF6000;
DRAWTEXT(EN3 AND ZTJZ10=1,L*0.94,'Ⅲ'),COLORFF6000;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.06,'①'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.94,'②'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.06,'③'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.94,'④'),LINETHICK3,COLOR00FFFF;
操作线:MA(CLOSE,5),Linethick1,COLOR000999;
VARA:=IF((CLOSE>150),91.3,0.913);
【下沿】:=(INTPART((CLOSE)/(VARA)))*(VARA);
【上沿】:=【下沿】+VARA;
【中线】:=(【下沿】+【上沿】)/(2);
STICKLINE(FILTER((【下沿】>0) AND ((CLOSE>【下沿】)>0) AND (CLOSE<【中线】),10),【下沿】,【下沿】,50,0),Linethick1,CoLorFF9900;
STICKLINE(FILTER((【上沿】>0) AND (CLOSE<【上沿】) AND (CLOSE>【中线】),10),【上沿】,【上沿】,50,0),Linethick1,CoLorFF99FF;
STICKLINE(FILTER((【中线】>0),5),【中线】,【中线】,50,0),Linethick1,CoLorFFFFFF;
DRAWTEXT(FILTER((【下沿】>0) AND (CLOSE>【下沿】) AND (CLOSE<【中线】),10),【下沿】,'支'),CoLorFFFF00;
DRAWTEXT(FILTER((【下沿】>0) AND (CLOSE>【下沿】) AND (CLOSE<【中线】),10),【中线】,'压'),CoLor0000FF;
DRAWTEXT(FILTER((【上沿】>0) AND (CLOSE<【上沿】) AND (CLOSE>【中线】),10),【上沿】,'压'),CoLor0000FF;
DRAWTEXT(FILTER((【上沿】>0) AND (CLOSE<【上沿】) AND (CLOSE>【中线】),10),【中线】,'支'),CoLorFFFF00;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。