编写要求:
流通盘:FINANCE( 7)/10000, NODRAW; A1A:=EMA(CLOSE, 9); A1B:=((A1A - EMA(CLOSE, 5)) < 0); A1C:=((A1A - EMA(CLOSE, 5)) > 0); A1D:=BARSLAST(A1B); A1E:=BARSLAST(A1C); A1F:=IF((A1E > 0),(CLOSE - REF(CLOSE, 1)) / REF(CLOSE, 1) * 100,0); A20:=SUM(A1F,0); A21:=IF((A1D > 0),(0 - 2),0); A22:=IF((A1E > 0),SUM((CLOSE - REF(CLOSE, 1)) / REF(CLOSE, 1) * 100,A1E),0); A23:=A22 / A1E; A25:=EMA(EMA(EMA(CLOSE, 3), 3), 3); 多方:((A25 - REF(A25, 1)) + A25)COLOR0000FF,LINETHICK2; K2:=BACKSET(多方REF(多方,1),多方,DRAWNULL),COLORFFFFCC,LINETHICK4,POINTDOT; IF(空方>REF(空方,1),空方,DRAWNULL),COLOR00FFFF,LINETHICK4,POINTDOT; STICKLINE((多方 > 空方),空方,多方, 0, 0)COLOR00FFFF; STICKLINE((空方 > 多方),多方,空方, 0, 0)COLORFF0000; DRAWTEXT(CROSS(空方,多方),多方 * 1.01,'↓卖')COLOR00FF00; DRAWTEXT(CROSS(多方,空方),空方 * 0.99,'↑买')COLOR0000FF; DRAWICON(((REF(A21, 1) = (0 - 2)) AND (A21 = 0)),LOW, 5); DRAWICON(((REF(A1E, 1) > 0) AND (A1E = 0)),HIGH, 6); AAA:=(3*C+H+L+O)/6; 短线:(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36,COLORRED,LINETHICK2; 中线:MA(MA(C,18),5),LINETHICK1; STICKLINE(短线>中线,短线,中线,0,0),COLORWHITE; DRAWICON(REF(C,1)<中线 AND C>中线,L*0.98,5);
解答:
?A1A:=EMA(CLOSE,9);
A1B:=((A1A - EMA(CLOSE,5))<0);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!