Skip to content

Commit 9340750

Browse files
fixing docstrings and docs parsing issues
1 parent ce8908f commit 9340750

24 files changed

+330
-355
lines changed

CHANGELOG.md

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
1-
What's New
2-
==========
1+
# lucit-backtesting Change Log
32

4-
These were the major changes contributing to each release:
3+
All notable changes to this project will be documented in this file.
54

6-
### 1.0.0
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to
6+
[Semantic Versioning](http://semver.org/).
7+
8+
[Discussions about lucit-backtesting releases!](https://github.com/LUCIT-Systems-and-Development/lucit-backtesting/discussions/categories/releases)
9+
10+
## 1.0.0
711
(2024-06-06)
812

913
Takeover of maintenance by LUCIT. The aim is an easy-to-install and functioning system.
1014

1115
* Fix 'ValueError: Length of values (2) does not match length of index (1)' [#649](https://github.com/kernc/backtesting.py/issues/649)
1216
* Fix 'Plotting does not work and raises an error with Bokeh' [#1069](https://github.com/kernc/backtesting.py/issues/1069)
1317

14-
### 0.3.3
18+
## 0.3.3
1519
(2021-12-13)
1620

1721
* Fix random generation with recent NumPy.
1822
* Fix Pandas deprecation warnings.
1923
* Replace Bokeh 3.0 deprecations.
2024

2125

22-
### 0.3.2
26+
## 0.3.2
2327
(2021-08-03)
2428

2529
* New strategy performance method [`backtesting.lib.compute_stats`](https://kernc.github.io/backtesting.py/doc/backtesting/lib.html#backtesting.lib.compute_stats) (#281)
@@ -30,14 +34,14 @@ Takeover of maintenance by LUCIT. The aim is an easy-to-install and functioning
3034
* Other small bugs and fixes.
3135

3236

33-
### 0.3.1
37+
## 0.3.1
3438
(2021-01-25)
3539

3640
* Avoid some `pandas.Index` deprecations
3741
* Fix `Backtest.plot(show_legend=False)` for recent Bokeh
3842

3943

40-
### 0.3.0
44+
## 0.3.0
4145
(2020-11-24)
4246

4347
* Faster [model-based optimization](https://kernc.github.io/backtesting.py/doc/examples/Parameter%20Heatmap%20&%20Optimization.html#Model-based-optimization) using scikit-optimize (#154)
@@ -48,34 +52,34 @@ Takeover of maintenance by LUCIT. The aim is an easy-to-install and functioning
4852
* Update Expectancy formula (#181)
4953

5054

51-
### 0.2.4
55+
## 0.2.4
5256
(2020-10-27)
5357

5458
* Add [`lib.random_ohlc_data()`](https://kernc.github.io/backtesting.py/doc/backtesting/lib.html#backtesting.lib.random_ohlc_data) OHLC data generator
5559
* Aggregate Equity on 'last' when plot resampling
5660
* Update stats calculation for Buy & Hold to be long-only (#152)
5761

5862

59-
### 0.2.3
63+
## 0.2.3
6064
(2020-09-10)
6165

6266
* Link hover crosshairs across plots
6367
* Clicking plot legend glyph toggles indicator visibility
6468
* Fix Bokeh tooltip showing literal '\ '
6569

6670

67-
### 0.2.2
71+
## 0.2.2
6872
(2020-08-21)
6973

7074

71-
### 0.2.1
75+
## 0.2.1
7276
(2020-08-03)
7377

7478
* Add [`Trade.entry_time/.exit_time`](https://kernc.github.io/backtesting.py/doc/backtesting/backtesting.html#backtesting.backtesting.Trade)
7579
* Handle SL/TP hit on the same day the position was opened
7680

7781

78-
### 0.2.0
82+
## 0.2.0
7983
(2020-07-15)
8084

8185
* New Order/Trade/Position API (#47)
@@ -87,32 +91,32 @@ Takeover of maintenance by LUCIT. The aim is an easy-to-install and functioning
8791
* Use geometric mean return in Sharpe/Sortino stats computation
8892

8993

90-
### 0.1.8
94+
## 0.1.8
9195
(2020-07-14)
9296

9397
* Add Profit Factor statistic (#85)
9498

9599

96-
### 0.1.7
100+
## 0.1.7
97101
(2020-03-23)
98102

99103
* Fix support for 2-D indicators
100104
* Fix tooltip Date field formatting with Bokeh 2.0.0
101105

102106

103-
### 0.1.6
107+
## 0.1.6
104108
(2020-03-09)
105109

106110

107-
### 0.1.5
111+
## 0.1.5
108112
(2020-03-02)
109113

110114

111-
### 0.1.4
115+
## 0.1.4
112116
(2020-02-25)
113117

114118

115-
### 0.1.3
119+
## 0.1.3
116120
(2020-02-24)
117121

118122
* Show number of trades on OHLC plot legend
@@ -121,20 +125,20 @@ Takeover of maintenance by LUCIT. The aim is an easy-to-install and functioning
121125
* Fix pandas insertion error on Windos
122126

123127

124-
### 0.1.2
128+
## 0.1.2
125129
(2019-09-23)
126130

127131
* Make plot span 100% of browser width
128132

129133

130-
### 0.1.1
134+
## 0.1.1
131135
(2019-09-23)
132136

133137
* Avoid multiprocessing trouble on Windos (#6)
134138
* Add scatter plot indicators
135139

136140

137-
### 0.1.0
141+
## 0.1.0
138142
(2019-01-15)
139143

140144
* Initial release

LICENSE.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### GNU AFFERO GENERAL PUBLIC LICENSE
1+
# GNU AFFERO GENERAL PUBLIC LICENSE
22

33
Version 3, 19 November 2007
44

@@ -8,7 +8,7 @@ Copyright (C) 2007 Free Software Foundation, Inc.
88
Everyone is permitted to copy and distribute verbatim copies of this
99
license document, but changing it is not allowed.
1010

11-
### Preamble
11+
## Preamble
1212

1313
The GNU Affero General Public License is a free, copyleft license for
1414
software and other kinds of works, specifically designed to ensure
@@ -59,9 +59,9 @@ under this license.
5959
The precise terms and conditions for copying, distribution and
6060
modification follow.
6161

62-
### TERMS AND CONDITIONS
62+
## TERMS AND CONDITIONS
6363

64-
#### 0. Definitions.
64+
### 0. Definitions.
6565

6666
"This License" refers to version 3 of the GNU Affero General Public
6767
License.
@@ -102,7 +102,7 @@ work under this License, and how to view a copy of this License. If
102102
the interface presents a list of user commands or options, such as a
103103
menu, a prominent item in the list meets this criterion.
104104

105-
#### 1. Source Code.
105+
### 1. Source Code.
106106

107107
The "source code" for a work means the preferred form of the work for
108108
making modifications to it. "Object code" means any non-source form of
@@ -143,7 +143,7 @@ regenerate automatically from other parts of the Corresponding Source.
143143
The Corresponding Source for a work in source code form is that same
144144
work.
145145

146-
#### 2. Basic Permissions.
146+
### 2. Basic Permissions.
147147

148148
All rights granted under this License are granted for the term of
149149
copyright on the Program, and are irrevocable provided the stated
@@ -168,7 +168,7 @@ Conveying under any other circumstances is permitted solely under the
168168
conditions stated below. Sublicensing is not allowed; section 10 makes
169169
it unnecessary.
170170

171-
#### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
171+
### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
172172

173173
No covered work shall be deemed part of an effective technological
174174
measure under any applicable law fulfilling obligations under article
@@ -184,7 +184,7 @@ operation or modification of the work as a means of enforcing, against
184184
the work's users, your or third parties' legal rights to forbid
185185
circumvention of technological measures.
186186

187-
#### 4. Conveying Verbatim Copies.
187+
### 4. Conveying Verbatim Copies.
188188

189189
You may convey verbatim copies of the Program's source code as you
190190
receive it, in any medium, provided that you conspicuously and
@@ -197,7 +197,7 @@ recipients a copy of this License along with the Program.
197197
You may charge any price or no price for each copy that you convey,
198198
and you may offer support or warranty protection for a fee.
199199

200-
#### 5. Conveying Modified Source Versions.
200+
### 5. Conveying Modified Source Versions.
201201

202202
You may convey a work based on the Program, or the modifications to
203203
produce it from the Program, in the form of source code under the
@@ -232,7 +232,7 @@ beyond what the individual works permit. Inclusion of a covered work
232232
in an aggregate does not cause this License to apply to the other
233233
parts of the aggregate.
234234

235-
#### 6. Conveying Non-Source Forms.
235+
### 6. Conveying Non-Source Forms.
236236

237237
You may convey a covered work in object code form under the terms of
238238
sections 4 and 5, provided that you also convey the machine-readable
@@ -328,7 +328,7 @@ documented (and with an implementation available to the public in
328328
source code form), and must require no special password or key for
329329
unpacking, reading or copying.
330330

331-
#### 7. Additional Terms.
331+
### 7. Additional Terms.
332332

333333
"Additional permissions" are terms that supplement the terms of this
334334
License by making exceptions from one or more of its conditions.
@@ -387,7 +387,7 @@ Additional terms, permissive or non-permissive, may be stated in the
387387
form of a separately written license, or stated as exceptions; the
388388
above requirements apply either way.
389389

390-
#### 8. Termination.
390+
### 8. Termination.
391391

392392
You may not propagate or modify a covered work except as expressly
393393
provided under this License. Any attempt otherwise to propagate or
@@ -415,7 +415,7 @@ this License. If your rights have been terminated and not permanently
415415
reinstated, you do not qualify to receive new licenses for the same
416416
material under section 10.
417417

418-
#### 9. Acceptance Not Required for Having Copies.
418+
### 9. Acceptance Not Required for Having Copies.
419419

420420
You are not required to accept this License in order to receive or run
421421
a copy of the Program. Ancillary propagation of a covered work
@@ -426,7 +426,7 @@ modify any covered work. These actions infringe copyright if you do
426426
not accept this License. Therefore, by modifying or propagating a
427427
covered work, you indicate your acceptance of this License to do so.
428428

429-
#### 10. Automatic Licensing of Downstream Recipients.
429+
### 10. Automatic Licensing of Downstream Recipients.
430430

431431
Each time you convey a covered work, the recipient automatically
432432
receives a license from the original licensors, to run, modify and
@@ -451,7 +451,7 @@ rights granted under this License, and you may not initiate litigation
451451
any patent claim is infringed by making, using, selling, offering for
452452
sale, or importing the Program or any portion of it.
453453

454-
#### 11. Patents.
454+
### 11. Patents.
455455

456456
A "contributor" is a copyright holder who authorizes use under this
457457
License of the Program or a work on which the Program is based. The
@@ -520,7 +520,7 @@ Nothing in this License shall be construed as excluding or limiting
520520
any implied license or other defenses to infringement that may
521521
otherwise be available to you under applicable patent law.
522522

523-
#### 12. No Surrender of Others' Freedom.
523+
### 12. No Surrender of Others' Freedom.
524524

525525
If conditions are imposed on you (whether by court order, agreement or
526526
otherwise) that contradict the conditions of this License, they do not
@@ -533,7 +533,7 @@ from those to whom you convey the Program, the only way you could
533533
satisfy both those terms and this License would be to refrain entirely
534534
from conveying the Program.
535535

536-
#### 13. Remote Network Interaction; Use with the GNU General Public License.
536+
### 13. Remote Network Interaction; Use with the GNU General Public License.
537537

538538
Notwithstanding any other provision of this License, if you modify the
539539
Program, your modified version must prominently offer all users
@@ -554,7 +554,7 @@ License will continue to apply to the part which is the covered work,
554554
but the work with which it is combined will remain governed by version
555555
3 of the GNU General Public License.
556556

557-
#### 14. Revised Versions of this License.
557+
### 14. Revised Versions of this License.
558558

559559
The Free Software Foundation may publish revised and/or new versions
560560
of the GNU Affero General Public License from time to time. Such new
@@ -580,7 +580,7 @@ permissions. However, no additional obligations are imposed on any
580580
author or copyright holder as a result of your choosing to follow a
581581
later version.
582582

583-
#### 15. Disclaimer of Warranty.
583+
### 15. Disclaimer of Warranty.
584584

585585
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
586586
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
@@ -592,7 +592,7 @@ PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
592592
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
593593
CORRECTION.
594594

595-
#### 16. Limitation of Liability.
595+
### 16. Limitation of Liability.
596596

597597
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
598598
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
@@ -604,7 +604,7 @@ LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
604604
TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
605605
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
606606

607-
#### 17. Interpretation of Sections 15 and 16.
607+
### 17. Interpretation of Sections 15 and 16.
608608

609609
If the disclaimer of warranty and limitation of liability provided
610610
above cannot be given local legal effect according to their terms,
@@ -615,7 +615,7 @@ copy of the Program in return for a fee.
615615

616616
END OF TERMS AND CONDITIONS
617617

618-
### How to Apply These Terms to Your New Programs
618+
## How to Apply These Terms to Your New Programs
619619

620620
If you develop a new program, and you want it to be of the greatest
621621
possible use to the public, the best way to achieve this is to make it

0 commit comments

Comments
 (0)