HTS[4000指標] 跨週期MACDofTime

 

 


以下為完整的程式SPE檔:

http://sylvialo.myweb.hinet.net/macddd.SPE

 


程式碼:

/* Moving Average Convergence & Divergence of MultiTime */

Parameter: FastMA(12), SlowMA(26), MacdMA(9), Period(5)

Value1 = MACDofTime(Close, FastMA, SlowMA, Period) 
Value2 = EMAofTime( Value1, MacdMA, Period)

DrawBase1(0, "0", DarkGray)
Draw3( Value1 - Value2, "MADiff", Iff(Value1-Value2>=Value1[Period / BarInterval]-Value2[Period / BarInterval], Red, Green), Default,5)
Draw2( Value2, "MACDAvg", Blue)
Draw1( Value1, "MACD", Red, Default, 1)

 

 

 

 

文章標籤
創作者介紹

日盛期貨 營業員 秉暉- HTS,STS 程式交易 API,條件單,閃電下單,觸及市價

日盛期貨秉暉 發表在 痞客邦 PIXNET 留言(0) 人氣()