Skip to content

Add Higest high and lowest low indicator #49

Description

@christiangogo2014

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions