通达信源码如下:8 A8 @" h' _2 _: |
# W o. m1 v( |# s" y5 R8 o6 }1 N2 M7 M
n:=30; 2 r2 q! D9 U: W" N% K6 N
m:=3; / ]; s9 `' s1 a) C$ J3 d( M
AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,N))/MA(CLOSE,N); . Z, r6 R) v+ C
济安线 MA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,COLORMAGENTA;
3 b- I% T- L3 G, C( oCC:=(CLOSE/济安线); * g0 y/ p# Y, F# H
MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3);
( I6 t! S# @3 z" ]MAAA:=((MA1-济安线)/济安线)/3; . b) n7 [# o* f; ]; q6 ]+ f
TMP:=MA1-MAAA*MA1; 9 d, m; G. O9 S) F0 z% X
J:IF(TMP |