看长做短公式 源码 副图
-
相关简介:C/C++ www.zegu.cn 择股网提供 Code 复制内容到剪贴板 J0:=(CLOSE+HIGH+LOW)/3; J1:=IF(CLOSEREF(J0,1),AMOUNT,0); J2:=IF(CLOSEREF(J0,1),AMOUNT,0); JJ:=J1-J2; YA:=SUM(JJ,0)/100000000; YB:=SUM(JJ,22)/100000000; 长资金:(EMA(YA,22)-EMA(YA,144))/3,LINEDOT,COLOR
-
文章来源:择股网作者:股海网发布时间:2011-07-23浏览次数:
C/C++ www.zegu.cn 择股网提供 Code复制内容到剪贴板
- J0:=(CLOSE+HIGH+LOW)/3;
- J1:=IF(CLOSE>REF(J0,1),AMOUNT,0);
- J2:=IF(CLOSE<REF(J0,1),AMOUNT,0);
- JJ:=J1-J2;
- YA:=SUM(JJ,0)/100000000;
- YB:=SUM(JJ,22)/100000000;
- 长资金:(EMA(YA,22)-EMA(YA,144))/3,LINEDOT,COLORMAGENTA;
- 长趋势:EMA(长资金,34),LINEDOT,COLORGREEN;
- 短资金:(EMA(YB,5)-EMA(YB,14));
- 短趋势:EMA(短资金,9);
- 存量净值:(短资金-短趋势),STICK,Color0000FF;
- IF(存量净值<0,存量净值,0),STICK,ColorFFA900;
- FJ:=EMA(存量净值,14);
- 流出:STICKLINE(存量净值<REF(存量净值,1) and 存量净值<0 OR (AMOUNT/REF(AMOUNT,1)<0.97),存量净值,REF(存量净值,1),7,0),LINETHICK2,COLOREEEEEE;
- 流入:STICKLINE(存量净值>=REF(存量净值,1) and 存量净值>0,存量净值,REF(存量净值,1),7,0),LINETHICK2,Color0000FF;
- 持币:STICKLINE(存量净值<FJ and 存量净值<0,存量净值,REF(存量净值,1),7,0),LINETHICK2,Color00FF00;
- S:=EMA((CLOSE-EMA(CLOSE,13))/EMA(CLOSE,21),10);
- W:=IF(S>0,MA(s,1),0);
- JC:=CROSS(短资金,短趋势);
- JD:=CROSS(短趋势,短资金);
- JD1:=FILTER(CROSS(长趋势,长资金),5);
- AA:=FILTER(jc,5);
- BB:=FILTER(jd and 短趋势>0,5);
- DRAWICON(AA,短资金,10);
- DRAWICON(BB,短趋势,12);
- DRAWTEXT(CROSS(长资金,长趋势),长资金,'▲'),COLORRED;
- DRAWICON(AA and CROSS(W,0.001),短资金,1);
- DRAWICON(BB and JD1,短趋势,2);DRAWTEXT(jd1,长资金,'▼'),COLORFFFF00;
- //
上一篇:箱体 主图源码 + 主力潜伏中 副图
下一篇:实用布林主图 源码 主图