以下是专版通达信真正指标公式源码和使用说明
主力专版通达信真正顶底指标公式源码:
{真实顶底}
D1:=((SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1))/(SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)))*(100);
D2:=((SMA(MAX(OPEN-REF(OPEN,1),0),6,1))/(SMA(ABS(OPEN-REF(OPEN,1)),6,1)))*(100);
D3:=((SMA(MAX(HIGH-REF(HIGH,1),0),6,1))/(SMA(ABS(HIGH-REF(HIGH,1)),6,1)))*(100);
D4:=((SMA(MAX(LOW-REF(LOW,1),0),6,1))/(SMA(ABS(LOW-REF(LOW,1)),6,1)))*(100);
真底:0,CoLor0077CC;
底部:10,CoLorFF00FF;
顶部:90,CoLor00FF00;
80,CoLorFFFF00;
EMA(D1,13),CoLor0000FF;
IF((CROSS(D3,90)or(D1 90)),100,90),CoLor00FF00;
IF((D4 10),75,90),CoLorAAAA00;
STICKLINE((D1 =90),0,5,5,0),CoLor00FFFF;
STICKLINE((D4 10),80,90,0,0),CoLor00BBFF;
STICKLINE((D4 10)AND(CLOSE OPEN),85,90,5,0),CoLorFFFF00;
STICKLINE((D1 =D2),D1,D2,5,0),CoLor0077CC;
STICKLINE((D1 =D2),D3,D1,0,0),CoLor00BBFF;
STICKLINE((D1 =D2),D4,D2,0,0),CoLor00BBFF;
STICKLINE((D1 D2),D1,D2,5,0),CoLor00AA00;
STICKLINE((D1 D2),D3,D2,0,0),CoLor00EE00;
STICKLINE((D1 D2),D4,D1,0,0),CoLor00EE00;
真正顶底指标:=EMA(HHV(HIGH,500),21);
通达信:=EMA(HHV(HIGH,250),21);
ewssdd3:=EMA(HHV(HIGH,90),21);
ewssdd4:=EMA(LLV(LOW,500),21);
ewssdd5:=EMA(LLV(LOW,250),21);
ewssdd6:=EMA(LLV(LOW,90),21);
ewssdd7:=EMA((ewssdd4*0.96+ewssdd5*0.96+ewssdd6*0.96+真正顶底指标*0.558+通达信*0.558+ewssdd3*0.558)/6,21);
ewssdd8:=EMA((ewssdd4*1.25+ewssdd5*1.23+ewssdd6*1.2+真正顶底指标*0.55+通达信*0.55+ewssdd3*0.65)/6,21);
ewssdd9:=EMA((ewssdd4*1.3+ewssdd5*1.3+ewssdd6*1.3+真正顶底指标*0.68+通达信*0.68+ewssdd3*0.68)/6,21);
ewssddA:=EMA((ewssdd7*3+ewssdd8*2+ewssdd9)/6*1.738,21);
ewssddB:=REF(LOW,1);
ewssddC:=SMA(ABS(LOW-ewssddB),3,1)/SMA(MAX(LOW-ewssddB,0),3,1)*100;
ewssddD:=EMA(IF(CLOSE*1.35 =ewssddA,ewssddC*10,ewssddC/10),3);
ewssddE:=LLV(LOW,30);
ewssddF:=HHV(ewssddD,30);
ewssdd10:=IF(MA(CLOSE,58),1,0);
vseww1:=(EMA(IF(LOW =ewssddE,(ewssddD+ewssddF*2)/2,0),3)/618*ewssdd10);
BB:=vseww1 REF(HHV(vseww1,60),1);
CC:=HHV(vseww1,60);
vseww2:=FILTER(vseww1 10,1);
vseww3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
vseww4:=IF(CLOSE OPEN,vseww3*(HIGH-LOW),IF(CLOSE OPEN,vseww3*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
vseww5:=IF(CLOSE OPEN,0-vseww3*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-vseww3*(HIGH-LOW),0-VOL/2));
vseww8:=(vseww4-(-vseww5))/vseww4;
STICKLINE(vseww2 0ANDC O,0,CC,4,0),COLORYELLOW;
N:=3;N2:=6;N3:=-23;N4:=75;
VAR2:=(C-REF(C,1))/REF(C,1)*100;
VAR3:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100;
VAR4:=SMA(VAR3,9,1);
VAR5:=SMA(VAR4,3,1);
J:3*VAR4-2*VAR5,COLOR00FFFF;
VAR6:=J 1*REF(J,1);
VAR7:=LLVBARS(L,50);
VAR8:=SUM(V,VAR7);
VAR9:=HHVBARS(H,50);
VAR10:=SUM(V,VAR9);
VAR11:=(C-REF(O,VAR9))/REF(O,VAR9)*100;
VAR12:=VAR10/CAPITAL*100;
VAR13:=(C-REF(O,VAR7))/REF(O,VAR7)*100;
VAR14:=VAR8/CAPITAL*100;
VAR15:=MA(WINNER(C),N)*100;
VAR16:=EMA(VAR4,N);
A2:EMA(VAR4,N),COLORFFDDCC;
A3:=EMA(A2,N);
A4:=EMA(A3,N);
A5:=EMA(A4,N);
A6:=EMA(A5,N);
A7:=EMA(A6,N);
VAR17:=EMA(A7,N);
VAR18:=EMA(VAR17,N);
VAR19:=EMA(VAR18,N);
AA:=EMA(A5,N2);
中期大底:LLV(J,AA),LINETHICK2,COLOR0000FF;
上:=IF(MA(H,3)*1.05,30,0)*10-AA;
下:=IF(MA(L,3)*0.96,30,0)*2/中期大底;
中:=IF(MA(H,3)*1.05,30,0);
电:=J;
DRAWTEXT(CROSS(A4,AA)ANDVAR11 N3,AA,'底'),COLORFFFF00;
DRAWTEXT(CROSS(A2,J)ANDA2 N4,A2+4.22,'●峰'),COLOR00FFFF;
STICKLINE(J =A2,A2,J,6,0),COLOR0000FF;
STICKLINE(J =A2,J,A2,6,0),COLOR00FF00;
压力:HHV(J,60),COLOR00FFFF;
支撑:=LLV(AA,13);
STICKLINE(J =中期大底AND中-REF(中,1) 0ANDC =O*0.99,1,88,3,0),COLOR0000FF;
DRAWICON(J =中期大底AND中-REF(中,1) 0ANDC =O*0.99,88,1),COLOR00FF00;
STICKLINE(FILTER(CROSS(上,中期大底)AND中-REF(中,1) =0,3),中期大底,70,3,0),COLOR00FF00;
DRAWICON(FILTER(CROSS(上,中期大底)AND中-REF(中,1) =0,3),70,1);
STICKLINE(CROSS(上,下)ANDC =O,中期大底,60,2,0),COLORFF0000;
B0:=MA(C,3);
B01:=MA(C,4);
B1:=(H+L+C)/3;
B2:=HHV(B1,15);
B3:=LLV(B1,15);
B4:=B2-B3;
B5:MA((B1-B3)/B4,2)*100,COLOR000080;
B6:=HHV(B1,4*15);
B7:=LLV(B1,4*15);
B8:=B6-B7;
B9:=MA((B1-B7)/B8,2)*100;
BA:=HHV(B1,16*15);
BB:=LLV(B1,16*15);
BC:=BA-BB;
BD:=MA((B1-BB)/BC,2)*100;
顶线:=98;
底线:=1;
主力专版通达信真正顶底指标公式截图