编写要求:
源码以下: A3:=100 - ((90 * ((HHV(HIGH,20)) - CLOSE)) / ((HHV(HIGH,20)) - (LLV(LOW,20)))); A4:=100 - (MA(((100 * ((HHV(HIGH,6)) - CLOSE)) / ((HHV(HIGH,6)) - (LLV(LOW,6)))),28)); A5:=MA(A4,6); 红持股:IF((A3 < A5),A5,A3),COLORRED; 绿持币:IF((A3 > A5),A5,A3),COLORGREEN; 强弱:(A5),LINETHICK1,COLORYELLOW; 不胜感谢!
公式在线网解答:
A3:=100 - ((90 * ((HHV(HIGH,20)) - CLOSE)) / ((HHV(HIGH,20)) - (LLV(LOW,20))));
A4:=100 - (MA(((100 * ((HHV(HIGH,6)) - CLOSE)) / ((HHV(HIGH,6)) - (LLV(LOW,6)))),28));
XG:CROSS(A3,A4);