看了一天的指標(biāo)公式,也就篩選出來兩個(gè)主圖,我結(jié)合了一下,就是突破走勢(shì),看好的話可以打賞一下,犒勞個(gè)雞腿吃就行。 主圖源碼: LT:=LLVBARS(L,60); LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1); HT:=FINDHIGHBARS(H,LT+1,60,1); EXT1:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLORRED,LINETHICK2; TT:=BARSLAST(CURRBARSCOUNT=CONST(HT)+1); DRAWLINE(TT=0,H,LTT=0,L,0),COLORRED,LINETHICK2; EXT2:DRAWLINE(LTT=0,(EXT1-L)*0.618+L,ISLASTBAR,REF((EXT1-L)*0.618+L,LTT),0)DOTLINE,COLORLIMAGENTA; V1:=IF(C>O OR (C=O AND C>=REF(C,1)),VOL,0); V2:=IF(C<O OR (C=O AND C<REF(C,1)),VOL,0); LJ:=SUM(V1,LTT)/SUM(V2,LTT); XGG:=COUNT(CROSS(C>=EXT1,0.5),LTT+1)=1 AND CROSS(C>=EXT1,0.5) AND LJ>1.5; DRAWICON(XGG,L,25);DRAWTEXT(XGG,L*0.985,'←飛'),COLORYELLOW; STICKLINE(XGG,C,O,2,0),COLORYELLOW; STICKLINE(XGG,H,L,0,0),COLORYELLOW; DRAWTEXT(LTT=0,L*0.98,'←鍋底'),COLORYELLOW; T:=BARSLAST(CROSS(C,REF(H,TT))); GL:=C/REF(H,TT); TAK:=BARSLAST(GL=HHV(GL,T+1)); DF:=(C-REF(C,TAK+1))/REF(C,TAK+1)*100; JL:=L/REF(H,TT); XGK:=DF<-8 AND JL<1.075 AND MIN(C,O)*1.005>=REF(H,TT); XGT:=BARSLAST(COUNT(XGK,T+1)=1 AND XGK); QFK:=BACKSET(XGT=0,TAK+1); QFTK:=BARSLAST(CROSS(QFK=1,0.5)); XZF:=REFX(DF,BARSNEXT(XGT=0)); DRAWICON(CROSS(XGT=0,0.5),L*0.99,1); DRAWTEXT(CROSS(XGT=0,0.5),L*0.980,'←回踩'),COLORYELLOW; DRAWLINE(T=0,REF(H,TT),QFTK=0,REF(H,QFTK),0),DOTLINE,COLORYELLOW; DRAWLINE(QFTK=0,REF(H,QFTK),XGT=0,REF(H,TT),0),DOTLINE,COLORYELLOW; DRAWTEXT(TT=0,REF(H,TT)*1.05,VARCAT(VARCAT('支撐價(jià):',VAR2STR(REF(H,TT),2)),'元'))COLORYELLOW; DRAWLINE(QFTK=0,REF(H,QFTK)*1.05,QFTK=10,REF(H,QFTK)*1.05,0),COLORWHITE,LINETHICK3; DRAWTEXT(QFTK=0,REF(H,QFTK)*1.01,VARCAT(VARCAT('信號(hào)處跌幅:',VAR2STR(XZF,2)),'%'))COLORYELLOW; 箱頂:=MA(REF(HHV(CLOSE,30),1),2),COLORYELLOW,LINETHICK2; 箱底:=MA(REF(LLV(CLOSE,30),1),2); 中軌:=EMA(CLOSE,20),COLORGREEN,LINETHICK2; X_1:=MA(CLOSE,20); X_2:=POW(CLOSE-中軌,2); X_3:=MA(X_2,20); X_4:=SQRT(X_3); X_5:=中軌+2*X_4; X_6:=中軌-2*X_4; X_7:=REF(中軌,1); 上軌:=REF(X_5,1),COLORRED,LINETHICK2; 下軌:=REF(X_6,1); 獲利百分百:=EMA(COST(99),5); 量比:=VOL/REF(MA(VOL,5),1); 起爆點(diǎn):=CLOSE>箱頂 AND CLOSE>上軌 AND 量比>1.8 AND COUNT(CLOSE>箱頂 AND CLOSE>上軌 AND 量比>1.8,7)=1; 突破:=CLOSE>獲利百分百 AND COUNT(CLOSE>獲利百分百,7)=1; DRAWTEXT(起爆點(diǎn),L,'←爆'),COLORRED; DRAWTEXT(突破,L*0.97,'←突'),COLORCYAN; 選股源碼: 箱頂:=MA(REF(HHV(CLOSE,30),1),2),COLORYELLOW,LINETHICK2; 箱底:=MA(REF(LLV(CLOSE,30),1),2); 中軌1:=EMA(CLOSE,20),COLORGREEN,LINETHICK2; X_1:=MA(CLOSE,20); X_2:=POW(CLOSE-中軌1,2); X_3:=MA(X_2,20); X_4:=SQRT(X_3); X_5:=中軌1+2*X_4; X_6:=中軌1-2*X_4; X_7:=REF(中軌1,1); 上軌1:=REF(X_5,1),COLORRED,LINETHICK2; 下軌1:=REF(X_6,1); 獲利百分百:=EMA(COST(99),5); 量比:=VOL/REF(MA(VOL,5),1); 起爆點(diǎn):=CLOSE>箱頂 AND CLOSE>上軌1 AND 量比>1.8 AND COUNT(CLOSE>箱頂 AND CLOSE>上軌1 AND 量比>1.8,7)=1; 突破1:=CLOSE>獲利百分百 AND COUNT(CLOSE>獲利百分百,7)=1; LT:=LLVBARS(L,60); LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1); HT:=FINDHIGHBARS(H,LT+1,60,1); EXT1:=DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLORRED,LINETHICK2; V2:=IF(C<O OR (C=O AND C<REF(C,1)),VOL,0); V1:=IF(C>O OR (C=O AND C>=REF(C,1)),VOL,0); LJ:=SUM(V1,LTT)/SUM(V2,LTT); XGG:=COUNT(CROSS(C>=EXT1,0.5),LTT+1)=1 AND CROSS(C>=EXT1,0.5) AND LJ>1.5 AND REF(NOT(C=H),2) AND C<20 AND FINANCE(7)<2000000000 AND C/REF(C,1)>1.05; 小線:=MAX(MA(C,5),MAX(MAX(MA(CLOSE,10),MA(C,20)),MAX(MA(C,60),MA(C,120))))COLORRED; 爆突:(起爆點(diǎn)+突破1+XGG)>=2 AND C<20 AND FINANCE(7)<2000000000 AND REF(NOT(C=H),2) AND C>小線; |
|