相關標簽:
分時
主圖.
副圖兩指標,盤中T+0必備
指標.
公式來自理想,經本人改進優化,合并處理,使其直觀簡單,一看就會,信號明確,成功率很高,關鍵是每個人的執行力問題!其副圖
指標籃黃豎線信號會漂移,但不影響使用,僅是多個
公式組合中的一個信號,歡迊大家驗證討論!
1.分時
主圖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;
均價:SUM(V*C,0)/SUM(V,0),COLORGREEN,LINETHICK1;
IF(均價<=REF(均價,1),均價,DRAWNULL),COLORGREEN;
IF(均價>=REF(均價,1),均價,DRAWNULL),COLORYELLOW;
2.分時副圖
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));
現價:=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(支撐,現價),9,60,2,0),COLORYELLOW,LINETHICK5;
STICKLINE(CROSS(現價,阻力),40,90,2,0),COLORFFCC66,LINETHICK5;
指標線1:="MACD.DIF";
指標線2:="MACD.DEA";
條件:=CROSS(指標線1,指標線2) AND 指標線2<0;
周期數:=BARSLAST(REF(條件,1))+1;
上次交點:=(REF(指標線1,周期數) + REF(指標線1,周期數+1))/2;
本次交點:=(指標線1 + REF(指標線1,1))/2;
低位二次金叉:= COUNT(條件,21)>=2 AND 條件 AND 本次交點>上次交點;
低二金叉: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);
過前高: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;
長線1:=SMA(RSV3,5,1),COLORYELLOW;
STICKLINE(短線1<15,短線1,15,8,0),COLORYELLOW;
STICKLINE(中線1<15 ,中線1,15,8,0),COLORYELLOW;
STICKLINE(長線1<15,長線1,15,8,0),COLORYELLOW;
STICKLINE(短線1<15 AND 中線1<15 AND 長線1<15,MAX(長線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;