EXP12:=expma(C,12);
EXP50:=EXPMA(C,50);
中期方向线:EXP12-EXP50,NODRAW;
DRAWBAND(中期方向线,RGB(190,0,0),0,RGB(0,160,0));
MB:=EXPMA(中期方向线,20),COLORWHITE;
超买线:MB+1.44*STD(中期方向线,20),COLORYELLOW;
超卖线:MB-1.44*STD(中期方向线,20),COLORCYAN;
K1:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
K2:=100-Abs(K1);
K3:=IF(K2<90,K2,100);
K4:=(HIGH+LOW+CLOSE)/3;
K5:=(K4-MA(K4,14))/(0.015*AVEDEV(K4,14));
K6:=(K4-MA(K4,70))/(0.015*AVEDEV(K4,70));
K7:=IF(K5>=150 AND K5<200 AND K6>=150 AND K6<200,10,0);
K8:=IF(K5<=-150 AND K5>-200 AND K6<=-150 AND K6>-200,-10,K7);
K9:=IF(K6>=200 AND K5>=150,15,IF(K6<=-200 AND K5<=-150,-15,K8))+60;
逃顶:=(K3<100 AND K9>60);
量:=V>SMA(V,3,1)*1.5 ;
先跑再说:逃顶 AND 量;