SlideShare a Scribd company logo
EZ language 架構
Input和Variable的差別 當一個Function要參考外部的資料時 Input:外部輸入的資料(不可變動) Variable:運算結果的資料(可變動的結果)
Input Input有分Series和Simple,而分別宣告的方式如:      (我們也推測當宣告的時候如果後面的預設值不是輸入Series或Simple,則它應該會直接依照其形態判斷其宣各是否為陣列) Inputs: Price(NumericSeries), Length(NumerSimple);
Variable:TS2000i裡所有的變數都是宣告陣列的方式在進行。TS2000i每宣告一個變數就切割一個乘上你資料天數為個數的陣列。 Variable input: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 then exitlong next bar at market;    if RSI_F cross over RSI_S and RSI_s[1] < 50 then exitshort 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是否為時間序列資料,但是使用時就直接將它當成時間序列 ,[object Object],[object Object]
Plot Plot: 畫技術指標 畫技術分析的輔助線                {把計算結果的MACD再做一條它的9天平均} Plot1(MACD(Close, FastMA, SlowMA), "MACD"); Plot2(XAverage(MACD(Close, FastMA, SlowMA), MacdMA), "MACDAvg"); Plot2(XAverage(Plot1, MacdMA), "MACDAvg");
Plot續 Plot存的應該是一串時間序列的值,每個值代表一個對應的(time,y)的點,而畫出的線應該是由這些點所組成,中間的線段由程式判斷自動連起來。
Ez1 ver1.0

More Related Content

Viewers also liked

India September 2014
India September 2014India September 2014
India September 2014
Frontiers in Public Health
 
Science and conflict of interest in bioelectromagnetics
Science and conflict of interest in bioelectromagneticsScience and conflict of interest in bioelectromagnetics
Science and conflict of interest in bioelectromagnetics
Frontiers in Public Health
 
Developmentally Responsive Middle School
Developmentally Responsive Middle SchoolDevelopmentally Responsive Middle School
Developmentally Responsive Middle Schoolmollymac
 
Dariusz Leszczynski in Expert Roundtable; San Francisco Dec. 9, 2013
Dariusz Leszczynski in Expert Roundtable; San Francisco Dec. 9, 2013Dariusz Leszczynski in Expert Roundtable; San Francisco Dec. 9, 2013
Dariusz Leszczynski in Expert Roundtable; San Francisco Dec. 9, 2013
Frontiers in Public Health
 
Ethical and conflict of interest issues in bioelectromagnetics
Ethical and conflict of interest issues in bioelectromagneticsEthical and conflict of interest issues in bioelectromagnetics
Ethical and conflict of interest issues in bioelectromagnetics
Frontiers in Public Health
 

Viewers also liked (8)

Cupcake Co.
Cupcake Co.Cupcake Co.
Cupcake Co.
 
Hosp
HospHosp
Hosp
 
El essentials
El essentialsEl essentials
El essentials
 
India September 2014
India September 2014India September 2014
India September 2014
 
Science and conflict of interest in bioelectromagnetics
Science and conflict of interest in bioelectromagneticsScience and conflict of interest in bioelectromagnetics
Science and conflict of interest in bioelectromagnetics
 
Developmentally Responsive Middle School
Developmentally Responsive Middle SchoolDevelopmentally Responsive Middle School
Developmentally Responsive Middle School
 
Dariusz Leszczynski in Expert Roundtable; San Francisco Dec. 9, 2013
Dariusz Leszczynski in Expert Roundtable; San Francisco Dec. 9, 2013Dariusz Leszczynski in Expert Roundtable; San Francisco Dec. 9, 2013
Dariusz Leszczynski in Expert Roundtable; San Francisco Dec. 9, 2013
 
Ethical and conflict of interest issues in bioelectromagnetics
Ethical and conflict of interest issues in bioelectromagneticsEthical and conflict of interest issues in bioelectromagnetics
Ethical and conflict of interest issues in bioelectromagnetics
 

Ez1 ver1.0