通达信两根动态线公式,DRAWLINE未来!!!
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
AAA:=MA60>REF(MA60,1);
BBB:=AAA AND REF(AAA,1)==0;
CCC:=BARSLAST(BBB)+1;
DDD:=HHV(V,CCC);
EEE:=REF(H,BARSLAST(V==DDD)),NODRAW;
FFF:=REF(H,BARSLAST(V==DDD)),NODRAW;
KKK:=BARSLAST(V==DDD),NODRAW;
AAA2:=MA60<REF(MA60,1);
BBB2:=AAA2 AND REF(AAA2,1)==0;
CCC2:=BARSLAST(BBB2)+1;
DDD2:=HHV(V,CCC2);
GGG:=LLV(V,CCC2);
HHH:=REF(L,BARSLAST(V==GGG)),NODRAW;
III:=REF(L,BARSLAST(V==GGG)),NODRAW;
神奇底:DRAWLINE(V==GGG AND AAA2==1, HHH+HHH*0.02, ISLASTBAR, III+III*0.02, 1),LINETHICK1,COLORGREEN;
神奇顶:DRAWLINE(V==DDD AND AAA==1, EEE+EEE*0.02, ISLASTBAR, FFF+FFF*0.02, 1),LINETHICK1,COLORYELLOW;