指標源碼
① 求指標源碼,謝謝!!
公式源代碼
MCST:DMA(AMOUNT/(100*VOL),VOL/CAPITAL);
應用法則
1.MCST是市場平均成本價格。
2.MCST上升表明市場籌碼平均持有成本上升;MCST下降表明市場籌碼平均持有成本下降。
3.當股價在MCST曲線下方翻紅時應關注,若向上突破MCST曲線應買入;當MCST曲線的下降趨勢持續超過30日時,若股價在MCST曲線上方翻紅應買入。
4.該指標應結合布林線使用。
② 你很會寫指標,我急求四度空間指標源碼,請附上用法,非常感謝
***
用法主圖上有解盤
集成資訊全線主圖加四度空間解盤主圖(大智慧)
INPUT:M(10,3,250,3);均線:(MA(CLOSE,M) * 1),Colorred,linethick2;早晨之星:=REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)<ref(close,2) and="" abs(ref(open,1)-ref(close,1))="" ref(close,1)1.05 AND CLOSE>REF(CLOSE,2);
黃昏之星:=REF(CLOSE,2)/REF(OPEN,2)>1.03 AND REF(OPEN,1)>REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE
長十字:=CLOSE=OPEN AND HIGH/LOW >1.03;
垂死十字:=CLOSE=OPEN AND CLOSE=LOW AND CLOSE<>HIGH;
早晨十字星:=REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)<ref(close,2) and="" ref(open,1)="REF(CLOSE,1)" and
CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2);
黃昏十字星:=REF(CLOSE,2)/REF(OPEN,2)>1.05 AND REF(OPEN,1)>REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND
CLOSE/OPEN<0.95 AND CLOSE
射擊之星:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE>MA(CLOSE,5);
倒轉錘頭:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE
錘頭:=HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE
吊頸:=HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5);
穿頭破腳:=(REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSEREF(CLOSE,1))
OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN
烏雲蓋頂:=REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE
曙光初現:=REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPENREF(CLOSE,1);
身懷六甲:=ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 AND
MAX(CLOSE,OPEN)MIN(REF(CLOSE,1),REF(OPEN,1));
十字胎:=ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 AND CLOSE=OPEN AND
CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1));
平頂:=ABS(HIGH-REF(HIGH,1))/HIGH<0.001;
平底:=(ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001);
大陽燭:=CLOSE/OPEN>1.05 AND HIGH/LOW<close open+0.018;
三個白武士:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPEN
AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1);
雙飛烏鴉:=REF(CLOSE,1)<ref(open,1) and="" close<open="" close="" open
孕育線:=REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1) AND
(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPEN AND
(CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1) AND (MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))<=1/100;
多方炮:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)OPEN;
出水芙蓉:=(OPEN<ema(c,20) or="" open<ema(c,40)="" openMAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))
AND (V/MA(V,30)>1.2 AND C/REF(C,1)>1.049);
上升三部曲:=REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)<ref(open,3) and="" ref(close,2)<ref(open,2)="" ref(close,1)<ref(open,1)="" and
REF(LOW,4)<ref(low,3) and="" ref(low,4)<ref(low,2)="" ref(low,4)REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND
REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4);
下跌三部曲:= REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<ref(low,3) and
REF(LOW,4)<ref(low,2) and="" ref(low,4)REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 AND
CLOSE
跳空缺口:=HIGHREF(HIGH,1);
三隻烏鴉:=REF(CLOSE,2)<ref(open,2) and="" ref(close,1)<ref(open,1)="" close<open="" ref(close,1)<ref(close,2)="" close
光腳陰線:=LOW=CLOSE AND HIGH<>LOW;
光頭陽線:=HIGH=CLOSE AND HIGH<>LOW;
分離:=OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0;
長下影:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667;
長上影:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667;
十字星:=CLOSE=OPEN AND HIGH<>LOW;
大陰燭:=OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018;
好友反攻:=(REF(CLOSE,1)OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)
OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<open and="" abs(close-ref(close,1))="" close
傾盆大雨:=REF(C,1)/REF(O,1)>=1.03 AND OREF(O,1) AND C
解盤:='【解盤】'+
IFs(傾盆大雨,'★傾盆大雨,見頂信號;','')+
IFs(大陰燭,'★大陰燭,後市向淡,發生逆轉;','')+
IFs(好友反攻,'★好友反攻,底部反轉;','')+
IFs(跳空缺口,'★跳空缺口,注意向上還是向下跳空;','')+
IFs(光腳陰線,'★光腳陰線,下跌信號;','')+
IFs(光頭陽線,'★光頭陽線,後市看漲;','')+
IFs(三隻烏鴉,'★三隻烏鴉,可能見頂回落;','')+
IFs(分離,'★分離,注意看漲分離和看跌分離;','')+
IFs(長下影,'★長下影,持續下跌後出現,有可能止跌回升;在升勢末期出現,須多加留意;','')+
IFs(長上影,'★長上影,表明行情上檔壓力沉重,升勢受阻;','')+
IFs(下跌三部曲,'★下跌三部曲,下跌信號;','')+
IFs(上升三部曲,'★上升三部曲,上漲信號;','')+
IFs(早晨之星,'★早晨之星,見底回升;','')+
IFs(黃昏之星,'★黃昏之星,見頂回落;','')+
IFs(十字星,'★十字星,有轉向意味,注意股價位置在頂部還是底部;','')+
IFs(長十字,'★長十字,注意在頂部還是底部;','')+
IFs(垂死十字,'★垂死十字,下跌信號;','')+
IFs(早晨十字星,'★早晨十字星,上漲信號,見底回升;','')+
IFs(黃昏十字星,'★黃昏十字星,下跌信號,見頂回落;','')+
IFs(射擊之星,'★射擊之星,可能見頂回落,可靠性低;','')+
IFs(倒轉錘頭,'★倒轉錘頭,可能見底回升;','')+
IFs(錘頭,'★錘頭,可能見底回升,如有量配合,信號強烈;','')+
IFs(吊頸,'★吊頸,上升行情中見頂回落,頂部出現,見頂信號;','')+
IFs(平頂,'★平頂,溫和的反轉;','')+
IFs(穿頭破腳,'★穿頭破腳,頂部出現,見頂回落信號;','')+
IFs(烏雲蓋頂,'★烏雲蓋頂,見頂回落信號;','')+
IFs(曙光初現,'★曙光初現,後市見底回升;','')+
IFs(身懷六甲,'★身懷六甲,出現在底部,是見底回升信號;出現在頂部,是見頂回落信號;','')+
IFs(十字胎,'★十字胎;','')+
IFs(平底,'★平底,溫和的反轉;','')+
IFs(大陽燭,'★大陽燭,看漲;','')+
IFs(三個白武士,'★三個白武士,每日收盤價上移,表示可能見底回升;','')+
IFs(雙飛烏鴉,'★雙飛烏鴉,行情將見頂回落;','')+
IFs(孕育線,'★孕育線,注意股價位置;','')+
IFs(多方炮,'★多方炮,在底部出現有上漲意味,在中間出現有可能是上漲中繼,頂部出現是復合見頂信號;','')+
IFs(出水芙蓉,'★出水芙蓉,見底回升;','');
DRAWTEXTABS(0,0,解盤);
MA5:MA(C,5),COLORF00FF0;
MA21:MA(C,21),COLORE66878;
MA30:MA(C,30),COLORYELLOW; MA55:MA(CLOSE,55),LINETHICK1,ColorGREEN;
半年線:MA(C,120),COLOR399C7F,POINTDOT;
年線:MA(C,240),COLOR000999,POINTDOT;X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
DRAWICON(CROSS(X2,X3),L*0.98,7);
DRAWICON(CROSS(X3,X2),H*1.02,8);
DRAWGBKLAST(C>0,STRIP(RGB(10,10,50),RGB(50,10,10),0));
均價:=(3*C+H+L+O)/6;
VAR1:=(8*均價+7*REF(均價,1)+6*REF(均價,2)+5*REF(均價,3)+
4*REF(均價,4)+3*REF(均價,5)+2*REF(均價,6)+REF(均價,8))/36;
VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
SZ1:=REF(VAR1,1)=REF(VAR2,1) AND VAR1>VAR2 AND CLOSE>VAR1;
SZ2:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)
AND H/VAR1<1.1 AND L>VAR2 AND CLOSE>VAR1;
SZ3:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>=REF(VAR2,1) AND H/VAR1>1.1;
SZ4:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)
AND CLOSE>VAR2 AND CLOSE
SZ5:=(VAR1>VAR2 AND VAR2>REF(VAR2,1) AND VAR1<>REF(VAR1,1)
AND CLOSEVAR2 AND VAR1
AND VAR2<ref(var2,1) and="" close
SZ6:=REF(VAR1,1)>REF(VAR2,1) AND VAR1=VAR2 AND CLOSE
XD1:=VAR1=VAR2 AND CLOSE<var2 or="" (var1<ref(var1,1)="" and="" var2
AND REF(VAR1,1)=REF(VAR2,1) AND CLOSE
XD2:=VAR1=VAR2 AND CLOSE>VAR1;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能飽和度:=IF(SAT>1,1,SAT)*100;
IF BARSTATUS=2 AND SZ1 THEN BEGIN
DRAWTEXTABS(390,25,'調整結束短線介入'),LINETHICK2,COLORRED;
END
ELSE
IF BARSTATUS=2 AND SZ2 THEN BEGIN
DRAWTEXTABS(390,25,'上升通道走勢良好'),LINETHICK2,COLORRED;
END
ELSE
IF BARSTATUS=2 AND SZ3 THEN BEGIN
DRAWTEXTABS(390,25,'股價偏離注意調整'),LINETHICK2,COLORRED;
END
ELSE
IF BARSTATUS=2 AND SZ4 THEN BEGIN
DRAWTEXTABS(390,25,'上升通道調整洗盤'),LINETHICK2,COLORGREEN;
END
ELSE
IF BARSTATUS=2 AND SZ5 THEN BEGIN
DRAWTEXTABS(390,25,'轉向特徵注意離場'),LINETHICK2,COLORGREEN;
END
ELSE
IF BARSTATUS=2 AND SZ6 THEN BEGIN
DRAWTEXTABS(390,25,'通道改變堅決離場'),LINETHICK2,COLORGREEN;
END
ELSE
IF BARSTATUS=2 AND XD1 THEN BEGIN
DRAWTEXTABS(390,25,'下跌通道只宜觀望'),LINETHICK2,COLORGREEN;
END
ELSE
IF BARSTATUS=2 AND XD2 THEN BEGIN
DRAWTEXTABS(390,25,'短期底部准備進入'),LINETHICK2,COLORYELLOW;
END;
;a:="LTFunc5@FORLT2";
s1:="LTFunc5@LT_S1";
hs:="LTFunc5@LT_HS";
ls:="LTFunc5@LT_LS";
p1:="LTFunc5@LT_P1";
upp:="LTFunc5@LT_UPP";
udd:="LTFunc5@LT_UDD";
{hs;ls;hhs;lls;us;ds;s1;p1;p0;upp;udd};
買入:p1=1 and ref(p1,1)=0,LineThick0,Precis0,ColorRed;
d1:=ema(abs("ddx.ddx"),60);
d2:=max("ddx.ddx"/d1+7.5,7.5);
d3:=min("ddx.ddx"/d1,10);
fb:=if(s1=0,hs,ls);
tr0:=ifs(p1=1,'明日收盤價<'+numtostrn(udd,2)+',出現S點\n','若明日收盤價> '+numtostrn(upp,2)+',出現B點\n');
tr1:=ifs(s1=1,'明日收盤價<'+numtostrn(ls,2)+',短線賣出機會','若明日收盤價> '+numtostrn(hs,2)+'短線買入機會');
tr2:=ifs(p1=1,ifs(cross(p1,0),'B點','持股'),ifs(cross(1,p1),'S點','持幣'));
tr3:=ifs(s1=0,'向下,','向上,');
tr4:='3.能量級別:'+numtostrn(d3,1)+'級';
bs:=''+datestr(date)+'買賣點決策系統提示\n'+'1.BS點:'+tr2+','+tr0+'2.短線:'+tr3+tr1+'\n'+tr4;
drawflagtext(1,fb,bs);
STICKLINE(p1=1 and c>=o and o<>0,c,o,d2,0),color5454ff;
STICKLINE(p1=1 and c>=o and o<>0,c,o,7.5,0),colorblack;
STICKLINE(p1=1 and c>=o and o<>0,c,c,7.5,0),color5454ff;
STICKLINE(p1=1 and c>=o and o<>0,o,o,7.5,0),color5454ff;
STICKLINE(p1=1 and c>=o and o<>0,o,c,7.5,1),color5454ff;
STICKLINE(p1=1 and c<=o,o,c,7.5,1),color5454ff;
STICKLINE(p1=1 and c<=o,l,c,0.5,1),color5454ff;
STICKLINE(p1=1 and c<=o,h,o,0.5,1),color5454ff;
STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,o,7.5,1),colorffff54;
STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,h,0.5,1),colorffff54;
STICKLINE((p1<>1 or barscount(c)<3) and c>=o,l,o,0.5,1),colorffff54;
drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;
drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2;
drawbmp(s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;
drawbmp(s1=0 and ref(s1,1)=1 and (p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;閃:EMA(c+(h- l)*0.618,3),Color0099FF,LINETHICK0; 進:EMA((o+h+l)/3,4),COLORCYAN,LINETHICK0;
預測明日買點:=EMA((o+h+l)/3,4)+((h+l)/2-ref((o+h+l)/3,3))/4;
DRAWTEXTREL(800,950,'測今日低點:'+NUMTOSTRN(ref(預測明日買點,1),2 )),ColorGREEN;
預測明日賣點:=EMA(c+(h-l)*0.618,3)+(EMA(c+(h-l)*0.618,3)-進)*0.618;
DRAWTEXTREL(580,950,'測今日高點:'+NUMTOSTRN(ref(預測明日賣點,1),2 )),Colorred;gj:=if(c=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(v+0.01)/100);
明日阻力:=l+(gj-l)+(c-l);
③ 求助 通達信 特色型指標 XLPL 源碼
你要的XLPL(吸拉派落)指標源碼,我大致編寫了下,公式計算結果與系統指標是一樣的;
但由於還有瑕疵(顯示的顏色有差異),所以還不能提供,請理解!
④ 通達信指標源碼怎麼用
如果你有通達信的公式源碼直接新建指標公粘貼指標源碼設置好參數就可以使用了.例如下圖是通達信macd的指標源碼.
⑤ 通達信 pcnt 幅度比指標源碼
這一定是高手才回編寫的指標
⑥ 20個極品通達信指標公式源碼
大黑馬類型的通達信公式源碼;
通達信的公式源碼都有。
因為你的極品的概念有點模糊,但是公式要挑肯定要挑自己喜歡的,圖形啊,信號啊,等等,所以可以自行去了解哦~
⑦ 外盤 內盤公式指標源碼
內盤:=DYNAINFO(22) ;
外盤:=DYNAINFO(23) ;
XG:內盤>外盤;
很多剛進來的新人,就連好多老股民,對內外盤的概念都是半懵半懂,這樣的話肯定容易被莊家欺騙。現在我就給大家詳細解釋,為了更好地規避風險,建議大家耐心看下去。
開始分析之前,先給各位送上福利,股票9大神器免費送,不光能幫你看報告、找數據,還能分析行情,實用又方便:超實用炒股的九大神器,建議收藏
一、股票里的外盤內盤是什麼意思?
1、內盤
內盤是什麼?指主動賣出成交的數量,即賣方主動以低於或等於當前買一、買二、買三等價格下單賣出股票時的成交量。
2、外盤
外盤,簡單來說就是以主動買入成交的數量,也就是說以等於當前買一、買二、買三等價格下單買入股票時的成交量要是買方主動的。
二、外盤大於內盤和內盤大於外盤代表什麼意思?
概念和原理的體繫上來講:外盤大於內盤,不僅可以說明多方強於空方,還可說明股價即將上漲;當內盤大於外盤時,股價會下跌,由此可以說明空方強於多方。
不過股市情形並不簡單,能夠影響股價的主要有估值、大盤、政策、主力資金等,為了讓小白們練練手,形成一個自己的准確的評判標准,看下面的這個診股網站,能快遞幫助你知道你的那隻股票好不好,盡量收藏起來吧:【免費】測一測你的股票到底好不好?
三、怎麼運用內外盤來判斷股價?
內外盤大小不是股價漲跌的評判標准,因為有時候它們非常具有迷惑性。
就比如外盤大,僅僅說明了這只股票主動買入多,有許多跌停的股票外盤也很大,主要是跌停時不能賣出只能買入。
除開以上這些,股票的內外盤很有可能不真實,有人為做出來這種情況發生。就拿一部分股票的莊家來舉例,主要是想獲得更多的籌碼,做好高位拋售的准備,莊家會故意在賣一到賣五處放出大量的單,股民看了就覺得股價極有可能會下跌,勢必會跟著賣出,這就會造成外盤比內盤小,讓股價看起來很弱。
所以我們只看內外盤就來評判股價是不行的,不能單靠看內外盤大小來決定買賣時機,真正的買賣時機要結合市場趨勢、拐點等來決定,下面的買賣機會提示神器,剛入門的小夥伴可以了解一下,有了它你就不用再為買賣機會發愁,不會輕易上了內外盤的當:【AI輔助決策】買賣時機捕捉神器
應答時間:2021-09-23,最新業務變化以文中鏈接內展示的數據為准,請點擊查看
⑧ 通達信 dkx多空線指標源碼
DKX 多空線 通達信 主圖、選股、源碼請參考下面內容:
通達信 DKX 多空線(系統)通達信系統自身指標,DKX自身指標為副圖,為方便你的認識,改為主圖、增加選股。
DKX 多空線 源碼由下面組合成;
MID:=(3*收盤價+最低價+開盤價+最高價)/6;
DKX:(20*MID+19*向前引用(MID,1)+18*向前引用(MID,2)+17*向前引用(MID,3)+16*向前引用(MID,4)+15*向前引用(MID,5)+14*向前引用(MID,6) +13*向前引用(MID,7)+12*向前引用(MID,8)+11*向前引用(MID,9)+10*向前引用(MID,10)+9*向前引用(MID,11)+8*向前引用(MID,12) +7*向前引用(MID,13)+6*向前引用(MID,14)+5*向前引用(MID,15)+4*向前引用(MID,16)+3*向前引用(MID,17)+2*向前引用(MID,18)+ 向前引用(MID,20))/210;
其實DKX指標是一個在事後來看很準的一個指標,由於DKX指標不受短期波動的影響,滯後性是肯定的。
DKX指標實際上就是個「看上去很美」的指標,但是卻是很難把握其運用時機的指標。
多空線主圖 源碼:
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
MADKX:MA(DKX,10),DOTLINE;
IF((MADKX>=REF(MADKX,1)),MADKX,DRAWNULL),LINETHICK2,COLORMAGENTA;
IF((MADKX<=REF(MADKX,1)),MADKX,DRAWNULL),LINETHICK2,COLORGREEN;
選股:=CLOSE>=DKX AND CROSS(DKX,MADKX);
DRAWICON(選股,L*0.96,30);
選股 源碼:
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
MADKX:=MA(DKX,10);
選股:CLOSE>=DKX AND CROSS(DKX,MADKX);
多空線是一個統計性指標。它是將主動買、主動賣的成交按時間區間分別統計而形成的一個曲線,其坐標為0-100,在買賣雙方願望相同的情況下,它在50左右徘徊, 當接近100時,表示買力願望加強,預示後市有上升的可能,當接近0值時,表示賣目錄一覽方願望強烈,預示後示有下降可能。對於50線的穿越,結合量的配合要特別留意。
多空線有兩條線,以交叉方式提示買入賣出。第一個參數是移動平均周期, 用以濾除干擾,第二個參數是放量概念,是一個倍數,指示現時間段的成交量和前五個時間段的成交量的倍數, 當放量向上突破50線時,多空線打出紅色標志,向下突破時, 打出綠色標志引起注意。多空線適合各種的分析周期。
⑨ 這個指標源碼怎麼寫通達信
VAR1:=(CLOSE+HIGH+LOW+OPEN)/4;
VAR2:=SUMBARS(VOL,CAPITAL);
VAR3:=HHV(VAR1,VAR2);
VAR4:=LLV(VAR1,VAR2);
VAR5:=(2*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4);
VAR6:=(VAR1-VAR4)/(VAR3-VAR4);
VAR7:=IF(VAR1<=VAR4,VAR5*60,VAR6*60);
VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
VAR9:=EMA(VAR8,7);
VARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;
VARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;
VARC:=HHV(HIGH,9)-LLV(LOW,9);
VARD:=HHV(HIGH,9)-CLOSE;
VARE:=CLOSE-LLV(LOW,9);
VARF:=VARD/VARC*100-70;
VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR11:=(2*CLOSE+HIGH+LOW)/4;
VAR12:=SMA(VARE/VARC*100,3,1);
VAR13:=LLV(LOW,34);
VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);
VAR15:=IF(VAR14>100,VAR14-100,0);
VAR16:=HHV(HIGH,34);
VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);
VAR18:=EMA(VAR17,5);
XG:VAR17>=VAR18 AND REF(VAR17<VAR18,1) AND VAR17<60;
STICKLINE(VAR17-VAR18>0,VAR17,VAR18,8,1), ,COLORRED ;
STICKLINE(VAR17-VAR18<0,VAR17,VAR18,8,1), ,COLORGREEN ;
⑩ 通達信指標公式源碼很實用的抄底逃頂指標
通達信指標公式源碼很實用的抄底逃頂指標
在底部出現買入信號,在高點出現賣出信號