Trady
Trady copied to clipboard
Cant find Momentum technical indicator
Hello, Please, How can I use Momentum technical indicator? I tried, but still I cant find it. Can you help me or do you have some more examples? Many thanks for answer Mark
candles.Add(new Candle(
//dateTime: Datetime of trading day/hour/minute/second,
open: (decimal)Math.Log((double)cand.Open),
high: (decimal)Math.Log((double)cand.High),
low: (decimal)Math.Log((double)cand.Low),
close: (decimal)Math.Log((double)cand.Close),
cand.Volume)
);
Now momentum: I'm looking only for the last value.
var mom = candles.Mtm();
if (mom != null && mom.Count != 0)
{
var computedValues = mom.Last();
var returnValues = new MomentumValues
{
Symbol = ticker,
ComputeDate = computeTime.ToUnixTimeSeconds(),
Momentum = (double)(computedValues.Tick)
};
return returnValues;
}