macd力度
MINBI:="FBASE.VAR2#min1";
MINDUAN:="FBASE.VAR3#min1";
B1:=BARSLAST(MINDUAN<>0);
B2:=REF(MINDUAN,B1);
BA1:=REF(B1+1,1);
BA2:=REF(B2,1);
DUAN:IF(BA2>0,LOW-REF(HIGH,BA1),HIGH-REF(LOW,BA1));
A1:=BARSLAST(MINBI<>0);
A2:=REF(MINBI,A1);
AA1:=REF(A1+1,1);
AA2:=REF(A2,1);
BI:IF(AA2>0,LOW-REF(HIGH,AA1),HIGH-REF(LOW,AA1)),COLORSTICK;
A3:=BI;
M1:=REF(A3,1);
STICKLINE(A3>0 AND A3<=M1,0,A3,3,0),colorFFFF;
STICKLINE(A3<0 AND A3>=M1,0,A3,3,0),colorFFFFFF;
BV:=SUM(A3,0);
BA:=IF(MAX(BV,REF(BV,2))[REF(BV,1),1,0);]
BC:=BARSLAST(BA)+1;
SMACD:=BV-REF(BV,BC);
VAR3:=IF(A3>0,HHV(ABS(A3),BC),LLV(A3,BC));
VAR4:=A3/20;
VAR5:=SMACD*100; |