请老师编写ema250线下穿K线的选股 {轨道} CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DD:=DMA(CLOSE,CC); 上:(1+7/100)*DD,COLORgray; {疯:(1+14/100)*DD,COLORred;} 下:(1-7/100)*DD,COLORgray; 中:(上+下)/2,colorf0f000; A := DISPSTATUS=2; DRAWTEXT(A AND 上,上,NUMTOSTRN(上,2)),ColorEA91B5; PARTLINE(上 ,(上>REF(上,1))-1,rgb(0,255,200),1,rgb(255,0,255) ),LINETHICK1,LAYER0; {DRAWTEXT(A AND 疯,疯,NUMTOSTRN(疯,2)),ColorEA91B5;} DRAWTEXT(A AND 中,中,NUMTOSTRN(中,2)),ColorEA91B5; PARTLINE(中 ,(中>REF(中,1))-1,rgb(0,255,200),1,rgb(255,0,255) ),LINETHICK1,LAYER0; DRAWTEXT(A AND 下,下,NUMTOSTRN(下,2)),ColorEA91B5;STICKLINE(C>=O,C,O, 7,0),COLORred; PARTLINE(下 ,(下>REF(下,1))-1,rgb(0,255,200),1,rgb(255,0,255) ),LINETHICK1,LAYER0; Inline:=EMA(C,250); chips:Inline-(EMA(C,3)-Inline),COLORgray;
爱约股解答:
Inline:=EMA(C,250);
chips:=Inline-(EMA(C,3)-Inline);
下穿K线:CROSS(C,CHIPS);
上穿K线:CROSS(CHIPS,C);