Price > highest(close[1],Length) then ret=1;Price > highest(close,Length) then ret=1;請教一下小編,上面二種語法的意思是一樣的嗎,差在哪裡呢,中文的意思是甚麼謝謝
1 評論
Hello 小莊,
不一樣,一個是從前一根Bar的收盤價開始檢查,一個是從當根收盤價開始檢查。
舉例來說:
highest(close[1], 10) 會是 close[1] ~ close[10]中最高的數值。
highest(close,Length) 會是 close[0] ~ close[9] 中最高的數值。(close 就相當於 close[0])
網站上有教學區,裡面有XS語法的基礎和應用可以閱覽。
1 評論