❶ 求 通達信 高手 編寫 主圖 高點和高點 畫線公式 低點和低點畫線公式
這樣的數學線條繪畫,首先最重要的一點就是要抓住題目的要求,以及數學線條使用的規律和方法,這樣才可以達到更理想的繪畫效果,讓整體的計算更高效率更准確。
❷ 通達信超贊的主圖指標公式是怎樣的
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0,0.03,0,EXTERNSTR(0,3)),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,EXTERNSTR(0,6)),COLORLIBLUE;
DRAWTEXT_FIX(ISLASTBAR,0,0.09,0,EXTERNSTR(0,12)),COLORLIGREEN;{老王}
DRAWTEXT_FIX(ISLASTBAR,0,0.15,0,FGBLOCK),COLORLIMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,EXTERNSTR(0,1)),COLORYELLOW;{融勝}
主力成本線:EMA(COST(9),250),COLORBROWN,DOTLINE;
{牛馬線買點公式升級版}
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛線:(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,COLORRED;
馬線:MA(牛線,8),COLORWHITE;
DRAWICON( FILTER(CROSS(牛線,馬線),20),馬線-0.002 ,1);
DRAWTEXT(CROSS(牛線,馬線),LOW*0.984,'買'),COLORRED,LINETHICK2;
止損價:H*0.95,LINETHICK0.5,COLORRED;
莊家:(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,COLORRED;
IF(莊家>=REF(莊家,1),莊家,DRAWNULL),COLORRED,LINETHICK4;
IF(莊家<=REF(莊家,1),莊家,DRAWNULL),COLORGREEN,LINETHICK2;
DRAWBAND(牛線,RGB(255,87,22),馬線,RGB(0,30,255));
MA60:MA(CLOSE,60),COLORGRAY;
N1:=10;
TK:=CONST(HHVBARS(V,10)),COLOR0000FF,LINETHICK1;
量能平台:IF(CURRBARSCOUNT<=N1+3,CONST(IF(TK=0,C,REF(C,TK))),DRAWNULL),COLORGRAY,LINETHICK1;
NOTEXT_新量能點:IF(CURRBARSCOUNT=TK+1,量能平台,DRAWNULL),CIRCLEDOT,COLORFFFFFF,LINETHICK9;
DRAWTEXT(ISLASTBAR,量能平台,'量能平台'),COLORGRAY;
{穩漲}
紅軌道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;
軌道:MA(MA(CLOSE,3),3),COLOR32CD32,LINETHICK2;
NOTEXT_升:IF(紅軌道>=軌道,軌道,DRAWNULL),COLORMAGENTA,LINETHICK2;
機構:(L2_VOL(0,0) - L2_VOL(0,1))*10000/FINANCE(7),NODRAW,COLORRED;
大戶:(L2_VOL(1,0) - L2_VOL(1,1))*10000/FINANCE(7),NODRAW,COLORMAGENTA;
主力:機構+大戶,NODRAW,COLORYELLOW;
STICKLINE(主力>0,O,C,1.5,1),COLORRED;
STICKLINE(主力<0,O,C,1.5,1),COLORCYAN;
STICKLINE(大戶>0,O,C,1,0),COLORMAGENTA;
STICKLINE(大戶<0,O,C,1,0),COLORGREEN;
STICKLINE(機構>0 AND 大戶>0,O,(O+C)/2,1,0),COLORRED;
STICKLINE(機構<0 AND 大戶>0,C,(O+C)/2,1,0),COLORCYAN;
STICKLINE(機構>0 AND 大戶<0,O,(O+C)/2,1,0)COLORMAGENTA;
STICKLINE(機構<0 AND 大戶<0,C,O,1,0)COLORLICYAN;
累計:=SUM(主力,30),COLORMAGENTA;
均值:=EMA(累計,MIN(10,30)),COLORWHITE;
{紅}
STICKLINE(CROSS(累計,均值),H,L,0,0),COLORRED,LINETHICK1;
STICKLINE(CROSS(累計,均值),CLOSE,OPEN,1.4,0),COLOR000088;
STICKLINE(CROSS(累計,均值),CLOSE,OPEN,1,0),COLOR0000BB;
STICKLINE(CROSS(累計,均值),CLOSE,OPEN,0.6,0),COLOR0000DD;
STICKLINE(CROSS(累計,均值),CLOSE,OPEN,0,0),COLOR0000FF;
{藍}
STICKLINE(CROSS(均值,累計),H,L,0,0),COLORFF8800,LINETHICK1;
STICKLINE(CROSS(均值,累計),CLOSE,OPEN,1.4,0),COLORBB4400;
STICKLINE(CROSS(均值,累計),CLOSE,OPEN,1,0),COLORCC5500;
STICKLINE(CROSS(均值,累計),CLOSE,OPEN,0.6,0),COLORDD6600;
STICKLINE(CROSS(均值,累計),CLOSE,OPEN,0,0),COLOREE7700;
{高低點定位}
G0:=(XMA(XMA(H,30),30)-XMA(XMA(L,30),30))+XMA(XMA(H,30),30);
D0:=XMA(XMA(L,30),30)-(XMA(XMA(H,30),30)-XMA(XMA(L,30),30));
G01:=(XMA(XMA(H,30),30)-XMA(XMA(L,30),30))*0.5+XMA(XMA(H,30),30);
D01:=XMA(XMA(L,30),30)-(XMA(XMA(H,30),30)-XMA(XMA(L,30),30))*0.5;
GO0:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3+XMA(XMA(H,60),60);
DO0:=XMA(XMA(L,60),60)-(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3;
STICKLINE(CURRBARSCOUNT=1,G0,G0,100,5),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1,D0,D0,100,5),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=1,GO0,GO0,100,5),COLORLIBLUE;
STICKLINE(CURRBARSCOUNT=1,DO0,DO0,100,5),COLORRED;
DRAWTEXT(ISLASTBAR,G0,'賣'),COLORGREEN;
DRAWTEXT(ISLASTBAR,D0,'買'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,GO0,'頂'),COLORLIBLUE;
DRAWTEXT(ISLASTBAR,DO0,'底'),COLORRED;
由於公式字元過多,這里限制數量無法發出,
❸ 通達信波段顯示高低點,請問誰有這個通達信波段的指標公式
VAR2:=(HIGH+LOW+CLOSE*2)/4;
VAR3:=EMA(VAR2,21);
VAR4:=STD(VAR2,21);
VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;
VAR6:=(EMA(VAR5,5)-25)*1.56;
AK: EMA(VAR6,2)*1.22;
AD1: EMA(AK,2);
AJ: 3*AK-2*AD1;
AA:100;
BB:0;
CC:80;
買進: IF(CROSS(AK,AD1),58,20);
賣出: IF(CROSS(AD1,AK),58,20);
❹ 股票高低點測算方法
在股票的最高點是沒有最有效的測算方法必須要通過公司的業績來進行計算。
❺ 求大智慧高低點連線的指標公式,要求:
{波浪主圖 大智慧、通達信已測試通過}
GET:ZIG(3,5),COLORRED;
PL5:=ZIG(3,5);
EN1:=PL5>REF(PL5,1) AND REF(PL5,1)<=REF(PL5,2) AND REF(PL5,2)<=REF(PL5,3);
EX1:=PL5<REF(PL5,1) AND REF(PL5,1)>=REF(PL5,2) AND REF(PL5,2)>=REF(PL5,3);
PL10:=ZIG(3,10);
EN2:=PL10>REF(PL10,1) AND REF(PL10,1)<=REF(PL10,2) AND REF(PL10,2)<=REF(PL10,3);
EX2:=PL10<REF(PL10,1) AND REF(PL10,1)>=REF(PL10,2) AND REF(PL10,2)>=REF(PL10,3);
PL20:=ZIG(3,20);
EN3:=PL20>REF(PL20,1) AND REF(PL20,1)<=REF(PL20,2) AND REF(PL20,2)<=REF(PL20,3);
EX3:=PL20<REF(PL20,1) AND REF(PL20,1)>=REF(PL20,2) AND REF(PL20,2)>=REF(PL20,3);
走強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);
DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'一'),COLORFFFF00;
DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'二'),COLORFFFF00;
DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'三'),COLORFFFF00;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,L*0.9,'Ⅰ'),COLORRED;
DRAWTEXT(EX2 AND DTJD10=2,H*0.9,'Ⅱ'),COLORRED;
DRAWTEXT(EN3 AND ZTJZ10=1,L*0.9,'Ⅲ'),COLORRED;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.06,'①'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.94,'②'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.06,'③'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.94,'④'),LINETHICK3,COLOR00FFFF;
❻ 通達信 怎樣自動標志高低點價格
這個是需要用到主圖公式的,自動出來的只有頁面顯示的K線一個最高和一個最低。
下面的公式自己去創建一個主圖用的就可以顯示波段的高低點價格了。
A1:=REF(H,7)=HHV(H,2*7+1);
B1:=FILTER(A1,7);
C1:=BACKSET(B1,7+1);
D1:FILTER(C1,7),NODRAW;{高點}
A2:=REF(L,7)=LLV(L,2*7+1);
B2:=FILTER(A2,7);
C2:=BACKSET(B2,7+1);
D2:FILTER(C2,7),NODRAW;{低點}
E1:=(REF(LLV(L,2*7),1)+REF(HHV(H,2*7),1))/2;
E2:=(H+L)/2;{高低點出現在同一K線上時可作取捨}
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;
L1:=(D2 AND NOT(D1 AND E1<E2));
H2:=D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1),LINETHICK0;{過濾後低點}
L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1),LINETHICK0;{過濾後高點}
R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
S1:R1>REF(R1,1),NODRAW; {前一高}
T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
U1:=T1>REF(T1,1); {前一低}
R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);
S2:=R2>REF(R2,1); {前二高}
T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);
U2:=T2>REF(T2,1); {前二低}
T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2);
U3:=T3>REF(T3,1); {前三低}
T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2);
U4:=T4>REF(T4,1); {前四低}
R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2);
S3:=R3>REF(R3,1); {前三高}
R4:=BACKSET(S3,REF(BARSLAST(HD),1)+2);
S4:=R4>REF(R4,1); {前四高}
壓力1:=DRAWLINE(S2,H,S1,H,1),COLORMAGENTA,LINETHICK1;
壓力2:=DRAWLINE(S3,H,S2,H,1),COLORFF8000;
壓力3:=DRAWLINE(S4,H,S3,H,1),COLOR0000FF;
支撐1:=DRAWLINE(U2,L,U1,L,1),COLOR8FBC8F,LINETHICK1;
支撐2:=DRAWLINE(U3,L,U2,L,1),COLOR99CC32;
支撐3:=DRAWLINE(U4,L,U3,L,1),COLOR00FF7F;
{DRAWICON(S2,H*1.01,10);
DRAWICON(S3,H*1.01,10);}
DRAWNUMBER(S2,H*1.024,H),COLORWHITE;
DRAWNUMBER(S1,H*1.024,H),COLORWHITE;
DRAWNUMBER(S3,H*1.024,H),COLORWHITE;
DRAWNUMBER(S4,H*1.024,H),COLORWHITE;
DRAWNUMBER(U1,L*0.99,L),COLORGRAY;
DRAWNUMBER(U2,L*0.99,L),COLORGRAY;
DRAWNUMBER(U3,L*0.99,L),COLORGRAY;
DRAWICON(U1,L*0.99,11);
高一:DRAWLINE(S1,H,REF(S1,1),REF(H,1),1)COLORRED,DOTLINE;
高二:DRAWLINE(S2,H,REF(S2,1),REF(H,1),1)COLORMAGENTA,DOTLINE;
高三:=DRAWLINE(S3,H,REF(S3,1),REF(H,1),1)COLORLIRED,DOTLINE;
低一:DRAWLINE(U1,L,REF(U1,1),REF(L,1),1)COLORGREEN,DOTLINE;
低二:DRAWLINE(U2,L,REF(U2,1),REF(L,1),1)COLORLIBLUE,DOTLINE;
低三:=DRAWLINE(U3,L,REF(U3,1),REF(L,1),1)COLORLICYAN,DOTLINE;
❼ k線高低點標注如何設置
K線上默認已經在最高點和最低點畫上了小橫線。
如果你是要顯示波段的高低點,可以點開畫線工具,點下小齒輪,把「風格/智能設置」中的顯示波段高價和低價打鉤
❽ 股票公式錯誤(當前公式 : 高低點 (指標畫線公式)
{顯示高低點}
頂周期:=TOPRANGE(H);
底周期:=LOWRANGE(L);
上內:=LLVBARS(H,頂周期);
上外:=LLVBARS(L,頂周期);
下內:=HHVBARS(L,底周期);
下外:=HHVBARS(H,底周期);
上力度:=HHV(L,上內+1)>LLV(H,上內+1);
下力度:=HHV(L,下內+1)>LLV(H,下內+1);
上包含:=COUNT(L>=REF(L,1),上外)>2 AND COUNT(H>=REF(H,1),上內)>2;
下包含:=COUNT(H<=REF(H,1),下外)>2 AND COUNT(L<=REF(L,1),下內)>2;
頂0:=頂周期 AND 上力度 AND 上包含 AND 上外>3;
底0:=底周期 AND 下力度 AND 下包含 AND 下外>3;
頂分天數:=BARSLAST(頂0);
底分天數:=BARSLAST(底0);
含中間K線:=IF(頂分天數=0,底分天數,頂分天數)>=3;
頂:=頂0 AND 含中間K線 AND H=HHV(H,BARSLAST(底0));
底:=底0 AND 含中間K線 AND L=LLV(L,BARSLAST(頂0));
NOTEXT上筆劃線: DRAWLINE(底,L,頂,H,0),COLORLIRED,LINETHICK1;
NOTEXT下筆劃線: DRAWLINE(頂,H,底,L,0),COLORLIGREEN,LINETHICK1;
分界點:=NOTEXT上筆劃線 AND NOTEXT下筆劃線;
位置調整:=
IF(PERIOD=11,0.02,{年}
IF(PERIOD=10,0.02,{季}
IF(PERIOD=9,0.02, {多日}
IF(PERIOD=8,0.001,{多分鍾}
IF(PERIOD=7,0.02, {月}
IF(PERIOD=6,0.01, {周}
IF(PERIOD=5,0.005, {日}
IF(PERIOD=4,0.002,{60F}
IF(PERIOD=3,0.001,{30F}
IF(PERIOD=2,0.001,{15F}
IF(PERIOD=1,0.0003,{5F}
IF(PERIOD=0,0.0002,{1F}0))))))))))));
DRAWNUMBER(分界點 AND 頂,H+H*位置調整,H),COLORLIGREEN;
DRAWNUMBER(分界點 AND 底,L,L),COLORLIMAGENTA;
{MACD常用}
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORGREEN;
DEA:EMA(DIF,9),COLORMAGENTA;
MACD:2*(DIF-DEA),LINETHICK0;
BB:=DIF>=REF(DIF,1);
IF(BB,DIF,DRAWNULL),COLORGREEN,LINETHICK2;
AA:=DEA>=REF(DEA,1);
IF(AA,DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,MACD,0,2.5,0),COLOR0000AA;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,MACD,0,1.5,0),COLOR0000CC;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,MACD,0,1,0),COLOR0000DD;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,MACD,0,2.5,0),COLOR0000AA;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,MACD,0,1.5,0),COLOR0077FF;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,MACD,0,1,0),COLOR00FFFF;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,MACD,0,3,0),COLORFF9900;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,MACD,0,2,0),COLORFFBB00;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,MACD,0,1,0),COLORFFFF00;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,MACD,0,3,0),COLORFF0000;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,MACD,0,2,0),COLORFF4400;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,MACD,0,1,0),COLORFF8800;
❾ 通達信怎麼顯示股價高低點
通達信要想顯示股價的高低點,需要編寫公式,並且有具體的高低點判斷條件,編寫好公式後就可以顯示出高低點,例如下圖的高低點指標提示。通過調整參數還可以改面高低點的位置。
❿ 通達信波段高低點顯示公式,將歷史的每個波段的高低點都在主圖上顯示。最好能加上每個波段的振幅提示。
首先你要確定你自己判斷高低點的條件,這個條件跟時間有關,每個人都會有自己不同的回方法,例如用兩答根均線就可以標注每次高低點位置,與振幅,但均線參數每個人的選擇會不同,所以,就會有差異.
例如圖中的指標就是根據均線判斷的高低點位置,並計算高低點之間的振幅.