您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:日周移动平均线同时显示 (源码)

日周移动平均线同时显示 (源码)


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:3.00 KB
更新时间:2010-06-12 09:29:00
公式简介:

ZRR:=(YEAR-1992)*365+INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+
INTPART(13*(MONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;
T:=BARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;
T1:=REF(T,T)+T,NODRAW;
T2:=REF(T,T1)+T1,NODRAW;
T3:=REF(T,T2)+T2,NODRAW;
T4:=REF(T,T3)+T3,NODRAW;
T5:=REF(T,T4)+T4,NODRAW;
T6:=REF(T,T5)+T5,NODRAW;
T7:=REF(T,T6)+T6,NODRAW;
T8:=REF(T,T7)+T7,NODRAW;
T9:=REF(T,T8)+T8,NODRAW;
T10:=REF(T,T9)+T9,NODRAW;
T11:=REF(T,T10)+T10,NODRAW;
T12:=REF(T,T11)+T11,NODRAW;
T13:=REF(T,T12)+T12,NODRAW;
日5:ma(close,5);
周5:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+CLOSE)/5;
周13:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE,T4)+
REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+REF(CLOSE,T9)
+REF(CLOSE,T10)+REF(CLOSE,T11)+CLOSE)/13,LINETHICK2; 



[url=http://www.goodgupiao.com/gupiaogongshi/7719.html][B]日周移动平均线同时显示 (源码)[/B][/url]