您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 其它相关文档 > 【大智慧】预测收盘(预测当天最低价、预测收盘价)
【大智慧】预测收盘(预测当天最低价、预测收盘价)-指标公式源码DRAWGBKLAST(1,STRIP(RgB(10,10,50),RGB(50,10,10),0));MA3:MA(CLOSE,3);MA4:MA(CLOSE,4);MA5:MA(C,5),colorwhite;MA10:MA(C,10),COLORYELLOW;警报:=CROSS(MA4,MA3);DRAWTEXT(警报,H*1.05,'↓'),LINETHICK6,ALIGN1,COLORFFFFFF;安全:=CROSS(MA3,MA4);DRAWTEXT(安全,L*0.95,'↑'),LINETHICK6,ALIGN1,colorRED;SD:=HHV(HIGH,13)=HIGHANDHIGHREF(HIGH,1);{17}x9:FORCAST(c,9),Colorwhite,LINETHICK2;llx:=llv(FORCAST(c,9),2);PARTLINE(x9,x9=llx,rgb(255,205,0),x9llx,rgb(255,0,0)),linethick3;MA21:MA(C,21),LINETHICK1,COLORE66878;VC:=(HIGH+LOW+OPEN+2*CLOSE)/5;明日突破:=VC+(HIGH-LOW);明日反转:=VC-(HIGH-LOW);DRAWTEXTABS(15,71,'明日突破:'+NUMTOSTRN(明日突破,2)+'元'),COLOR0000FF;DRAWTEXTABS(15,90,'明日反转:'+NUMTOSTRN(明日反转,2)+'元'),COLORffff00;HHVALL(HIGH)*1.1,COLOR000000;LLVALL(LOW)*0.9,COLOR000000;{预测当天最低价公式}A1:=REF(O,1);A2:=ABS((REF(C,1)-A1)/A1);A3:=ABS((REF(H,1)-A1)/A1);A4:=ABS((REF(L,1)-A1)/A1);B1:=ABS((A2+A3+A4)/3);B2:=O*B1;今日最高:=O+B2;预测低一:O-B2,linethick0;{预测当天收盘价公式}开盘价1:=open;开盘价2:=REF(open,1);最高价1:=high;最高价2:=REF(high,1);最低价1:=low;最低价2:=REF(low,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AA:=最高价2;BB:=最低价2;CC:=开盘价2;DD:=收盘价2;EE:=(AA+BB+CC+2*DD)/5;AAA:=EE+(AA-BB);BBB:=2*EE-BB;CCC:=2*EE-AA;DDD:=EE-(AA-BB);上升突破价:=AAA;上升阻力价:=BBB;下跌支撑价:=CCC;下跌反转价:=DDD;EEE:=(EE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+开盘价1)/2;GGG:=(预测低一+FFF)/2;预测低二:GGG,colorffffff,LINETHICK0;高:=今日最高;收:=FFF;DRAWTEXTABS(15,35,'预测低一:'+NUMTOSTRN(预测低一,2)+'元'),COLORWHITE,linethick1;DRAWTEXTABS(15,53,'预测低二:'+NUMTOSTRN(预测低二,2)+'元'),COLORWHITE,linethick1;a:=[email=LTFunc5@FORLT2]LTFunc5@FORLT2[/email];s1:=[email=LTFunc5@LT_S1]LTFunc5@LT_S1[/email];p1:=[email=LTFunc5@LT_P1]LTFunc5@LT_P1[/email];drawbmp(p1=1andref(p1,1)=0,l,'buy1.bmp'),align1,valign0;drawbmp(p1=0andref(p1,1)=1,h,'sell1.bmp'),align1,valign2;drawbmp(s1=1andref(s1,1)=0and(p1+ref(p1,1))1,l,'bs.bmp'),align1,valign0;drawbmp(s1=0andref(s1,1)=1and(p1+ref(p1,1))1,h,'ss.bmp'),align1,valign2;{一品资料说明}WW:=BARSLAST(DISPSTATUS=1);低涨:(C/LLV(LOW,WW)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;天:BARSLAST(L=LLV(LOW,WW)),COLOR00FFFF,LINETHICK0,PRECIS0;DRAWTEXTABS(210,15,'◇低点至今上涨:'+NUMTOSTRN(低涨,2)+'%'+NUMTOSTRN(天,0)+'天'),COLOR0000FF;DRAWTEXTABS(210,32,'◇目前可见K线:'+NUMTOSTRN(WW+1,0)+'天'),COLORYELLOW;DRAWTEXTABS(15,15,'预测今日最高价:'+NUMTOSTRN(ref(今日最高,0),2)+'元'),COLORF00FF0,linethick1;DRAWTEXTREL(680,950,'预测今日收盘价:'+NUMTOSTRN(ref(FFF,0),2)+'元'),COLORF00FF0,linethick1;{43}DRAWGBK(c,'7');Var3:=LLV(H,240);Var4:=100*(C-Var3)/Var3;Var5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100;Var6:=(C-LLV(C,530))/(HHV(C,530)-LLV(C,530))*100;{Var7:=0;}Var8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100;Var9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100;VarA:=BARSCOUNT(C);VarB:=Var820ANDVar923ANDVarA35;VarC:=VarBANDCOUNT(VarB,1)=1;VarD:=EMA(C,21)-EMA(C,8);VarE:=EMA(VarD,5);VarF:=TROUGH(3,6,1)4ANDCROSS(VarD,VarE);Var10:=IF(TROUGH(3,16,1)=0ANDHL+0.04,4,0);Var11:=ZIG(3,6)REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1)=REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2)=REF(ZIG(3,6),3);Var12:=ZIG(3,6)REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1)=REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2)=REF(ZIG(3,6),3);Var13:=ZIG(3,22)REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)=REF(ZIG(3,22),3);Var14:=ZIG(3,22)REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)=REF(ZIG(3,22),3);Var15:=ZIG(3,51)REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)=REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2)=REF(ZIG(3,51),3);Var16:=ZIG(3,51)REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)=REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2)=REF(ZIG(3,51),3);Var17:=ZIG(3,72)REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1)=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)=REF(ZIG(3,72),3);Var18:=ZIG(3,72)REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1)=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)=REF(ZIG(3,72),3);Var19:=EMA(C,2)-EMA(C,150);Var1A:=EMA(Var19,100);Var1B:=2*(Var19-Var1A);Var1C:=POW(Var1B,3)*0.1+POW(Var1B,1);Var1D:=SQRT(SQRT(L*H*O*C));Var1E:=EMA(Var1D*0.97,3);Var1F:=(H+L+C)/3;Var20:=(Var1F-MA(Var1F,14))/(0.015*AVEDEV(Var1F,14));Var21:=CROSS(Var1E,L);买点1:=Var10;买点2:=(Var11+Var13+Var15+Var17);卖点1:=(Var12+Var14+Var16+Var18);Var22:=买点1ANDVarFANDVarCANDVar21ANDVar40ANDVar5=0ANDVar6=0ANDVar20(-110);DRAWTEXT(买点10,L-0.15,'B'),LINETHICK4,ALIGN1,colorred;{B}DRAWTEXT(买点20,L-0.25,{'B'}'买'),LINETHICK2,ALIGN1,COLOR00FFFF;{B}DRAWTEXT(卖点10,H+0.95,{'S'}'卖'),LINETHICK2,ALIGN1,COLOR33FF33;{S}闪:EMA(c+(h-l)*0.618,3),Color0099FF,LINETHICK0;进:EMA((o+h+l)/3,4),COLORCYAN,LINETHICK0;预测明日买点:=EMA((o+h+l)/3,4)+((h+l)/2-ref((o+h+l)/3,3))/4;DRAWTEXTREL(250,0,'◇测今日低点:'+NUMTOSTRN(ref(预测明日买点,1),2)),ColorGREEN,linethick1;预测明日卖点:=EMA(c+(h-l)*0.618,3)+(EMA(c+(h-l)*0.618,3)-进)*0.618;DRAWTEXTREL(15,0,'♂测今日高点:'+NUMTOSTRN(ref(预测明日卖点,1),2)),Colorred,linethick1;{预测明日涨跌}C1:=REF(CLOSE,1);C2:=HHV(C1,2);C3:=LLV(C1,1);ET:=HHV(C1,2);ET1:=REF(ET,1);XB:=LLV(C1,1);XB1:=REF(XB,1);M:=BARSLAST(((CLOSEXB)AND(C1=XB1)));M11:=REF(M,1);N9:=BARSLAST(((CLOSEET)AND(C1=ET1)));N1:=REF(N9,1);M21:=(BARSLAST((((M-N9)0)AND(M11=N1)))+1);N2:=(BARSLAST((((N9-M)0)AND(N1=M11)))+1);ET2:=HHV(ET,M21);XB2:=LLV(XB,N2);A:=IF((((M-N9)0)AND(M11=
本文标题:【大智慧】预测收盘(预测当天最低价、预测收盘价)
链接地址:https://www.777doc.com/doc-34842 .html