飛狐交易師全源碼指標(biāo)公式-萬法歸一《底部之60分鐘》附效果圖
作者:admin 文章來源:百科原創(chuàng) 點(diǎn)擊數(shù):893 更新時間:2008-7-4 {公稱名稱: 萬法歸一《之60分鐘》}
input:N1(3,1,100),M1(30,1,100),N(20,1,500),P(12,1,30);
DRAWGBK(CLOSE,COLORRGB(10,160,0),COLORRGB(25,15,0),1); 阻擋線:(SMA(HIGH,21,2) * 1.035),POINTDOT,colorFFFFFF; 下檔線:(SMA(LOW,21,2) * 0.96),POINTDOT,colorFF00; 上:=FFT((MA(HIGH,3) * 1.05),30); 趨勢:=FFT((MA(LOW,3) * 0.96),30); 短期支撐:LLV(CLOSE,N),color6803C7; 中:=FFT((MA(OPEN,3) * 0.99),30); 趨勢線:=SMA(LOW,8,1); VAR2:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100); VAR3:=(((CLOSE - LLV(LOW,18)) / (HHV(HIGH,18) - LLV(LOW,18))) * 100); VAR4:=SMA(VAR3,9,1); VAR5:=SMA(VAR4,3,1); J:=((3 * VAR4) - (2 * VAR5)); A2:=EMA(VAR4,3); A3:=EMA(A2,3); A4:=EMA(A3,3); A5:=EMA(A4,3); AA:=EMA(A5,6); 中期大底:LLV(LOW,30),colorCDFFBB; VAR9:=HHVBARS(HIGH,50); VAR11:=(((CLOSE - REF(OPEN,VAR9)) / REF(OPEN,VAR9)) * 100); DRAWTEXT((CROSS(A4,AA) AND (VAR11 < (0 - 23))),(LOW - 0.3),''),colorFF00; STICKLINE((CROSS(A4,AA) AND (VAR11 < (0 - 23))),中期大底,(中期大底 - 0.27),4,0),colorFFFFFF; CG:=MA(CLOSE,19); CD:=MA(CLOSE,2); MA20:=MA(CLOSE,20); MA120:=MA(CLOSE,120); VAR1:=((((OPEN + LOW) + HIGH) + CLOSE) / 4); 支撐:=EMA(VAR1,5); 壓力1:HHV(LOW,20),colorFFFF; VAR2:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100); VAR3:=(((CLOSE - LLV(LOW,18)) / (HHV(HIGH,18) - LLV(LOW,18))) * 100); VAR4:=SMA(VAR3,9,1); VAR5:=SMA(VAR4,3,1); J:=((3 * VAR4) - (2 * VAR5)); 壓力:HHV(支撐,60),colorD8CFBB; 短期底部:LLV(HIGH,30),colorFF00; DRAWTEXT(FILTER(((((((CLOSE > CG) AND (HIGH < 上)) AND (CLOSE < 上)) AND ((趨勢線 - REF(趨勢線,3)) > 0)) AND ((趨勢 - REF(趨勢,1)) >= 0)) AND CROSS(CD,CG)),5),(LOW - 0.02),'★大底成'),color4D84FF; DRAWTEXT(FILTER(((CROSS(趨勢,中期大底) AND (LOW <= 中)) AND ((趨勢 - REF(趨勢,1)) > 0)),3),(中期大底 - 0.08),'←分時拉升'),colorFF00FF; DRAWTEXT(FILTER((CROSS(中,短期底部) AND ((趨勢 - REF(趨勢,1)) > 0)),4),(中期大底 - 0.16),'←分時狂牛'),color430CC0; STICKLINE((CLOSE > OPEN),OPEN,LOW,1,0),color726CA; STICKLINE((CLOSE > OPEN),OPEN,LOW,0.5,0),color62D3; STICKLINE((CLOSE > OPEN),CLOSE,HIGH,1,0),color726CA; STICKLINE((CLOSE > OPEN),CLOSE,HIGH,0.5,0),color62D3; STICKLINE((OPEN > CLOSE),OPEN,HIGH,1,0),color6300; STICKLINE((OPEN > CLOSE),CLOSE,LOW,1,0),colorDE9100; STICKLINE((OPEN > CLOSE),OPEN,HIGH,1,0),colorDE9100; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,9,0),colorFF5B00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8,0),colorFF6C00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,5),colorFF6500; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,3),color8B00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),colorFF7B00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6.8,0),colorFF8500; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6.5,0),colorFF8C00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6.3,0),colorFF9700; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),colorFF9C00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5.7,0),colorFF9C00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5.5,0),colorFFB400; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5.3,0),colorFFA900; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),colorFFBE00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4.5,0),colorFFC500; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3.5,0),colorFFCC00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3,0),colorFFD300; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.5,0),colorFFDD00; STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),colorFFFF00; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,8,0),color70084; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7.8,0),colorA3; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7.5,0),colorA9; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7.3,0),colorB2; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7,0),colorB7; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6.8,0),colorB9; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6.5,0),colorBC; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6.3,0),colorC5; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),colorCD; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5.7,0),colorD6; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5.5,0),colorDB; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5.3,0),colorE2; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),colorE9; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4.5,0),color3EE9; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3.5,0),color43E9; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),color754E9; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2.5,0),color762E9; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),color76EF3; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),color77BF3; STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,0.7,0),color78CFD; 上1:=(SMA(HIGH,21,2) * 1.05); STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 上1)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,9,0),color90FF; STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 上1)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,8,0),color9FFF; STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 上1)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,4,0),colorB5FF; STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 上1)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,2,0),colorE4FF; STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 上1)) AND ((CLOSE - REF(CLOSE,1)) > 0)),OPEN,LOW,0.7,0),colorFFFF; STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 上1)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,HIGH,0.7,0),colorFFFF; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上1)) AND (CLOSE < 上1)),OPEN,LOW,0.7,0),colorFF76FF; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上1)) AND (CLOSE < 上1)),CLOSE,HIGH,0.7,0),colorFF76FF; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上1)) AND (CLOSE < 上1)),CLOSE,OPEN,9,0),colorFF00FF; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上1)) AND (CLOSE < 上1)),CLOSE,OPEN,6,0),colorFF62FF; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上1)) AND (CLOSE < 上1)),CLOSE,OPEN,4,0),colorFF76FF; STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上1)) AND (CLOSE < 上1)),CLOSE,OPEN,2,0),colorFFA8FF; DRAWTEXT((((((CLOSE < REF(CLOSE,1)) AND ((上 - REF(上,1)) < 0)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上1)) AND (CLOSE < 上1)),(HIGH + 0.13),'←分時短線'),colorFFFFFF; VARQ:=MA(CLOSE,152); VARW:=MA(CLOSE,194.16); VARE:=(VARW + (2 * STD(CLOSE,170))); VARR:=(VARQ + (2 * STD(CLOSE,170))); VART:=IF((DATE > 1080822),0,1); VAR61:=EMA(HHV(HIGH,500),21); VAR71:=EMA(HHV(HIGH,250),21); VAR81:=EMA(HHV(HIGH,90),21); VAR91:=EMA(LLV(LOW,500),21); VARA1:=EMA(LLV(LOW,250),21); VARB1:=EMA(LLV(LOW,90),21); VARC1:=EMA((((((((VAR91 * 0.96) + (VARA1 * 0.96)) + (VARB1 * 0.96)) + (VAR61 * 0.558)) + (VAR71 * 0.558)) + (VAR81 * 0.558)) / 6),21); VARD1:=EMA((((((((VAR91 * 1.25) + (VARA1 * 1.23)) + (VARB1 * 1.2)) + (VAR61 * 0.55)) + (VAR71 * 0.55)) + (VAR81 * 0.65)) / 6),21); VARE1:=EMA((((((((VAR91 * 1.3) + (VARA1 * 1.3)) + (VARB1 * 1.3)) + (VAR61 * 0.68)) + (VAR71 * 0.68)) + (VAR81 * 0.68)) / 6),21); VARF1:=EMA((((((VARC1 * 3) + (VARD1 * 2)) + VARE1) / 6) * 1.738),21); VAR101:=REF(LOW,1); VAR111:=((SMA(ABS((LOW - VAR101)),3,1) / SMA(MAX((LOW - VAR101),0),3,1)) * 100); VAR121:=EMA(IF(((CLOSE * 1.35) <= VARF1),(VAR111 * 10),(VAR111 / 10)),3); VAR131:=LLV(LOW,30); VAR141:=HHV(VAR121,30); VAR151:=IF(MA(CLOSE,58),1,0); VAR161:=((EMA(IF((LOW <= VAR131),((VAR121 + (VAR141 * 2)) / 2),0),3) / 618) * VAR151); VAR171:=(((IF((VAR161 > 50),50,VAR161) / 20) * 15) * VART); 主力吸籌:STICKLINE((VAR171 > 中期大底),中期大底,(中期大底 - 0.05),1,0),colorFF00FF; DRAWTEXT(FILTER((((((LOW <= 趨勢) AND (CLOSE > 趨勢)) AND (VAR171 > 0)) AND ((趨勢 - REF(趨勢,1)) > 0)) AND (CLOSE > OPEN)),5),(LOW - 0.04),'←分時黑馬'),color8CF8; B1:=(((HIGH + LOW) + CLOSE) / 3); B6:=HHV(B1,(4 * 15)); B7:=LLV(B1,(4 * 15)); B8:=(B6 - B7); 飛龍頂?shù)拙€:=(MA(((B1 - B7) / B8),2) * 80); DRAWTEXT(FILTER(((((飛龍頂?shù)拙€ <= 1) AND (VAR171 > 0)) AND (LOW <= 趨勢)) AND (CLOSE > 趨勢)),3),(LOW - 0.04),'←分時短抄'),colorFFFF; DRAWTEXT(FILTER((((LOW <= 趨勢) AND (CLOSE >= 趨勢)) AND ((趨勢 - REF(趨勢,1)) > 0)),8),(中期大底 - 0.08),'←分時半倉'),color87D826; DRAWTEXT((((CROSS(中,短期底部) AND (HIGH < 壓力1)) AND (HIGH < 上)) AND ((趨勢 - REF(趨勢,1)) > 0)),LOW,'←分時必殺'),colorFFFFFF; 均5:=MA(CLOSE,4); X7:=EMA(EMA(EMA(HIGH,9),9),9); 海底:=(X7 * 0.92); 海底2:=(X7 * 0.933); 海底3:=(X7 * 0.897); 天際:=(X7 * 1.05); 中線:=SMA(LOW,5,1); 中軌道:=MA(CLOSE,2); DRAWTEXT(FILTER(((((HIGH > 壓力) AND (CLOSE < 壓力)) AND ((趨勢 - REF(趨勢,1)) < 0)) AND (CLOSE < OPEN)),5),(HIGH + 0.12),'●逃'),colorFFFF00; MA12:=MA(CLOSE,P); MA42:=MA(CLOSE,42); DRAWTEXT((((CROSS(中軌道,均5) AND (LOW <= 海底)) AND ((均5 - REF(均5,1)) > 0)) AND (CLOSE >= 海底2)),LOW,'底部'),colorFF; DRAWTEXT(((((CROSS(中軌道,海底) AND VAR171) AND (LOW <= 海底)) AND ((MA20 - REF(MA20,1)) > 0)) AND (CLOSE > 海底)),(LOW - 0.06),'小底不急'),colorBCF0AF; DRAWTEXT(((((CROSS(中軌道,海底3) AND (CLOSE > OPEN)) AND ((CLOSE - REF(CLOSE,4)) > 0)) AND (LOW <= 海底3)) AND (CLOSE > 海底3)),LOW,'底2'),colorFF; MA30:=MA(CLOSE,30); V1:=HHVBARS(HIGH,100); V2:=CROSS(MA(CLOSE,10),MA(CLOSE,30)); V3:=(((V1 > 60) AND V2) * 100); DRAWTEXT((((((V3 AND (HIGH < 上)) AND (CLOSE < 壓力)) AND (CLOSE > OPEN)) AND ((上 - REF(上,1)) > 0)) AND ((趨勢 - REF(趨勢,1)) > 0)),(LOW - 0.04),'←量價齊升'),color8B0CFF; DRAWTEXT(((((V3 AND (HIGH < 趨勢)) AND (HIGH < 天際)) AND ((支撐 - REF(支撐,1)) > 0)) AND ((MA20 - REF(MA20,1)) > 0)),(LOW - 0.03),'分時波段介入'),color5BA8FF; DRAWTEXT(((CROSS(趨勢,MA12) AND (CLOSE > OPEN)) AND ((趨勢 - REF(趨勢,1)) > 0)),LOW,'★分時果斷'),colorFF00; DRAWTEXT(FILTER(((((((((CROSS(支撐,MA12) AND ((MA12 - REF(MA12,1)) > 0)) AND (HIGH < 上)) AND (OPEN < 壓力1)) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND ((MA42 - REF(MA42,1)) > 0)) AND (支撐 < 壓力)) AND (支撐 > MA12)) AND ((趨勢 - REF(趨勢,1)) > 0)),6),(LOW - 0.02),'←分時回抽'),color4DFFFF; DRAWTEXT((((LOW <= 趨勢) AND (CLOSE >= 支撐)) AND ((MA120 - REF(MA120,1)) > 0)),(LOW - 0.35),'抄底'),colorFF00; DRAWTEXT(FILTER(((((((LOW <= 短期底部) AND ((上 - REF(上,1)) > 0)) AND ((上 - REF(上,1)) > 0)) AND (CLOSE > OPEN)) AND (趨勢線 <= 短期底部)) AND (CLOSE >= 短期底部)),5),(LOW - 0.02),'←分時望月'),colorA99FFF; M3:=EMA(CLOSE,3); M8:=EMA(CLOSE,8); M13:=EMA(M8,13); M62:=EMA(M8,62); VAR1:=EMA(M13,62); M81:=EMA(M62,81); M144:=EMA(VAR1,144); VAR2:=(((CLOSE + HIGH) + LOW) / 3); VAR33:=EMA(VAR2,10); VAR44:=REF(VAR33,1); FILLRGN((VAR33 > VAR44),VAR33,VAR44),colorFF; FILLRGN((VAR33 < VAR44),VAR44,VAR33),colorFF0000; DRAWTEXT(FILTER((((LOW <= 中期大底) AND ((趨勢 - REF(趨勢,1)) > 0)) AND VAR171),5),(LOW - 0.03),'←●買點(diǎn)出現(xiàn)'); DRAWTEXT(((((LOW <= 下檔線) AND (LOW <= 短期支撐)) AND (短期支撐 <= 下檔線)) AND ((MA20 - REF(MA20,1)) > 0)),LOW,'←絕佳買點(diǎn)'),colorFF; DRAWTEXT(((((CROSS(VAR33,MA20) AND (LOW <= VAR33)) AND (CLOSE >= VAR33)) AND ((趨勢 - REF(趨勢,2)) > 0)) AND ((VAR33 - REF(VAR33,1)) > 0)),LOW,'←回頭望月'),colorFFFFFF; DRAWTEXT(FILTER((((HIGH > 壓力) AND (CLOSE < 壓力)) AND (HIGH > 阻擋線)),8),HIGH,'←減倉'),colorB0FA; {在股值上升時,MTM下降曲線與MA上升曲線 相互交叉時,在交點(diǎn)處應(yīng)及時賣出,此時空方力量開始行動,再一味做多將被套。在股值 下降時,MTM上升曲線與MA下降曲線相互交叉時,在交點(diǎn)處應(yīng)及時買進(jìn)。此時空方力 量減弱再做空,將失去買低價股的機(jī)會。 MTM與MA配合使用時,周期均定在10天} 該文章轉(zhuǎn)自[靈通163-LT163.com] 原文鏈接:http://www./zq/xsxt/zbgs/200807/2616.html |
|