A. 大盤副圖指標,能顯示所以大盤的副圖指標
大盤指數K線副圖源碼
【上證】
{上證指數副圖}
DRAWGBK(C>0,RGB(0,10,10),RGB(88,0,0),0,'?',0);{紅色}
{個股對應大盤指數}
指數【對應】:INDEXC,NODRAW,COLORYELLOW;{滬股時顯示上證指數,深股時顯示深證(成份)指數}
{上證指數}
上證:"999999$C",NODRAW,COLORWHITE;
漲跌:"999999$C"-REF("999999$C",1),NODRAW,COLORLIGRAY;
{原系統K線}
DRAWKLINE("999999$H","999999$O","999999$L","999999$C");
{紅青立體K線}
開盤:="999999$O";
收盤:="999999$C";
最高:="999999$H";
最低:="999999$L";
STICKLINE(收盤>=開盤,收盤,開盤,3,0),COLOR000045;{紅色}
STICKLINE(收盤>=開盤,收盤,開盤,2.5,0),COLOR000065;
STICKLINE(收盤>=開盤,收盤,開盤,2,0),COLOR000085;
STICKLINE(收盤>=開盤,收盤,開盤,1.5,0),COLOR0000A5;
STICKLINE(收盤>=開盤,收盤,開盤,1,0),COLOR0000C5;
STICKLINE(收盤>=開盤,收盤,開盤,0.5,0),COLOR0000E5;
STICKLINE(收盤>=開盤,最高,最低,0,0),COLOR0000F5;
STICKLINE(收盤<開盤,收盤,開盤,3,0),COLOR656500;{青色}
STICKLINE(收盤<開盤,收盤,開盤,2.5,0),COLOR757500;
STICKLINE(收盤<開盤,收盤,開盤,2,0),COLOR858500;
STICKLINE(收盤<開盤,收盤,開盤,1.5,0),COLOR959500;
STICKLINE(收盤<開盤,收盤,開盤,1,0),COLORA5A500;
STICKLINE(收盤<開盤,收盤,開盤,0.5,0),COLORB5B500;
STICKLINE(收盤<開盤,最高,最低,0,0),COLORC5C500;
{均線}
MA5:MA("999999$C",5),COLORWHITE;
MA10:MA("999999$C",10),COLORYELLOW;
MA20:MA("999999$C",20),COLORMAGENTA;
{MA30:MA("999999$C",30),COLORCYAN;}
MA60:MA("999999$C",60),COLORGREEN;
{MA120:MA("999999$C",120),COLORBLUE;};
【深證】
{深證指數副圖}
DRAWGBK(C>0,RGB(0,10,10),RGB(88,0,0),0,'?',0);{紅色}
{個股對應大盤指數}
指數【對應】:INDEXC,NODRAW,COLORYELLOW;{滬股時顯示上證指數,深股時顯示深證(成份)指數}
{深證指數}
深證:"399001$C",NODRAW,COLORWHITE;
漲跌:"399001$C"-REF("399001$C",1),NODRAW,COLORLIGRAY;
{原系統K線}
DRAWKLINE("399001$H","399001$O","399001$L","399001$C");
{紅青立體K線}
開盤:="399001$O";
收盤:="399001$C";
最高:="399001$H";
最低:="399001$L";
STICKLINE(收盤>=開盤,收盤,開盤,3,0),COLOR000045;{紅色}
STICKLINE(收盤>=開盤,收盤,開盤,2.5,0),COLOR000065;
STICKLINE(收盤>=開盤,收盤,開盤,2,0),COLOR000085;
STICKLINE(收盤>=開盤,收盤,開盤,1.5,0),COLOR0000A5;
STICKLINE(收盤>=開盤,收盤,開盤,1,0),COLOR0000C5;
STICKLINE(收盤>=開盤,收盤,開盤,0.5,0),COLOR0000E5;
STICKLINE(收盤>=開盤,最高,最低,0,0),COLOR0000F5;
STICKLINE(收盤<開盤,收盤,開盤,3,0),COLOR656500;{青色}
STICKLINE(收盤<開盤,收盤,開盤,2.5,0),COLOR757500;
STICKLINE(收盤<開盤,收盤,開盤,2,0),COLOR858500;
STICKLINE(收盤<開盤,收盤,開盤,1.5,0),COLOR959500;
STICKLINE(收盤<開盤,收盤,開盤,1,0),COLORA5A500;
STICKLINE(收盤<開盤,收盤,開盤,0.5,0),COLORB5B500;
STICKLINE(收盤<開盤,最高,最低,0,0),COLORC5C500;
{均線}
MA5:MA("399001$C",5),COLORWHITE;
MA10:MA("399001$C",10),COLORYELLOW;
MA20:MA("399001$C",20),COLORMAGENTA;
{MA30:MA("399001$C",30),COLORCYAN;}
MA60:MA("399001$C",60),COLORGREEN;
{MA120:MA("399001$C",120),COLORBLUE;};
按照這個數據在通達信上去測試吧
B. 求大盤K線公式/指標。用於對比個股與大盤k線
在個股K線界面--右鍵--疊加品種--按提示選你要的滬市(深市)即可實現大盤與個股比較。
C. 我在通達信K線的副圖上裝了一個大盤k線圖,可是中小板和創業板的股票顯示的是深成指的大盤,能改一下嗎
不可能改變,因為你的指標已經設定為大盤線。
D. 求高手寫一通達信指標公式:要求漲跌停K線分別用不用顏色標注!左側前高劃一直線,顏色要求為紫色,加粗!
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE((C-REF(C,1))/REF(C,1)>=0.098,O,C,3,0),COLORYELLOW;
TY:=C;
AA1:=REF(TY,10)=HHV(TY,2*10+1);
B1:=FILTER(AA1,10);
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
AA2:=REF(TY,10)=LLV(TY,2*10+1);
B2:=FILTER(AA2,10);
C2:=BACKSET(B2,10+1);
LD:=FILTER(C2,10);
AB:=REF(C,BARSLAST(HD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD);
IF(T1,AB,AB),POINTDOT,COLORFF00FF,LINETHICK4;
E. 大智慧中各股k線圖與大盤k線圖放在同一面上的指標公式
不用公式,大智慧軟體本身帶有這個功能:把滑鼠游標移至界面上端,會出現一行菜單,選「圖形疊加」——「上證指數」即可。如果一直需要這種狀態,可在圖形疊加選項旁邊點擊一個鎖狀的圖標,使之處於鎖定狀態。這樣無論看哪只個股的K線和分時線,都可以同時看到疊加的大盤線。
F. 通達信指標公式(周K/15分鍾,強於大盤)
把這個指標放在窗口上,然後調整到想要的時間就行了。
指標都是在不同周期K線下通用的。
G. 求K線圖 和 VOL圖的公式源碼
主圖:
STICKLINE(C>=O,H,L,0,1), COLORred;
STICKLINE(C>=O,C,O,6,1), COLORred;
STICKLINE(C< O,H,L,0,0), ColorFFFF00;
STICKLINE(C< O,C,O,6,0),ColorFFFF00;
VOL圖
VOL,VOLSTICK;
MA1:MA(VOL,5),colorwhite;
MA2:MA(VOL,10),coloryellow;
MA3:MA(VOL,20),colorff00ff;
K線圖(Candlestick Charts)又稱蠟燭圖、日本線、陰陽線、棒線、紅黑線等,常用說法是「K線」。它是以每個分析周期的開盤價、最高價、最低價和收盤價繪制而成。
H. 誰有A股大盤K線的副圖公式
{指數副圖}
A1:="999999$OPEN";
A2:"999999$CLOSE",NODRAW;
A3:="999999$HIGH";
A4:="999999$LOW";
STICKLINE(A1<=A2,A4,A1,0.00001,0),COLORRED;
STICKLINE(A1<=A2,A1,A2,2,1),COLORRED;
STICKLINE(A1<=A2,A2,A3,0.00001,0),COLORRED;
STICKLINE(A1>A2,A4,A3,0.00001,0),COLORFEFE03;
STICKLINE(A1>A2,A1,A2,2,0),COLORFEFE03;
I. 在通達信軟體中,能將大盤的K線和個股的K線疊加在一塊嗎
在個股K線畫面,點滑鼠右鍵,出現菜單,點疊加股票,選自動疊加對應大盤,選是,即可。
J. 秒殺一切妖股指標公式源碼是什麼
如下:
{百底公式1}
{AB:=EMA(((2*C+H+L)/4-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8);
BA:=EMA(AB,5);
頂1:=REFDATE(REF(HHV(H,100),5),DATE);
底1:=REFDATE(REF(LLV(L,100),5),DATE);
中1:=((頂1)+(底1))/2;
頂:IF(AB>0 AND AB-BA<=0,頂1,頂1),COLOR00FF00;
中:IF(AB>0 AND AB-BA<=0,中1,中1),COLORWHITE;
底:IF(AB>0 AND AB-BA<=0,底1,底1),COLORYELLOW;
DRAWTEXT(ISLASTBAR,(頂),STRCAT('',CON2STR(頂,2))),COLORWHITE;
DRAWTEXT(ISLASTBAR,(中),STRCAT('',CON2STR(中,2))),COLORWHITE;
DRAWTEXT(ISLASTBAR,(底),STRCAT('',CON2STR(底,2))),COLORWHITE;
{百底公式2}
N:100 NODRAW ;
高:IF(CURRBARSCOUNT<=N,CONST(HHV(H,N)),DRAWNULL),COLORGREEN ;
低:IF(CURRBARSCOUNT<=N,CONST(LLV(L,N)),DRAWNULL),COLORYELLOW;
NOTEXT中:低+(高-低)/2 COLORWHITE;
{漲幅:(C-低)/低*100 NODRAW COLORFF00FF;}
漲幅:((C-低)/(高-低))*100 NODRAW COLORFF00FF;
漲天數:LLVBARS(L,100)COLORWHITE NODRAW;
{跌幅:((C-高)/高)*100 NODRAW COLORD9D919;};
跌幅:((C-高)/(高-低))*100 NODRAW COLORD9D919;
跌天數:HHVBARS(H,100)COLORWHITE NODRAW;
DRAWTEXT(ISLASTBAR,(高-(高-低)/50),STRCAT('',CON2STR(高-(高-低)/50,2))),COLORWHITE;
DRAWTEXT(ISLASTBAR,(NOTEXT中),STRCAT('',CON2STR(NOTEXT中,2))),COLORWHITE;
DRAWTEXT(ISLASTBAR,(低),STRCAT('',CON2STR(低,2))),COLORWHITE;
MA5:MA(C,5),COLORYELLOW;
NOTEXT5:IF((C<=MA5 OR MA5<=REF(MA5,1)),MA5,DRAWNULL),COLORFFFF00;
振幅:((高-低)/低)*100 NODRAW COLORGREEN;
均周月:INBLOCK('均周')AND INBLOCK('均月') COLORWHITE NODRAW;
逃周月:INBLOCK('逃周')AND INBLOCK('逃月')NODRAW COLORYELLOW;
{VAR6:=REF(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
DRAWTEXT(CROSS(82,VAR7),H*1.01,'高拋'),COLORFFFFFF;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);
AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);
AB:=CROSS(AK1,AK);
DRAWTEXT((AB = 1),(LOW * 0.99),'低吸'),COLORYELLOW;};
{百底距:=((C-低)/低)*100;
XG1:=BETWEEN(C,低,低*(1+0.03));
盤整天:BARSLASTCOUNT(XG1)NODRAW COLORYELLOW;}
{上漲值:=MA((H+REF(L,1))/2,3);
買進高點:=MA((H+REF(H,1))/2,3);
VAR1:=((O+H+L+2*C)/5)*2-L;
突破買入值:=MA(VAR1,3);{LSS軸點突破買入值}
{下跌值:=MA((REF(H,1)+L)/2,3);
賣出低點:=MA((REF(L,1)+L)/2,3);
VAR2:=((O+H+L+2*C)/5)*2-H;
突破賣出值:=MA(VAR2,3);
次日賣出點:=(上漲值+買進高點+突破買入值+H)/4;
次日買入點:=(下跌值+賣出低點+突破賣出值+L)/4;
均價:=(2*C+L+H/4);
買入價:IF(均價/REF(均價,1)>1,次日買入點*1.01,次日買入點)COLORWHITE NODRAW;
次低價:IF(均價/REF(均價,1)>1,次日買入點/1.0382,次日買入點)NODRAW COLORYELLOW;
賣出價:IF(均價/REF(均價,1)>1,次日賣出點*1.0191,次日賣出點)NODRAW;
必賣價:IF(均價/REF(均價,1)>1,次日賣出點*1.05,次日賣出點)COLORD9D919 NODRAW;}
{AC:=REF(C,1);
漲停K線:=IF((C-AC)*100/AC>=(10-0.01*100/AC),1,0);
跌停K線:=IF((AC-C)*100/AC>=(10-0.01*100/AC),1,0);
STICKLINE(漲停K線,OPEN,CLOSE,2.5,0),COLORYELLOW;
STICKLINE(跌停K線,OPEN,CLOSE,2.5,0),COLORED9564;}
{漲停顏色粉色,完美區分20%10%5%,創業板20200823前10%照樣變色}
BK:=IF(INBLOCK('科創板'),0.2,IF(INBLOCK('創業板'),0.2,IF(INBLOCK('ST板塊'),0.05,0.1)));
XA_1:=IF(DATE<=1200823,1,0);
STICKLINE((C>=ZTPRICE(REF(CLOSE,1),0.1) AND C=H) AND XA_1=1,O,C,3,0),COLORYELLOW;
STICKLINE((C<=DTPRICE(REF(CLOSE,1),0.1) AND C=L) AND XA_1=1,O,C,3,0),COLORED9564;
STICKLINE((C>=ZTPRICE(REF(C,1),BK) AND C=H),C,O,3,0),COLORYELLOW;
STICKLINE((C<=DTPRICE(REF(C,1),BK) AND C=L),C,O,3,0),COLORED9564;
{STICKLINE((H>=ZTPRICE(REF(C,1),BK) AND C<H) OR (H>=ZTPRICE(REF(CLOSE,1),0.1) AND C<H AND XA_1=1),H,MAX(C,O),0.1,0),COLORYELLOW;{漲停後回落}
{STICKLINE((L<=DTPRICE(REF(C,1),BK) AND C>L) OR (L<=DTPRICE(REF(CLOSE,1),0.1) AND C>L AND XA_1=1),L,MIN(C,O),0.1,0),COLORED9564;{跌停後回升}
{Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,10,0,STRCAT(Z3,GNBLOCK)),COLORWHITE;}
{DRAWTEXT_FIX(1,0.00,0.00,0,'主題投資:')COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0.00,0,EXTERNSTR(0,1))COLORYELLOW;
DRAWTEXT_FIX(1,0.00,0.06,0,'主營業務:')COLORWHITE;
DRAWTEXT_FIX(1,0.06,0.06,0,EXTERNSTR(0,2))COLORWHITE;
DRAWTEXT_FIX(1,0.00,0.12,0,'公司亮點:')COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0.12,0,EXTERNSTR(0,3))COLORYELLOW; }
{流通市值:(FINANCE(40)/100000000),NODRAW,COLORRED;}
{漲停統計}
{漲停:=CLOSE/REF(CLOSE,1)>=1.095;
ZTCS:=COUNT(漲停,BARSSINCE(漲停)+1);}
{DRAWNUMBER(漲停,HIGH*1.04,ZTCS),COLORYELLOW;}
{GZT1:=STRCAT('共漲停: ',CON2STR(ZTCS,0));
GZT2:=STRCAT(GZT1,'次');
SSTS1:=STRCAT('上市: ',CON2STR(FINANCE(42),0));
SSTS2:=STRCAT(SSTS1,'天');
NTZZT1:=STRCAT('距今:',CON2STR(CONST(BARSLAST(漲停)),0));
NTZZT2:=STRCAT(NTZZT1,'天有漲停');
ZTTJ1:=STRCAT(SSTS2,GZT2);
ZTTJ2:=STRCAT(ZTTJ1,NTZZT2);
ZTTJ:=STRCAT('漲停統計:',ZTTJ2);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.18,0,ZTTJ),COLORWHITE;}。