PSY心理線

By | 2019-02-24

腳本

1// XQ: 心理線
2//
3input: Length1(12), Length2(24);
4
5SetInputName(1, "天數一");
6SetInputName(2, "天數二");
7
8Value1 = 100 * CountIf(Close > Close[1], Length1) / Length1;
9Value2 = 100 * CountIf(Close > Close[1], Length2) / Length2;
10
11Plot1(Value1, "PSY1");
12Plot2(Value2, "PSY2");

參考圖表

PSY