飞狐MACD量价平台主图指标公式

2024-01-06 22:00发布

INPUT:N(18),S(26),P(12),M(9);{N为考查,可按个人喜好设置其数值}a:=EMA(CLOSE,s);T:=EMA(CLOSE,P);b:=ema(a,m);t1:=ema(t,m);DEA:ema(T-(t1-T),2),colorff8866,LINETHICK2;//蓝,>0,DEA<0diff>DEA,diff,DEA,0.1,0),COLORccccff;STICKLINE(diff0,DEA>0PARTLINE(A>T AND a-b>t-t1,DEA),color00ff00,LINETHICK2;//绿,MACD<0>T AND a-b0,DEA>0大量高价线:VALUEWHEN(V>REF(HHV(V,N),1),HIGH),LINETHICK;小量低价线:VALUEWHEN(V<REF(LLV(V,N),1),L),LINETHICK;PARTLINE(小量低价线=REF(小量低价线,1),小量低价线),COLORFF00FF;PARTLINE(大量高价线=REF(大量高价线,1),大量高价线),COLOR00FFFF;
 解锁全文需 1  财富值,免费注册即送20财富值!