黄三 发表于 2018-8-11 14:26:12

请求老师帮忙写个选股公式

请求老师帮忙写个选股公式,先谢谢了。
要求:1、G102、G104、G106三线粘合;
      2、G102、G104、G106三线趋势向上,即G102>REF(G102,1)……
      3、股价上穿G102、G104、G106三线。
源码:
WZ100:=HHV(CLOSE,13)*0.88;
Z180:=100*(WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9));
Z182:=IF(Z180>78,1,0);
DRAWTEXT(Z182=1,WZ100,'试'),COLORYELLOW;
平台线:HHV(CLOSE,176)*0.93,COLORRED,LINETHICK3;
Z184:=100*WINNER(CLOSE)-Z180;
Z186:=IF(Z184>35 AND(CLOSE>平台线),1,0);
DRAWTEXT(Z186=1,WZ100,'攻'),COLORMAGENTA;
G100:=FORCAST(CLOSE,3);
G102:EMA(EMA(G100,21),8),COLORYELLOW;
G104:EMA(EMA(G100,27),8),COLORYELLOW;
G106:EMA(EMA(G100,34),8),COLORYELLOW;
G112:EMA(EMA(G100,55),21),COLORBLUE;
G114:EMA(EMA(G100,71),21),COLORBLUE;
G116:EMA(EMA(G100,89),21),COLORBLUE;
G122:EMA(EMA(G100,168),55),COLORWHITE;
G124:EMA(EMA(G100,199),55),COLORWHITE;
G126:EMA(EMA(G100,233),55),COLORWHITE;
G128:EMA(EMA(G100,276),55),COLORWHITE;
D131:=EMA(FORCAST(CLOSE,9),5);
D130:=FORCAST(CLOSE,9)*0.99;
D160:=IF(D131<REF(D131,1),1,0);
IF(D160=0,D131,DRAWNULL),COLORMAGENTA,LINETHICK3;
D161:=IF(D131<REF(D131,1)&&(REF(D131,1)>REF(D131,2)),1,0);
DRAWTEXT(D161=1,D130*1.09,'走');
B110:=IF(D131>REF(D131,1)&&(CLOSE<G112)&&(CLOSE>G128),1,0);
DRAWTEXT(B110=1,WZ100*0.98,'加'),COLORRED;
B120:=HHV(CLOSE,0)*0.9;
M100:=FORCAST(CLOSE,9)*0.98;
M101:=IF(M100<REF(M100,1),M100*0.99,M100);
M1012:=IF(M101<REF(M101,1),1,0);
M1013:=IF(M101<REF(M101,1) AND REF(M101,1)>REF(M101,2),1,0);
M1014:=IF(M101>REF(M101,1)&&D131<REF(D131,1),1,0);
IF(M1014=1,REF(D131,1),DRAWNULL),COLORMAGENTA,LINETHICK3;
M102:=IF(M100>=REF(M100,1),1,0);
M103:=IF(REF(M102,1)=0 AND M102=1,1.2,0);
M200:=FORCAST(CLOSE,3);
M201:=EMA(EMA(M200,19),8);
M202:=EMA(EMA(M200,78),21);
M203:=EMA(EMA(M200,256),55);
M301:=IF(CLOSE>M203 AND CLOSE>M202 AND CLOSE<M201 AND M103>1,1,0);
STICKLINE(M301=1,CLOSE*0.94,CLOSE*0.93,50,0)COLORYELLOW;
DRAWTEXT(M301=1,CLOSE*0.91,'止损价')COLORWHITE;


黄三 发表于 2018-9-7 12:03:35

先谢谢了。:lol:lol:lol

别想太多 发表于 2018-9-6 23:49:24

试试下面公式,能用就给个点赞!!:lol:lol

G100:=FORCAST(CLOSE,3);
G102:=EMA(EMA(G100,21),8),COLORYELLOW;
G104:=EMA(EMA(G100,27),8),COLORYELLOW;
G106:=EMA(EMA(G100,34),8),COLORYELLOW;
BA:=G102>REF(G102,1) AND G104>REF(G104,1) AND G106>REF(G106,1);
BH:=C>G102 AND C>G104 AND C>G106;
BJ:=MAX(G102,MAX(G104,G106));
BP:=MIN(G102,MIN(G104,G106));
XG:LLV((BJ-BP)/BP*100<0.5,3) AND BA AND BH ;
页: [1]
查看完整版本: 请求老师帮忙写个选股公式