1. 編寫一個通達信股票主圖公式
可以編寫這樣的主圖公式。
你說的倍量是今日量是昨日量的兩倍以上。是不跌破前面倍量柱k線的實體嗎。
從倍量柱後三天內實體k線最低位置向前畫到前面倍量柱結束,向後畫線畫到下一根倍量柱條件成立結束。
如果是效果如下圖。
2. 求通達信 在主圖上顯示該股票所屬的各個板塊的名稱和當前的板塊漲幅的公式!感謝!
在通達信主圖的左下角有:「關聯報價」四個字,點一下,可以看到該股票所屬的各個板塊信息。雖然看不到板塊的漲幅,但確實是一個非常實用的功能。
3. 求通達信公式,要求公式能自動在個股的「K線主圖」中標示出歷史走勢中漲幅大的日K線,分三檔。如下:
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
X:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(X>5 AND X<7,L,H,0,0),COLORYELLOW;
STICKLINE(X>5 AND X<7,O,C,3,1),COLORYELLOW;
STICKLINE(X>7 AND X<9.85,L,H,0,0),COLOR0088FF;
STICKLINE(X>7 AND X<9.85,O,C,3,1),COLOR0088FF;
STICKLINE(X>9.85,L,H,0,0),COLORMAGENTA;
STICKLINE(X>9.85,O,C,3,1),COLORMAGENTA;
{請設為:主圖疊加}
4. 有沒有好用的通達信指標主圖副圖指標公式
太復雜的指標我不會,紅買綠賣,配合atr通道止盈止損
這是我自己一直在用的主圖副圖公式,感覺非常不錯,分享給大家,這是原碼:幅圖VAR1:=LWINNER(5,CLOSE)*100;VAR2:=LWINNER(10,CLOSE)*100;VAR3:=LWINNER(20,CLOSE)*100;VAR4:=LWINNER(30,CLOSE)*100;VAR5:=LWINNER(60,CLOSE)*100;VAR6:=LWINNER(100,CLOSE)*100;X:=REF((VAR1+VAR2+VAR3+VAR4+VAR5+VAR6)/6,1);五日:VAR1,STICK,LINETHICK2,COLORRED;十日:VAR2,STICK,LINETHICK7,COLORYELLOW;二十日:VAR3,STICK,LINETHICK6,COLORD9D919;三十日:VAR4,STICK,LINETHICK5,COLORBLUE;六十日:VAR5,STICK,LINETHICK4,COLORGREEN;一百日:VAR6,STICK,LINETHICK1,COLORWHITE;平均成本:MA(X,3),COLORBLUE;
主圖;
MA1:MA(CLOSE,5);MA2:MA(CLOSE,10);MA3:MA(CLOSE,30);MA4:MA(CLOSE,60);指標:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1)COLORMAGENTA,LINETHICK2;分:=CONST(LLV(指標,90)); 百:=CONST(HHV(指標,90))-分;基點:=CONST(LLV(L,90)); 基:=CONST(HHV(H,90))-基點;CC比:=(指標-分)/百; XCX:=CC比*基+基點;QW:XCX;{五彎十}
C5:=MA(C,5);C10:=MA(C,10);C20:=MA(C,20);V6:=MA(V,5);
A1:=(C20>REF(C20,1)) AND (REF(C20,1)>REF(C20,2));A2:=(C10>REF(C10,1)) AND (REF(C10,1)>REF(C10,2));A3:=(C<=1.03*C5) AND (C>=0.97*C10);A4:=(100*ABS(C5-C10)<=3*C10);{20日均線向上且收盤股價離5天線或十天線不能過遠,5天線離十天線也不宜過遠,過遠則大形態調整時間可能不夠}
A5:=(REF(V6,2)>=REF(V6,1)) AND (REF(V6,3)>=REF(V6,2));{成交量遞減}
T1:=REF(C5,1)-REF(C10,1);T2:=REF(C5,2)-REF(C10,2);T3:=REF(C5,3)-REF(C10,3);A6:=(T3>=T2) AND (T2>=T1);{5天線彎向十天線}
YYY:=DYNAINFO(4)>0.03 AND A1 AND A2 AND A3 AND A4 AND A5 AND A6;五彎十:IF(YYY,QW,DRAWNULL)COLORRED,LINETHICK2;
後續有好用的公式會繼續分享給大家,歡迎大家參考評論交流!
5. 編寫一個通達信股票主圖公式
首先我沒明白提問者說的倍量是什麼條件.
下面圖中的倍量就是簡單的今日量是昨日量2倍以上.
這個公式條件不復雜.但畫線要求應該說是相當有一定難度了.
所以僅上傳圖片為大家提供一個參考而已
就不放出源碼公式了.
6. 求這2個股票通達信主圖指標的公式
{依葫蘆畫瓢----是不是這個?}
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
STICKLINE(A>B,A,B,5,0),COLORYELLOW;
STICKLINE(A<B,A,B,5,0),COLORBLUE;
M1:=EMA(CLOSE,3),COLORGREEN;
M2:EMA(CLOSE,8)COLORGREEN;
M3:EMA(M2,13),COLORRED;
M4:EMA(M2,55),COLORFFF000;
VAR1:=EMA(M3,55);
M5:EMA(M4,81), COLORRED,LINETHICK2;
VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);
DRAWTEXT(CROSS(VAR2,VAR3),HIGH*1.02,'↓賣'), COLORFFFFFF;
VAR4:=REF(CLOSE,1);
VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;
VAR6:=CROSS(70,VAR5);
DRAWTEXT(VAR6,HIGH*1.02,'↓賣'), COLORFFFFFF;
A7:=(2*C+H+L)/4;
VAR10:=LLV(LOW,34);
VAR11:=HHV(HIGH,34);
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND VOL>=1.5*MA(VOL,5) AND
COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'●買進') ,COLORRED;
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND
COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND
REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
OPEN>REF(CLOSE,1),1,0),LOW,'●買進'), COLORRED;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'●抄底'),COLORRED;
DRAWTEXT(CROSS(C,B),L*0.98,'★'),COLORYELLOW;
7. 編寫一個通達信股票主圖公式
這個公式編寫條件真復雜。
8. 通達信超贊的主圖指標公式是怎樣的
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;
由於公式字元過多,這里限制數量無法發出,
9. 求通達信主圖指標公式
X0:=BACKSET(REF(C,3)<MA(C,3) AND REF(V,3)>MA(V,3) AND REF(C/REF(C,1)>1.03 AND C>O,3),4);
X1:=X0 AND REF(X0,1)=0;
STICKLINE(X1,H,C,0,0),COLORFF0080;
STICKLINE(X1,O,C,3,0),COLORFF0080;
STICKLINE(X1,L,O,0,0),COLORFF0080;
X3:=BACKSET(LLV(L,3)>REF(C,3) AND REF(X1,3),4);
STICKLINE(X3,REF(C,BARSLAST(X1)),REF(C,BARSLAST(X1)),5,0),COLORFF0080;
X5:=BACKSET(LLV(L,3)<REF(O,3) AND REF(X1,3),4);
STICKLINE(X5,REF(L,BARSLAST(X1)),REF(L,BARSLAST(X1)),5,0),COLORFF0080;
10. 通達信 主圖顯示板塊的指標
如果要想在主圖上顯示板塊(或行業)提示字樣,請按下面公式樣本在你的常用主圖公式的後面照樣編寫即可,因板塊行業較多,只舉例了幾個板塊(房地產、有色金屬、煤炭行業、金融行業、鋼鐵行業)。
下面公式是在均價線主圖後補充的板塊(或行業)提示公式。
{均價線主圖公式}
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,60);
MA5:MA(CLOSE,120);
{以下板塊或行業提示}
A1:=IF(INBLOCK('房地產'),1,0);
A2:=IF(INBLOCK('有色金屬'),1,0);
A3:=IF(INBLOCK('煤炭行業'),1,0);
A4:=IF(INBLOCK('金融行業'),1,0);
A5:=IF(INBLOCK('鋼鐵行業'),1,0);
D:=CURRBARSCOUNT;
KD1:DRAWTEXT(A1=1 AND D=3,H*1.1,'房地產')COLORYELLOW;
KD2:DRAWTEXT(A2=1 AND D=3,H*1.1,'有色金屬')COLORYELLOW;
KD3:DRAWTEXT(A3=1 AND D=3,H*1.1,'煤炭行業')COLORYELLOW;
KD4:DRAWTEXT(A4=1 AND D=3,H*1.1,'金融行業')COLORYELLOW;
KD5:DRAWTEXT(A5=1 AND D=3,H*1.1,'鋼鐵行業')COLORYELLOW;
{可按上面公式格式添加其它的板塊或行業}