1樓:般若若愚
nd1970:=(year-1970)*365+intpart((year-1972)/4)-if(intpart(year/4)=year/4,1,0)+day+(month-1)*30+if(month<=8,intpart(month/2),intpart((month-7)/2)+4)-if(month>2 and intpart(year/4)=year/4,1,if(month>2 and not(intpart(year/4)=year/4),2,0));
c1:c;
o1:ref(o,barslast(nd1970-ref(nd1970,1)>weekday-ref(weekday,1)));
h1:hhv(h,barslast(nd1970-ref(nd1970,1)>weekday-ref(weekday,1))+1);
l1:llv(l,barslast(nd1970-ref(nd1970,1)>weekday-ref(weekday,1))+1);
***************
wo1:="ochl.o1#week";
wc:="ochl.c1#week";
wh:="ochl.h1#week";
wl:="ochl.l1#week";
k1:=wo1=ref(wo1,1) and wc=ref(wc,1) and wh=ref(wh,1) and wl=ref(wl,1);
k3:=ref(c,1)=dynainfo(3) and o=dynainfo(4) and c=dynainfo(7) and h=dynainfo(5) and l=dynainfo(6);
dd:=ref(barslast(k1=0)+1,1),linethick0;
dd1:=cross(backset((k1=0 or k3) and dd=5,4),0.5),nodraw;
dd2:=cross(backset((k1=0 or k3) and (dd=4 or dd=3),3),0.5),nodraw;
dd3:=cross(backset((k1=0 or k3) and dd<=2,2),0.5),linethick0;
bk1:=dd1 or dd2 or dd3;
bk2:=cross(backset(k1=0,2),0.5);
bk3:=cross(backset(k1=0 and ref(k1=0,1),2),0.5);
wo:if(barslast(k1=0)=0,o,ref(o,barslast(k1=0))),nodraw;
k0:=wc>wo or (wc=wo and wc>ref(wc,barslast(k1=0)+1));
stickline(k0 and bk1,wh,wc,0,0),colorlimagenta;
stickline(k0 and bk1,wo,wl,0,0),colorlimagenta;
stickline(k0 and k1=0,wc,wo,0,0),colorlimagenta;
stickline(k0 and (bk2 or k3),wc,wo,0,0),colorlimagenta;
stickline(k0 and ((k1 and bk2=0 and k3=0) or bk3),wc,wc,8,1),colorlimagenta;
stickline(k0 and ((k1 and bk2=0 and k3=0) or bk3),wo,wo,8,1),colorlimagenta;
stickline(not(k0) and ((k1 and bk2=0 and k3=0) or bk3),wc,wc,8,0),colorcyan;
stickline(not(k0) and ((k1 and bk2=0 and k3=0) or bk3),wo,wo,8,0),colorcyan;
stickline(not(k0) and bk1,wh,wo,0,0),colorcyan;
stickline(not(k0) and bk1,wc,wl,0,0),colorcyan;
stickline(not(k0) and k1=0,wc,wo,8,0),colorcyan;
stickline(not(k0) and (bk2 or k3),wc,wo,8,0),colorcyan;
ma1:ma(c,20),colorwhite;
ma2:ma(c,60),coloryellow;
ma3:ma(c,120),colormagenta;
怎樣把通達信的**陰線設定成空心的
2樓:gwh孺子牛
工具欄裡面的系統設定裡面可以自由設定的
求助 通達信公式修改
1 上通道 ma l h l 2,25 1.15 下通道 ma l h l 2,25 0.95 中軌 上通道 下通道 2 股價 c 次上通道 ma c,5 ma o,5 2 1.06 次下通道 ma c,5 ma o,5 2 0.98 強弱線 次上通道 次下通道 2 2 a1 ref c,1 ref...
同花順指標如何轉到通達信同花順指標如何轉到通達信?
1 同花順指標1,可以直接匯入通達信使用,無需更改,已測試通過。2 同花順指標2,含有未來函式,建議不要使用。第一個指標通達信直接可以用 寫指標指標名,然後複製原始碼貼上就可以 diff ema close,12 ema close,26 dea ema diff,9 macd 2 diff dea...
求高手幫我把下面通達信公式中的內容改為選股,(太長了分二段公式第二段)
1 rsv close llv low,9 hhv high,9 llv low,9 100 k sma rsv,3,1 d sma k,3,1 j 3 k 2 d varb close ma close,6 ma close,6 100 varc close ma close,12 ma clos...