文華里面的ma,sma,ema對應mc里面什么函數 [MC]
-
MC用戶求助:
文華的MA和EMA分別對應MC中的average和xaverage
?
文華中的sma是擴展指數加權移動平均函數,代碼如下:
?
//sma
inputs:?
PriceValue( numericseries ),?
Len( numericsimple ) ,?
waite(numericsimple);? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
variables:?
var0( waite/ ( Len) ) ;
if CurrentBar = 1 then
sma = PriceValue
else
sma = sma[1] + var0 * ( PriceValue - sma[1] ) ;
?
-
MC回復討論一:
文華的MA和EMA分別對應MC中的average和xaverage
?
文華中的sma是擴展指數加權移動平均函數,代碼如下:
?
//sma
inputs:?
PriceValue( numericseries ),?
Len( numericsimple ) ,?
waite(numericsimple);? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
variables:?
var0( waite/ ( Len) ) ;
if CurrentBar = 1 then
sma = PriceValue
else
sma = sma[1] + var0 * ( PriceValue - sma[1] ) ;
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容