游资入场主图指标

N:=8;

P:=0;

ZGD:=HHV(H,60);

ZGD2:=CONST(ZGD);

ZDD:=LLV(L,60);

ZDD2:=CONST(ZDD);

GJ:=(C+H+L+O)/4;

明日阻力:=L+(GJ-L)+(C-L);

明日支撑:=L+(C-GJ);

KOH:=L>REF(H,1);

KOL:=H<REF(L,1);

HIF:=L>REF(H,BARSLAST(KOH)+1);

NHIF:=L<=REF(H,BARSLAST(KOH)+1);

LIF:=H<REF(L,BARSLAST(KOL)+1);

NLIF:=H>=REF(L,BARSLAST(KOL)+1);

下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);

RRRSV:=SMA(下档线,3,1);

KKK:=SMA(RRRSV,3,1);

DDDDD:=((3 * RRRSV) - (2 * KKK));

JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);

RSV24:=SMA(JJ12,3,1);

K24:=SMA(RSV24,3,1);

D24:=((3 * RSV24) - (2 * K24));

压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)))),COLORFFFFFF;

底部:=LLV(HIGH,30),COLOR00FF00;

AA:=REF(H,N)=HHV(H,2*N+1); AA1:=REF(L,N)=LLV(L,2*N+1);

QY:=BACKSET(AA,N+1); QY1:=BACKSET(AA1,N+1);

CC:=FILTER(QY,N) AND H=HHV(H,N+1); CC1:=FILTER(QY1,N) AND L=LLV(L,N+1);

DDD:=BARSLAST(CC); DD1:=BARSLAST(CC1);

GDTS:=IF(CC,CURRBARSCOUNT,0); DDTS:=IF(CC1,CURRBARSCOUNT,0);

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);

GDCS1:=CONST(DINGBUTS); DDCS1:=CONST(DDTS1);

GDCS13:=CONST(REF(HIGH,GDCS1-1)); DDCS13:=CONST(REF(L,DDCS1-1));

DINGBUTS1:=REF(DINGBUTS,DDD+1); DDTS2:=REF(DDTS1,DD1+1);

GDCS2:=CONST(DINGBUTS1); DDCS2:=CONST(DDTS2);

GDCS23:=CONST(REF(HIGH,DINGBUTS1-1)); DDCS23:=CONST(REF(L,DDTS2-1));

XG1:=BACKSET(ISLASTBAR,GDCS1); XD1:=BACKSET(ISLASTBAR,DDCS1);

XG2:=BACKSET(ISLASTBAR,DINGBUTS1); XD2:=BACKSET(ISLASTBAR,DDTS2);

XDD:=IF(DDCS13<=DDCS23,XD1,XD2);

BCG:=SUM(XG1,0); BCD:=SUM(XDD,0);

今日阻力:REF(明日阻力 , 1),NODRAW;

今日支撑:REF(明日支撑 , 1),NODRAW;

压力位:IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;

底部位:IF(ISLASTBAR,底部,DRAWNULL),NODRAW;

高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) ,COLORGREEN,LINETHICK2;

低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1),COLORBLUE,LINETHICK2;

高:=CONST(MAX(MAX(MAX(ZGD2,高点压力),GDCS13),GDCS23));

低:=CONST(MIN(MIN(MIN(ZDD2,DDCS23),DDCS13),低点支撑));

ZGSTAR:=(高点压力+低点支撑)/2;DRAWBAND(MA(CLOSE,60),RGB(55,0,0),MA(CLOSE,120),RGB(0,91,0));

DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));

DRAWKLINE(H,O,L,C);

MA5:MA(CLOSE,5),COLORWHITE;

MA10:MA(CLOSE,10),COLORYELLOW;

MA20:MA(CLOSE,20),COLORMAGENTA;

MA30:MA(CLOSE,30),COLORGREEN,LINETHICK1;

MA60:MA(CLOSE,60),COLORLIRED,LINETHICK1;

MA120:MA(CLOSE,120),COLORBLUE;

RSVC:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

白马:=SMA(RSVC,3,1);

DC:=SMA(白马,3,1),LINETHICK1;

主升线:=3*白马-2*DC,COLORYELLOW,LINETHICK1;

RSVV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;

短K:=SMA(RSVV,3,1);

短D:=SMA(短K,3,1);

RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;

长K:=SMA(RSV1,5,1);

长D:=SMA(长K,10,1);

回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);

经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;

MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))  /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));

C1:=REF(C,1);

半涨1:=IF((C-C1)*100/C1>=(5-0.01*100/C1),1,0);

半涨2:=IF((C-C1)*100/C1<(10-0.01*100/C1),1,0);

DRAWTEXT(CROSS(ZIG(3,5) ,REF(ZIG(3 ,5),1)) ,LOW*0.992,'买'),COLORRED;

DRAWTEXT(CROSS(REF(ZIG(3,5),1),ZIG(3,5)) ,HIGH*1.018,'卖'),COLORBLUE;

ZJ1953:=ZIG(C,15);

粉丝:=MA(ZJ1953,3);

DRAWTEXT(CROSS(ZJ1953,粉丝),LOW*0.960,'游资入场 '),COLORMAGENTA;

DRAWTEXT(CROSS(粉丝,ZJ1953),HIGH*1.045,'游资离场 '),COLORBLACK;

阻力价:HHV(HIGH,19),COLORGREEN,LINETHICK1,NODRAW;

(0)

相关推荐