好簡單架 ~
只要你利用 Indicator Builder 建立一個技術指標, 以線段作顯示, 便能實現 "根據圖表載入的數據" 顯示當前的最高、最低價位(在圖表顯示范圍內), 當圖表顯示的范圍變化時,能夠動態調整,重新顯示當前顯示范圍內的最高、最低價 ~~ 而最新的數值還會於視窗頂以數字顯示 !!
利用函式 lowest( DATA ARRAY ) 及 highest( DATA ARRAY )
於 Help 內可找到:
Lowest SYNTAX lowest( DATA ARRAY ) FUNCTION Calculates the lowest value in the DATA ARRAY since the first day loaded in the chart.
EXAMPLE The formula "lowest( rsi(14) )" returns the lowest Relative Strength Index value since the first day loaded in the chart; "lowest ( close )" returns the lowest closing price since the first day loaded in the chart.
Highest SYNTAX highest( DATA ARRAY ) FUNCTION Calculates the highest value in the DATA ARRAY since the first day loaded in the chart.
EXAMPLE The formula "highest( rsi(14) )" returns the highest Relative Strength Index value since the first day loaded in the chart ; "highest ( close )" returns the highest closing price since the first day loaded in the chart.
寫法如下: {QA - Chart H & L} Lowest( L); Highest(H)
第1個數字 = 圖表載入數據的 最低價位 第2個數字 = 圖表載入數據的 最高價位
係咪好簡單呢 ? |