大智慧六大"個股診斷"精品公式大全
cjcjc按:這個是解盤,不是一般的指標,所以引入方法不同,摘自lz自己的引入方法:
先復制源碼,依次打開功能----自編指標----個股診斷----新建菜單,在指標編輯器空白處粘貼源碼
,在公式名稱欄目里添寫指標名,鼠標點擊測試公式,再點確認,OK!
然后再依次打開功能----自編指標----個股評價----新增評價-----個股診斷----點擊“個股診斷” ,打開[個股]或[其它],點選某一指標,點擊“添加診斷”,在評價名欄里添寫你選中的指標名(注
意:格式要與指標名一致),點確定。其它以次類推。
使用方法: 1)回到個股評價(引入導出)窗口,在公式組中選擇某個股診斷公式; 2)點擊“默認評價”,退出; 3)回到K線圖信息窗中,點擊右下角的“診斷”,即可顯示診斷內(nèi)容。其它指標的使用以次類推 [/hide]
之一:大智慧系統(tǒng)自己的特色解盤公式! IFS((D>1),' 人均持股評測值為'+STR(((D)/(CLOSE))*(10),0)+'手,','')+IFS((D>1) AND (E>0),'大資金持股約占流通股本的'+STR(IF((E>0),E,0),0)+'%;','')+IFS((D<15) AND (D>1),'沒有主力或主力控盤程度較低'+IFS((F>=(-20)) AND (F<(-10)),',但近期有大資金收集籌碼跡象','')+IFS((F<(-20)),',但近期有大資金大舉建倉','')+IFS((F>=10) AND (F<20),',且籌碼近期繼續(xù)分散','')+IFS((F>=20),',且籌碼近期加速分散',''),'')+IFS((D>15) AND (D<30),'主力中等程度控盤,'+IFS((F>=(-20)) AND (F<(-10)),IFS((S2>0),'且近期繼續(xù)主動收集籌碼','近期被動收集籌碼'),'')+IFS((F<(-20)),IFS((S2>0),'且近期主動大量收集籌碼','且近期被動大量收集籌碼'),'')+IFS((F>=10) AND (F<20),IFS((S2>0),'但近期有所階段性減倉','但近期有所獲利減倉'),'')+IFS((F>=20),IFS((S2>0),'但近期大幅階段性減倉','但近期大幅獲利減倉'),'')+IFS((F<10) AND (F>=(-10)),'近期主力倉位變化不明顯',''),'')+IFS((D>30) AND (D<60),'主力較高程度控盤,'+IFS((F>=(-20)) AND (F<(-10)),IFS((S2>0),'且近期繼續(xù)主動收集籌碼','近期被動收集籌碼'),'')+IFS((F<(-20)),IFS((S2>0),'且近期主動大量收集籌碼','且近期被動大量收集籌碼'),'')+IFS((F>=10) AND (F<20),IFS((S2>0),'但近期有所階段性減倉','但近期有所獲利減倉'),'')+IFS((F>=20),IFS((S2>=0),'但近期大幅階段性減倉','但近期大幅獲利減倉'),'')+IFS((F<10) AND (F>=(-10)),'近期主力倉位變化不明顯',''),'')+IFS((D>=60) AND (D<100),'主力高度控盤,'+IFS((F>=(-20)) AND (F<(-10)),IFS((S2>0),'且近期繼續(xù)主動收集籌碼','近期被動收集籌碼'),'')+IFS((F<(-20)),IFS((S2>=0),'且近期主動大量收集籌碼','且近期被動大量收集籌碼'),'')+IFS((F>=10) AND (F<20),IFS((S2>0),'但近期有所階段性減倉','但近期有所獲利減倉'),'')+IFS((F>=20),IFS((S2>=0),'但近期大幅階段性減倉','但近期大幅獲利減倉'),'')+IFS((F<10) AND (F>=(-10)),'近期主力倉位變化不明顯',''),''),ColorFF00FF; c1:=c/ref(ema(c,30),30); c2:=indexc/ref(ema(indexc,30),30); l1:=c1/c2*10-10; c3:=c/ma(c,60); c4:=indexc/ma(indexc,60); l2:=c3/c4*10-10; c5:=c/ma(c,120); c6:=indexc/ma(indexc,120); l3:=c5/c6*10-10; L4:=MA(L1+L2+L3,5); ' '+ IFS(REF(L4,1)>0 AND REF(L4,1)>REF(L4,2),'該股中長期走勢強于大盤,且近期繼續(xù)走強。','')+ IFS(REF(L4,1)>0 AND REF(L4,1)<=REF(L4,2),'該股中長期走勢強于大盤,但近期有所走弱。','')+ IFS(REF(L4,1)<=0 AND REF(L4,1)>REF(L4,2),'該股中長期走勢弱于大盤,但近期有所轉強。','')+ IFS(REF(L4,1)<=0 AND REF(L4,1)<=REF(L4,2),'該股中長期走勢弱于大盤,且近期繼續(xù)走弱。','') K:="KD.K"(17,4,4);
D:="KD.D"(17,4,4); ' '+ IFS(K>80 AND CROSS(D,K)=0,'KD指標提示該股已經(jīng)處于超買狀態(tài),如果KD指標死叉應及時賣出。','')+ IFS(K<20 AND CROSS(K,D)=0,'KD指標提示該股已經(jīng)處于超賣狀態(tài),如果KD指標金叉應及時買入。','')+ IFS(CROSS(K,D) AND LLV(K,3)<20,'KD低位金叉,建議買入。','')+ IFS(CROSS(D,K) AND HHV(K,3)>80,'KD高位死叉,建議賣出。','') ' 該股為'+ IFS(FINANCE(33)>=N1/100,'績優(yōu)、','')+IFS(FINANCE(33)<N1/100 AND FINANCE(33)>=N2/100,'中等業(yè)績、','')+IFS(FINANCE(33)<N2/100 AND FINANCE(33)>=0,'績差、','')+ IFS(FINANCE(33)<0,'虧損、','')+ IFS(DYNAINFO(39)<=P1 AND DYNAINFO(39)>0,'低市盈率、','')+IFS(DYNAINFO(39)>P1 AND DYNAINFO(39)<=P2,'中等市盈率、','')+IFS(DYNAINFO(39)>P2,'高市盈率、','')+
IFS(FINANCE(7)>=S1,'大盤股。','')+IFS(FINANCE(7)<S1 AND FINANCE(7)>=S2,'中盤股。','')+
IFS(FINANCE(7)<S2,'小盤股。','') DIFF:="MACD.DIFF"(12,26,9); DEA:="MACD.DEA"(12,26,9); MACD:="MACD.MACD"(12,26,9); IFS(DIFF>=0,' MACD指標顯示該股處于多頭行情中',' MACD指標顯示該股處于空頭行情中')+ IFS(DIFF>=0 AND MACD>=0 AND MACD>REF(MACD,1),'且有加速上漲趨勢。','')+ IFS(DIFF>=0 AND MACD>=0 AND MACD<=REF(MACD,1),'但上漲趨勢有所減緩,短線投資者可逢高賣出,但當回落至均線或其他支撐位時應及時回補。','')+ IFS(DIFF>=0 AND MACD<0 AND MACD>=REF(MACD,1),',目前正處于回落整理階段,但整理即將結束,可在均線或其他支撐位附近逢低買入,但當整理完成后選擇再次向下突破時應注意及時止損。','')+ IFS(DIFF>=0 AND MACD<0 AND MACD<REF(MACD,1),',目前正處于回落整理階段,且回落有加速趨勢。','')+ IFS(DIFF<0 AND MACD<=0 AND MACD<REF(MACD,1),'且有加速下跌趨勢。','')+ IFS(DIFF<0 AND MACD<=0 AND MACD>=REF(MACD,1),'但下跌趨勢有所減緩,可在W&R指標大于90時逢低買入,但有可能再次加速下跌,注意及時止損。','')+ IFS(DIFF<0 AND MACD>0 AND MACD>REF(MACD,1),',目前正處于反彈階段,投資者應保持謹慎。','')+ IFS(DIFF<0 AND MACD>0 AND MACD<REF(MACD,1),',短線反彈已經(jīng)結束,應繼續(xù)堅持謹慎原則。','')+ IFS(CROSS(DIFF,0),'該股今日從空頭市場轉換為多頭行情。','')+ IFS(CROSS(0,DIFF),'該股今日從多頭市場轉換為空頭行情。','') 之二:K線形態(tài)解盤
早晨之星:=REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2); 黃昏之星:=REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1) > REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2); 長十字:=CLOSE=OPEN AND HIGH/LOW >1.03; 垂死十字:=CLOSE=OPEN AND CLOSE=LOW AND CLOSE<>HIGH; 早晨十字星:=REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2); 黃昏十字星:=REF(CLOSE,2)/REF(OPEN,2) > 1.05 AND REF(OPEN,1) > REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2); 射擊之星:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5); 倒轉錘頭:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5); 錘頭:=HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5); 吊頸:=HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5); 穿頭破腳:=(REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE<REF(OPEN,1) AND OPEN>REF(CLOSE,1)) OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1)); 烏云蓋頂:=REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1); 曙光初現(xiàn):=REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1); 身懷六甲:=ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 AND MAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1)); 十字胎:=ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND CLOSE=OPEN AND CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1)); 平頂:=ABS(HIGH-REF(HIGH,1))/HIGH<0.001; 平底:=(ABS(LOW-REF(LOW,1))/LOW<0.001 and abs(ref(low,1)-ref(low,2))/ref(low,1)<=0.001); 大陽燭:=CLOSE/OPEN>1.05 AND HIGH/LOW < CLOSE/OPEN+0.018; 三個白武士:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPEN AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1); 雙飛烏鴉:=REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98; 孕育線:=REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1) AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPEN AND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1) AND (MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))<=1/100; 多方炮:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN; 出水芙蓉:=(OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60)))) AND (V/MA(V,30)>1.2 AND C/REF(C,1)>1.049); 上升三部曲:=REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4); 下跌三部曲:= REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,4); 跳空缺口:=HIGH<REF(LOW,1) OR LOW>REF(HIGH,1); 三只烏鴉:=REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE<REF(CLOSE,1); 光腳陰線:=LOW=CLOSE AND HIGH<>LOW; 光頭陽線:=HIGH=CLOSE AND HIGH<>LOW; 分離:=OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0; 長下影:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667; 長上影:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667; 十字星:=CLOSE=OPEN AND HIGH<>LOW; 大陰燭:=OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018; 好友反攻:=(REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002); 傾盆大雨:=REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O>REF(O,1) AND C<REF(O,1); IFS(傾盆大雨,'K線形態(tài)分析:傾盆大雨,見頂信號。','')+ IFS(大陰燭,'K線形態(tài)分析:大陰燭,后市向淡,發(fā)生逆轉。','')+ IFS(好友反攻,'K線形態(tài)分析:好友反攻,底部反轉。','')+ IFS(跳空缺口,'K線形態(tài)分析:跳空缺口,注意向上還是向下跳空。','')+ IFS(光腳陰線,'K線形態(tài)分析:光腳陰線,下跌信號。','')+ IFS(光頭陽線,'K線形態(tài)分析:光頭陽線,后市看漲。','')+ IFS(三只烏鴉,'K線形態(tài)分析:三只烏鴉,可能見頂回落。','')+ IFS(分離,'K線形態(tài)分析:分離,注意看漲分離和看跌分離。','')+ IFS(長下影,'K線形態(tài)分析:長下影,持續(xù)下跌后出現(xiàn),有可能止跌回升;在升勢末期出現(xiàn),須多加留意。','')+ IFS(長上影,'K線形態(tài)分析:長上影,表明行情上檔壓力沉重,升勢受阻。','')+ IFS(下跌三部曲,'K線形態(tài)分析:下跌三部曲,下跌信號。','')+ IFS(上升三部曲,'K線形態(tài)分析:上升三部曲,上漲信號。','')+ IFS(早晨之星,'K線形態(tài)分析:早晨之星,見底回升。','')+ IFS(黃昏之星,'K線形態(tài)分析:黃昏之星,見頂回落。','')+ IFS(十字星,'K線形態(tài)分析:十字星,有轉向意味,注意股價位置在頂部還是底部。','')+ IFS(長十字,'K線形態(tài)分析:長十字,注意在頂部還是底部。','')+ IFS(垂死十字,'K線形態(tài)分析:垂死十字,下跌信號。','')+ IFS(早晨十字星,'K線形態(tài)分析:早晨十字星,上漲信號,見底回升。','')+ IFS(黃昏十字星,'K線形態(tài)分析:黃昏十字星,下跌信號,見頂回落。','')+ IFS(射擊之星,'K線形態(tài)分析:射擊之星,可能見頂回落,可靠性低。','')+ IFS(倒轉錘頭,'K線形態(tài)分析:倒轉錘頭,可能見底回升。','')+ IFS(錘頭,'K線形態(tài)分析:錘頭,可能見底回升,如有量配合,信號強烈。','')+ IFS(吊頸,'K線形態(tài)分析:吊頸,上升行情中見頂回落,頂部出現(xiàn),見頂信號。','')+ IFS(平頂,'K線形態(tài)分析:平頂,溫和的反轉。','')+ IFS(穿頭破腳,'K線形態(tài)分析:穿頭破腳,頂部出現(xiàn),見頂回落信號。','')+ IFS(烏云蓋頂,'K線形態(tài)分析:烏云蓋頂,見頂回落信號。','')+ IFS(曙光初現(xiàn),'K線形態(tài)分析:曙光初現(xiàn),后市見底回升。','')+ IFS(身懷六甲,'K線形態(tài)分析:身懷六甲,出現(xiàn)在底部,是見底回升信號;出現(xiàn)在頂部,是見頂回落信號。','')+ IFS(十字胎,'K線形態(tài)分析:十字胎。','')+ IFS(平底,'K線形態(tài)分析:平底,溫和的反轉。','')+ IFS(大陽燭,'K線形態(tài)分析:大陽燭,,看漲。','')+ IFS(三個白武士,'K線形態(tài)分析:三個白武士,每日收盤價上移,表示可能見底回升。','')+ IFS(雙飛烏鴉,'K線形態(tài)分析:雙飛烏鴉,行情將見頂回落。','')+ IFS(孕育線,'K線形態(tài)分析:孕育線,注意股價位置。','')+ IFS(多方炮,'K線形態(tài)分析:多方炮,在底部出現(xiàn)有上漲以為,在中間出現(xiàn)有可能是上漲中繼,頂部出現(xiàn)是復合見頂信號。','')+ IFS(出水芙蓉,'K線形態(tài)分析:出水芙蓉,見底回升。','') 之三:換手率解盤
{lsg 0000}
hh:=100*v/capital; Var1:=ref(c,1); var4:=(var1-l)/(h-l); var5:=v*var4; var2:=v*var4; var3:=abs(var2); var6:=abs(var5); HSL:=vol/capital*100; PT := REF(HIGH,1)-REF(LOW,1); 重心:=(HIGH + LOW + CLOSE)/3; 壓力Ⅰ:= 2*重心-LOW; 壓力Ⅱ:= 重心 + PT; 支撐Ⅰ:= 2.002*重心-HIGH; 支撐Ⅱ:= 重心 - PT; '【換手率解盤】'+ IFS(hh<2 AND hh>0,'絕對地量:.成交低靡:1%—2%','')+ IFS(hh>=2 and hh<3,'成交溫和:2%—3%','')+ IFS(hh>=3 and hh<5,'成交活躍:3%—5%','')+ IFS(hh>=5 and hh<8,'帶量:5%—8%','') + IFS(HSL<=2,'該股票少人關注,屬于冷門股。','')+ IFS(HSL>2 AND HSL<3,'該股票成交溫和,屬于備份股。','')+ IFS(HSL>3 AND HSL<5,'該股票的交投越來越活躍,人們購買該股票的意愿高,屬于熱門股。','')+ IFS(HSL>5 AND HSL<8,'該股票帶量!','')+ IFS(HSL>8 AND HSL<15,'該股票放量!','')+ IFS(HSL>15 AND HSL<25,'該股票巨量!','')+ IFS(HSL>=25,'該股票成交怪異!','')+ '【壓力/支撐解盤】'+ IFS(壓力Ⅰ=壓力Ⅰ and 壓力Ⅰ>0,'第一壓力位:'+STR(壓力Ⅰ,2),'')+ IFS(支撐Ⅰ=支撐Ⅰ and 支撐Ⅰ>0,' #第一支撐位:'+STR(支撐Ⅰ,2),'')+ IFS(壓力Ⅱ=壓力Ⅱ and 壓力Ⅱ>0,' #第二壓力位:'+STR(壓力Ⅱ,2),'')+ IFS(支撐Ⅱ=支撐Ⅱ and 支撐Ⅱ>0,' #第二支撐位:'+STR(支撐Ⅱ,2),'') 之四:技術指標解盤
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100; RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100; RSII:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100; R:=FILTER(CLOSE>LLV(LOW,30)*1.01 and CLOSE<LLV(LOW,30)*1.1 and COUNT(CROSS(rsi1,rsi2),30)>=2,10) and COUNT(REF(CLOSE,BARSLAST(REF(CROSS(rsi1,rsi2),1))+1)>CLOSE and REF(rsi1,BARSLAST(REF(CROSS(rsi1,rsi2),1))+1)<rsi1 and CROSS(rsi1,rsi2),5)>=1 ; A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1)); B3:=REF(CLOSE,A3+1)>CLOSE and REF(RSI1,A3+1)<RSI1 and CROSS(RSI1,RSI2); C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1)); f4:=REF(CLOSE,C3+1)<CLOSE and REF(RSI1,C3+1)>RSI1 and CROSS(RSI2,RSI1); TYP := (HIGH + LOW + CLOSE)/3; 貨幣比:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),14)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),14); MFI:=100-(100/(1+貨幣比)); a1:=count(cross(mfi,80),20); a2:=count(cross(20,mfi),20); WR:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14)); PSY:=COUNT(CLOSE>REF(CLOSE,1),12)/12*100; BIAS := (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100; ARN := SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26); RSV1:="KDJ.K"(5,3,3); RSV11:="KDJ.D"(5,3,3); RSV2:="KDJ.K"(19,3,3); RSV22:="KDJ.D"(19,3,3); RSV3:="KDJ.K"(25,3,3); RSV33:="KDJ.D"(25,3,3); obv:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),34); DIFF:="MACD.DIFF"(5,26,9); DEA:="MACD.DEA"(5,26,9); MACD:="MACD.MACD"(5,26,9); W1:=C<=MA(C,5) AND C<=MA(C,10) ; W2:=O>MA(C,5) AND O>MA(C,10) ; W3:=MA(V,5)<=MA(V,10); W4:=diff<=dea; '【技術解盤】'+ IFS(W1 AND W2,'斷頭鍘刀:向下的趨勢,不是洗盤就是將下跌,賣出;','')+ IFS(W1,'5日均線死叉10均線,短線空頭勢力強大,賣出;','')+ IFS(W3,'5日均量死叉10日均量,做多能量枯竭,賣出;','')+ IFS(W4,'DIFF下穿DEA,空頭形成,賣出;','')+ IFS(W1 AND W2 AND W3 AND W4 ,'三死叉見頂,賣出;','')+ IFS(W1 AND W3 AND W4 ,'多方潰敗,空方強大,向下徹底形成,賣出;','')+ IFS(ARN>1.5,'注意價格將進入回擋下跌,可準備賣出','')+ IFS(ARN<0.4,'股價已達到低點,可考慮介入','')+ IFS(obv>0,'OBV多頭信號','')+ IFS(obv<0,'OBV空頭信號','')+ IFS(CROSS(BIAS,10),'BIAS超買,短線即將見頂,應及時賣出;','')+ IFS(CROSS(-10,BIAS),'BIAS超賣,短線即將見底,應伺機買進;','')+ IFS(WR>-20,'W&R超買,短線即將見頂,應及時賣出;','')+ IFS(WR<-80,'W&R超賣,短線即將見底,應伺機買進;','')+ IFS(PSY<20,'心理壓力小,應及時買入;','')+ IFS(PSY>80,'心理壓力大,應及時賣出;','')+ ifs(rsi1<15 AND (BARSLAST(rsi1<15)>=1),'RSI相對強弱指標超賣--屬買入信號;','')+ ifs(RSI1>85 AND (BARSLAST(RSI1>85)>=1),'RSI相對強弱指標超買--屬賣出信號;','')+ ifs((((LLV(LOW,20)=LOW) AND (NOT(LLV(RSI1,20)=RSI1))) OR (COUNT(CLOSE<REF(CLOSE,1),30)>18 AND (COUNT(RSI1>REF(RSI1,1),30)>18))) AND (RSI1<20),'RSI相對強弱指標底背離--股價在低位時屬買入信號;','')+ ifs((((HHV(HIGH,20)=HIGH) AND (NOT(HHV(RSI1,20)=RSI1))) OR (COUNT(CLOSE>REF(CLOSE,1),30)>18 AND (COUNT(RSI1<REF(RSI1,1),30)>18))) AND (RSI1>80),'RSI相對強弱指標頂背離--股價在高位時屬賣出信號;','')+ ifs(CROSS(RSI1,RSI2) AND (RSI1<50),'RSI相對強弱指標金叉--屬買入信號;','')+ ifs(CROSS(RSI2,RSI1) AND (RSI1>50),'RSI相對強弱指標死叉--屬賣出信號;','')+ ifs(RSI1<5 ,'RSI相對強弱指標極低位--強烈買入信號;','')+ ifs(RSI1>93,'RSI相對強弱指標極高位--強烈賣出信號;','')+ ifs(R,'RSI二次金叉;','')+ ifs(b3,'RSI底背離;','')+ ifs(f4,'RSI頂背離;','')+ ifs(mfi<20,'mfi指標在20以下處于超賣信號區(qū),不久將要上漲;','')+ ifs(mfi>80,'mfi指標在80以上處于超買信號區(qū),股價將要下跌;','')+ ifs(a1,'mfi指標在兩月前曾發(fā)出超買信號,表明股價將會下跌;','')+ ifs(a2,'mfi指標在兩月前曾發(fā)出超賣信號,表明股價將會上漲;','')+ IFS(RSV1>80 AND CROSS(RSV11,RSV1)=0,'KD指標提示該股日線已經(jīng)處于超買狀態(tài),如果日KD指標死叉應及時賣出。','')+ IFS(RSV1<20 AND CROSS(RSV1,RSV11)=0,'KD指標提示該股日線已經(jīng)處于超賣狀態(tài),如果日KD指標金叉應及時買入。','')+ IFS(CROSS(RSV1,RSV11) AND LLV(RSV1,3)<20,'KD低位日金叉,建議買入。','')+ IFS(CROSS(RSV11,RSV1) AND HHV(RSV1,3)>80,'KD高位日死叉,建議賣出。','')+ IFS(RSV3>85 AND CROSS(RSV33,RSV3)=0,'KD指標提示該股月線已經(jīng)處于超買狀態(tài),如果月KD指標死叉應及時賣出。','')+ IFS(RSV3<10 AND CROSS(RSV3,RSV33)=0,'KD指標提示該股月線已經(jīng)處于超賣狀態(tài),如果月KD指標金叉應及時買入。','')+ IFS(CROSS(RSV3,RSV33) AND LLV(RSV3,3)<10,'KD低位日金叉,建議買入。','')+ IFS(CROSS(RSV33,RSV3) AND HHV(RSV3,3)>85,'KD高位日死叉,建議賣出。','')+ IFS(CROSS(RSV2,RSV22),'KD指標周金叉,建議關注。','')+ IFS(CROSS(RSV22,RSV2),'KD指標周死叉,考慮賣出。','')+ IFS(CROSS(RSV3,RSV33),'KD指標月金叉,建議關注。','')+ IFS(CROSS(RSV33,RSV3),'KD指標月死叉,考慮賣出。','') 之五:均線多空解盤 半年線:=EMA(C,120);
年線:=EMA(C,240); 多空1:=MA((V/(H-L)),4); 多空2:=ABS(C-O); 多空3:=V/(H-L); TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14); HD := HIGH-REF(HIGH,1); LD := REF(LOW,1)-LOW; DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),14); DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),14); PDI:= DMP*100/TR; MDI:= DMM*100/TR; ADX:= MA(ABS(MDI-PDI)/(MDI+PDI)*100,6); ADXR:=(ADX+REF(ADX,6))/2; TYP := (HIGH + LOW + CLOSE)/3; CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); WR:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14)); MTM := CLOSE-REF(CLOSE,6); MTMMA := MA(MTM,6); LC := REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100; PSY:=COUNT(CLOSE>REF(CLOSE,1),12)/12*100; 布林1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; 布林2:=布林1+3*STD(布林1,10); 布林3:=布林1-3*STD(布林1,10); 布林4:=(布林2-布林3)/布林2<0.03; 布林5:=(布林2-布林3)/布林2>0.18; 布林6:=(MA(C,60)-MA(C,5))/MA(C,60)>0.15; 布林7:=(MA(C,5)-MA(C,60))/MA(C,5)>0.15; '【均線量能解盤】'+ IFS(C>=半年線,'股價在半年線之上;','')+ IFS(C>=年線,'股價在年線之上;','')+ IFS(C<半年線,'股價在半年線之下;','')+ IFS(C<年線,'股價在年線之下;','')+ IFS(半年線>=REF(半年線,1),'半年線趨勢向上;','')+ IFS(年線>=REF(年線,1),'年線趨勢向上;','')+ IFS(半年線<REF(半年線,1),'半年線趨勢向下;','')+ IFS(年線<REF(年線,1),'年線趨勢向下;','')+ IFS(多空3<多空1 AND 多空2<MA(多空2,4),'資金無入場意愿,萎縮中;','')+ IFS(多空3<多空1 AND 多空2>MA(多空2,4),'場內(nèi)資金有運作行為;','')+ IFS(多空3>多空1 AND 多空2<MA(多空2,4),'多空雙方激烈爭奪中;','')+ IFS(多空3>多空1 AND 多空2>MA(多空2,4),'場外資金介入(或出局)意愿強烈;','')+ IFS(CROSS(PDI,MDI),'PDI線從下向上突破MDI線,顯示有新多頭進場,為買進信號;','')+ IFS(CROSS(MDI,PDI),'PDI線從上向下跌破MDI線,顯示有新空頭進場,為賣出信號;','')+ IFS(ADX>REF(ADX,1),'ADX值持續(xù)高于前一日,行情將維持原趨勢;','')+ IFS(ADX<REF(ADX,1) AND ADX<20,'ADX值遞減,降到20以下,且橫向行進時,市場氣氛為盤整;','')+ IFS(ADX<REF(ADX,1) AND REF(ADX,1)<REF(ADX,2) and REF(ADX,2)>REF(ADX,3) AND REF(ADX,3)>REF(ADX,4),'ADX值從上升傾向轉為下降時,表明行情即將反轉;','')+ IFS(cci<-180,'CCI指標底位,買入機會;','')+ IFS(cci>180,'CCI指標高位,賣出機會;','')+ IFS((V/CAPITAl)>0.075,'換手過大,小心主力出逃,短期頭部;','')+ IFS(WR>-20,'W&R超買,短線即將見頂,應及時賣出;','')+ IFS(WR<-80,'W&R超賣,短線即將見底,應伺機買進;','')+ IFS(CROSS(MTM,MTMMA) and MTMMA<-0.8,'MTM從下向上突破MTMMA,買入信號;','')+ IFS(CROSS(MTMMA,MTM) and MTMMA>0.8,'MTM從上向下跌破MTMMA,賣出信號;','')+ IFS(RSI1>85,'6日RSI超買,防止回擋;','')+ IFS(RSI1>80,'6日RSI向上突破85,超買,考慮賣出;','')+ IFS(RSI1<15,'6日RSI超賣,隨時有可能反彈;','')+ IFS(RSI1<15,'6日RSI向下跌破15,超賣,考慮買入;','')+ IFS(CROSS(RSI1,15),'6日RSI向上突破15,買進信號;','')+ IFS(CROSS(RSI1,85),'6日RSI向下跌破85,賣出信號;','')+ IFS(布林4,'多空布林收斂中,有變盤的可能,上下自己分析;','')+ IFS(布林6 AND 布林5 AND C>o ,'布林上下乖離太大,有反彈的可能;','')+ IFS(布林7 AND 布林5 AND C<o ,'布林上下乖離太大,有回落的可能;','') 之六:異動測度解盤
Var1:=AMOUNT/VOL/100;
Var2:=MAX(ABS(HIGH-Var1),ABS(Var1-LOW)); Var3:=ABS((OPEN+CLOSE)/2-Var1); MV:=(Var2+Var3)/Var1*100; '『異動測度』'+ IFS(MV>=0 AND MV<3,'常態(tài)區(qū),股價波動不大,莊家沒有活動.','')+ IFS(MV>=3 and MV<5,'非常態(tài)區(qū),股價波動幅度較大,莊家開始活動,一般是拉升期前的準備階段.','')+ IFS(MV>=5 AND MV<7.5,'超常態(tài)區(qū),股價波動異常,一般是莊家拉升股價的開始或開始出貨的信號.','')+ IFS(MV>=7.5,'極度區(qū)間,股價波動異常,達到極度區(qū)間的股票不多,這樣的股票一般是強莊股.','') 本文來自好股吧股票論壇 http://bbs. 原文鏈接: http://bbs./viewthread.php?tid=881213 |
|