资金今日流入的选股
-
相关简介:编写要求: www.guhai.com.cn 股海网解答: 网友求助: { P1 5 0 999 1 P2 10 0 999 1 P3 20 0 999 1 P4 30 0 999 1 P5 60 0 999 1 P6 120 0 999 1} MA1:MA(CLOSE,P1); MA2:MA(CLOSE,P2); MA3:MA(CLOSE,P3); MA4:MA(CLOSE,P4); MA5:MA(CLOSE,P5); MA6:MA(CLOSE,P6); A1:=amount*(bigor
-
文章来源:股海网作者:股海网发布时间:2015-07-11浏览次数:
编写要求:
www.guhai.com.cn股海网解答:
网友求助:
{ P1 5 0 999 1
P2 10 0 999 1
P3 20 0 999 1
P4 30 0 999 1
P5 60 0 999 1
P6 120 0 999 1}
MA1:MA(CLOSE,P1);
MA2:MA(CLOSE,P2);
MA3:MA(CLOSE,P3);
MA4:MA(CLOSE,P4);
MA5:MA(CLOSE,P5);
MA6:MA(CLOSE,P6);
A1:=amount*(bigorder(1,2)-bigorder(2,2))/10000;
A5:=sum(A1,5);
A10:=sum(A1,10);
A20:=sum(A1,20);
drawtextrel(10,550,'今日资金流入:'+numtostrn(A1,1)+'万'),colorwhite;
drawtextrel(10,630,'5日 资金流入:'+numtostrn(A5,1)+'万'),colorgreen;
drawtextrel(10,710,'10日资金流入:'+numtostrn(A10,1)+'万'),coloryellow;
drawtextrel(10,790,'20日资金流入:'+numtostrn(A20,1)+'万'),colorred;
解答如下:
A1:=amount*(bigorder(1,2)-bigorder(2,2))/10000;
A5:=sum(A1,5);
A1>A5;
============
A1:=amount*(bigorder(1,2)-bigorder(2,2))/10000;
A10:=sum(A1,10);
A1>A10;
==========
如此依葫芦画瓢,想要大于几日自己调即可。