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

Add Higest high and lowest low indicator #49

Open
christiangogo2014 opened this issue Jun 11, 2022 · 0 comments
Open

Add Higest high and lowest low indicator #49

christiangogo2014 opened this issue Jun 11, 2022 · 0 comments

Comments

@christiangogo2014
Copy link

christiangogo2014 commented Jun 11, 2022

Using the lib, I realized there is not any indicator to get the highest high from a data set.

I let the code i used for it.

def highest source, index, len = 20
	@input_data.slice(index..index+len).map{|it| it[source] }.max
end
...
def lowest source, index, len = 20
	@input_data.slice(index..index+len).map{|it| it[source] }.min
end

Probably this could be included on a helper class just like the standard deviation. Then they could be reused by other indicators.

Best Regards!

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

1 participant