MA1:MA(關(guān)閉,5);
MA2:MA(關(guān)閉,10);
MA3:MA(關(guān)閉,20);
MA4:MA(收盤,60);
{紅土地=牛股}
MA5:=MA(C,78),COLOR00FFFF,LINETHICK1;
MA6:=EMA(MA5,3),COLOR00FFFF,LINETHICK1;
MA7:=EMA(MA6,3),COLOR00FFFF,LINETHICK1;
Y:=(H+L)/2;
ao :=MA(Y,5)-MA(Y,34 );
DU0:= cr OSS(AO,0);
UD0:=CROSS(0,AO);
TDU0:=BA rsl A st ( DU0);
TUD0:=BARSLAST(UD0);
DU3:=REF(DU0,1);
UD3:=REF(UD0,1);
TDU3:=BARSLAST(DU3);
TUD3:=BARSLAST(UD3);
UDGLINE:=IF(TDU3<TUD3,REF(HHV(H,2),TDU3),REF(LLV(L,2),TUD3)),COLORYELLOW;
JDU0:=REF(C,1)<=REF(UDGLINE,1) AND C>UDGLINE AND TDU0<TUD0;
JUD0:=REF(C,1)>=REF(UDGLINE,1) AND C<UDGLINE AND TUD0<TDU0;
JDU1:=JDU0 AND 計數(shù)(JDU0,TDU0)=1;
JUD1:=JUD0 AND 計數(shù)(JUD0,TUD0)=1;
JDU2:=JDU1 AND REF(BARSLAST(JUD1),1)<REF(BARSLAST(JDU1),1);
DRAWTEXT(JDU2,MA7*0.95,'紅土地'),COLORYELLOW;
DRAWTEXT(CROSS(MA3,MA4),MA4*0.98,'風(fēng)調(diào)雨順'),COLOR0000FF;
DRAWTEXT(CROSS(MA4,MA3),MA3*0.98,'災(zāi)情來臨'),COLORFF0000;
{澆水=回馬槍}
SC:=C/REF(C,1)>1.097;
HS:=MA(C,2);
澆水:=CROSS(HS,REF(HS,1)) AND REF(HHV(SC,8),1);
STICKLINE(澆水,L,O,1,0),COLORF00F00;
DRAWICON(澆水,L*0.995,9);
DRAWTEXT(澆水,L*0.98,'澆水'),COLOR0000FF;
{STICKLINE(抓牛,L,O,2,0),
DRAWICON(抓牛,L*1.11,1),COLOR0000FF;}
HSC1:=C>O AND V>REF(V,1) AND REF(SC,1);
HSC2:=REF(HHV(V,8),1)/V>=1.97 AND REF(HHV(HSC1,8),1) AND C>O;
DRAWTEXT(HSC2,L*0.92,'施肥'),COLORFF00FF;
{常用通信達(dá)}
上線:= SMA (C,2,1);
下線:=SMA(C,6,1);
1:=SMA(C,2,1);
下線1:=SMA(C,6,1);
DRAWTEXT(CROSS(上線,下線),LOW *0.98,'種菜'),COLOR00FF00;
DRAWTEXT(CROSS(下線1,上線1),H*1.02,'接收'),COLORYELLOW;
bbi :=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UPR:=BBI+3*STD(BBI,13),LINETHICK2;
DWN:=BBI-3*STD(BBI,13);
安全:=MA(CLOSE,60),LINETHICK2;
LC:=REF(關(guān)閉,1);
rsi :=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs (CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(88,RSI),HIGH*1.02,'偷菜'),COLORFF9966,LINETHICK2;
A7:=(2*C+H+L)/4;
操作:=MA(A7,5),LINETHICK2;
操作1:=MA(A7,5)*1.03,LINETHICK2;
操作2:=MA(A7, 5)*0.97,LINETHICK2;
VAR1:=LLV(A7,21);
VAR2:=HHV(A7,21);
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND vol >=1.5*MA( VOL ,5) AND
COUNT(SK>=SD,3) AND REF(LOW, 1)=LLV(LOW, 120 ),1,0),LOW*0.98,'種瓜') ,COLOR0099FF;
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND
COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE >=open,4) 和
REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
OPEN>REF(CLOSE,1),1,0),LOW*0.98,'種瓜') ,色黃;
D:=MA(收盤,80)-MA(收盤,10)/3;
DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW* 0.98,'種豆'),COLORYELLOW;