MID:=REF(HIGH+LOW,1)/2;
CR1:SUM(MAX(0,HIGH-MID),30)/SUM(MAX(0,MID-LOW),30)*100,COLORSTICK;
加速:IF(EVERY(EMA(C,12)>EMA(C,50),20) AND REF(EVERY(CR1<200,20),1) AND CROSS(CR1,200),CR1,0);
回踩:IF(EVERY(EMA(C,12)>EMA(C,50),20) AND CROSS(200,CR1) AND EXIST(CROSS(CR1,200),7),400,200);
通达信公式 东北望射天狼
MID:=REF(HIGH+LOW,1)/2;
CR1:SUM(MAX(0,HIGH-MID),30)/SUM(MAX(0,MID-LOW),30)*100,COLORSTICK;
加速:IF(EVERY(EMA(C,12)>EMA(C,50),20) AND REF(EVERY(CR1<200,20),1) AND CROSS(CR1,200),CR1,0);
回踩:IF(EVERY(EMA(C,12)>EMA(C,50),20) AND CROSS(200,CR1) AND EXIST(CROSS(CR1,200),7),400,200);