通達信指標公式中的drawline命令怎麼靈活運用

時間 2021-05-05 22:43:45

1樓:小甜

m5:ma(c,5); m10:ma(c,10); m20:ma(c,20);

drawline(high>=hhv(high,20),high,low<=llv(low,20),low,0)colorgreen;

drawline(low<=llv(low,20),low,high>=hhv(high,20),high,0)coloryellow;

1.引數可設定為n。2.low或high後的0亦可換成1,延長之意。

{個人看法,僅供參考。}

2樓:匿名使用者

畫一條水平的 3000點位置的直線有3種寫法: 1、drawline(c>o,3000,c<=o,3000,11); 2、polyline(c>0,3000); 3、3000; ...我不知道用函式怎麼...

通達信,為什麼把下面函式的加到已有的副圖指標中就把副圖指標壓小了?要怎麼融在原來的指標裡面!!謝謝

通達信函式自動劃線問題,drawline函式怎麼實現某個條件成立位置畫一條 20

3樓:醉笑天地

drawline(high>=hhv(high,20),high,low<=llv(low,20),low,1);

以上是函式「drawline」的例子,軟體有的。

drawline(條件1,l,條件2,l,1)以上是水平線,條件是你自己定的。嘗試編寫吧。

這公式有些地方顯示不正確,請高手幫我把下面的通達信指標公式修改一下。

4樓:般若若愚

經測試,公式在通達信軟體中可以通過,沒有問題啊

通達信公式編寫如何在某一條件點上畫垂直豎線

5樓:匿名使用者

drawline(cond1,price1,cond2,price2,expand),當cond1條件滿足時,在price1位置畫直線起點,當cond2條件滿足時,在price2位置畫直線終點,expand為延長型別。

例如:drawline(high>=hhv(high,20),high,low<=llv(low,20),low,1)表示在創20天新高與創20天新低之間畫直線並且向右延長。

你可以在同一天的不同位置設定2個點,然後連線它們

請高手將下列通達信指標公式改為選股公式,要求分別選出,「短牛」「中牛「大牛」3個選股公式。 20

6樓:般若若愚

var1:=c-ref(c,1);

var2:=100*ema(ema(var1,6),6)/ema(ema(abs(var1),6),6);

ma5:=ema(c,5);

ma13:=ema(c,13);

up:=drawline(l=llv(l,barslast(cross(ma13,ma5))+1),llv(l,barslast(cross(ma13,ma5))+1),h=hhv(h,barslast(cross(ma5,ma13))+1),hhv(h,barslast(cross(ma5,ma13))+1),0);

down:=drawline(h=hhv(h,barslast(cross(ma5,ma13))+1),hhv(h,barslast(cross(ma5,ma13))+1),l=llv(l,barslast(cross(ma13,ma5))+1),llv(l,barslast(cross(ma13,ma5))+1),0);

hr:=hhv(high,55);

hry:=llv(low,55);

hry11:=hr*hry;

hry33:=sqrt(hry11);

短牛:=(llv(var2,2)=llv(var2,7) and count(var2<0,2) and cross(var2,ma(var2,2))) and

ref(down,1)ref(down,1);

中牛:=ref(down,1)ref(down,1) and cref(down,1) and c

選三牛之一:短牛+中牛+大牛》0;

7樓:匿名使用者

n1 0 50 5 n2 0 50 10 牛 1 3 1

lc:=ref(close,1);

rsi5:=sma(max(close-lc,0),n1,1)/sma(abs(close-lc),n1,1)*10;

rsi10:=sma(max(close-lc,0),n2,1)/sma(abs(close-lc),n2,1)*10;

var1:=c-ref(c,1);

var2:=100*ema(ema(var1,6),6)/ema(ema(abs(var1),6),6);

ma5:=ema(c,5);

ma13:=ema(c,13);

up:=drawline(l=llv(l,barslast(cross(ma13,ma5))+1),llv(l,barslast(cross

(ma13,ma5))+1),h=hhv(h,barslast(cross(ma5,ma13))+1),hhv(h,barslast(cross

(ma5,ma13))+1),0);

down:=drawline(h=hhv(h,barslast(cross(ma5,ma13))+1),hhv(h,barslast(cross

(ma5,ma13))+1),l=llv(l,barslast(cross(ma13,ma5))+1),llv(l,barslast(cross

(ma13,ma5))+1),0);

bt:=(llv(var2,2)=llv(var2,7) and count(var2<0,2) and cross(var2,ma(var2,2))) and

ref(down,1)ref(down,1);

tj1:=ref(down,1)ref(down,1) and cref(down,1) and cref(up,2) and down

選**:if(牛=1,bt,if(牛=2,tj1,tj2));

說明:俺壓根兒就沒研究你這個指標,只是按提出的要求改為選股公式。再者選股指標的輸出只能有一項,不可能有多項

如果只要是牛就選出,將最後一句改為:

bt or tj1 or tj2;

相應的引數項不要

8樓:匿名使用者

ma5:=ema(c,5);

ma13:=ema(c,13);

up:=drawline(l=llv(l,barslast(cross(ma13,ma5))+1),llv(l,barslast(cross(ma13,ma5))+1),h=hhv(h,barslast(cross(ma5,ma13))+1),hhv(h,barslast(cross(ma5,ma13))+1),0),color0000ff;

down:=drawline(h=hhv(h,barslast(cross(ma5,ma13))+1),hhv(h,barslast(cross(ma5,ma13))+1),l=llv(l,barslast(cross(ma13,ma5))+1),llv(l,barslast(cross(ma13,ma5))+1),0),color00ff00;

hr:=hhv(high,55);

hry:=llv(low,55);

hry11:=hr*hry;

hry33:=sqrt(hry11);

大牛:ref(down,1)ref(down,1) and cref(down,1) and cref(down,1);

有劃線函式drawline潛在的未來函式謹慎使用

9樓:匿名使用者

有必要嗎?這麼長的公式。你知道里面都寫了什麼?不知道就拿來用,能贏錢?

通達信條件預警公式,怎樣把通達信的指標公式改為條件選股公式,進行預警?

t1 ma c,5 ma c,10 and ma c,10 ma c,30 and ma c,30 ma c,60 and ma c,60 ma c,120 t2 count c ma c,5 3 3 t3 count c ref c,1 1 100 8,10 0 t4 c ma c,5 t5 c ...

通達信指標公式中的drawline命令怎麼靈活運用

小甜 m5 ma c,5 m10 ma c,10 m20 ma c,20 drawline high hhv high,20 high,low llv low,20 low,0 colorgreen drawline low llv low,20 low,high hhv high,20 high,...

通達信換手率公式,通達信公式中計算換手率的公式

在 介面,在今天 處單擊右鍵不放,拖拽到你要統計的時段終點處,鬆開右鍵,就會自動統計出來這個時段內的所有交易資料。什麼是 換手率,把它講透這件事很少有人能做到。80 的股民一不小心就會出現的問題,覺得換手率高就是出貨的意思,這種想法並不客觀。換手率是很重要的一個指標,在 投資中特別能體現,如果你弄不...