Commit 0a76e96
authored
BUG: Fix price AssertionError while using TrailingStrategy (#322)
* AssertionError while using TrailingStrategy #316
the code shouldn't be using atr[-1]. It should be using atr[index] where index = len(self.data)-1
* AssertionError while using TrailingStrategy - Adding Unit Test #316
* Adding AMZN test data file #316
* Added AMZN data #316
* Fix inconsistent tabs issue #316
* Removed Tabs and used Spaces #316
* Backing out additional test case #316
* Delete AMZN.csv file #316
* Remove AMZN data import #316
* Add code comment for change #316
* Update backtesting/lib.py
* Added extra line as lint was complaining #316
* Added extra line as lint was complaining #316
* Added extra line as lint was complaining #3161 parent 0b2325f commit 0a76e96
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
| 445 | + | |
444 | 446 | | |
445 | 447 | | |
446 | 448 | | |
447 | | - | |
| 449 | + | |
448 | 450 | | |
449 | 451 | | |
450 | | - | |
| 452 | + | |
451 | 453 | | |
452 | 454 | | |
453 | 455 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
863 | | - | |
| 863 | + | |
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
| |||
0 commit comments