diff --git a/README.md b/README.md index 20044b9..b1a7885 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ results = detect( … config={ # Force the tolerance to be derived from last candle price - "max_allowable_error_pt_to_trend": lambda candles: candles.iloc[-1].Close / 100, + "max_allowable_error_pt_to_trend": lambda candles: candles.df.iloc[-1].Close / 100, } ) ``` @@ -144,4 +144,4 @@ Library can install using pip: ``` pip install trendln -``` \ No newline at end of file +```