白買進(jìn):0,colorwhite;
黃加倉(cāng):0,coloryellow ;
藍(lán)跌:0,colorblue;
綠見頂:0,colorgreen;
粗紅強(qiáng)勢(shì):0,colorred;
紅藍(lán)調(diào)整:0,colorred;
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.998),8);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.013),9);
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.984),'買 '),color4440FF;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.035),'賣 '),colorFFFF34;
年:MA(CLOSE,26),COLORRED,LINETHICK2;
STICKLINE(C>=年 AND C>=O,C,O,7,0),COLORRED;
STICKLINE(C>=年 AND C>=O,H,L,0,0),COLORRED;
dp:=if(c=INDEXC,0,1);
gj:=AMOUNT /100;
明日阻力:=l+(gj-l)+(c-l);
明日支撐:=l+(c-gj);
今日阻力:=REF(明日阻力 , 1);
今日支撐:REF(明日支撐 , 1);
Vare1:=EMA(C,3);
Vare2:=EMA(C,5);
Vare3:=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,5, 1),COLORBLUE;
STICKLINE(Var7>1*REF(Var7,1),h,l,0.5,0),COLORRED;STICKLINE(Var7>1*REF(Var7,1),o,c,5, 1),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,5, 1),COLORGREEN;
買進(jìn)價(jià):=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;
買進(jìn)條件:=cross(c,買進(jìn)價(jià)) and 買進(jìn)價(jià)>ref(買進(jìn)價(jià),1);
STICKLINE(買進(jìn)條件,h,l,0.5,1),colorwhite,linethick2;STICKLINE(買進(jìn)條件,o,c,6,0),colorwhite,linethick2;
加碼價(jià):=((c-ref(ma(c,18),1))/18+ma(c,18))*1.004;
加碼條件:=cross(c,加碼價(jià)) and 加碼價(jià)>ref(加碼價(jià),1);
STICKLINE(加碼條件,h,l,0.5,1),coloryellow,linethick2;STICKLINE(加碼條件,o,c,6,0),coloryellow,linethick2;