大智慧买卖系统主图指标公式股票软件源码如下: SSL:=EMA(CLOSE,3); xxL:=EMA(l,3); MM:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55); xxL,COLORYELLOW,LINETHICK2; STICKLINE(((xxL>MM)),xxL,MM,1,0),COLORRED; SA:=(MM*0.985); SS:=(MA(CLOSE,5)); 走势线:IF(((SSL>MM)),MM,SA),LINETHICK2,COLORFF00FF; JJ:=(o+h+l)/3; A:=SMA(JJ,4,1); 价均线:A,COLORYELLOW,LINETHICK1; STICKLINE(((SSL{均线买卖位置的确定} VA1:=EMA(c,4); VA2:=EMA(c,13); DRAWTEXT(CROSS(VA2,VA1),h*1.05,'★卖'),COLOR00ff22; DRAWTEXT(CROSS(VA1,VA2) AND (C>O) AND 价均线>REF(价均线,1),VA1*0.92,'★买'),COLOR0055ff; {慢线趋势线空方线--第二买位置的确定} q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100; q3:=SMA(q2, 9, 1); q4:=SMA(q3, 3, 1); 慢线:=3*q3-2*q4; 趋势:=EMA(q3, 3); VarKK:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100; 空方:=SMA(VarKK,3,1); VarKF:=REF(CLOSE,2); DRAWTEXTABS(10,10,'股票软件下载网 www.gpxiazai.com'),linethick1,COLOR00EEff; 快线:=SMA(MAX(CLOSE-VarKF,0),7,1)/SMA(ABS(CLOSE-VarKF),7,1)*100; cc1:=趋势-慢线; xx1:=CROSS(慢线,趋势) AND 空方>1.005*趋势 AND 快线>ref(快线,1) and count(cc1>0,12)>10 and c>o; DRAWTEXT(xx1,va1*0.9,'◆'),COLORf000f0; DRAWTEXT(xx1,va1*0.85,'买'),COLOR0000f0; {买前关注的确定} VAR1:=(c-LLV(l,27))/(HHV(h,27)-LLV(l,27))*100; VAR2:=SMA(VAR1,3,1); VAR3:=SMA(VAR2,3,1); VAR4:=SMA(VAR3,3,1); NX7:=cDRAWTEXT(CROSS(VAR3,VAR4) AND c>o AND VAR3<40 AND NX7,LOW*0.96,'★'),COLORF000F0; {彩色K线} STICKLINE(C>=O,C,O,5,0),COLORRED; STICKLINE(C>=O,H,L,0,0),COLOR00ffff; STICKLINE(C<=O,C,O,5,0),COLORGREEN; STICKLINE(C<=O,H,L,0,0),COLORFFFF00; {箱体确定} 箱顶:MA(REF(HHV(c,15),1),2),COLOR0000FF,LINETHICK2; 箱底:MA(REF(LLV(c,15),1),2),COLOR00FF00,LINETHICK2; {跟的确定} 买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,21)*20+C,42); ggg:=CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1); DRAWTEXT(ggg,LOW*0.95,'加'),COLOR00F0F0;{差值和画线,走势线,价均线,中期大走势} |