股票公式不明白請(qǐng)查閱:股票公式文件使用以及說明!
{乾坤眼} H1:=MAX(DYNAINFO(3),DYNAINFO(5)); L1:=MIN(DYNAINFO(3),DYNAINFO(6)); P1:=H1-L1; 阻力:L1+P1*7/8,COLOR00FFFF,DOTLINE; 支撐:L1+P1*0.5/8,COLORRED,DOTLINE; 中:(支撐+阻力)/2,COLORC0C0C0,DOTLINE; 現(xiàn)價(jià):CLOSE,COLORWHITE,LINETHICK1; MR:=C<支撐 AND CROSS(C,REF(C,2)); MC:=C>阻力 AND CROSS(REF(C,2),C); 均價(jià):=SUM(V*C,0)/SUM(V,0),COLOR004080,DOTLINE; DRAWTEXT(CURRBARSCOUNT=1,阻力,'--------阻力'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=1,支撐,'--------支撐'),COLORA2A2FF; DRAWTEXT(ISLASTBAR,(支撐+阻力)/2,'--------中'),COLORWHITE; DRAWTEXT(CURRBARSCOUNT=4,均價(jià),'--------均'),COLORFFFFFF,LINETHICK2;
{---------------------------------} DRAWTEXT(CROSS(支撐,現(xiàn)價(jià)),(支撐-中)/5+支撐,'★底'),COLORYELLOW; DRAWTEXT(CROSS(現(xiàn)價(jià),阻力),阻力-(支撐-中)/5,'★頂'),COLORMAGENTA;
{------------新圖---------------------} Q:=250; 高點(diǎn):=HHV(C,Q); 低點(diǎn):=LLV(C,Q); 最高:=CONST(高點(diǎn)),NODRAW; 最低:=CONST(低點(diǎn)),NODRAW; 軸差:=最高-最低; 中價(jià)軸:=(最高+最低)/2; HL3:=(100-0)/2*1.3; HL4:=(100-0)/1*1.3; 中間價(jià)軸:=中; 平安軸:=中; BGTYU:=1; GHYJKU:=BETWEEN((CLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))),1.05,0.95); VBNH:=IF(GHYJKU=0,MA((CLOSE*BGTYU),BARSCOUNT((CLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU))))); 起動(dòng)線:=EXPMA((CLOSE/VBNH),20)*1,COLORYELLOW,POINTDOT; 主力線:=EXPMA((CLOSE/VBNH),60)*1,COLORMAGENTA,LINETHICK2; 散戶線:=EXPMA((CLOSE/VBNH),120)*1,COLORGREEN,LINETHICK2; 限制起動(dòng)線:=起動(dòng)線*中間價(jià)軸; 限制主力線:=主力線*中間價(jià)軸; 限制散戶線:=散戶線*中間價(jià)軸; 主散MIN:=MIN(限制主力線,限制散戶線); {分時(shí)轉(zhuǎn)強(qiáng):=主散MIN>金龍線 AND ((LONGCROSS(限制主力線,金龍線,2) OR CROSS(限制主力線,限制散戶線)) OR (限制主力線>限制散戶線 AND LONGCROSS(牽引線,金龍線,2)));} DRAWBAND(限制主力線,RGB(250,125,0),限制散戶線,RGB(0,100,250)); STICKLINE(起動(dòng)線<主力線,限制起動(dòng)線,限制主力線,1.0,0),COLOR00FF00; STICKLINE(起動(dòng)線>主力線,限制起動(dòng)線,限制主力線,1.0,0),COLORFFFFFF; STICKLINE(VOL>EMA(VOL,60) AND 起動(dòng)線>主力線,限制起動(dòng)線,限制主力線,1,0),COLORFF00FF; STICKLINE(VOL>EMA(VOL,30) AND 起動(dòng)線>主力線 AND 起動(dòng)線>1.01 AND 起動(dòng)線>REF(起動(dòng)線,1),限制起動(dòng)線,限制主力線,1,0),COLOR00FFFF;
{乾坤眼劃線} STICKLINE(CROSS(阻力,現(xiàn)價(jià)),C,中,2,0),COLORFFFF00; STICKLINE(MC=1,阻力,中,2,0),COLORFFFF00; DRAWICON(MC=1 OR CROSS(阻力,現(xiàn)價(jià)),中,35); STICKLINE(CROSS(現(xiàn)價(jià),支撐),C,中,2,0),COLOR00F0F0; DRAWICON(MR=1 OR CROSS(現(xiàn)價(jià),支撐),中,34);
{---------分時(shí)均線-------------------} W:=BARSLAST(DAY-REF(DAY,1))+1; FSJX:=SUM(CLOSE*VOL,W)/SUM(VOL,W),LINETHICK2,COLORYELLOW; FSJX1:=IF(FSJX<REF(FSJX,1),FSJX,DRAWNULL),LINETHICK2,COLORGREEN;
{-------鬼鬼分時(shí)-------}; VARG1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100; VARG2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100; VARG3:=SMA(VARG2,2,1); 天:=100+(-ABS(VARG1)); 下:=SMA(VARG3,2,1); 無:=ABS(VARG1); 買:=CROSS(下,無); 賣:=CROSS(下,天); DRAWICON(買,C,25); DRAWICON(賣,C,26);
{財(cái)神必買} VAR01:=EMA(EMA(CLOSE,13),13); 控盤:=(VAR01-REF(VAR01,1))/REF(VAR01,1)*1000; JJ:=DYNAINFO(11); P:=55;S:=8;M1:=3; 財(cái):=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2; 神:=EMA(財(cái),M1),COLORGREEN,LINETHICK1; BTJ11:=(C-JJ)/JJ<-0.03; BTJ2:=控盤>REF(控盤,1) AND 控盤<-0.2; BTJ3:=CROSS(財(cái),神) AND 財(cái)<-0.3; BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13); {必買} DRAWICON(BTJ811 AND TIME>10,C,24); {買底} BTJ1:=(C-JJ)/JJ<-0.005; BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13); DRAWICON(BTJ81 AND TIME>10,L*0.999,1);{買底}; {必賣} STJ01:=控盤<REF(控盤,1) AND 控盤>0.5; STJ02:=控盤>0; STJ31:=CROSS(神,財(cái)); STJ32:=CROSS(神,財(cái)) AND 財(cái)>1.618; STJ1:=(C-JJ)/JJ>0.005; STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13); STJ82:=FILTER(STJ02 AND STJ32 ,13); STJ83:=STJ81 AND STJ82; DRAWICON(STJ83 AND TIME>10,C*1.005,27); {可能頂} DRAWICON(STJ81,H*1.01,2);
{分時(shí)心理} PSY:=COUNT(CLOSE>REF(CLOSE,1),13)/13*100,COLOR00FFFF; PA:=MA(PSY,3),COLOR0000FF; TJ1:=FILTER((C-JJ)/JJ<-0.04 AND PA<16,13); {紅球---紅買} DRAWICON(TJ1,C,13); TJ2:=FILTER((C-JJ)/JJ>0.05 AND PA>60,14); {藍(lán)球---綠賣} DRAWICON(TJ2,C,14);
{-------抓漲停-------} 獲利盤:=100*WINNER(CLOSE)<0.15; DRAWICON(獲利盤,C,9);{錢袋};
{波段} VAR7:=SMA(C,6.18,1); VAR8:=SMA(VAR7,3.14,1); DRAWBAND(VAR7,RGB(255,255,0),VAR8,RGB(0,255,255));
{超級(jí)漲停1} CC:=C; TQT:=BARSCOUNT(CC); 均價(jià)Q:=SUM(V*C,0)/SUM(V,0); 均:=MA(CC,TQT); 時(shí)長:=TIME>93000; 漲幅:=CC/REF(C,1)>1.02; 跌幅:=CC/REF(C,1)<0.98; 橫盤:=((HHV(CC,Q)-LLV(CC,TQT))/CC)<0.05; YY:=SMA(VOL,30,1); 放量:=(YY-LLV(LLV(YY,1),30))/(HHV(HHV(YY,1),30)-LLV(LLV(YY,1),30))>0.95; 漲跌幅:=漲幅 OR 跌幅; 橫漲1:=漲跌幅=0 AND 橫盤 AND 放量 AND CROSS(均價(jià)Q,均);
{分時(shí)抓漲停2} KK1:=BARSLAST(CLOSE=HHV(CLOSE,2000)); KK2:=BARSLAST(CLOSE=LLV(CLOSE,2000));
{啟動(dòng)前期分時(shí)副}{可作預(yù)警3} VAR2:=LLV(LOW,21); VAR3:=HHV(HIGH,21); VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,20)*0.998; DXTD:=20; 短線:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,1);
{分時(shí)漲停4-猛虎狂獵漲停板} CQ:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95); Q2:=IF(CQ=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))));
{分時(shí)預(yù)警公式5} 分時(shí)預(yù)警:=C/REF(C,1)>1.02 AND V*240/FROMOPEN/REF(MA(V,1),1)>=2 AND C=H AND REF(C,1)/L<1.015 AND C/REF(C,1)<1.07;
{發(fā)家分時(shí)6} 日1:=EMA(C,1),COLORFF00FF; 日:=EMA((H+L+C)/3,1); 日5:=MA(EMA((H+L+C)/3,1),5); 日10:=MA(EMA((H+L+C)/3,1),10); 對(duì)比日:=EMA(REF(日,240),1); 對(duì)比日5:=MA(EMA(REF(日,240),1),5); 對(duì)比日10:=MA(EMA(REF(日,240),1),10); 強(qiáng):=日5>對(duì)比日5 AND 日10>對(duì)比日10 AND 日5-對(duì)比日5>0 AND 日10-對(duì)比日10>0; 角:=(ATAN((日10/REF(日10,5)-1)*100)*180/3.14115926)>30; 角2:=(ATAN((日10/REF(日10,5)-1)*100)*180/3.14115926)>20; 弱:=日5<對(duì)比日5 AND 日10<對(duì)比日10 AND 日5-對(duì)比日5<0 AND 日10-對(duì)比日10<0 AND 對(duì)比日5>REF(對(duì)比日5,3);
發(fā)家分時(shí):=CROSS(日1,對(duì)比日) AND C>REF(C,240);
{平安7} N:=7.5; MMA30:=EMA(CLOSE,30); 強(qiáng)弱界定:=IF(PERIOD=0,EMA(CLOSE,900),DRAWNULL),COLORWHITE,LINETHICK2; 分時(shí)價(jià)量線:=SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1; 實(shí)時(shí)漲幅限制:=(C/DYNAINFO(3)-1)*100; {買賣力度} YD:=DYNAINFO(3); MM:=IF(C=DYNAINFO(4)*1.1 AND L=DYNAINFO(4)*1.1,H-YD,H-REF(C,1)); M:=IF(MM>0,MM,0.0); SS:=IF(C=DYNAINFO(4)*0.9 AND H=DYNAINFO(4)*0.9,YD-H,REF(C,1)-L); SXD:=IF(SS>0,SS,0.0); HJ:=M+SXD; 買入力度:=M/HJ*AMOUNT/CAPITAL; 賣出力度:=SXD/HJ*AMOUNT/CAPITAL; 買賣力度:=SUM((買入力度-賣出力度),0); 買賣力度比:=買賣力度/SUM((買入力度+賣出力度),0)*50; 買賣力度比設(shè)置:=買賣力度比+50; 買賣力度比限制:=IF(買賣力度比設(shè)置>80,80,IF(買賣力度比設(shè)置<20,20,買賣力度比設(shè)置));
分時(shí)力度線:=SUM(C*買賣力度比限制,240)/SUM(買賣力度比限制,240); 買賣力度參考線0:=MA(買賣力度比限制,8)*1.062; 買賣力度參考線:=MA(買賣力度比限制,8)*1.091; 買賣力度參考線2:=MA(買賣力度比限制,5)*1.191; 平安分時(shí)關(guān)注:=買賣力度參考線<50 AND CROSS(買賣力度比限制,50); 平安分時(shí)追漲:=(CROSS(買賣力度比限制,買賣力度參考線) OR (CROSS(買賣力度比限制,買賣力度參考線0) AND 買賣力度比限制>70)) AND (買賣力度比限制>50) AND (MMA30>強(qiáng)弱界定 OR 分時(shí)價(jià)量線>強(qiáng)弱界定 OR C>MAX(MMA30,強(qiáng)弱界定)) AND C>分時(shí)價(jià)量線 AND V>MA(V,20) AND DYNAINFO(17)>=1.2 AND 實(shí)時(shí)漲幅限制<N;
平安追漲:=FILTER(平安分時(shí)追漲,20); 平安:=平安追漲;
{上漲區(qū)間} MRK:=C<支撐 AND CROSS(C,REF(C,2)); 上漲1:=MRK=1 OR CROSS(現(xiàn)價(jià),支撐); 上漲:=COUNT(上漲1,FROMOPEN); 買點(diǎn)限制:=IF(上漲,20,0);
{下跌區(qū)間} MCK:=C>阻力 AND CROSS(REF(C,2),C); 下跌1:=MCK=1 OR CROSS(阻力,現(xiàn)價(jià)); 下跌:=COUNT(下跌1,FROMOPEN); 買點(diǎn)限制1:=IF(下跌=0,25,0);
{強(qiáng)勢漲停} 地勢:=DYNAINFO(11)+(DYNAINFO(11)*0.021); 趨勢漲停:=IF(DYNAINFO(7)>地勢,1,0); 勢漲:=買點(diǎn)限制1 =25 AND 買點(diǎn)限制 =20 AND 趨勢漲停;
漲停1:IF(橫漲1 AND 勢漲,(阻力-中)/3+中,中) ,COLORYELLOW,LINETHICK3; 漲停2:IF(CROSS(KK1,KK2) AND 勢漲,(阻力-中)/3+中,中),COLORLIMAGENTA,LINETHICK3; 漲停3:IF(CROSS(短線,DXTD) AND 勢漲,(阻力-中)/3+中,中),COLORGREEN,LINETHICK3; 漲停4:IF(CROSS((C/Q2),1.03) AND 勢漲,(阻力-中)/3+中,中),COLORLIGRAY,LINETHICK3; 漲停5:IF(分時(shí)預(yù)警 AND 勢漲,(阻力-中)/3+中,中),COLORCYAN,LINETHICK3; 漲停6:IF(發(fā)家分時(shí) AND 勢漲,(阻力-中)/3+中,中),COLORLIRED,LINETHICK3; 漲停7:IF(平安 AND 勢漲,(阻力-中)/3+中,中),COLORLIMAGENTA,LINETHICK3;
{南川2代分時(shí)} AF1:=1; TT:=BARSLAST(HOUR=9 AND MINUTE=(30+AF1))+1; 價(jià)位:C,COLORWHITE,LINETHICK4; 盤整:IF(HOUR>9 AND RANGE(HHV(C,60)/LLV(C,60),1,1.02),C,DRAWNULL),COLORRED,LINETHICK2;
V1:=V; HH:=C>REF(C,1) AND C/均價(jià)>(1+0.03); LL:=C<REF(C,1) AND C/均價(jià)<(1-0.03); HH1:=CROSS(SUM(HH,0),0.5); LL1:=CROSS(SUM(LL,0),0.5); SS1:=SUM(HH1,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(HH1)),0.5); BB1:=SUM(LL1,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL1)),0.5); CS1:CONST(SUM(IF(SS1,REF(C,1),DRAWNULL),0)),COLORGREEN,LINETHICK2; CB1:CONST(SUM(IF(BB1,REF(C,1),DRAWNULL),0)),COLORRED,LINETHICK2; HH2:=CROSS(SUM(HH AND C>CS1*1.03,0),0.5); LL2:=CROSS(SUM(LL AND C<CB1*0.97,0),0.5); SS2:=SUM(HH2,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(HH2)),0.5); BB2:=SUM(LL2,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL2)),0.5); CS2:CONST(SUM(IF(SS2,REF(C,1),DRAWNULL),0)),COLORGREEN,LINETHICK1; CB2:CONST(SUM(IF(BB2,REF(C,1),DRAWNULL),0)),COLORRED,LINETHICK1; DRAWICON(HH1 OR HH2,C*1.01,39); DRAWICON(LL1 OR LL2,C*0.99,38); DRAWICON(BB1 OR BB2,REF(C,1)*0.99,7); DRAWICON(SS1 OR SS2,REF(C,1)*1.01,8);
{無盡T+0} {VARY1:=LLV(LOW,100); VARY2:=HHV(HIGH,250); 操盤線:=EMA((CLOSE-VARY1)/(VARY2-VARY1)*4,4); DRAWICON(CROSS(操盤線,0.3),L,1); DRAWICON(CROSS(操盤線,3.5),H,2);};
{} GG:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(V*100,BARSCOUNT(C))),1.05,0.95); ZZ:=IF(GG=0,MA(C,BARSCOUNT(C)),SUM(AMOUNT,BARSCOUNT(C))/SUM(V*100,BARSCOUNT(C))); AAA:=IF(PERIOD<1,POW(C/ZZ,3)*100,0); BB8:=EXPMA(AAA,20),COLORFFFFFF; DRAWICON(AAA-BB8<-4 AND AAA<=92 AND C=LLV(C,30),C,1); DRAWICON(AAA-BB8>4 AND AAA>=108 AND C=HHV(C,30),C,2);
|