同花顺变味的MACD指标公式

2024-04-16 12:58发布

{"线平均";}VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)/3; VAR7:=EMA(VAR6,5);指标: EMA(EMA(VAR3,5),5)*3, COLORSTICK;{"单独的红绿柱指标";}{"近底用VAR8,底用VARA,橙色柱";}VAR8:=IF(VAR6<=-20,10,0);{"橙色柱使用条件";}VAR9:=HHV(VAR8,10);{"橙色柱使用条件";}STICKLINE(VAR8=10,20,10,5,0),COLOR6666FF;{"橙色柱";}{"底的条件用到了VARA";}VARA:=IF(VAR9 AND OSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);{"由BIAS决定的";}K:EMA(VAR7,5)*2,coloryellow;D:EMA(K,5),colo
 解锁全文需 1  财富值,免费注册即送20财富值!