From fab22d31d778036df537b4b9aa3930237e38f05e Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Fri, 12 Nov 2021 05:52:53 +1100 Subject: [PATCH] docs: Fix a few typos There are small typos in: - pybacktest/ami_funcs.py - pybacktest/backtest.py Fixes: - Should read `occurred` rather than `occured`. - Should read `mimicking` rather than `mimicing`. - Should read `functions` rather than `funtions`. - Should read `altogether` rather than `altogather`. --- pybacktest/ami_funcs.py | 6 +++--- pybacktest/backtest.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pybacktest/ami_funcs.py b/pybacktest/ami_funcs.py index 894a95d..0256a31 100644 --- a/pybacktest/ami_funcs.py +++ b/pybacktest/ami_funcs.py @@ -1,9 +1,9 @@ # part of pybacktest package: https://github.com/ematvey/pybacktest -""" Set of pandas.Series processing functions, mimicing AmiBroker's built-ins +""" Set of pandas.Series processing functions, mimicking AmiBroker's built-ins to help translate strategies from AmiScript. -Note that most AmiScript's built-in funtions have more advanced native analogs +Note that most AmiScript's built-in functions have more advanced native analogs in pandas. Funcs like that will not be replicated here. """ @@ -35,7 +35,7 @@ def ExRem(array1, array2): def BarsSince(x): - """ Counts number of periods since last True occured. + """ Counts number of periods since last True occurred. Reference implementation: http://www.amibroker.com/guide/afl/afl_view.php?name=barssince diff --git a/pybacktest/backtest.py b/pybacktest/backtest.py index f53d5a7..c9da034 100644 --- a/pybacktest/backtest.py +++ b/pybacktest/backtest.py @@ -75,7 +75,7 @@ def __init__(self, dataobj, name='Unknown', *price_fields* specifies names of price Series where trades will take place. If some price is not specified (NaN at signal's timestamp, or - corresponding Series not present in dataobj altogather), defaults to + corresponding Series not present in dataobj altogether), defaults to Open price of next bar. By default follows AmiBroker's naming convention.