文华WH6指标公式:
SJ:=1;
VAR2Q:=EMA(CLOSE,60)*SJ;
VAR3:=(CLOSE*SJ-VAR2Q*SJ)*2/(60+1)+VAR2Q;
生命线:VAR3*SJ,LINETHICK2, COLORYELLOW;
MA3:=MA(C,170);
HH1:=IF(H REF(H,1) REF(H,1) REF(H,2),REF(H,2),0);
LL1:=IF(L REF(L,1) REF(L,1) REF(L,2),REF(L,2),0);
HH2:=VALUEWHEN(HH1 0,HH1);
LL2:=VALUEWHEN(LL1 0,LL1);
HH:HHV(HIGH,1)/10*SJ+HHV(HIGH,2)/10+HHV(HIGH,2)/10+HHV(HIGH,4)/10+HHV(HIGH,4)/10+HHV(HIGH,8)/10+HHV(HIGH,8)/10+HHV(HIGH,13)/10+HHV(HIGH,40)/10+HHV(HIGH,20)/10;
LL:LLV(LOW,1)/10*SJ+LLV(LOW,2)/10+LLV(LOW,2)/10+LLV(LOW,4)/10+LLV(LOW,4)/10+LLV(LOW,8)/10+LLV(LOW,8)/10+LLV(LOW,13)/10+LLV(LOW,40)/10+LLV(LOW,20)/10;
H1:=IF(HH REF(HH,1) LL REF(LL,1) REF(OPEN,1) CLOSE OPEN CLOSE (HHV(OPEN,0)-CLOSE) 0,REF(HH,2),0);
L1:=IF(LL REF(LL,1) HH REF(HH,1) REF(OPEN,1) CLOSE OPEN CLOSE (CLOSE-LLV(OPEN,0)) 0,REF(LL,2),0);
X:=DATE;
X0:=H1,LINETHICK2;
X00:=L1;
XXX0:=O,LINETHICK2;
XXX00:=C;
XXX000:=H;
XXX0000:=L;
H2:=VALUEWHEN(X0 0,X0),LINETHICK2;
L2:=VALUEWHEN(X00 0,X00),LINETHICK2;
K1:=IF(CLOSE H2,-3,IF(CLOSE L2,1,0));
K2:=VALUEWHEN(K1 0,K1);
G:=IF(K2=1,H2,L2);
G1:=VALUEWHEN(ISLASTBAR,G);
X000:=K2,LINETHICK2;
TMP:=K2,LINETHICK2;
W1:=X000,LINETHICK2;
X0000:=OPEN-CLOSE,LINETHICK2;
W2:=X0000,LINETHICK2;
HT:=IF(OPEN CLOSE,OPEN,CLOSE),LINETHICK2;
LT:=IF(OPEN CLOSE,OPEN,CLOSE),LINETHICK2;
DRAWTEXT(CROSS(TMP,0),HH, 空 ),COLORGREEN;
DRAWTEXT(CROSS(0,TMP),LL, 多
文华T8模型策略:
SJ:=1;
VAR2Q:=EMA(CLOSE,60)*SJ;VAR3:=(CLOSE*SJ-VAR2Q*SJ)*2/(60+1)+VAR2Q;生命线:VAR3*SJ,LINETHICK2, COLORYELLOW;MA3:=MA(C,170);HH1:=IF(H REF(H,1) REF(H,1) REF(H,2),REF(H,2),0);LL1:=IF(L REF(L,1) REF(L,1) REF(L,2),REF(L,2),0);HH2:=VALUEWHEN(HH1 0,HH1);LL2:=VALUEWHEN(LL1 0,LL1);HH:HHV(HIGH,1)/10*SJ+HHV(HIGH,2)/10+HHV(HIGH,2)/10+HHV(HIGH,4)/10+HHV(HIGH,4)/10+HHV(HIGH,8)/10+HHV(HIGH,8)/10+HHV(HIGH,13)/10+HHV(HIGH,40)/10+HHV(HIGH,20)/10;LL:LLV(LOW,1)/10*SJ+LLV(LOW,2)/10+LLV(LOW,2)/10+LLV(LOW,4)/10+LLV(LOW,4)/10+LLV(LOW,8)/10+LLV(LOW,8)/10+LLV(LOW,13)/10+LLV(LOW,40)/10+LLV(LOW,20)/10;H1:=IF(HH REF(HH,1) LL REF(LL,1) REF(OPEN,1) CLOSE OPEN CLOSE (HHV(OPEN,0)-CLOSE) 0,REF(HH,2),0);L1:=IF(LL REF(LL,1) HH REF(HH,1) REF(OPEN,1) CLOSE OPEN CLOSE (CLOSE-LLV(OPEN,0)) 0,REF(LL,2),0);X:=DATE;X0:=H1,LINETHICK2;X00:=L1;XXX0:=O,LINETHICK2;XXX00:=C;XXX000:=H;XXX0000:=L;H2:=VALUEWHEN(X0 0,X0),LINETHICK2;L2:=VALUEWHEN(X00 0,X00),LINETHICK2;K1:=IF(CLOSE H2,-3,IF(CLOSE L2,1,0));K2:=VALUEWHEN(K1 0,K1);G:=IF(K2=1,H2,L2);G1:=VALUEWHEN(ISLASTBAR,G);X000:=K2,LINETHICK2;TMP:=K2,LINETHICK2;W1:=X000,LINETHICK2;X0000:=OPEN-CLOSE,LINETHICK2;W2:=X0000,LINETHICK2;HT:=IF(OPEN CLOSE,OPEN,CLOSE),LINETHICK2;LT:=IF(OPEN CLOSE,OPEN,CLOSE),LINETHICK2;DRAWTEXT(CROSS(TMP,0),HH, 空 ),COLORGREEN;DRAWTEXT(CROSS(0,TMP),LL, 多 REF(CROSS(0,TMP),1),BPK;REF(CROSS(TMP,0),1),SPK;SETSIGPRICE(BPK,L);SETSIGPRICE(SPK,H);C =BKPRICE*0.999 BKVOL 0,CLOSEOUT;C =SKPRICE*1.001 SKVOL 0,CLOSEOUT;BKHIGH =BKPRICE*(1+0.05/100) C =BKHIGH-(BKHIGH-BKPRICE)*(1-0.05/100) BKVOL 0,CLOSEOUT;SKLOW =SKPRICE*(1-0.05*100) C =SKLOW+(SKPRICE-SKLOW)*(1-0.05/100) SKVOL 0,CLOSEOUT;AUTOFILTER;