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

BUG: Allow multiple names for vector indicators (#382) #980

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on May 14, 2023

  1. BUG: Allow multiple names for vector indicators (kernc#382)

    Previously we only allowed one name per vector
    indicator:
    
        def _my_indicator(open, close):
        	return tuple(
    	    _my_indicator_one(open, close),
    	    _my_indicator_two(open, close),
    	)
    
        self.I(
            _my_indicator,
    	# One name is used to describe two values
            name="My Indicator",
    	self.data.Open,
    	self.data.Close
        )
    
    Now, the user can supply two (or more) names to annotate
    each value individually. The names will be shown in the
    plot legend. The following is now valid:
    
        self.I(
            _my_indicator,
    	# Two names can now be passed
            name=["My Indicator One", "My Indicator Two"],
    	self.data.Open,
    	self.data.Close
        )
    
    Co-authored-by: kernc <[email protected]>
    ivaigult and kernc committed May 14, 2023
    Configuration menu
    Copy the full SHA
    f795570 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d7bf173 View commit details
    Browse the repository at this point in the history