Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant find Momentum technical indicator #101

Open
MarkFx opened this issue Aug 12, 2019 · 1 comment
Open

Cant find Momentum technical indicator #101

MarkFx opened this issue Aug 12, 2019 · 1 comment

Comments

@MarkFx
Copy link

MarkFx commented Aug 12, 2019

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

@ssathya
Copy link

ssathya commented Oct 14, 2020

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;
			}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants