mirror of
https://github.com/kernc/backtesting.py.git
synced 2024-01-28 15:29:30 +03:00
MNT: Build examples for jupytext >= 1.3 compat
This commit is contained in:
@@ -4,8 +4,8 @@
|
|||||||
# text_representation:
|
# text_representation:
|
||||||
# extension: .py
|
# extension: .py
|
||||||
# format_name: light
|
# format_name: light
|
||||||
# format_version: '1.3'
|
# format_version: '1.5'
|
||||||
# jupytext_version: 1.0.2
|
# jupytext_version: 1.3.0
|
||||||
# kernelspec:
|
# kernelspec:
|
||||||
# display_name: Python 3
|
# display_name: Python 3
|
||||||
# language: python
|
# language: python
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
# text_representation:
|
# text_representation:
|
||||||
# extension: .py
|
# extension: .py
|
||||||
# format_name: light
|
# format_name: light
|
||||||
# format_version: '1.3'
|
# format_version: '1.5'
|
||||||
# jupytext_version: 1.0.2
|
# jupytext_version: 1.3.0
|
||||||
# kernelspec:
|
# kernelspec:
|
||||||
# display_name: Python 3
|
# display_name: Python 3
|
||||||
# language: python
|
# language: python
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
# text_representation:
|
# text_representation:
|
||||||
# extension: .py
|
# extension: .py
|
||||||
# format_name: light
|
# format_name: light
|
||||||
# format_version: '1.3'
|
# format_version: '1.5'
|
||||||
# jupytext_version: 1.0.2
|
# jupytext_version: 1.3.0
|
||||||
# kernelspec:
|
# kernelspec:
|
||||||
# display_name: Python 3
|
# display_name: Python 3
|
||||||
# language: python
|
# language: python
|
||||||
@@ -116,7 +116,7 @@ class SmaCross(Strategy):
|
|||||||
# [`backtesting.lib.crossover()`](https://kernc.github.io/backtesting.py/doc/backtesting/lib.html#backtesting.lib.crossover)
|
# [`backtesting.lib.crossover()`](https://kernc.github.io/backtesting.py/doc/backtesting/lib.html#backtesting.lib.crossover)
|
||||||
# function instead of writing more obscure and confusing conditions, such as:
|
# function instead of writing more obscure and confusing conditions, such as:
|
||||||
|
|
||||||
# + {"active": ""}
|
# + active=""
|
||||||
# def next(self):
|
# def next(self):
|
||||||
# if (self.sma1[-2] < self.sma2[-2] and
|
# if (self.sma1[-2] < self.sma2[-2] and
|
||||||
# self.sma1[-1] > self.sma2[-1]):
|
# self.sma1[-1] > self.sma2[-1]):
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
# text_representation:
|
# text_representation:
|
||||||
# extension: .py
|
# extension: .py
|
||||||
# format_name: light
|
# format_name: light
|
||||||
# format_version: '1.3'
|
# format_version: '1.5'
|
||||||
# jupytext_version: 1.0.2
|
# jupytext_version: 1.3.0
|
||||||
# kernelspec:
|
# kernelspec:
|
||||||
# display_name: Python 3
|
# display_name: Python 3
|
||||||
# language: python
|
# language: python
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -38,7 +38,7 @@ if __name__ == '__main__':
|
|||||||
extras_require={
|
extras_require={
|
||||||
'doc': [
|
'doc': [
|
||||||
'pdoc3',
|
'pdoc3',
|
||||||
'jupytext >= 1.0.2',
|
'jupytext >= 1.3',
|
||||||
'nbconvert',
|
'nbconvert',
|
||||||
'ipykernel', # for nbconvert
|
'ipykernel', # for nbconvert
|
||||||
'jupyter_client', # for nbconvert
|
'jupyter_client', # for nbconvert
|
||||||
|
|||||||
Reference in New Issue
Block a user