Variable:TS2000i裡所有的變數都是宣告陣列的方式在進行。TS2000i每宣告一個變數就切割一個乘上你資料天數為個數的陣列。Variableinput:FastDay(6),SlowDay(12); variable: RSI_F(0),RSI_S(0); if fastday<slowday then begin RSI_F = RSI(close , FastDay); RSI_S = RSI(close , SlowDay); end; if RSI_F cross over RSI_S and RSI_s[1] < 50 then buy next bar at market; if RSI_F cross under RSI_S and RSI_s[1] > 50 thenexitlong next bar at market; if RSI_F cross over RSI_S and RSI_s[1] < 50 thenexitshort next bar at market; if RSI_F cross under RSI_S and RSI_s[1] > 50 then sell next bar at market;我們懷疑RSI_s[1]的第二個S應該是大寫宣告時並無特別說明Variable是否為時間序列資料,但是使用時就直接將它當成時間序列所以我們推論Variable是以陣列的方式宣告EasyLanguage price data valuea type of array, where the element number refers to the “number of bars ago.”Ex : Close and Volume