當前位置:編程學習大全網 - 網站源碼 - 股票公式 5 10 20均線走平或多頭向上的公式怎麽編

股票公式 5 10 20均線走平或多頭向上的公式怎麽編

p5:=ma(c,5); p10:=ma(c,10); p20:=ma(c,20); {5均;10均;20均};

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; {均線多頭,股價站在各條均線之上};

  • 上一篇:cond是什麽意思?
  • 下一篇:51單片機與變頻器串口通信,實時讀寫變頻器參數,C程序如何編寫
  • copyright 2024編程學習大全網