a:=p5>ref(p5,1) and ref(p5,1)>ref(p5,2); {5均向上};
b:=p10>ref(p10,1) and ref(p10,1)>ref(p10,2); {10均向上};
d:=p20>ref(p20,1) and ref(p20,1)>ref(p20,2); {20均向上};
c>p5 and p5>p10 and p10>p20 and a and b and d; {均線多頭,股價站在各條均線之上};