操:=MA(C,5);
分界:HHV(操,13),LINETHICK2,COLORFFB9CC;
VAR1:=EMA(C,3);
VAR2:=EMA(C,5);
VAR3:=EMA(C,10);
VAR4:=EMA(C,20);
VAR5:=EMA(C,30);
VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;
VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100;
VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100;
VAR9:=EMA(VAR7,8);
STICKLINE(VAR7<1*REF(VAR7,1),H,L,0.5,0),COLORBLUE;
STICKLINE(VAR7<1*REF(VAR7,1),O,C,3,0),COLORBLUE;
STICKLINE(VAR7>1*REF(VAR7,1),H,L,0.5,0),COLORRED;
STICKLINE(VAR7>1*REF(VAR7,1),O,C,3,0),COLORRED;
STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),H,L,0.5,0),COLORGREEN;
STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),O,C,3,0),COLORGREEN;
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);
STICKLINE(买进条件,H,L,0.5,0),COLORWHITE,LINETHICK2;
STICKLINE(买进条件,O,C,3,0),COLORWHITE,LINETHICK2;
加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);
STICKLINE(加码条件,H,L,0.5,0),COLORYELLOW,LINETHICK2;
STICKLINE(加码条件,O,C,3,0),COLORYELLOW,LINETHICK2;
LC:=REF(CLOSE,1);
RSI2:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100,LINETHICK2,COLORGREEN;
OBV:=RSI2;
P:=10;
A3:=REF(OBV,P)=HHV(OBV,2*P+1);
B3:=FILTER(A3,P);
C3:=BACKSET(B3,P+1);
D3:=FILTER(C3,P);
A4:=REF(OBV,P)=LLV(OBV,2*P+1);
B4:=FILTER(A4,P);
C4:=BACKSET(B4,P+1);
D4:=FILTER(C4,P);
DRAWICON(D3,H*1.03,2);
DRAWICON(D4,L*0.96,1);
DRAWICON(D3,H*1.012,2);
DRAWICON(D4,L*0.985,1);
建仓:LLV(LOW,144)*1.2,LINETHICK2,COLORFF0099;
介入:LLV(LOW,144),LINETHICK2,COLORMAGENTA;
DRAWNUMBER(ISLASTBAR,建仓+0.07,建仓),COLORFF0099;
DRAWNUMBER(ISLASTBAR,介入+0.07,介入),COLORMAGENTA;
DRAWNUMBER(ISLASTBAR,分界+0.07,分界),COLORFFB9CC;
牛点:=CROSS(EMA(C,5),EMA(C,30)) AND CROSS(EMA(C,10),EMA(C,20));
DRAWICON(牛点,L*0.95,13);DRAWICON(牛点,L*0.93,13);