I need a c# function to implement VMA(Variable moving average) indicator of Metastock v9.0
The function will be delivered as Visual Studio 2010.
The functi?n will take 2 parameters: periyod and datalist.
The datalist parameter will be in type List and will hold the market data (close prices)
The last data of the market will be hold at the last element of the datalist.
Periyod parameter is the periyod of VMA indicator.
The function should have another datalist for result named result.
It also should be in tyle List
I also need detailed metastock code of VMA indicator.
I want to implement VMA indicator in Metastock without using the high level Moving Average funciton ( Mov(Close ,50 , VAR) )
The code will produce the same result as Mov(Close ,50 , VAR) function.
Please compare your results with the results of Metastock Mov(Close ,50 , VAR) formula.
If your c# code or Metastock code produce different results from Metastock's standard Mov(Close ,50 , VAR) function, your money will not be released
You can find sample datalist at the attached excel file.