Ⅰ 閫氳揪淇℃寚鏍囧叕寮忔簮鐮
閫氳揪淇℃寚鏍囧叕寮忔簮鐮侊細
A:=(3*C+H+L+O)/6;
XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2.382;
YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32))/4;
YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A,2),32))/4;
SMH:EMA(YCZXH,21),COLOR004000;
SML:EMA(YCZXL,21),COLOR004000;
SMJ:(SML+SMH)/2,COLOR004000;
PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*REF(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;
A1:=EMA(PJ,3),COLOR004000;
A2:=EMA(PJ,5),COLOR004000;
A3:=EMA(PJ,7),COLOR004000;
A4:=EMA(PJ,9),COLOR004000;
A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);
ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;
KX1:=(CLOSE>=OPEN)ANDZD>=50;
KX2:=(CLOSE
KX3:=(CLOSE>=OPEN)ANDZD<50;
KX4:=(CLOSE IF(A5 IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2; IF(A4 IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1; IF(A3 IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1; IF(A2 IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1; IF(A1 IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1; STICKLINE(KX1,C,O,4,1),COLOR4440FF; STICKLINE(KX1,C,H,0.5,1),COLOR4440FF; STICKLINE(KX1,O,L,0.5,1),COLOR4440FF; STICKLINE(KX2,C,O,4,0),COLOR4440FF; STICKLINE(KX2,O,H,0.5,0),COLOR4440FF; STICKLINE(KX2,C,L,0.5,0),COLOR4440FF; STICKLINE(KX3,C,O,4,1),COLORFFFF33; STICKLINE(KX3,C,H,0.5,1),COLORFFFF33; STICKLINE(KX3,O,L,0.5,1),COLORFFFF33; STICKLINE(KX4,C,O,4,0),COLORFFFF33; STICKLINE(KX4,O,H,0.5,0),COLORFFFF33; STICKLINE(KX4,C,L,0.5,0),COLORFFFF33; Ⅱ 【通達信】KDJ指標畫線源碼,沒難度。求幫寫,
{KDJ} Ⅲ 求 通達信 高手 編寫 主圖 高點和高點 畫線公式 低點和低點畫線公式 通達信可以編寫兩個高點連線並且延長,兩個低點連線並且延長,也可以顯示成虛線,但這個看起來應該比較亂這點要注意,我沒有你的源碼,那就找一個高點指標公式是一個效果,高點連線顯示黃色虛線,低點連線顯示綠色虛線。 效果如下圖。 Ⅳ 精選通達信主圖指標之最佳畫線(源碼分享) 精選通達信主圖最佳畫線源碼分享,解析關鍵指標配置。 趨勢射線配置如下: 上述配置通過計算歷史最高價、最低價與當前價格之間的關系,形成多條趨勢線,用於輔助分析趨勢強度。 關鍵點識別邏輯如下: 最後的VAR1111至VAR4444部分使用了比較與交叉邏輯,通過計算歷史最高價與最低價,並與當前收盤價進行比較,確定壓力位與支撐位,以輔助交易決策。 以上代碼展示了通達信主圖的高級畫線技巧,通過綜合多條趨勢線與關鍵點識別,為投資者提供了直觀且豐富的市場分析工具。在實際應用中,需結合具體市場情況和交易策略進行調整與優化。 Ⅳ 通達信 wvad指標源碼 N:=24; M:=6; WVAD:SUM((CLOSE-OPEN)/(HIGH-LOW)*VOL,N)/10000; MAWVAD:MA(WVAD,M); wvad指標代碼如上, 顯示效果圖如下 Ⅵ 求通達信畫線公式
這個畫線公式需要源碼,以下是通達信畫線指標:
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK2;
K:SMA(RSV,3,1),LINETHICK1;
D:SMA(K,3,1),LINETHICK2;
J:3*K-2*D,LINETHICK1,COLORRED;
變色:IF(BACKSET(K>50,K>50),K,DRAWNULL),LINETHICK2,COLORGREEN;
參數設置
AA:=REF(H,N)=HHV(H,2*N+1);{N日前的最高價}
QY:=BACKSET(AA,N+1);{周期記錄}
CC:=FILTER(QY,N) AND H=HHV(H,N+1);{周期過濾 最高價最高值}
DDD:=BARSLAST(CC),NODRAW;{CC條件成立的天數}
GDTS:=IF(CC,CURRBARSCOUNT,0),NODRAW;{CC成立 返回交易日的周}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS),NODRAW;{DDD成立,返回DDD日前的GDTS,否則返回GDTS}
GDCS1:=CONST(DINGBUTS),NODRAW;{取DINGBUTS值}
GDCS13:=CONST(REF(HIGH,GDCS1-1));
DINGBUTS1:=REF(DINGBUTS,DDD+1),NODRAW;
GDCS2:=CONST(DINGBUTS1);
GDCS23:=CONST(REF(HIGH,DINGBUTS1-1));
XG1:=BACKSET(ISLASTBAR,GDCS1);{ ISLASTBAR 判斷是否為最後一個周期}
XG2:=BACKSET(ISLASTBAR,DINGBUTS1);
STICKLINE(XG2,GDCS23,GDCS23,0.5,1),COLORWHITE,LINETHICK3;{白線}
STICKLINE(XG1,GDCS13,GDCS13,0.5,1),COLORYELLOW,LINETHICK3;{黃線}
{谷線}
AA1:=REF(L,N1)=LLV(L,2*N1+1);
QY1:=BACKSET(AA1,N1+1);
CC1:=FILTER(QY1,N1) AND L=LLV(L,N1+1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
DDCS13:=CONST(REF(L,DDCS1-1));
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
DDCS23:=CONST(REF(L,DDTS2-1));
XD1:=BACKSET(ISLASTBAR,DDCS1);
XD2:=BACKSET(ISLASTBAR,DDTS2);
STICKLINE(XD2,DDCS23,DDCS23,0.5,1),COLORMAGENTA,LINETHICK3;
STICKLINE(XD1,DDCS13,DDCS13,0.5,1),COLORCYAN,LINETHICK3;
{壓力支撐}
M:=INTPART(3*N2/5);{壓力線取}
AAA:=REF(H,M)=HHV(H,2*M+1);
QYY:=BACKSET(AAA,M+1);
CCC:=FILTER(QYY,M) AND H=HHV(H,M+1);
DDDD:=BARSLAST(CCC),NODRAW;
GDTSS:=IF(CCC,CURRBARSCOUNT,0),NODRAW;
DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS),NODRAW;
GDCS11:=CONST(DINGBUTSS),NODRAW;
DINGBUTS11:REF(DINGBUTSS,DDDD+1),NODRAW;
GDCS22:=CONST(DINGBUTS11);
高點壓力M:DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1),COLORBB8000,LINETHICK2;
W:=INTPART(3*N3/5);
AA11:=REF(L,W)=LLV(L,2*W+1);
QY11:=BACKSET(AA11,W+1);
CC11:=FILTER(QY11,W) AND L=LLV(L,W+1);
DD11:=BARSLAST(CC11);
DDTSS:=IF(CC11,CURRBARSCOUNT,0);
DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS);
DDCS11:=CONST(DDTS11);
DDTS22:=REF(DDTS11,DD11+1);
DDCS22:=CONST(DDTS22);
低點支撐M:DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1),COLORMAGENTA,LINETHICK2;
{
ZGSTAR:=(高點壓力M+低點支撐M)/2;
ZGEND:=CONST((高點壓力M+低點支撐M)/2);
STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
中軌:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK2;
}
{DRAWKLINE(H,O,L,C);}
{主圖中的倍量K線如何變黃色}
V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);
STICKLINE(V2V,O,C,-1,0),COLORYELLOW;
{漲停}
ZT:=C/REF(C,1)>1.097;
STICKLINE(ZT,O,C,-1,0),COLORMAGENTA;
ZZ:=(O+H+L)/3;
黃金買點:EMA(ZZ,7),COLORGREEN,LINETHICK1;
TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
TT1:=REF(EMA(TT2,3),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;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
BB1:=L<AA1*0.9;
EE1:=VOL<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
F:=100*(C-REF(C,1))/REF(C,1);
P1:=IF(C<REF(O,1) AND F<0,1,0);
P2:=IF(C<REF(O,2) AND F<0,1,0);
TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;
TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;
Z1:=MA(C,13);
ZX:=REF(Z1,13/2+1);
DRAWICON(CROSS(ZX,C),H*1.01,2);
DRAWTEXT(CROSS(CLOSE,TT1)AND J<55,LOW,'買'),COLORRED;
DRAWTEXT(CROSS(88,RSI),HIGH * 1.02,'短頂'),COLOR00FFFF;
STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;
A1:=EMA(C,14)COLORWHITE,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
出擊:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK1;
休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK1;
STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW;
STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN;
STICKLINE(CROSS(A1X,0)OR CROSS(0,A1X),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,2,0)COLORWHITE;
STICKLINE(ISLASTBAR,REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,5,0)COLORWHITE;