同花顺成本均线极简公式
极为简单的成本均线系统。极为简单的成本均线系统。
源码
A:=BARSCOUNT(C);
AA:=(O+C)/2;
C1:DMA(AA,IF(A<M1,VOL/SUM(VOL,A),VOL/SUM(VOL,M1))),colorwhite;
C2:DMA(AA,IF(A<M2,VOL/SUM(VOL,A),VOL/SUM(VOL,M2))),coloryellow;
C3:DMA(AA,IF(A<M3,VOL/SUM(VOL,A),VOL/SUM(VOL,M3))),colorgreen;
C4:DMA(AA,IF(A<M4,VOL/SUM(VOL,A),VOL/SUM(VOL,M4))),colormagenta;