老師你好幫助改成我們文華 [文華財(cái)經(jīng)]
作者:文華財(cái)經(jīng) 來(lái)源:cxh99.com 發(fā)布時(shí)間:2021年08月23日 點(diǎn)擊數(shù):
【收藏到本網(wǎng)的會(huì)員中心】
- 咨詢內(nèi)容: ?老師這個(gè)有未來(lái)函數(shù)嗎 K:=(C+H+L)/3;D:=EMA(K,8);均線:=D,COLORYELLOW,LINETHICK2;
- 文華技術(shù)人員: ?指標(biāo)可以正加載,指標(biāo)內(nèi)有backset zigzag未來(lái)函數(shù)
阻力:=HHV(D,30),COLORCYAN,LINETHICK2;支撐:=LLV(D,30),COLORBLUE,LINETHICK2;
Q3:=VALUEWHEN(ISLASTBAR,阻力);Q4:=VALUEWHEN(ISLASTBAR,支撐);
//牛熊線AMOUNT:=AVPRICE*V;壓力熊線:=MA(REF(HHV(C,30),1),2),COLORGREEN,DASH;/*YXB1:=BACKSET(壓力熊線<>REF(壓力熊線,1),SUMBARS(壓力熊線<>REF(壓力熊線,1),2)/2);YXB2:=BACKSET(ISLASTBAR,SUMBARS(壓力熊線<>REF(壓力熊線,1),1)/2);DRAWNUMBER(CROSS(YXB1,0.5),壓力熊線,壓力熊線,4,COLORLIGHTBLUE);DRAWNUMBER(CROSS(YXB2,0.5),壓力熊線,壓力熊線,4,COLORLIGHTBLUE);*/支撐牛線:=MA(REF(LLV(C,30),1),2),COLORRED,DASH;/*ZNB1:=BACKSET(支撐牛線<>REF(支撐牛線,1),SUMBARS(支撐牛線<>REF(支撐牛線,1),2)/2);ZNB2:=BACKSET(ISLASTBAR,SUMBARS(壓力熊線<>REF(壓力熊線,1),1)/2);DRAWNUMBER(CROSS(ZNB1,0.5),支撐牛線,支撐牛線,4,RGB(128,0,64));DRAWNUMBER(CROSS(ZNB2,0.5),支撐牛線,支撐牛線,4,RGB(128,0,64));?*/AA1:=AMOUNT/V;BB1:=L<AA1*0.9;
//SAR變形SARL:ABS(SAR(10,0.02,0.2)),COLORYELLOW,DOT,NODRAW;DRAWICON(CROSSDOWN(C,SARL),H,'CO5',COLORGREEN,FONTSIZE20;DRAWICON(CROSSUP(C,SARL),L,'CO4',COLORYELLOW,FONTSIZE20,VALIGN0;
//{波浪王}/*TY:=CLOSE;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);A:=REF(CLOSE,BARSLAST(HD));B:=REF(CLOSE,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);浪頂:IF(T1,A,A),COLORLIGHTBLUE,DOT;浪底:IF(T2,B,B),RGB(128,0,64),DOT;
CB1:=BACKSET(浪頂<>REF(浪頂,1),SUMBARS(浪頂<>REF(浪頂,1),2)/2);CB2:=BACKSET(ISLASTBAR,SUMBARS(浪頂<>REF(浪頂,1),1)/2);DRAWNUMBER(CROSS(CB1,0.5),浪頂,浪頂,4,COLORLIGHTBLUE);DRAWNUMBER(CROSS(CB2,0.5),浪頂,浪頂,4,COLORLIGHTBLUE);CB3:=BACKSET(浪底<>REF(浪底,1),SUMBARS(浪底<>REF(浪底,1),2)/2);CB4:=BACKSET(ISLASTBAR,SUMBARS(浪底<>REF(浪底,1),1)/2);DRAWNUMBER(CROSS(CB3,0.5),浪底,浪底,4,RGB(128,0,64)),VALIGN0;DRAWNUMBER(CROSS(CB4,0.5),浪底,浪底,4,RGB(128,0,64)),VALIGN0;*/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:=VAR8<20 AND VAR9<23 AND VARA>35;VARC:=VARB AND COUNT(VARB,1)=1;VARD:=EMA(C,21)-EMA(C,8);VARE:=EMA(VARD,5);VARF:=(361)<4 AND CROSS(VARD,VARE);VAR10:=IF((3161)=0 AND H>L+0.04,4,0);N1:=0.5;N2:=2.1;N3:=5.4;N4:=8.9;VAR11:= ZIGZAG(C,N1,1)>REF(ZIGZAG(C,N1,1),1) AND REF(ZIGZAG(C,N1,1),1)<=REF(ZIGZAG(C,N1,1),2) AND REF(ZIGZAG(C,N1,1),2)<=REF(ZIGZAG(C,N1,1),3);VAR12:= ZIGZAG(C,N1,1)<REF(ZIGZAG(C,N1,1),1) AND REF(ZIGZAG(C,N1,1),1)>=REF(ZIGZAG(C,N1,1),2) AND REF(ZIGZAG(C,N1,1),2)>=REF(ZIGZAG(C,N1,1),3);VAR13:= ZIGZAG(C,N2,1)>REF(ZIGZAG(C,N2,1),1) AND REF(ZIGZAG(C,N2,1),1)<=REF(ZIGZAG(C,N2,1),2) AND REF(ZIGZAG(C,N2,1),2)<=REF(ZIGZAG(C,N2,1),3);VAR14:=ZIGZAG(C,N2,1)<REF(ZIGZAG(C,N2,1),1) AND REF(ZIGZAG(C,N2,1),1)>=REF(ZIGZAG(C,N2,1),2) AND REF(ZIGZAG(C,N2,1),2)>=REF(ZIGZAG(C,N2,1),3);VAR15:= ZIGZAG(C,N3,1)>REF(ZIGZAG(C,N3,1),1) AND REF(ZIGZAG(C,N3,1),1)<=REF(ZIGZAG(C,N3,1),2) AND REF(ZIGZAG(C,N3,1),2)<=REF(ZIGZAG(C,N3,1),3);VAR16:= ZIGZAG(C,N3,1)<REF(ZIGZAG(C,N3,1),1) AND REF(ZIGZAG(C,N3,1),1)>=REF(ZIGZAG(C,N3,1),2) AND REF(ZIGZAG(C,N3,1),2)>=REF(ZIGZAG(C,N3,1),3);VAR17:= ZIGZAG(C,N4,1)>REF(ZIGZAG(C,N4,1),1) AND REF(ZIGZAG(C,N4,1),1)<=REF(ZIGZAG(C,N4,1),2) AND REF(ZIGZAG(C,N4,1),2)<=REF(ZIGZAG(C,N4,1),3);VAR18:= ZIGZAG(C,N4,1)<REF(ZIGZAG(C,N4,1),1) AND REF(ZIGZAG(C,N4,1),1)>=REF(ZIGZAG(C,N4,1),2) AND REF(ZIGZAG(C,N4,1),2)>=REF(ZIGZAG(C,N4,1),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);買點(diǎn)1:=VAR10;買點(diǎn)2:=(VAR11+VAR13+VAR15+VAR17);賣點(diǎn)1:=(VAR12+VAR14+VAR16+VAR18),LINETHICK2;VAR22:=買點(diǎn)1 AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5=0 AND VAR6=0 AND VAR20<(-110);DRAWTEXT(買點(diǎn)1>0,LOW,'',COLORYELLOW,ALIGN1,VALIGN0,FONTSIZE18;DRAWTEXT(買點(diǎn)2>0,LOW,'',COLORYELLOW,ALIGN1,VALIGN0,FONTSIZE18;DRAWTEXT(賣點(diǎn)1>0,HIGH,'',COLORGREEN,ALIGN1,VALIGN2,FONTSIZE18;//DRAWICON(買點(diǎn)2,LOW,1),ALIGN1,VALIGN0;//DRAWICON(賣點(diǎn)1,HIGH,2),ALIGN1,VALIGN2;DRAWCOLORKLINE(賣點(diǎn)1>0,COLORGREEN,0);//波浪高點(diǎn)加亮DRAWCOLORKLINE(買點(diǎn)2>0,COLORYELLOW,0);//波浪低點(diǎn)加亮
//{支撐壓力}HD1:=FILTER(BACKSET(FILTER(REF(H,10)=HHV(H,2*10+1),10),10+1),10);LD1:=FILTER(BACKSET(FILTER(REF(L,10)=LLV(L,2*10+1),10),10+1),10);支:=REF(LOW,BARSLAST(LD1)),NODRAW;壓:=REF(HIGH,BARSLAST(HD1)),NODRAW;
YL:=IFELSE(壓=REF(壓,1),壓,壓),COLORWHITE,DOT;/*C1Y:=BACKSET(YL<>REF(YL,1),SUMBARS(YL<>REF(YL,1),2)/2);C2Y:=BACKSET(ISLASTBAR,SUMBARS(YL<>REF(YL,1),1)/2);DRAWNUMBER(CROSS(C1Y,0.5),YL,YL,4,COLORGREEN);DRAWNUMBER(CROSS(C2Y,0.5),YL,YL,4,COLORGREEN);*/ZC:=IFELSE(支=REF(支,1),支,支),RGB(219,241,18),DOT;/*C3Z:=BACKSET(ZC<>REF(ZC,1),SUMBARS(ZC<>REF(ZC,1),2)/2);C4Z:=BACKSET(ISLASTBAR,SUMBARS(ZC<>REF(ZC,1),1)/2);DRAWNUMBER(CROSS(C3Z,0.5),ZC,ZC,4,COLORYELLOW),VALIGN0;DRAWNUMBER(CROSS(C4Z,0.5),ZC,ZC,4,COLORYELLOW),VALIGN0;
DRAWTEXT(HD1,H,'',RGB(128,0,255),FONTSIZE20;DRAWTEXT(LD1,L,'',RGB(128,0,64),FONTSIZE20,VALIGN0*/
?
?來(lái)源:程序化99
有思路,想編寫各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信號(hào):cxh99cxh99 進(jìn)行 有償收費(fèi) 編寫!
(怎么收費(fèi),代編流程等詳情請(qǐng)點(diǎn)擊閱讀!)
(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,加好友時(shí)請(qǐng)簡(jiǎn)單備注下您的需求,否則無(wú)法通過(guò)。謝謝您!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容