通达信懒人投机买卖指标公式:
A1:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+REF(H,5))/21;
A2:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+REF(L,5))/21;
A3:=IF(C>REF(A1,1),A2,IF(C<REF(A2,1),A1,A2));
DRAWBAND(A3,RGB(420,104,84),A3*0.995,DRAWNULL);
{投机线}
PT := REF(HIGH,1)-REF(LOW,1);
CDP := (HIGH + LOW + CLOSE)/3;
AH := CDP + PT;
AL := CDP - PT;
NH := 2*CDP-LOW;
NL := 2*CDP-HIGH;
CJ:EMA((REF(NH,1)+REF(NL,1))/2,2),COLORWHITE;
A:REF(NH,1),COLORLIBLUE,LINETHICK2;
B:REF(NL,1),COLORLIBLUE,LINETHICK2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
通达信懒人投机买卖指标公式