马到成功
马到成功
{马到成功}
input:N(6,1,30),P(4,1,30),X(8,1,130),Q(6,1,9);
A1:(EMA(CLOSE,2.7)+MA(CLOSE,6)+MA(CLOSE,10.8))/3;
A2:(EMA(CLOSE,3)+MA(CLOSE,7.5)+MA(CLOSE,13))/3;
A3:(EMA(CLOSE,4)+MA(CLOSE,8.5)+MA(CLOSE,16.5))/3;
A4:(EMA(CLOSE,4.8)+MA(CLOSE,10.2)+MA(CLOSE,18.6))/3;
A5:(EMA(CLOSE,6.5)+MA(CLOSE,11.8)+MA(CLOSE,21))/3;
A6:(EMA(CLOSE,7)+MA(CLOSE,13.5)+MA(CLOSE,23))/3;
安全线:MA(CLOSE,60),LINETHICK2,COLORGREEN;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(DATE>700101 and CROSS(84,RSI) , HIGH,'★卖出'),COLORred;
A7:=(2*C+H+L)/4;
Var1:=LLV(LOW,34);
Var2:=HHV(HIGH,34);
SK:=EMA((A7-Var1)/(Var2-Var1)*100,n);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,p);
Var3:=LLV(LOW,120);
Var4:=HHV(HIGH,120);
Var5:=Var4-Var3;
最低: Var3,LINETHICK2,COLORYELLOW;
最高: Var4,LINETHICK2,COLORYELLOW;
DRAWTEXT(IF(count(close<ref(close,1),x)/x>q/10 and
count(sk>sd,3) and ref(low,1)=LLV(Low,120) and close>open,1,0),LOW,'★买进'),COLORMAGENTA;
DRAWTEXT(IF(count(close<ref(close,1),13)/13>q/10 and
count(sk>sd,6) and ref(low,4)=LLV(Low,120) and ref(close>open,3) and
ref(close>open,2) and ref(open>close,1) and open>close
and open<ref(close,1),1,0),LOW,'★买进'),COLORMAGENTA
[ 本帖最后由 af8889 于 2005-12-12 20:57 编辑 ]