分時(shí)主圖指標(biāo)公式.副圖指標(biāo)公式兩指標(biāo)公式,盤中T+0必備指標(biāo)公式[通達(dá)信公式]
相關(guān)標(biāo)簽:
分時(shí)主圖.副圖兩指標(biāo),盤中T+0必備指標(biāo).
公式來(lái)自理想,經(jīng)本人改進(jìn)優(yōu)化,合并處理,使其直觀簡(jiǎn)單,一看就會(huì),信號(hào)明確,成功率很高,關(guān)鍵是每個(gè)人的執(zhí)行力問(wèn)題!其副圖指標(biāo)籃黃豎線信號(hào)會(huì)漂移,但不影響使用,僅是多個(gè)公式組合中的一個(gè)信號(hào),歡迊大家驗(yàn)證討論!
1.分時(shí)主圖
ZRS:=CONST(DYNAINFO(3)),NODRAW;
A1:=3.5*(EMA(CLOSE,48)-EMA(CLOSE,104))+ZRS,COLORLIMAGENTA;
A2:=EMA(A1,36),COLORLIBLUE;
MACD:=(A1-A2)*2+ZRS;
DRAWKLINE(H,O,L,C);
STICKLINE(A1>=A2,ZRS,MACD ,1,0),COLORRED;
STICKLINE(A1>=A2 AND MACD<REF(MACD,1),ZRS,MACD ,1,0),COLORYELLOW;
STICKLINE(A1<A2,ZRS,MACD ,1,0),COLORCYAN;
STICKLINE(A1<A2 AND MACD>REF(MACD,1),ZRS,MACD ,1,0),COLORFFFFFF;
C,COLORWHITE,LINETHICK2;
均價(jià):SUM(V*C,0)/SUM(V,0),COLORGREEN,LINETHICK1;
IF(均價(jià)<=REF(均價(jià),1),均價(jià),DRAWNULL),COLORGREEN;
IF(均價(jià)>=REF(均價(jià),1),均價(jià),DRAWNULL),COLORYELLOW;
2.分時(shí)副圖
VAR10:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR2:=EMA(VAR10,9);
VAR3:=2*(VAR10-VAR2)*5+50;
N:=13;M:=9;M1:=3;
VAR11:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR21:=SMA(VAR11,M1,1);
KK:= SMA(VAR21,M1,1);
DD:= SMA(KK,M1,1);
VAR12:=((CLOSE - LLV(LOW,50))/(HHV(HIGH,50) - LLV(LOW,50)))*(100);
VAR22:=REVERSE(VAR12);
VAR32:=SMA(VAR12,6,1);
K:=SMA(VAR32,4,1);
D:=SMA(K,4,1);
DRAWBAND(K,RGB(255,0,0),D,RGB(0,201,87));
現(xiàn)價(jià):=CLOSE,COLORFFFFFF,LINETHICK2;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L11:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L11;
阻力:=L11+P1*7/8,COLOR00DD00;
支撐:=L11+P1*0.5/8,COLOR00DD00;
STICKLINE(CROSS(支撐,現(xiàn)價(jià)),9,60,2,0),COLORYELLOW,LINETHICK5;
STICKLINE(CROSS(現(xiàn)價(jià),阻力),40,90,2,0),COLORFFCC66,LINETHICK5;
指標(biāo)線1:="MACD.DIF";
指標(biāo)線2:="MACD.DEA";
條件:=CROSS(指標(biāo)線1,指標(biāo)線2) AND 指標(biāo)線2<0;
周期數(shù):=BARSLAST(REF(條件,1))+1;
上次交點(diǎn):=(REF(指標(biāo)線1,周期數(shù)) + REF(指標(biāo)線1,周期數(shù)+1))/2;
本次交點(diǎn):=(指標(biāo)線1 + REF(指標(biāo)線1,1))/2;
低位二次金叉:= COUNT(條件,21)>=2 AND 條件 AND 本次交點(diǎn)>上次交點(diǎn);
低二金叉:IF(低位二次金叉=1,60,9)COLORFFCC66;
N0:=27;NN:=26;M10:=10;M2:=20;M3:=40;M4:=62;
D0:=REF(HIGH+LOW,1)/2;
RE:=SUM(MAX(0,HIGH-D0),NN)/SUM(MAX(0,D0-LOW),NN)*100;
MA1:=REF(MA(RE,M10),M10/2.5+1),LINETHICK3;
MA2:=REF(MA(RE,M2),M2/2.5+1);
{MA3:REF(MA(RE,M3),M3/2.5+1);
MA4:REF(MA(RE,M4),M4/2.5+1);}
A:=MA(RE,5);
BR:=(SUM(MAX(0,HIGH-REF(CLOSE,1)),NN)/SUM(MAX(0,REF(CLOSE,1)-LOW),NN)*100)COLORCYAN;
AR:=SUM(HIGH-OPEN,NN)/SUM(OPEN-LOW,NN)*100;
VAR100:=3;
VAR200:=((3 * SMA((((CLOSE - LLV(LOW,N0)) / (HHV(HIGH,N0) - LLV(LOW,N0))) * 100),5,1)) - (2 * SMA(SMA((((CLOSE - LLV(LOW,N0)) / (HHV(HIGH,N0) - LLV(LOW,N0))) * 100),5,1),3,1)));
買:=IF(CROSS(VAR200,VAR100),40,0)COLORYELLOW,LINETHICK2;
底:IF(RE<50,40,9)COLORRED;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIF,9);
DRAWICON(DIF<0 AND CROSS(DIF, DEA1),9,11);
DRAWICON(DIF>0 AND CROSS( DEA1,DIF),85,12);
MACD:="MACD.MACD";
VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);
VA2:=CROSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);
QG:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+2),0.5);
前高:=DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1);
QQQQ:=CROSS(MACD>前高,0.5);
過(guò)前高:IF(QQQQ=1,90,9)COLORRED;
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
短線1:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLORGREEN;
中線1:=SMA(RSV2,5,1)+2*STD(CLOSE,37),COLORRED;
長(zhǎng)線1:=SMA(RSV3,5,1),COLORYELLOW;
STICKLINE(短線1<15,短線1,15,8,0),COLORYELLOW;
STICKLINE(中線1<15 ,中線1,15,8,0),COLORYELLOW;
STICKLINE(長(zhǎng)線1<15,長(zhǎng)線1,15,8,0),COLORYELLOW;
STICKLINE(短線1<15 AND 中線1<15 AND 長(zhǎng)線1<15,MAX(長(zhǎng)線1,MAX(短線1,中線1)),15,8,0),COLORYELLOW;
DRAWTEXT_FIX(C>O,0.01,0.9,0,' www.kzuj.com.cn '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.9,0,' www.kzuj.com.cn '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容