導航:首頁 > 源碼編譯 > 分時昨收價源碼

分時昨收價源碼

發布時間:2024-09-15 21:23:24

㈠ 通達信選股公式

通達信選股公式:

條件選股公式源碼
年認同價:=MA(C,240);
價格中樞:=(SUM(年認同價,0)/(BARSSINCE(年認同價>0)+239));
箱頂:=價格中樞*1.2;
箱底:=價格中樞*0.8;
毛利潤率:=FINANCE(21)/FINANCE(20);
成長價值:=年認同價*(1+毛利潤率);
收益價值:=年認同價+FINANCE(33);
回調認同:=EMA(EXPMA(C,20),13);
多頭:=(回調認同>REF(回調認同,1))AND(成長價值>REF(成長價值,1))AND(收益價值>REF(收益價值,1))AND(DYNAINFO(7)>0);
回調條件:=COUNT(C<回調認同,5)>=3;
回調突破:=(REF(C,1)<=REF(回調認同,1))AND(C>回調認同)AND(回調條件)AND多頭;
成長條件:=COUNT(C<成長價值,5)>=3;
成長突破:=(REF(C,1)<=REF(成長價值,1))AND(C>成長價值)AND(成長條件)AND多頭;
收益條件:=COUNT(C<收益價值,5)>=3;
收益突破:=(REF(C,1)<=REF(收益價值,1))AND(C>收益價值)AND(收益條件)AND多頭;
箱底條件:=COUNT(C<箱底,5)>=3;
箱底突破:=(REF(C,1)<=REF(箱底,1))AND(C>箱底)AND(箱底條件)AND多頭;
價格條件:=COUNT(C<價格中樞,5)>=3;
價格突破:=(REF(C,1)<=REF(價格中樞,1))AND(C>價格中樞)AND(價格條件)AND多頭;
箱頂條件:=COUNT(C<箱頂,5)>=3;
箱頂突破:=(REF(C,1)<=REF(箱頂,1))AND(C>箱頂)AND(箱頂條件)AND多頭;
突破買點:(回調突破+成長突破+收益突破+箱底突破+價格突破+箱頂突破);

專買老鼠倉
{老鼠倉}
AA1:=AMOUNT/V;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
DRAWTEXT(FF1,(LOW* 0.97),'老鼠倉'),COLOR4080FF;
老鼠倉是個很不錯的指標,信號發出一般都在一個波段的底部起漲之時。
根據本人的實踐,使用指標時候要注意幾點:
1 該指標可以添加到任何一個主圖裡面去,比如MA均線什麼的。
2 出現信號當天買進股票,第二天收陽繼續持股,直到出陰為止。
3 第二天出陰考慮賣出,非常適合短線操作!

老鼠倉(選股公式)
AA1:=AMOUNT/V;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
老鼠倉:BB1AND CC1 AND DD1 AND EE1;

理想選股(選股公式)
VAR1:=MA((LOW+HIGH+CLOSE)/3,5);
VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
VAR3:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
VAR4:=VAR1>REF(VAR1,1) AND REF(VAR1,1)<REF(VAR1,2);
VAR5:=LOW<HHV(VAR1,13) AND HIGH>HHV(VAR1,13) AND CLOSE>REF(C,1) ANDCLOSE>OPEN;
VAR6:=VAR5 AND COUNT(VAR4,2);
VAR7:=VAR6 AND NOT(REF(VAR6,1));
VAR8:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
VAR9:=EMA(MA(C,13),13);
VAR10:=FILTER((LLV(VAR8,2)=LLV(VAR8,7) AND COUNT(VAR8<0,2) ANDCROSS(VAR8,MA(VAR8,2)))=1,5);
VAR11:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
VAR12:=FILTER(((CROSS(VAR11,0) OR CROSS(C,VAR9)) AND VAR10)=1,3);
VAR13:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));
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;
金叉:=CROSS(J,D);
死叉:=CROSS(D,J);
買1:=(VAR12OR VAR13) AND VAR10;
買2:=(VAR12OR VAR13) AND VAR3;
買3:=(VAR12OR VAR13) AND VAR2;
買4:=(VAR2AND VAR10) OR (VAR3 AND VAR10);
買5:=(金叉AND VAR3) OR (金叉 AND VAR2) OR (金叉 AND VAR10);
ST:=EXIST(C/REF(C,1)>1.06,50);
輸出:=(買1OR 買2OR 買3OR 買4OR 買5OR VAR7) AND ST;
MA5:=MA(C,5),COLORWHITE;
X:=(3*C+L+O+H)/6;
多空線:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210,COLORFF00FF,LINETHICK1;
AB:=DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORYELLOW;
CROSS(MA5,多空線) and CROSS(C,AB) and 輸出 ;

點石成金(選股公式)
KS13:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*(-100);
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
FASTK:=SMA(RSV,3,1);K:=SMA(FASTK,3,1);D:=SMA(K,5,1);
Var1:=CLOSE/MA(CLOSE,40)*100<76;
Var2:=CLOSE/MA(CLOSE,60)*100<74;
Var3:=HIGH>LOW*1.051;
Var4:=Var3 AND COUNT(Var3,5)>1;
Var4 AND (Var1 OR Var2) AND REF(KS13,1)>=10 AND REF(KS13,1)/KS13>=1.13AND
CLOSE/REF(CLOSE,1)>=1.02;

牛市絕底(選股公式)
VAR1:=REF(CLOSE,1);
VAR2:=((SMA(MAX((CLOSE - VAR1),0),7,1) / SMA(ABS((CLOSE - VAR1)),7,1)) * 100);
VAR3:=((SMA(MAX((CLOSE - VAR1),0),13,1) / SMA(ABS((CLOSE - VAR1)),13,1)) *100);
VAR4:=((100 * (HHV(HIGH,48) - LOW)) / HHV(HIGH,48));
VAR5:=((100 * (HIGH - LLV(LOW,48))) / LLV(LOW,48));
牛市絕底:VAR2< 15 AND VAR3 < 20 AND (VAR2 + VAR3) > 20 AND VAR4 > 40 ANDBARSCOUNT(CLOSE) > 47;

飛彈一號(選股公式)
var1:=c/ma(c,40)*100<78;
var2:=c/ma(c,60)*100<74;
var3:=h>=l*1.051;
var4:=var3 and count(var3,5)>=2;
xg:var4 and (var1 or var2) and count(h=l and c=o and c<ref(c,1),3)=0
and hhv(v/capital,30)<0.8;

跟庄建倉源碼
A01:=DYNAINFO(7);
A03:=BARSCOUNT(CLOSE);
A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);
A05:=IF((A03 > 20),A04,0);
A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH -LOW) + 0.009))));
A07:=DMA(A06,(VOL / CAPITAL)) * 60;
A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);
Var1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
Var2:=EMA(Var1,8);
Var3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趨勢:=EMA(Var3,3)-10;
STICKLINE(趨勢>80,趨勢,80,5,0);
DRAWICON(CROSS(趨勢,0),0,1);
STICKLINE((A09 > 0 AND (趨勢<20 OR 趨勢>REF(趨勢,1)AND趨勢<50)),0,A09,6,0),colorFFff00;
機構建倉區:0,LINETHICK0,colorFFFF00;
Var4:=(趨勢-REF(趨勢,1))/REF(趨勢,1)*100;
STICKLINE(趨勢<=13,0,20,3,0),colorcc9900;
DRAWTEXT(FILTER(趨勢<=13,15),30,'准備現金'),colorcc9900;
STICKLINE(趨勢<=13 AND Var4>13,0,50,2,0),color0099ff;
Var5:=FILTER((趨勢<=13 AND Var4>13),10);
DRAWTEXT(Var5,60,'買入'),color0099ff;
STICKLINE(趨勢>=90 AND Var4,0,30,3,0),colorgray;
Var6:=FILTER((趨勢>=90 AND Var4),10);
DRAWTEXT(Var6,40,'清倉'),colorgray;
Var7:=LLV(LOW,30);
Var8:=HHV(HIGH,30);
Var9:=EMA((CLOSE-Var7)/(Var8-Var7)*4,4)*25;
STICKLINE(Var9>90,100,105,3,2),COLORRED;
Var10:=(Var9-LLV(Var9,4))/(HHV(Var9,4)-LLV(Var9,4))*100;
DRAWTEXT(IF(CROSS(Var9,Var10) AND Var9>87,95,0),88,'險'),Color00FF00;
DRAWICON(CROSS(90,Var9),95,9);
Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
Var12:=HHV(Var11,30)*8;
火焰山:EMA(IF(LOW<=Var7AND 趨勢<40,(Var11+Var12),0),3)/618,COLORRED,linethick2;
STICKLINE(火焰山>0,0 ,火焰山*1.2,4,0 ),COLORRED;
Var13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
Var14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
趨勢線:趨勢,colorff0000;
Var16:=MAX(EMA(Var13,2)-EMA(Var14,5),0)*200;
Var17:=EMA(Var16,5);
波浪峰:Var17,stick,colorff00ff;
STICKLINE(Var17<REF(Var17,1),0,Var17,1,0),color00ff00;
Var18:=MA(趨勢線,8);
if(CROSS(Var2,Var18) AND Var2<15,50,0),COLORRED;
DRAWTEXT(CROSS(趨勢線,Var2)AND 趨勢線>REF(趨勢線,1)AND 趨勢線<50,50,'追漲'),COLORff00ff;
風險區:IF(趨勢>80,趨勢,80),colorff00ff;

雙信號"全倉"選股(選股公式)
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
TTJ:=CROSS(FF,MA15);
上:=EMA(C,3),COLORBLUE,LINETHICK1;
中:=EMA(C,5),COLORWHITE,LINETHICK1;
下:=EMA(中,5),COLOR00FF00,LINETHICK1;
QQ:= C<中;
MM:=上>REF(上,1)AND REF(上,1)<REF(上,2) ;
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-7/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
V5:=MA((LOW+HIGH+CLOSE)/3,5);
MA1:=MEMA(CLOSE,5);
MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
MA3:=IF(MA2>0,MA2,MA2);
MA5:=MA(CLOSE,5),COLOR888899;
MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;
VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))
OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND
REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND
C>=REF(C,1) AND C>=REF(C,2);
{收盤價=4日內收盤價的最高值AND 昨收>=2日前的收盤價}
VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
{收盤價=4日內收盤價的最高值AND 昨收=4日內收盤價的最低值}
VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR
REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND
REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND
C<REF(C,1) AND C<REF(C,2);
{收盤價=4日內收盤價的最低值AND (昨收<2日前的收盤價}
VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND
REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
{昨收=4日內收盤價的最低值AND 收盤價>=2日前的收盤價}
VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND
REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND
REF(C,2)>=REF(C,4) AND C<REF(C,1);
{昨收=4日內收盤價的最高值AND 收盤價<2日前的收盤價}
VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);
{今日V5向上形成拐點}
VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) ANDCLOSE>OPEN;
VAR08:=VAR07 AND COUNT(VAR06,2);
VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
VAR10:=EMA(MA(C,13),13);
VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND
CROSS(VAR09,MA(VAR09,2)))=1,5);
VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) AND
CROSS(MA(VAR09,2),VAR09))=1,1);
VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);
VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));
VAR16:=VAR08 AND NOT(REF(VAR08,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;
金叉:=CROSS(J,D);
死叉:=CROSS(D,J);
買1:=(VAR14OR VAR15) AND VAR11;
買2:=(VAR14OR VAR15) AND VAR04;
買3:=(VAR14OR VAR15) AND VAR02;
買4:=(VAR02AND VAR11) OR (VAR04 AND VAR11);
買5:=(金叉AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);
TTJ0:=VAR16;
TTJ1:=買1OR 買2OR 買3OR 買4OR 買5AND MM;
XG0:=TTJ AND TTJ0;
XG1:=TTJ AND TTJ1;
XG11:=XG0 OR XG1;
{以下波浪理論浪底重疊"買底"選股原碼}
PL5:=ZIG(3,5);
EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) ANDREF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) ANDREF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
PL10:=ZIG(3,10);
EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2)AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2)AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
PL20:=ZIG(3,20);
EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2)AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2)AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,40);
走強1:=BARSLAST(PL5<REF(PL5,1));
走弱1:=BARSLAST(PL5>REF(PL5,1));
走強2:=BARSLAST(PL10<REF(PL10,1));
走弱2:=BARSLAST(PL10>REF(PL10,1));
走強3:=BARSLAST(PL20<REF(PL20,1));
走弱3:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走強2),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走強2),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走強3),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走強3),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
TJ11:=EN2 AND ZTJZ5=1;
TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;
TJ33:=EN2 AND DTJZ10=1;
TJ44:=EN3 AND ZTJZ10=1;
TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;
XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;
{以下二者結合共同選股}
XG:=XG11 OR XG22;
W18:EXIST(XG,1);

㈡ 股票的今開、最高、最低和昨收分別是什麼東西

今開是指今天的開盤價,最高是指今天股價波動的最高點,最低是指股價波動的最低點,昨收是指昨天的收盤價格

㈢ 奼傞氳揪淇¢夎偂鍏寮

鍙浠ョ紪鍐3鍒5澶╁嚭鐜拌繃娑ㄥ仠,騫朵笖娑ㄥ仠褰撴棩鎴愪氦閲忔槸鍓嶄竴鏃2鍊嶄互涓,騫朵笖鏀剁洏浠蜂竴鐩村湪娑ㄥ仠闃崇嚎瀹炰綋鏈浣庣偣涔嬩笂.閫夎偂鏁堟灉濡備笅鍥.

2銆侀氳揪淇$粡鍏稿叕寮忛泦閿
鍐呭規潵鑷鐢ㄦ埛:6_zaq
閫氳揪淇$粡鍏稿叕寮忛泦閿[澶嶅埗閾炬帴]
1.30涓浜ゆ槗鏃ュ唴,鑲′環璺屽箙杈懼埌涓鍗婄殑鑲$エ:
xg:(hhv(c,30)-c)/hhv(c,30)>0.5;
2錛屼粖澶╃殑閲忔槸5澶╁鉤鍧囩殑2鍊嶄互涓
xg:v>ma(v,5)*2;
緙╅噺
vol/ma(vol,10)<0.3;
3錛屼袱澶╁唴,緔璁′笅璺岀瓑浜庢垨瓚呰繃20%閫夎偂.
xg:(ref(c,2)-c)/c>0.2;
4錛岃偂浠鋒槸25澶╀互鏉ユ柊浣.
xg:c<ref(llv(c,25),1);
5錛岄夎偂錛欵XPMA 5鏃ヤ笌10鏃ラ噾鍙夊苟涓旂浜屽ぉ鐨勬敹鐩樹環鍦‥XPMA鐨5鏃ョ嚎浠ヤ笂錛
cross(ref(ema(c,5),1),ref(ema(c,10),1)) and c>ema(c,5);
6錛岃風紪涔板叆鍏寮忥細
1.灝咮IAS鎸囨爣鐨勫弬鏁拌劇疆涓24鏃ワ紝灝咾D鎸囨爣鐨勫弬鏁拌劇疆涓9錛3錛3銆
2. BIAS鎸囨爣瑕佸皬浜-6錛岃繖鍙鏄紜璁よヨ偂瓚呰穼鐨勫垵閫夋潯浠躲
3. KD鎸囨爣浜х敓榛勯噾浜ゅ弶錛孠綰誇笂絀緿綰褲
4. KD浜ゅ弶鍚屾椂錛孠D鎸囨爣涓鐨凞鍊艱佸皬浜16銆
BIAS3 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,colorff00ff;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1),COLORWHITE;
D:=SMA(K,3,1),COLORYELLOW;
xg:BIAS3<-6 and cross(k,d) and d<16;
7錛岃佹眰鏄閲忓ぇ銆佹崲鎵嬬巼杈懼埌3宸﹀彸錛屾定騫>7涓鐐廣
xg:v/capital*100>3 and (c/ref(c,1)>1.07;
8錛屼釜鑲″垎鏃跺浘涓婇兘鏈変竴鏉¢粍綰,鍙鍋氬潎浠風嚎
a/capital*100;
9錛"闃磋漿闃"鐨勫叕寮(涔熷氨鏄鏄ㄥぉ鏀墮槾綰,浠婂ぉ鏀墮槼綰)
xg:ref(c,1)o;
10錛岃偂浠峰洖鎶20鏃ュ潎綰塊夎偂鍏寮
xg:ref(c,1)>ma(c,20) and cross(ma(c,20),c);
11錛屼竴
3銆佽峰叕寮忛珮鎵嬬紪杈戜竴涓閫氳揪淇¢傜敤鐨勯夎偂鍏寮
10鏃ュ潎綰挎弧瓚 鍚戜笂瑙掑害灝忎簬45搴 鍚戜笅瑙掑害澶т簬45搴﹀尯闂寸殑鑲$エ
榪欏彞璇濇湰韜灝辨湁闂棰橈紝鍧囩嚎鏃犻潪鏄涓鏍圭嚎錛屽彧鏈変竴涓鏂瑰悜錛屼綘2涓鏂瑰悜閮借佹庝箞鍐......
4銆佸父鐢ㄩ夎偂鍏寮忔嫑鍙婇氳揪淇¤劇疆鏂規硶
鍐呭規潵鑷鐢ㄦ埛:鑷崇畝浼犲獟
甯哥敤閫夎偂鍏寮130闆嗭紙閫氳揪淇★級
1銆侀夎偂鍏寮
CYC5:=CYC(5);
CYC13:=CYC(13);
CYC34:=CYC(34);
AA:=(HHV(H,55)-LLV(L,55))/LLV(L,55);
寤轟粨瀹屾瘯:REF(AA,1)=0.25ANDCYC5>CYC13ANDCYC13>CYC34,COLORYELLOW;
2銆佹潯浠墮夎偂鍏寮忥細
MACD,RSI,KDJ搴曡儗紱婚夎偂鍏寮忥細60鍒嗛挓
KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3);
涔1:=CROSS(KDJ_J,0)OR(CROSS(KDJ_J,KDJ_K)ANDKDJ_D<26);
涔2:=CROSS("RSI.RSI1"(6,2,2),20)ORCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
涔3:=CROSS("MACD.DIF","MACD.DEA")ORCROSS("MACD.MACD",0);
涔0:=涔1+涔2+涔3;
涔:IF(涔0>1,涔0,0);
3銆亄鏋佸搧閫夎偂}
Var1:=AMOUNT/(100*VOL);
Var2:=MA(Var1,13);
Var3:=MA(Var1,34);
Var4:=DMA(CLOSE,VOL/CAPITAL);
Var5:=(CLOSE-Var2)/Var2*100;
Var6:=(CLOSE-Var3)/Var3*100;
Var7:=(CLOSE-Var4)/Var4*100;
浜忔崯紼嬪害:IF(Var5<=-7,7,0),colorff00ff;
IF(Var5<=-10,10,0),colorwhite;
IF(Var5<=-16,16,0),color00ff00;
IF(Var5<=-20,20,0),colorred;
IF(Var5<=-25,25,0),colorffcccc;
IF(Var5<=-30,30,0),colorblue;
Var8:=COST(10)*0;
Var9:=REF(HIGH,1)*1.1;
VarA:=HIGH*1.1;
VarB:=(VarA*VOL+Var9*(CAPITAL-VOL))/CAPITAL;
VarC:=REF(LOW,1)*0.9;
VarD:=LOW*0.9;
VarE:=(VarD*VOL+VarC*
5銆侀氳揪淇$粡鍏稿疄鐢ㄩ夎偂鍏寮(125涓甯哥敤鍏寮忔簮鐮)
鍐呭規潵鑷鐢ㄦ埛:Kevin_sjz
閫氳揪淇$粡鍏稿疄鐢ㄩ夎偂鍏寮忥紙125涓甯哥敤鍏寮忔簮鐮侊級
1.30涓浜ゆ槗鏃ュ唴,鑲′環璺屽箙杈懼埌涓鍗婄殑鑲$エ:
xg:(hhv(c,30)-c)/hhv(c,30)>0.5;
2錛屼粖澶╃殑閲忔槸5澶╁鉤鍧囩殑2鍊嶄互涓
xg:v>ma(v,5)*2;
緙╅噺
vol/ma(vol,10)<0.3;
3錛屼袱澶╁唴,緔璁′笅璺岀瓑浜庢垨瓚呰繃20%閫夎偂.
xg:(ref(c,2)-c)/c>0.2;
4錛岃偂浠鋒槸25澶╀互鏉ユ柊浣.
xg:c<ref(llv(c,25),1);
5錛岄夎偂錛欵XPMA5鏃ヤ笌10鏃ラ噾鍙夊苟涓旂浜屽ぉ鐨勬敹鐩樹環鍦‥XPMA鐨5鏃ョ嚎浠ヤ笂錛
cross(ref(ema(c,5),1),ref(ema(c,10),1))andc>ema(c,5);
6錛岃風紪涔板叆鍏寮忥細
1.灝咮IAS鎸囨爣鐨勫弬鏁拌劇疆涓24鏃ワ紝灝咾D鎸囨爣鐨勫弬鏁拌劇疆涓9錛3錛3銆
2.BIAS鎸囨爣瑕佸皬浜-6錛岃繖鍙鏄紜璁よヨ偂瓚呰穼鐨勫垵閫夋潯浠躲
3.KD鎸囨爣浜х敓榛勯噾浜ゅ弶錛孠綰誇笂絀緿綰褲
4.KD浜ゅ弶鍚屾椂錛孠D鎸囨爣涓鐨凞鍊艱佸皬浜16銆
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,colorff00ff;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1),COLORWHITE;
D:=SMA(K,3,1),COLORYELLOW;
xg:BIAS3<-6andcross(k,d)andd<16;
7錛岃佹眰鏄閲忓ぇ銆佹崲鎵嬬巼杈懼埌3宸﹀彸錛屾定騫>7涓鐐廣
xg:v/capital*100>3and(c/ref(c,1)>1.07;
8錛屼釜鑲″垎鏃跺浘涓婇兘鏈変竴鏉¢粍綰,鍙鍋氬潎浠風嚎
a/capital*100;
9錛"闃磋漿闃"鐨勫叕寮(涔熷氨鏄鏄ㄥぉ鏀墮槾綰,浠婂ぉ鏀墮槼綰)
xg:ref(c,1)o;
10錛岃偂浠峰洖鎶20鏃ュ潎綰塊夎偂鍏寮
xg:ref(c,1)>ma(c,20)andcross(ma(c,20),c);
11錛屼竴鏍瑰ぇ闃崇嚎,鑷沖皯鏈5涓鐐逛互涓,鍐嶈繛鐫鍑虹幇浜屾牴鎸騫呬笉澶т簬5鐨勫嶮
6銆侀氳揪淇℃庢牱灝嗚繖涓鎸囨爣鍏寮忔崲鎴愰夎偂鍏寮忥紵
閫氳揪淇℃寚鏍囧叕寮忎笌閫夎偂鍏寮忔渶涓昏佺殑鍖哄埆鏄錛屾寚鏍囧叕寮忓彲浠ユ湁澶氫釜杈撳嚭錛岃岄夎偂鍏寮忓彧鑳芥湁涓涓杈撳嚭銆傝佹妸鎸囨爣鍏寮忔敼鎴愰夎偂鍏寮忔渶綆鍗曠殑鍔炴硶鏄鎶婁綘涓嶉渶瑕佺殑杈撳嚭璇鍙ユ敼鎴愯祴鍊艱鍙ュ氨鍙浠ヤ簡銆 VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL); OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0); MAOBV:MA(OBV,M); RANGE((((OBV-MAOBV)/MAOBV)*100),-0.5,0.5); 渚嬪傦紝涓婇潰鏄疧BV鎸囨爣鍏寮忥紝涓鍏辨湁涓変釜杈撳嚭錛岀幇鍦ㄨ佹敼鎴愰夎偂鍏寮忥紝閭d箞鎶婁笉闇瑕佺殑涓や釜璇鍙ユ敼鎴愯祴鍊艱鍙ュ氨鍙浠ヤ簡錛屽叿浣撴槸鍦ㄨ緭鍑烘寚鏍囧悕瀛楀悗鍔犵瓑鍙峰氨鍙浠ヤ簡錛屾敼鍚庡氨鏄濡備笅 VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL); OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0); MAOBV:=MA(OBV,M); RANGE((((OBV-MAOBV)/MAOBV)*100),-0.5,0.5); 閫夎偂鍏寮忔槸瑕佸緩鍦ㄦ潯浠墮夎偂鍏寮忔爮鐩閲岀殑錛屽緩濂藉悗鍦ㄦ潯浠墮夎偂鍣ㄩ噷灝辮兘鐪嬪埌錛屼篃灝辮兘鎵ц屾潯浠墮夎偂浜嗐傚湪鏉′歡棰勮﹂噷杈瑰氨鍙浠ユ妸閫夎偂鍏寮忓姞榪涢勮﹂噷浜嗭紝榪涜岄勮︿嬌鐢ㄤ簡銆
7銆佸氬勾鏉ユ敹闆嗗緢澶氭渶濂界殑閫夎偂鍏寮忛氳揪淇℃寚鏍囧叕寮忔簮鐮
鍐呭規潵鑷鐢ㄦ埛:瀛欑幉鐜
澶氬勾鏉ユ敹闆嗗緢澶氭渶濂界殑閫夎偂鍏寮
鎴戜滑灝忔暎鎴峰仛鐨勬槸鏀跨瓥闈㈠ぇ鎸囨爣閲岀殑涓鑲★紝涓嶆槸鏁翠釜鏀跨瓥闈㈤噷鐨勬墍鏈夎偂銆傜湅涓氱嘩錛岀湅鍩烘湰闈錛岀湅鏀跨瓥閮戒笉濡傜湅涓鑲″揩瑕佹媺鍗囩殑鏃舵満銆傚ソ鎸囨爣閲屾樉紺轟釜鑲℃媺鍗囧墠鐨勪範鎯鍜屾垚浜ら噺鐨勬暟鎹錛屽ソ鎸囨爣鐨勭『鍍忔俯搴﹁′竴鏍瘋板綍浜39搴︽槸鍙戠儳錛0搴︿互涓嬭佺粨鍐扮殑浜嬪疄銆傜唺甯傞噷鏈夋定鐨勫彲浠ヨ禋閽辯殑涓鑲★紝鐗涘競閲屾湁璺岀殑鑳藉椾漢鐨勪釜鑲°傝兘鏈変竴涓鏇村ソ鐨勬寚鏍囪╁ぇ瀹跺湪鐗涘競閲屽氳禋涓鐐歸挶錛屽湪鐔婂競閲屽皯璧氫竴鐐歸挶錛屽氨鍊煎緱浜嗐
瀵規綔姘寸殑鏈嬪弸璇:澶氬洖澶嶄笅甯栧瓙錛屽叾瀹炲氨鏄鍑犱釜瀛楄屽凡錛屼絾鏄榪欏嚑涓瀛楀逛簬鍙戝笘浜烘潵璇撮紦鍔辨槸寰堝ぇ鐨勶紒琛屼簡搴熻瘽灝戣存簮鐮佸変笂錛佷竴.閫夎偂鎸囨爣.嬈℃棩娑ㄥ仠W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));W4 AND COUNT(W4,5)=1;榛勮漿緔閫夎偂DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)*2;緔鏌:MACDREF(MACD,1) AND REF(MACD,1)<REF(MACD,2);浣庝綅閲戝弶閫夎偂DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)*2;浣庝綅閲戝弶:CROSS(DIFF,DEA) AND DIFF=0));浜屾¢噾鍙:CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;緇濆湴鍙嶅脊錛1錛塚AR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*100;VAR3:=EMA(IF(CLOSE*1.2,V

㈣ 高分求大智慧分時橫盤預警公式,本人有思路,求編寫

n:=0.001;
A:=BARSCOUNT(C)-BARPOS+1;
A1:=DAY<>REF(DAY,1);
A2:=BARSLAST(A1)+1;
A3:=MA(C,A2);
A4:=SUM(AMOUNT,A2)/SUM(VOL,A2)/100;
A5:=IF(CAPITAL>0,A4,A3);
現價:=IF(A<=A2,CLOSE,0);
均價:=IF(A<=A2,A5,0);
昨收:=ref(c,barslast(time<=093100)+1);
開盤:=barslast(time<=093600)+1;
橫盤條件:=abs((現價-均價)/均價)<0.01 and 均價>昨收*0.986 and 均價>=ref(均價,1);
橫盤:=last(橫盤條件)>=60;
二分漲速:=(c-ref(c,2))/(ref(c,2)*2);
二分量:=MIN(V,REF(V,1));
橫盤最大量:=hhv(v,barslast(last(橫盤條件)=1)+1);
con:二分量>ref(橫盤最大量,2)*1.3 and ref(橫盤,2)=1 and 二分漲速>n;

按你的要求寫了,以上源碼是在大智慧上實現的,通達信的會運行不通過,有問題再hi我吧~~~

閱讀全文

與分時昨收價源碼相關的資料

熱點內容
生存為什麼不能使用命令方塊 瀏覽:204
java與sqlserver資料庫連接 瀏覽:21
鐵路解壓視頻全過程 瀏覽:442
主備核心交換機如何連接伺服器 瀏覽:704
白金卡哪個app最靠譜 瀏覽:666
本田汽車空調壓縮機保險絲 瀏覽:155
康佳led47r5500pdf通病 瀏覽:821
cad圓相切命令 瀏覽:69
bmp文件夾打開 瀏覽:502
u盤裝系統文件下載到哪個文件夾 瀏覽:21
es系統封裝教程程序員大本營 瀏覽:523
程序員聚餐喝什麼酒好 瀏覽:608
編譯程序生成安裝文件 瀏覽:955
linux查看usb設備 瀏覽:284
安卓怎麼禁止app充值 瀏覽:559
動盪對加密貨幣的影響 瀏覽:358
國家反詐app哪裡看注冊時間 瀏覽:563
打孔式文件夾怎麼裝視頻 瀏覽:29
php怎麼學比較好 瀏覽:381
python中關於函數調用 瀏覽:362