幸運(yùn):=1; X1:=(C+L+H)/3*幸運(yùn); X2:=EMA(X1,6)*幸運(yùn); X3:=EMA(X2,5)*幸運(yùn); {DRAWICON(CROSS(X2,X3),L-1,7); DRAWICON(CROSS(X3,X2),H+1,8);} 做空:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL)*幸運(yùn),CIRCLEDOT,COLOR80FF00; 做多:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL*幸運(yùn)),CIRCLEDOT,COLORRED; 主力操盤線:=EMA(EMA(EMA(CLOSE,2),2),2)*幸運(yùn); 趨勢(shì)線:(MA(主力操盤線,5))*幸運(yùn),COLORGREEN,LINETHICK2; IF(趨勢(shì)線>REF(趨勢(shì)線,1),趨勢(shì)線,DRAWNULL)*幸運(yùn),COLORFF00FF,LINETHICK2; IF(趨勢(shì)線<REF(趨勢(shì)線,1),趨勢(shì)線,DRAWNULL)*幸運(yùn),COLORGREEN,LINETHICK2; MA5:MA(CLOSE,5)*幸運(yùn),COLOR8000FF,DOTLINE; MA10:MA(CLOSE,10)*幸運(yùn),COLOR8080FF,DOTLINE; MA5下跌顯示值:IF(MA5<REF(MA5,1),MA5,DRAWNULL)*幸運(yùn),COLOR80FF80,DOTLINE; MA10下跌顯示值:IF(MA10<REF(MA10,1),MA10,DRAWNULL)*幸運(yùn),COLOR00FF00,DOTLINE; 趨勢(shì)線上升顯示:IF(趨勢(shì)線>REF(趨勢(shì)線,1),趨勢(shì)線,DRAWNULL)*幸運(yùn),LINETHICK2,COLOR8000FF; 前期低:REF(O,BARSLAST(LLV(C,20)=C))*幸運(yùn),COLORFFFFFF,NODRAW; STICKLINE(L,前期低,前期低,2,0)*幸運(yùn),COLOR00FF00; 標(biāo)錢袋:DRAWICON(CROSS(C,前期低),L,9)*幸運(yùn); DRAWNUMBER(ISLASTBAR,前期低,前期低)*幸運(yùn); STICKLINE(CROSS(C,前期低),C,O,3,0)*幸運(yùn),COLORMAGENTA; STICKLINE(C/REF(C,1)>1.097,C,O,3,0)*幸運(yùn),COLORYELLOW; {頂?shù)妆畴x,無(wú)未來(lái)} TC1:=IF(H=HHV(H,48),H,DRAWNULL)*幸運(yùn); TC2:=CONST(BARSLAST(TC1=H))+1*幸運(yùn); UPPER1:=CONST(IF(TC2=1,H,REF(H,TC2-1)))*幸運(yùn); BC1:=IF(L=LLV(L,48),L,DRAWNULL)*幸運(yùn); BC2:=CONST(BARSLAST(BC1=L))+1*幸運(yùn); LOWER1:=CONST(IF(BC2=1,L,REF(L,BC2-1)))*幸運(yùn); LP:=CURRBARSCOUNT<=BC2 AND L=LOWER1*幸運(yùn);{低點(diǎn)定位} HP:=CURRBARSCOUNT<=TC2 AND H=UPPER1*幸運(yùn);{高點(diǎn)定位} DRAWTEXT(LP,L*0.982,'底背')*幸運(yùn),COLOR00FFFF;{波段底文字提示,黃色} DRAWTEXT(HP,H*1.00,' 波段頂')*幸運(yùn),COLOR00FF80;{波段頂文字提示,綠色}; {逃頂} LCC:=REF(CLOSE,1)*幸運(yùn); RSIC:=SMA(MAX(CLOSE-LCC,0),6,1)/SMA(ABS(CLOSE-LCC),6,1)*100*幸運(yùn); DRAWTEXT(CROSS(84,RSIC) , HIGH*0.99,' 逃頂')*幸運(yùn),COLOR00FF00; {絕頂逃} 日:=150*幸運(yùn); 昨前:=3*幸運(yùn); 高1:=REF(HHV(H,日),昨前)*幸運(yùn); 天頂:REFDATE(高1,DATE)*幸運(yùn),NODRAW,COLORCYAN; 頂:=REFDATE(高1,DATE)*幸運(yùn); 極頂:=REFDATE(頂,DATE)*幸運(yùn); 跑:=極頂=H AND ((C-L)<(O-C) OR (O-L)<(C-O))*幸運(yùn); STICKLINE(跑,C,O,3,0)*幸運(yùn),COLORE12F00; STICKLINE(跑,L,H,0.1,0)*幸運(yùn),COLORE12F00; DRAWTEXT(跑,H*0.96,'---絕頂跑')*幸運(yùn),COLOR00FF00; DRAWICON(SAR(10,2,20)<=L AND REF(SAR(10,2,20)>=H,1),REF(MIN(C,O),1),42)*幸運(yùn);{L*0.99} DRAWICON(SAR(10,2,20)>=H AND REF(SAR(10,2,20)<=L,1),HHV(H,10),43)*幸運(yùn);{H*1.001} {公司信息} 所屬概念:=STRCAT('所屬概念:',GNBLOCK); 利潤(rùn)同比:=STRCAT('利潤(rùn)同比:',CON2STR(FINANCE(43),2)); 收入同比:=STRCAT('收入同比:',CON2STR(FINANCE(44),2)); 主營(yíng)利潤(rùn)率:=STRCAT('主營(yíng)利潤(rùn)率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2)); 所屬地域:=STRCAT('所屬地域:',DYBLOCK); 所屬行業(yè):=STRCAT('所屬行業(yè):',HYBLOCK); 所屬風(fēng)格:=STRCAT('所屬風(fēng)格:',FGBLOCK); DRAWTEXT_FIX(1,0.00,0.10,0,所屬概念),COLORFF8080; DRAWTEXT_FIX(1,0.00,0.01,0,利潤(rùn)同比),COLORWHITE; DRAWTEXT_FIX(1,0.11,0.01,0,收入同比),COLORRED; DRAWTEXT_FIX(1,0.22,0.01,0,主營(yíng)利潤(rùn)率),COLOR0080FF; DRAWTEXT_FIX(1,0.00,0.04,0,所屬地域),COLORYELLOW; DRAWTEXT_FIX(1,0.00,0.07,0,所屬行業(yè)),COLORYELLOW; DRAWTEXT_FIX(1,0.00,0.13,0,所屬風(fēng)格),COLORCYAN; DRAWTEXT_FIX(1,0.00,0.16,0,'量化口訣:做紅不做綠 見(jiàn)空就持幣 見(jiàn)多就持股 紫K已啟動(dòng) 藍(lán)K要逃頂')*幸運(yùn),COLOR8000FF; DRAWTEXT_FIX(1,0.00,0.19,0,'量化規(guī)則:下跌空間28%--62%之間 趨勢(shì)線由綠變紅 紫K金袋子同時(shí)出現(xiàn) SAR出現(xiàn)多字 以上為多方信號(hào) ')*幸運(yùn),COLOR0000FF; DRAWTEXT_FIX(1,0.00,0.22,0,'策略規(guī)則:短線目標(biāo)5%--15% 中線目標(biāo)15%--30% 長(zhǎng)線目標(biāo)50%以上 止損在波點(diǎn)最低點(diǎn) ')*幸運(yùn),COLORFF6666; |
|
來(lái)自: 交易員小杜 > 《股票指標(biāo)公式》