把“多空”公式重心金叉多方
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

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; 空方:MA(多方, 15)COLORFF49FF; IF(多方>REF(多方,1),多方,DRAWNULL),COLORFFFFCC,LINETHICK4,POINTDOT; IF(空方>REF(空方,1),空方,DRAWNULL),COLOR00FFFF,LINETHICK4,POINTDOT; STICKLINE((多方 > 空方),空方,多方, 0, 0)COLOR00FFFF; STICKLINE((空方 > 多方),多方,空方, 0, 0)COLORFF0000; DRAWTEXT(CROSS(空方,多方),多方 * 1.02,'↓卖')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);重心:(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORYELLOW,LINETHICK1;平衡:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);红升:IF(重心>=平衡,平衡,DRAWNULL),COLORRED,LINETHICK2;蓝降:IF(重心<平衡,平衡,DRAWNULL),COLORBLUE,LINETHICK2;DRAWTEXT(CROSS(重心,多方),L*0.999,'买'),COLORYELLOW; DRAWTEXT(CROSS(多方,重心),H*1.008,'卖'),COLORGREEN;

解答:

 A25:=EMA(EMA(EMA(CLOSE, 3), 3), 3); 

多方:=((A25 - REF(A25, 1)) + A25); 
多方就这2句子构成!
重心:(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORYELLOW,LINETHICK1;
重心就这句!
---------------------------------------
A25:=EMA(EMA(EMA(CLOSE, 3), 3), 3); 
df:=((A25 - REF(A25, 1)) + A25); 
zx:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
CROSS(df,zx);
---------------------------
 

选股票看什么指标最好 >股票指标网