關(guān)于指標的用法,,是一個非常簡單而又非常復(fù)雜的問題,。說到簡單,可以說每個人都會用,,說其復(fù)雜,可能對同一指標,,一百個人有一百種理解和用法,。因此本文只能就指標的基本使用提供一些思路,供初學(xué)者了解公式時參考,。 為了介紹方便,,我將指標大致劃分這樣幾類,均線類,,柱線類,形態(tài)類,,趨向類,,乖離類。在實際中按著不同的要求可有多種分類方式,,比如主圖,,副圖,江恩輪,,畫線,,引用公式類等等,并且很多指標都不是單一類型,,而是幾種類型的復(fù)合體,,這里就不細分了。 一,、均線類 均線類的指標多應(yīng)用于主圖,。均線是根據(jù)一定時期內(nèi)的股價(成交量等)的平均值繪制出的一條曲線,周期不同繪出的曲線也不一樣,常見的有5日、10日,、20日,、60日、120日,、250日等,,主圖中所見的趨勢線都是均線,但計算的方法和計算的基礎(chǔ)會有所不同,。 例一,、常用均線 a5:ma(c,5); a10:ma(c,10); a30:ma(c,30); a60:ma(c,60); a120:ma(c,120); a250:ma(c,250); 應(yīng)用原則,若均線趨勢向上,,且短期均線在長期均線的上方,,股價一般會沿續(xù)上升趨勢。若短期均線從下方上穿長期均線稱為金叉,,為買入信號,。上升途中股價走在平均線之上,,股價下跌沒有跌破平均線就反彈也為買進信號。上升中股價走在平均線之上,,且離均線越來越遠,,股價會隨時產(chǎn)生獲利回吐的賣壓,此時短線應(yīng)考慮賣出股票,。均線系統(tǒng)可以對股價產(chǎn)生助漲或助跌的作用,,若股價站穩(wěn)均線之上,均線就會對股價有支撐作用,,反之就會對股價造成壓力,。操作上長期均線的參考意義更大,若120日或250日均線由下降趨勢漸漸走平,并開始向上翹頭,預(yù)示著牛市即將來臨,。經(jīng)過一個時期上漲,,長期均線走平或拐頭向下,說明趨勢走壞,,或熊市來臨,。 有人為了戰(zhàn)勝莊家,并不愿意用這些均線,,通過修改參數(shù)形成自己獨特的研判方式,。比如短線進出的習(xí)慣用5分鐘線,30分鐘線等,,長期趨勢判斷則用周線,、月線等,即使用日線卻改為21日,、55日等,,隨心所欲。但不論如何修改,,只是個人風(fēng)格不同,,均線的運用本質(zhì)并沒有改變。 例二,、在均線上加入信號 {新股經(jīng)X線} X1:EMA(C,7),colorRED; X2:EMA(c,21),color44bb00; X3:EMA(X2,21),colorF00FF0; x4:ema(x3,27),colorFF0000; x5:ema(x2,100),colorFFFF00; X6:=REF(CLOSE,1); X7:=SMA(MAX(C-X6,0),6,1)/SMA(ABS(C-X6),6,1)*100; DRAWTEXT(CROSS(76,X7)AND L<X1,H*1.01,'賣出'); DRAWTEXT(ALL(C>O,3)AND REF(H,1)<X1 AND H>X1 AND X1<X5,L,'買入'); DRAWICON(COUNT(H<X1,4)=3 AND X1>REF(X1,1),L*0.98,1); DRAWTEXT(CROSS(X1,X4)AND X1>X2 AND X2>X3,X4,'追漲'); DRAWICON(COUNT(L>X1,4)=3 AND X1<REF(X1,1),H*1.02,2); X5之前是著名的《股經(jīng)X線》源碼(第6行被我舍去了),,后面的是應(yīng)網(wǎng)友要求增加的提示信號。增加信號部分,,實際上就是對公式的理解消化和摸索規(guī)律的過程,。當(dāng)然這里的信號并不全面,比如均線向上發(fā)散狀的研究,、金叉的研究等,。 例三、均線的布林式平均 臨界線:=WMA(CLOSE,13); VAR1:=POW(CLOSE-臨界線,1); VAR2:=MA(VAR1,13); VAR3:=SQRT(VAR2); 阻力線:臨界線+1.96*VAR3; 支撐線:臨界線-1.96*VAR3; PARTLINE(臨界線>REF(臨界線,1) AND 阻力線<>支撐線,臨界線),LINETHICK2,colorFF; PARTLINE(臨界線<REF(臨界線,1),臨界線),LINETHICK2,colorFF00; PARTLINE(阻力線=支撐線,臨界線),LINETHICK2,colorFF0000; 這是一個將13日均線加入系數(shù)平均,然后再分別乘心系數(shù)形成的布林式趨勢線,。這類公式雖然沒有標識信號,,實際是有規(guī)律可循的。以主軸線為例,,紅色持股,,綠色持幣,蘭色觀望,。如圖: {本文為理想論壇博主「大慶老楊」的帖子,,轉(zhuǎn)載請注明出處。 原文鏈接: https://www./thread-2878366-1-1.html} 二,、柱線類 實際應(yīng)該叫柱狀類,。此類公式多應(yīng)用于副圖,主圖偶爾可見,。它的典型代表是成交量,。其基本特征是通過柱線的長短高低或者顏色的變化表達人們對股票的判斷。 例一,、 看盤VOL 原公式如下: A:=v*100/capital; MA(A,120),COLOR996633,POINTDOT; MA(A,2),COLORYELLOW,POINTDOT; 主力:MA(A,9),COLORGREEN,POINTDOT; 大戶:MA(A,17),COLORRED,POINTDOT; 散戶:MA(A,34),COLORF2E9E7,POINTDOT; STICKLINE(MA(A,120)>0,0,MA(A,120),4,0),COLOR996633; STICKLINE(MA(A,2)>0,0,MA(A,2),4,0),COLORYELLOW; STICKLINE(主力>0,0,主力,4,0),COLORGREEN; STICKLINE(大戶>0,0,大戶,4,0),COLORRED; STICKLINE(散戶>0,0,散戶,4,0),COLORF2E9E7; 我們先來分析這個公式的基礎(chǔ)是什么,首句是換手率,,之后的5行全是對首行的平均,,最后是將這些均線畫成柱線。由此可以確定,,這是一個以成交量為主體,,加上流通盤因素來反映股票運行動態(tài)的。 為了顯示數(shù)字而又要隱去均線,,均線部分用了POINTDOT點狀線修飾,。但這只是方法之一,感興趣的朋友可根據(jù)所用股軟換個其它方式,。 那么這個公式怎么用呢,?我將其加了幾個字: A:=v*100/capital; 長均換手:MA(A,120),COLOR996633,POINTDOT; 巨幅換手:MA(A,2),COLORYELLOW,POINTDOT; 主力:MA(A,9),COLORGREEN,POINTDOT; 大戶:MA(A,17),COLORRED,POINTDOT; 散戶:MA(A,34),COLORF2E9E7,POINTDOT; STICKLINE(MA(A,120)>0,0,MA(A,120),4,0),COLOR996633; STICKLINE(MA(A,2)>0,0,MA(A,2),4,0),COLORYELLOW; STICKLINE(主力>0,0,主力,4,0),COLORGREEN; STICKLINE(大戶>0,0,大戶,4,0),COLORRED; STICKLINE(散戶>0,0,散戶,4,0),COLORF2E9E7; 加上文字后就好理解了,詳見圖示,。
例二,、紫風(fēng)魚身 A1:=MA(C,1); A5:=MA(C,5); DEA:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42); 紫風(fēng)魚身:(A1-A5); 多空趨勢:=(A1-DEA); STICKLINE(紫風(fēng)魚身>0 AND 多空趨勢>=0,多空趨勢*(-1),0,8,0),colorFFFFFF; STICKLINE(多空趨勢>0,多空趨勢,0,8,0),color0888FF; STICKLINE(多空趨勢<0,多空趨勢,0,8,0),colorFF9909; STICKLINE(紫風(fēng)魚身>0,紫風(fēng)魚身,0,5,0),colorFFFFFF; STICKLINE(紫風(fēng)魚身<0,紫風(fēng)魚身,0,5,0),colorFFFFFF; STICKLINE(紫風(fēng)魚身>0,紫風(fēng)魚身,0,3,0),color0111FF; STICKLINE(紫風(fēng)魚身<0,紫風(fēng)魚身,0,3,0),color009000;
這是一個將股價均線轉(zhuǎn)換成柱線表示的一個例子,原理與MACD一致,。 使用原則:魚身成形,,一波行情;綠下還蘭,,下行橫盤,。白柱中紅,預(yù)示上行;白柱中綠,,預(yù)示下去,。
例三、乘風(fēng)K線 DRAWTEXTEX(1,0,0,0,'綠色弱勢下跌'),COLOR005a00; DRAWTEXTEX(1,0,100,0,'黃色弱勢上升'),COLOR00CCFF; DRAWTEXTEX(1,0,200,0,'粉紅走強加倉'),COLORf00ff0; DRAWTEXTEX(1,0,0,30,'紅色上升滿倉'),COLOR0000aa; DRAWTEXTEX(1,0,100,30,'空心紅反彈關(guān)注'),; DRAWTEXTEX(1,0,200,30,'灰色強勢調(diào)整'),COLORGRAY; TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3); tyx4:=MA((C+L+O+H)/4,13); TYX5:=EMA((C+L+O+H)/4,21); {空心紅} STICKLINE(C<TYX5 AND C>O,H,L,0.1,1),COLORred; STICKLINE(C<TYX5 AND C>O,C,O,8,1),COLORred; {深綠} STICKLINE(C<TYX5 AND C<O,h,l,0.1,0),COLOR009900; STICKLINE(C<TYX5 AND C<O,C,O,8,0),COLOR005500; STICKLINE(C<TYX5 AND C<O,C,O,6,0),COLOR005a00; STICKLINE(C<TYX5 AND C<O,C,O,5,0),COLOR006600; STICKLINE(C<TYX5 AND C<O,C,O,4,0),COLOR006b00; STICKLINE(C<TYX5 AND C<O,C,O,3,0),COLOR007700; STICKLINE(C<TYX5 AND C<O,C,O,1,0),COLOR007b00;
{藍} STICKLINE(C>TYX5 AND C<O,H,L,0.1,0),COLORFFAA22; STICKLINE(C>TYX5 AND C<O,C,O,8,0 ),COLORFF7700; STICKLINE(C>TYX5 AND C<O,C,O,6,0 ),COLORFF8811; STICKLINE(C>TYX5 AND C<O,C,O,5,0 ),COLORFFAA22; STICKLINE(C>TYX5 AND C<O,C,O,4,0 ),COLORFFBB33; STICKLINE(C>TYX5 AND C<O,C,O,3 ,0 ),COLORFFDD44; STICKLINE(C>TYX5 AND C<O,C,O,1 ,0 ),COLORFFFF55; {黃} STICKLINE(C>TYX5 AND C>O,H,L,0.1,0 ),COLOR00CCFF; STICKLINE(C>TYX5 AND C>O,C,O,8,0 ),COLOR00AAFF; STICKLINE(C>TYX5 AND C>O,C,O,6,0 ),COLOR00BBFF; STICKLINE(C>TYX5 AND C>O,C,O,5,0 ),COLOR00CCFF; STICKLINE(C>TYX5 AND C>O,C,O,4,0 ),COLOR00DDFF; STICKLINE(C>TYX5 AND C>O,C,O,3,0 ),COLOR00EEFF; STICKLINE(C>TYX5 AND C>O,C,O,1,0 ),COLOR00FFFF; {粉紅} STICKLINE(C>TYX4 AND C>O,H,L,0.1,0),COLORAA00AA; STICKLINE(C>TYX4 AND C>O,C,O,8,0 ),COLORFF11FF; STICKLINE(C>TYX4 AND C>O,C,O,6,0 ),COLORFF33FF; STICKLINE(C>TYX4 AND C>O,C,O,5,0 ),COLORFF44FF; STICKLINE(C>TYX4 AND C>O,C,O,4,0 ),COLORFF55FF; STICKLINE(C>TYX4 AND C>O,C,O,3,0 ),COLORFF66FF; STICKLINE(C>TYX4 AND C>O,C,O,2,0 ),COLORFF77FF; STICKLINE(C>TYX4 AND C>O,C,O,1,0 ),COLORFF88FF; {亮灰} STICKLINE(C>TYX4 AND C<O,H,L,0.1,0),COLORWHITE; STICKLINE(C>TYX4 AND C<O,C,O,8,0),COLOR555555; STICKLINE(C>TYX4 AND C<O,C,O,6,0),COLOR777777; STICKLINE(C>TYX4 AND C<O,C,O,5,0),COLOR999999; STICKLINE(C>TYX4 AND C<O,C,O,4,0),COLORAAAAAA; STICKLINE(C>TYX4 AND C<O,C,O,3,0),COLORBBBBBB; STICKLINE(C>TYX4 AND C<O,C,O,2,0),COLORcccccc; STICKLINE(C>TYX4 AND C<O,C,O,1,0),COLORdddddd; STICKLINE(C>TYX4 AND C<O,C,O,0.1,0),COLOReeeeee; {深紅} STICKLINE(C>TYX3 AND C>O,h,l,0.5,0),COLOR0000dd; STICKLINE(C>TYX3 AND C>O,C,O,8,0),COLOR000099; STICKLINE(C>TYX3 AND C>O,C,O,6,0),COLOR0000aa; STICKLINE(C>TYX3 AND C>O,C,O,5,0),COLOR0000bb; STICKLINE(C>TYX3 AND C>O,C,O,4,0),COLOR0000cc; STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR0000dd; STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000ee; STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000ff; {漲跌停K線} STICKLINE(HIGH=LOW and CLOSE=OPEN and (CLOSE/REF(CLOSE,1))>1.048,HIGH,LOW,9,0) ,COLORRED; STICKLINE(HIGH=LOW and CLOSE=OPEN and (REF(CLOSE,1)/CLOSE)>1.048,HIGH,LOW,9,0) ,COLOR00FF00;
{突破} STICKLINE(REF(count(C<TYX3,5)=5,1) AND C>TYX3 AND C>O,C,O,2,0),COLOR00CCFF; 海面:MA(C,60),COLORFFFFFF,LINETHICK0; 乘風(fēng):MA(C,8),COLORYELLOW,LINETHICK0; 破浪:EMA(C,21),LINETHICK2,COLORMAGENTA; PARTLINE(破浪>海面,海面),COLORFFFFFF; PARTLINE(乘風(fēng)>=破浪,乘風(fēng)),COLORYELLOW,LINETHICK1; PARTLINE(乘風(fēng)>破浪 AND 乘風(fēng)<=REF(乘風(fēng),1),乘風(fēng)),COLORCYAN,LINETHICK1; PARTLINE(破浪<=REF(破浪,1),破浪),COLORGREEN,LINETHICK2; AA:=COUNT(CROSS(EMA(C,21),MA(C,8)),30)=1; BB:=COUNT(CROSS(EMA(C,21),MA(C,60)),30)=1; CC:=REF(BARSLAST(AA AND BB),1); DD:=CC AND CROSS(MA(C,8),EMA(C,21)); DRAWTEXT(DD,(LOW * 0.99),'←乘風(fēng)'),COLOR80FFFF; 主圖中的柱線基本都是此類,,也就是對K線進行修飾,。此K線的用法已在主圖中說明,。
三、形態(tài)類 這里所說的形態(tài)只是側(cè)重公式的表現(xiàn)形式而已,,也就是以形體告訴我們股票的趨勢信息,。 例一:黑馬黃牛 DRAWTEXTEX(1,1,1,1,'短線黑馬小波段,,中線黃牛大波瀾,;'); DRAWTEXTEX(1,1,1,150,'短線回頭中線強,,尋機低吸等反彈,。'); MA1:=(C+O+H+L)/4; MA8:=MA(MA1,8); ZQSJ:=BARSLAST(CROSS(MA1,MA8))+1; ZRSJ:=BARSLAST(CROSS(MA8,MA1))+1; 短線:IF(ZQSJ<=ZRSJ,REF(ZRSJ,1),0),COLOR0000FF,LINETHICK2; 黑馬:IF(ZQSJ<=ZRSJ,0-REF(ZRSJ,1),0),COLOR0000FF,LINETHICK2; XXSJ:=BARSLAST(CROSS(0.8,短線))+1; 休息:IF(短線=0,XXSJ,0),COLOR00FF00,POINTDOT,LINETHICK1; RSV:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100; K:=SMA(RSV,5,1); D:=SMA(K,5,1); J:=3*K-2*D; 中線:IF(J>K,J,0),COLOR00FFFF,LINETHICK2; 黃牛:IF(J>K,0-J,0),COLOR00FFFF,LINETHICK2; 強勢:IF(J>K AND J>=50,50,IF(J>K,J,0)),COLORFF00FF,POINTDOT,LINETHICK0; DXDD:=L=LLV(L,3) OR C=LLV(C,3); 回頭:IF(DXDD AND COUNT(短線>0 AND 中線>=30,3)>=1,-30,0),COLORFFFFFF,LINETHICK2; LC := REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*200-100; RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*200-100; MA2:=MA(RSI,2); 太陽:IF(MA2>90 AND RSI6>50,1,0),COLOR0000FF,POINTDOT,LINETHICK0; FILLRGN(中線>50 AND 中線>=REF(中線,1),50,中線),COLOR0000FF; FILLRGN(中線>50 AND 中線<REF(中線,1),50,中線),COLOR00FF00; FILLRGN(中線>100,100,中線),COLORFFFFFF; DRAWICON(太陽,中線*1.3,2);
例二,、會飛的魚 AA:=REF(CLOSE,1); BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000; HHH:=BBB-LLV(BBB,27); CCC:=LLV(BBB,27)-BBB; QQ:(MA(HHH*1.5,2)*3+HHH*13)/16,COLOR445EAF,; SS:(MA(CCC*1.5,2)*3+CCC*13)/16,COLORFF9D00; QQ0:(MA(HHH*2,2)*3+HHH*13)/16,COLOR445EAF; SS0:(MA(CCC*2,2)*3+CCC*13)/16,COLORFF9D00; QQ1:(MA(HHH*2.5,2)*3+HHH*13)/16,COLOR445EAF; SS1:(MA(CCC*2.5,2)*3+CCC*13)/16,COLORFF9D00; QQ2:(MA(HHH*3,2)*3+HHH*13)/16,COLOR445EAF; SS2:(MA(CCC*3,2)*3+CCC*13)/16,COLORFF9D00; QQ3:(MA(HHH*3.5,2)*3+HHH*13)/16,COLOR445EAF; SS3:(MA(CCC*3.5,2)*3+CCC*13)/16,COLORFF9D00; QQ4:(MA(HHH*4,2)*3+HHH*13)/16,COLOR445EAF; SS4:(MA(CCC*4,2)*3+CCC*13)/16,COLORFF9D00; QQ5:(MA(HHH*4.5,2)*3+HHH*13)/16,COLOR445EAF; SS5:(MA(CCC*4.5,2)*3+CCC*13)/16,COLORFF9D00; QQ6:(MA(HHH*5,2)*3+HHH*13)/16,COLOR445EAF; SS6:(MA(CCC*5,2)*3+CCC*13)/16,COLORFF9D00; QQ7:(MA(HHH*5.5,2)*3+HHH*13)/16,COLOR445EAF; SS7:(MA(CCC*5.5,2)*3+CCC*13)/16,COLORFF9D00; SS8:(MA(CCC*6,2)*3+CCC*13)/16,COLORFF9D00; GG:MA(HHH,3),LINETHICK1,COLORRED; MM:MA(CCC,3),LINETHICK1,COLORGREEN; WW:=IF(QQ<GG ,SS,MM); EE:=IF(SS<MM ,GG,QQ); EE1:=IF(SS<MM-4 ,GG-3,QQ-3); WW1:=IF(QQ<GG-4 ,SS-3,MM-3); STICKLINE(18,0,EE1-9,11,0),COLOR00509f; STICKLINE(18,WW1+12,0,11,0),COLOR00999a; V1:=EMA(CLOSE,60)-EMA(CLOSE,300); V2:=EMA(V1,300); V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; V4:=SMA(V3,2,1); V5:=SMA(V4,2,1); V6:=CLOSE/REF(CLOSE,3)>=1.1; //強勢描述 乖離13:=10-sma((C-ma(C,13))/ma(C,13),2,1)*10; 波段:=乖離13<10; 強弱a:=2.28*SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*58,5,1)-0*-10; 強弱b:=2.28*SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*58,5,1)-0*-10; 莊強c:=(強弱a>=ref(81,1))*強弱a; 牛莊:(強弱b>=ref(81,1))*強弱b; STICKLINE(莊強c>ref(50,1),莊強c,ref(莊強c,1),6,1),COLORyellow,linethick2; FILLRGN(波段,乖離13,28),COLORgreen;
這個公式利用趨勢線以零軸為中心畫了個對稱圖形,根據(jù)魚形的收縮與張弛反映股票運行動態(tài),。
例三,、十全十美 {金蘭十全十美 飛狐版 多指標綜合看盤}
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,13); DEA:=EMA(DIFF,5); DRAWICON(DIFF>DEA,1,4); DRAWICON(DIFF<DEA,1,5); DRAWTEXT(ISLASTBAR=1,1,'.MACD'),COLORFFFFFF; A1:=DIFF>DEA; RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; K:=SMA(RSV1,3,1); D:=SMA(K,3,1); DRAWICON(K>D,2,4); DRAWICON(K<D,2,5); DRAWTEXT(ISLASTBAR=1,2,'.KDJ'),COLORFFFFFF; A2:=K>D; LC:=REF(CLOSE,1); RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100; RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100; DRAWICON(RSI1>RSI2,3,4); DRAWICON(RSI1<RSI2,3,5); DRAWTEXT(ISLASTBAR=1,3,'.RSI'),COLORFFFFFF; A3:=RSI1>RSI2; RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100; LWR1:=SMA(RSV,3,1); LWR2:=SMA(LWR1,3,1); DRAWICON(LWR1>LWR2,4,4); DRAWICON(LWR1<LWR2,4,5); DRAWTEXT(ISLASTBAR=1,4,'.LW&R'),COLORFFFFFF; A4:=LWR1>LWR2; BBI:=(MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOSE,13))/4; DRAWICON(CLOSE>BBI,5,4); DRAWICON(CLOSE<BBI,5,5); DRAWTEXT(ISLASTBAR=1,5,'.BBI'),COLORFFFFFF; A5:=CLOSE>BBI; MTM:=CLOSE-REF(CLOSE,1); MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3); MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8); DRAWICON(MMS>MMM,6,4); DRAWICON(MMS<MMM,6,5); DRAWTEXT(ISLASTBAR=1,6,'.ZLMM'),COLORFFFFFF; A6:=MMS>MMM; BIAS:=(C-MA(C,5))/MA(C,5); DIF:=(BIAS-REF(BIAS,16)); DBCD:=SMA(DIF,76,1); MM:=MA(DBCD,5); DRAWICON(DBCD>MM ,7,4); DRAWICON(DBCD<MM,7,5); DRAWTEXT(ISLASTBAR=1,7,'.DBCD'),COLORFFFFFF; A7:=DBCD>MM; 持股:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK,COLORRED; 支撐:LLV(持股,3),LINETHICK,COLOR00FFFF; 下跌:MA(持股,12),COLOR6B8E23,LINETHICK; 轉(zhuǎn)向:=CROSS(持股,下跌){ AND 下跌<30}; MA1:=MA(持股,5); 向下:=CROSS(MA1,持股) AND MA1>80; DRAWICON(持股>下跌 ,8,4); DRAWICON(持股<下跌,8,5); DRAWTEXT(ISLASTBAR=1,8,'.CGZ'),COLORFFFFFF; A8:=持股>下跌; mtm:=c-ref(c,1); ZLGJ:=100*ema(ema(mtm,8),8)/ema(ema(abs(mtm),8),8); MAZL:=MA(ZLGJ,5); DRAWICON(ZLGJ>MAZL,9,4); DRAWICON(ZLGJ<MAZL,9,5); A9:=ZLGJ>MAZL; DRAWTEXT(ISLASTBAR=1,9,'.ZLGJ'),COLORFFFFFF; PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9); JJ:=REF(EMA(PJJ,3),1); QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)); HSL:=(XVL/20)/1.15; 攻擊流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22)); GJJ:=EMA(攻擊流量,8); LLJX:=EMA(攻擊流量,3); 資金流量:LLJX,LINETHICK0,COLOR0000FF; DRAWICON(資金流量>0,10,4); DRAWICON(資金流量<0,10,5); A10:=資金流量>0; DRAWTEXT(ISLASTBAR=1,10,'.ZJL'),COLORFFFFFF; 指導(dǎo)線:(A1+A2+A3+A4+A5+A6+A7+A8+A9+A10),linethick2,COLORFFFF00; 選股:IF(指導(dǎo)線 >6 ,1,0),linethick3,ColorFF00FF; 這是將若干個系統(tǒng)公式集中在一起的,,使用方法一目了然,。
最后大家鑒賞一下本區(qū)的一個很有特色的形態(tài)公式:中國長城:
說明:上文內(nèi)容沒有一一印證,只是留存,。
|