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.