Commit 01551af
authored
* BUG: Allow multiple names for vector indicators (#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
)
1 parent eefff87 commit 01551af
3 files changed
+71
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
542 | | - | |
543 | | - | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
544 | 557 | | |
545 | | - | |
| 558 | + | |
546 | 559 | | |
547 | 560 | | |
548 | 561 | | |
| |||
552 | 565 | | |
553 | 566 | | |
554 | 567 | | |
555 | | - | |
| 568 | + | |
556 | 569 | | |
557 | 570 | | |
558 | 571 | | |
559 | 572 | | |
560 | 573 | | |
561 | | - | |
| 574 | + | |
562 | 575 | | |
563 | 576 | | |
564 | 577 | | |
565 | 578 | | |
566 | 579 | | |
567 | | - | |
| 580 | + | |
568 | 581 | | |
569 | 582 | | |
570 | 583 | | |
571 | 584 | | |
572 | | - | |
| 585 | + | |
573 | 586 | | |
574 | 587 | | |
575 | 588 | | |
| |||
580 | 593 | | |
581 | 594 | | |
582 | 595 | | |
583 | | - | |
| 596 | + | |
584 | 597 | | |
585 | | - | |
| 598 | + | |
586 | 599 | | |
587 | 600 | | |
588 | 601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
121 | 127 | | |
122 | 128 | | |
123 | 129 | | |
124 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
125 | 135 | | |
126 | | - | |
127 | | - | |
| 136 | + | |
| 137 | + | |
128 | 138 | | |
129 | 139 | | |
130 | 140 | | |
| |||
142 | 152 | | |
143 | 153 | | |
144 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
145 | 160 | | |
146 | 161 | | |
147 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
774 | 805 | | |
775 | 806 | | |
776 | 807 | | |
| |||
0 commit comments