Archer Moving Averages Trends (AMAT)
Calculate Archer’s Moving Averages Trends (AMAT): whether a fast and a slow moving average both rise (a long run) or both fall (a short run), which shows the direction of a trend.
AMAT flags a long run when the short moving average rose over the last lookback periods while the long one moved (a rising long average confirms the up trend, a falling one marks a potential bottom), and a short run when the short average fell while the long one moved (a potential top when the long one still rose). Both flags are 0 when the short average is flat or the long one did not move.
The formula is as follows:
\[\text{Long Run} = 1 \;\text{if MA}(\text{Close},\; \text{short\_window}) \;\text{rose over} \;\text{lookback} \;\text{periods and MA}(\text{Close},\; \text{long\_window}) \;\text{changed},\;\; \text{else 0}\] \[\text{Short Run} = 1 \;\text{if MA}(\text{Close},\; \text{short\_window}) \;\text{fell over} \;\text{lookback} \;\text{periods and MA}(\text{Close},\; \text{long\_window}) \;\text{changed},\;\; \text{else 0}\]with MA the exponential moving average by default.
Also known as: AMAT, Archer Moving Averages Trends.
Example · AAPL, MSFT · 2024 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_archer_moving_average_trends:
from financetoolkit import Toolkit
toolkit = Toolkit(
tickers=["AAPL", "MSFT"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2024-01-01",
end_date="2025-12-31",
)
toolkit.technicals.get_archer_moving_average_trends().xs("AAPL", level=1, axis="columns")
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
On which days in 2025 did the Archer moving average trends signal a long or a short run for Apple?
Which returns:
| Date | Long Run | Short Run |
|---|---|---|
| 2024-01-02 | 0 | 1 |
| 2024-01-03 | 0 | 1 |
| 2024-01-04 | 0 | 1 |
| 2024-01-05 | 0 | 1 |
| 2024-01-08 | 0 | 1 |
| 2024-01-09 | 0 | 1 |
| 2024-01-10 | 0 | 1 |
| 2024-01-11 | 0 | 1 |
| 2024-01-12 | 0 | 1 |
| 2024-01-16 | 0 | 1 |
| 2024-01-17 | 0 | 1 |
| 2024-01-18 | 1 | 0 |
| 2024-01-19 | 1 | 0 |
| 2024-01-22 | 1 | 0 |
| 2024-01-23 | 1 | 0 |
| 2024-01-24 | 1 | 0 |
| 2024-01-25 | 1 | 0 |
| 2024-01-26 | 1 | 0 |
| 2024-01-29 | 1 | 0 |
| 2024-01-30 | 0 | 1 |
| 2024-01-31 | 0 | 1 |
| 2024-02-01 | 0 | 1 |
| 2024-02-02 | 0 | 1 |
| 2024-02-05 | 0 | 1 |
| 2024-02-06 | 1 | 0 |
| 2024-02-07 | 1 | 0 |
| 2024-02-08 | 1 | 0 |
| 2024-02-09 | 1 | 0 |
| 2024-02-12 | 0 | 1 |
| 2024-02-13 | 0 | 1 |
| 2024-02-14 | 0 | 1 |
| 2024-02-15 | 0 | 1 |
| 2024-02-16 | 0 | 1 |
| 2024-02-20 | 0 | 1 |
| 2024-02-21 | 0 | 1 |
| 2024-02-22 | 0 | 1 |
| 2024-02-23 | 0 | 1 |
| 2024-02-26 | 0 | 1 |
| 2024-02-27 | 0 | 1 |
| 2024-02-28 | 0 | 1 |
| 2024-02-29 | 0 | 1 |
| 2024-03-01 | 0 | 1 |
| 2024-03-04 | 0 | 1 |
| 2024-03-05 | 0 | 1 |
| 2024-03-06 | 0 | 1 |
| 2024-03-07 | 0 | 1 |
| 2024-03-08 | 0 | 1 |
| 2024-03-11 | 0 | 1 |
| 2024-03-12 | 0 | 1 |
| 2024-03-13 | 0 | 1 |
| 2024-03-14 | 0 | 1 |
| 2024-03-15 | 0 | 1 |
| 2024-03-18 | 1 | 0 |
| 2024-03-19 | 1 | 0 |
| 2024-03-20 | 1 | 0 |
| 2024-03-21 | 1 | 0 |
| 2024-03-22 | 0 | 1 |
| 2024-03-25 | 0 | 1 |
| 2024-03-26 | 0 | 1 |
| 2024-03-27 | 0 | 1 |
| 2024-03-28 | 0 | 1 |
| 2024-04-01 | 0 | 1 |
| 2024-04-02 | 0 | 1 |
| 2024-04-03 | 0 | 1 |
| 2024-04-04 | 0 | 1 |
| 2024-04-05 | 0 | 1 |
| 2024-04-08 | 0 | 1 |
| 2024-04-09 | 0 | 1 |
| 2024-04-10 | 0 | 1 |
| 2024-04-11 | 1 | 0 |
| 2024-04-12 | 1 | 0 |
| 2024-04-15 | 1 | 0 |
| 2024-04-16 | 0 | 1 |
| 2024-04-17 | 0 | 1 |
| 2024-04-18 | 0 | 1 |
| 2024-04-19 | 0 | 1 |
| 2024-04-22 | 0 | 1 |
| 2024-04-23 | 0 | 1 |
| 2024-04-24 | 0 | 1 |
| 2024-04-25 | 1 | 0 |
| 2024-04-26 | 1 | 0 |
| 2024-04-29 | 1 | 0 |
| 2024-04-30 | 1 | 0 |
| 2024-05-01 | 0 | 1 |
| 2024-05-02 | 1 | 0 |
| 2024-05-03 | 1 | 0 |
| 2024-05-06 | 1 | 0 |
| 2024-05-07 | 1 | 0 |
| 2024-05-08 | 1 | 0 |
| 2024-05-09 | 1 | 0 |
| 2024-05-10 | 1 | 0 |
| 2024-05-13 | 1 | 0 |
| 2024-05-14 | 1 | 0 |
| 2024-05-15 | 1 | 0 |
| 2024-05-16 | 1 | 0 |
| 2024-05-17 | 1 | 0 |
| 2024-05-20 | 1 | 0 |
| 2024-05-21 | 1 | 0 |
| 2024-05-22 | 1 | 0 |
| 2024-05-23 | 1 | 0 |
| 2024-05-24 | 0 | 1 |
| 2024-05-28 | 1 | 0 |
| 2024-05-29 | 1 | 0 |
| 2024-05-30 | 1 | 0 |
| 2024-05-31 | 1 | 0 |
| 2024-06-03 | 1 | 0 |
| 2024-06-04 | 1 | 0 |
| 2024-06-05 | 1 | 0 |
| 2024-06-06 | 1 | 0 |
| 2024-06-07 | 1 | 0 |
| 2024-06-10 | 1 | 0 |
| 2024-06-11 | 1 | 0 |
| 2024-06-12 | 1 | 0 |
| 2024-06-13 | 1 | 0 |
| 2024-06-14 | 1 | 0 |
| 2024-06-17 | 1 | 0 |
| 2024-06-18 | 1 | 0 |
| 2024-06-20 | 1 | 0 |
| 2024-06-21 | 0 | 1 |
| 2024-06-24 | 0 | 1 |
| 2024-06-25 | 0 | 1 |
| 2024-06-26 | 1 | 0 |
| 2024-06-27 | 1 | 0 |
| 2024-06-28 | 1 | 0 |
| 2024-07-01 | 1 | 0 |
| 2024-07-02 | 1 | 0 |
| 2024-07-03 | 1 | 0 |
| 2024-07-05 | 1 | 0 |
| 2024-07-08 | 1 | 0 |
| 2024-07-09 | 1 | 0 |
| 2024-07-10 | 1 | 0 |
| 2024-07-11 | 1 | 0 |
| 2024-07-12 | 1 | 0 |
| 2024-07-15 | 1 | 0 |
| 2024-07-16 | 1 | 0 |
| 2024-07-17 | 1 | 0 |
| 2024-07-18 | 0 | 1 |
| 2024-07-19 | 0 | 1 |
| 2024-07-22 | 0 | 1 |
| 2024-07-23 | 0 | 1 |
| 2024-07-24 | 0 | 1 |
| 2024-07-25 | 0 | 1 |
| 2024-07-26 | 0 | 1 |
| 2024-07-29 | 0 | 1 |
| 2024-07-30 | 0 | 1 |
| 2024-07-31 | 0 | 1 |
| 2024-08-01 | 0 | 1 |
| 2024-08-02 | 0 | 1 |
| 2024-08-05 | 0 | 1 |
| 2024-08-06 | 0 | 1 |
| 2024-08-07 | 0 | 1 |
| 2024-08-08 | 0 | 1 |
| 2024-08-09 | 1 | 0 |
| 2024-08-12 | 1 | 0 |
| 2024-08-13 | 1 | 0 |
| 2024-08-14 | 1 | 0 |
| 2024-08-15 | 1 | 0 |
| 2024-08-16 | 1 | 0 |
| 2024-08-19 | 1 | 0 |
| 2024-08-20 | 1 | 0 |
| 2024-08-21 | 1 | 0 |
| 2024-08-22 | 1 | 0 |
| 2024-08-23 | 1 | 0 |
| 2024-08-26 | 1 | 0 |
| 2024-08-27 | 1 | 0 |
| 2024-08-28 | 1 | 0 |
| 2024-08-29 | 1 | 0 |
| 2024-08-30 | 1 | 0 |
| 2024-09-03 | 0 | 1 |
| 2024-09-04 | 0 | 1 |
| 2024-09-05 | 0 | 1 |
| 2024-09-06 | 0 | 1 |
| 2024-09-09 | 0 | 1 |
| 2024-09-10 | 0 | 1 |
| 2024-09-11 | 0 | 1 |
| 2024-09-12 | 1 | 0 |
| 2024-09-13 | 1 | 0 |
| 2024-09-16 | 0 | 1 |
| 2024-09-17 | 0 | 1 |
| 2024-09-18 | 0 | 1 |
| 2024-09-19 | 1 | 0 |
| 2024-09-20 | 1 | 0 |
| 2024-09-23 | 1 | 0 |
| 2024-09-24 | 1 | 0 |
| 2024-09-25 | 1 | 0 |
| 2024-09-26 | 1 | 0 |
| 2024-09-27 | 1 | 0 |
| 2024-09-30 | 1 | 0 |
| 2024-10-01 | 1 | 0 |
| 2024-10-02 | 0 | 1 |
| 2024-10-03 | 0 | 1 |
| 2024-10-04 | 0 | 1 |
| 2024-10-07 | 0 | 1 |
| 2024-10-08 | 0 | 1 |
| 2024-10-09 | 1 | 0 |
| 2024-10-10 | 1 | 0 |
| 2024-10-11 | 1 | 0 |
| 2024-10-14 | 1 | 0 |
| 2024-10-15 | 1 | 0 |
| 2024-10-16 | 1 | 0 |
| 2024-10-17 | 1 | 0 |
| 2024-10-18 | 1 | 0 |
| 2024-10-21 | 1 | 0 |
| 2024-10-22 | 1 | 0 |
| 2024-10-23 | 1 | 0 |
| 2024-10-24 | 0 | 1 |
| 2024-10-25 | 0 | 1 |
| 2024-10-28 | 1 | 0 |
| 2024-10-29 | 1 | 0 |
| 2024-10-30 | 0 | 1 |
| 2024-10-31 | 0 | 1 |
| 2024-11-01 | 0 | 1 |
| 2024-11-04 | 0 | 1 |
| 2024-11-05 | 0 | 1 |
| 2024-11-06 | 0 | 1 |
| 2024-11-07 | 0 | 1 |
| 2024-11-08 | 1 | 0 |
| 2024-11-11 | 0 | 1 |
| 2024-11-12 | 0 | 1 |
| 2024-11-13 | 0 | 1 |
| 2024-11-14 | 1 | 0 |
| 2024-11-15 | 1 | 0 |
| 2024-11-18 | 1 | 0 |
| 2024-11-19 | 1 | 0 |
| 2024-11-20 | 1 | 0 |
| 2024-11-21 | 1 | 0 |
| 2024-11-22 | 1 | 0 |
| 2024-11-25 | 1 | 0 |
| 2024-11-26 | 1 | 0 |
| 2024-11-27 | 1 | 0 |
| 2024-11-29 | 1 | 0 |
| 2024-12-02 | 1 | 0 |
| 2024-12-03 | 1 | 0 |
| 2024-12-04 | 1 | 0 |
| 2024-12-05 | 1 | 0 |
| 2024-12-06 | 1 | 0 |
| 2024-12-09 | 1 | 0 |
| 2024-12-10 | 1 | 0 |
| 2024-12-11 | 1 | 0 |
| 2024-12-12 | 1 | 0 |
| 2024-12-13 | 1 | 0 |
| 2024-12-16 | 1 | 0 |
| 2024-12-17 | 1 | 0 |
| 2024-12-18 | 1 | 0 |
| 2024-12-19 | 1 | 0 |
| 2024-12-20 | 1 | 0 |
| 2024-12-23 | 1 | 0 |
| 2024-12-24 | 1 | 0 |
| 2024-12-26 | 1 | 0 |
| 2024-12-27 | 1 | 0 |
| 2024-12-30 | 0 | 1 |
| 2024-12-31 | 0 | 1 |
| 2025-01-02 | 0 | 1 |
| 2025-01-03 | 0 | 1 |
| 2025-01-06 | 0 | 1 |
| 2025-01-07 | 0 | 1 |
| 2025-01-08 | 0 | 1 |
| 2025-01-10 | 0 | 1 |
| 2025-01-13 | 0 | 1 |
| 2025-01-14 | 0 | 1 |
| 2025-01-15 | 0 | 1 |
| 2025-01-16 | 0 | 1 |
| 2025-01-17 | 0 | 1 |
| 2025-01-21 | 0 | 1 |
| 2025-01-22 | 0 | 1 |
| 2025-01-23 | 0 | 1 |
| 2025-01-24 | 0 | 1 |
| 2025-01-27 | 0 | 1 |
| 2025-01-28 | 1 | 0 |
| 2025-01-29 | 1 | 0 |
| 2025-01-30 | 1 | 0 |
| 2025-01-31 | 1 | 0 |
| 2025-02-03 | 0 | 1 |
| 2025-02-04 | 0 | 1 |
| 2025-02-05 | 0 | 1 |
| 2025-02-06 | 1 | 0 |
| 2025-02-07 | 0 | 1 |
| 2025-02-10 | 0 | 1 |
| 2025-02-11 | 0 | 1 |
| 2025-02-12 | 1 | 0 |
| 2025-02-13 | 1 | 0 |
| 2025-02-14 | 1 | 0 |
| 2025-02-18 | 1 | 0 |
| 2025-02-19 | 1 | 0 |
| 2025-02-20 | 1 | 0 |
| 2025-02-21 | 1 | 0 |
| 2025-02-24 | 1 | 0 |
| 2025-02-25 | 1 | 0 |
| 2025-02-26 | 1 | 0 |
| 2025-02-27 | 0 | 1 |
| 2025-02-28 | 0 | 1 |
| 2025-03-03 | 0 | 1 |
| 2025-03-04 | 0 | 1 |
| 2025-03-05 | 0 | 1 |
| 2025-03-06 | 0 | 1 |
| 2025-03-07 | 0 | 1 |
| 2025-03-10 | 0 | 1 |
| 2025-03-11 | 0 | 1 |
| 2025-03-12 | 0 | 1 |
| 2025-03-13 | 0 | 1 |
| 2025-03-14 | 0 | 1 |
| 2025-03-17 | 0 | 1 |
| 2025-03-18 | 0 | 1 |
| 2025-03-19 | 0 | 1 |
| 2025-03-20 | 0 | 1 |
| 2025-03-21 | 0 | 1 |
| 2025-03-24 | 1 | 0 |
| 2025-03-25 | 1 | 0 |
| 2025-03-26 | 1 | 0 |
| 2025-03-27 | 1 | 0 |
| 2025-03-28 | 1 | 0 |
| 2025-03-31 | 0 | 1 |
| 2025-04-01 | 1 | 0 |
| 2025-04-02 | 1 | 0 |
| 2025-04-03 | 0 | 1 |
| 2025-04-04 | 0 | 1 |
| 2025-04-07 | 0 | 1 |
| 2025-04-08 | 0 | 1 |
| 2025-04-09 | 0 | 1 |
| 2025-04-10 | 0 | 1 |
| 2025-04-11 | 0 | 1 |
| 2025-04-14 | 1 | 0 |
| 2025-04-15 | 1 | 0 |
| 2025-04-16 | 0 | 1 |
| 2025-04-17 | 0 | 1 |
| 2025-04-21 | 0 | 1 |
| 2025-04-22 | 0 | 1 |
| 2025-04-23 | 1 | 0 |
| 2025-04-24 | 1 | 0 |
| 2025-04-25 | 1 | 0 |
| 2025-04-28 | 1 | 0 |
| 2025-04-29 | 1 | 0 |
| 2025-04-30 | 1 | 0 |
| 2025-05-01 | 1 | 0 |
| 2025-05-02 | 1 | 0 |
| 2025-05-05 | 0 | 1 |
| 2025-05-06 | 0 | 1 |
| 2025-05-07 | 0 | 1 |
| 2025-05-08 | 0 | 1 |
| 2025-05-09 | 0 | 1 |
| 2025-05-12 | 1 | 0 |
| 2025-05-13 | 1 | 0 |
| 2025-05-14 | 1 | 0 |
| 2025-05-15 | 1 | 0 |
| 2025-05-16 | 1 | 0 |
| 2025-05-19 | 1 | 0 |
| 2025-05-20 | 0 | 1 |
| 2025-05-21 | 0 | 1 |
| 2025-05-22 | 0 | 1 |
| 2025-05-23 | 0 | 1 |
| 2025-05-27 | 0 | 1 |
| 2025-05-28 | 0 | 1 |
| 2025-05-29 | 0 | 1 |
| 2025-05-30 | 0 | 1 |
| 2025-06-02 | 0 | 1 |
| 2025-06-03 | 1 | 0 |
| 2025-06-04 | 1 | 0 |
| 2025-06-05 | 0 | 1 |
| 2025-06-06 | 1 | 0 |
| 2025-06-09 | 1 | 0 |
| 2025-06-10 | 0 | 1 |
| 2025-06-11 | 0 | 1 |
| 2025-06-12 | 0 | 1 |
| 2025-06-13 | 0 | 1 |
| 2025-06-16 | 0 | 1 |
| 2025-06-17 | 0 | 1 |
| 2025-06-18 | 0 | 1 |
| 2025-06-20 | 1 | 0 |
| 2025-06-23 | 1 | 0 |
| 2025-06-24 | 1 | 0 |
| 2025-06-25 | 1 | 0 |
| 2025-06-26 | 1 | 0 |
| 2025-06-27 | 1 | 0 |
| 2025-06-30 | 1 | 0 |
| 2025-07-01 | 1 | 0 |
| 2025-07-02 | 1 | 0 |
| 2025-07-03 | 1 | 0 |
| 2025-07-07 | 1 | 0 |
| 2025-07-08 | 1 | 0 |
| 2025-07-09 | 1 | 0 |
| 2025-07-10 | 1 | 0 |
| 2025-07-11 | 1 | 0 |
| 2025-07-14 | 1 | 0 |
| 2025-07-15 | 0 | 1 |
| 2025-07-16 | 1 | 0 |
| 2025-07-17 | 1 | 0 |
| 2025-07-18 | 1 | 0 |
| 2025-07-21 | 1 | 0 |
| 2025-07-22 | 1 | 0 |
| 2025-07-23 | 1 | 0 |
| 2025-07-24 | 1 | 0 |
| 2025-07-25 | 1 | 0 |
| 2025-07-28 | 1 | 0 |
| 2025-07-29 | 0 | 1 |
| 2025-07-30 | 0 | 1 |
| 2025-07-31 | 0 | 1 |
| 2025-08-01 | 0 | 1 |
| 2025-08-04 | 0 | 1 |
| 2025-08-05 | 0 | 1 |
| 2025-08-06 | 1 | 0 |
| 2025-08-07 | 1 | 0 |
| 2025-08-08 | 1 | 0 |
| 2025-08-11 | 1 | 0 |
| 2025-08-12 | 1 | 0 |
| 2025-08-13 | 1 | 0 |
| 2025-08-14 | 1 | 0 |
| 2025-08-15 | 1 | 0 |
| 2025-08-18 | 1 | 0 |
| 2025-08-19 | 1 | 0 |
| 2025-08-20 | 1 | 0 |
| 2025-08-21 | 0 | 1 |
| 2025-08-22 | 0 | 1 |
| 2025-08-25 | 1 | 0 |
| 2025-08-26 | 1 | 0 |
| 2025-08-27 | 1 | 0 |
| 2025-08-28 | 1 | 0 |
| 2025-08-29 | 1 | 0 |
| 2025-09-02 | 1 | 0 |
| 2025-09-03 | 1 | 0 |
| 2025-09-04 | 1 | 0 |
| 2025-09-05 | 1 | 0 |
| 2025-09-08 | 1 | 0 |
| 2025-09-09 | 1 | 0 |
| 2025-09-10 | 0 | 1 |
| 2025-09-11 | 0 | 1 |
| 2025-09-12 | 0 | 1 |
| 2025-09-15 | 1 | 0 |
| 2025-09-16 | 1 | 0 |
| 2025-09-17 | 1 | 0 |
| 2025-09-18 | 1 | 0 |
| 2025-09-19 | 1 | 0 |
| 2025-09-22 | 1 | 0 |
| 2025-09-23 | 1 | 0 |
| 2025-09-24 | 1 | 0 |
| 2025-09-25 | 1 | 0 |
| 2025-09-26 | 1 | 0 |
| 2025-09-29 | 1 | 0 |
| 2025-09-30 | 1 | 0 |
| 2025-10-01 | 1 | 0 |
| 2025-10-02 | 1 | 0 |
| 2025-10-03 | 1 | 0 |
| 2025-10-06 | 1 | 0 |
| 2025-10-07 | 1 | 0 |
| 2025-10-08 | 1 | 0 |
| 2025-10-09 | 1 | 0 |
| 2025-10-10 | 0 | 1 |
| 2025-10-13 | 0 | 1 |
| 2025-10-14 | 0 | 1 |
| 2025-10-15 | 0 | 1 |
| 2025-10-16 | 0 | 1 |
| 2025-10-17 | 0 | 1 |
| 2025-10-20 | 1 | 0 |
| 2025-10-21 | 1 | 0 |
| 2025-10-22 | 1 | 0 |
| 2025-10-23 | 1 | 0 |
| 2025-10-24 | 1 | 0 |
| 2025-10-27 | 1 | 0 |
| 2025-10-28 | 1 | 0 |
| 2025-10-29 | 1 | 0 |
| 2025-10-30 | 1 | 0 |
| 2025-10-31 | 1 | 0 |
| 2025-11-03 | 1 | 0 |
| 2025-11-04 | 1 | 0 |
| 2025-11-05 | 1 | 0 |
| 2025-11-06 | 1 | 0 |
| 2025-11-07 | 1 | 0 |
| 2025-11-10 | 1 | 0 |
| 2025-11-11 | 1 | 0 |
| 2025-11-12 | 1 | 0 |
| 2025-11-13 | 1 | 0 |
| 2025-11-14 | 1 | 0 |
| 2025-11-17 | 0 | 1 |
| 2025-11-18 | 0 | 1 |
| 2025-11-19 | 0 | 1 |
| 2025-11-20 | 0 | 1 |
| 2025-11-21 | 0 | 1 |
| 2025-11-24 | 1 | 0 |
| 2025-11-25 | 1 | 0 |
| 2025-11-26 | 1 | 0 |
| 2025-11-28 | 1 | 0 |
| 2025-12-01 | 1 | 0 |
| 2025-12-02 | 1 | 0 |
| 2025-12-03 | 1 | 0 |
| 2025-12-04 | 1 | 0 |
| 2025-12-05 | 0 | 1 |
| 2025-12-08 | 0 | 1 |
| 2025-12-09 | 0 | 1 |
| 2025-12-10 | 0 | 1 |
| 2025-12-11 | 0 | 1 |
| 2025-12-12 | 0 | 1 |
| 2025-12-15 | 0 | 1 |
| 2025-12-16 | 0 | 1 |
| 2025-12-17 | 0 | 1 |
| 2025-12-18 | 0 | 1 |
| 2025-12-19 | 0 | 1 |
| 2025-12-22 | 0 | 1 |
| 2025-12-23 | 0 | 1 |
| 2025-12-24 | 0 | 1 |
| 2025-12-26 | 1 | 0 |
| 2025-12-29 | 1 | 0 |
| 2025-12-30 | 0 | 1 |
| 2025-12-31 | 0 | 1 |
502 rows
Parameters
get_archer_moving_average_trends accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The time period to consider for historical data. Options are: “intraday” (intraday prices), “daily” (daily prices), “weekly” (weekly prices), “monthly” (monthly prices), “quarterly” (quarterly prices), “yearly” (yearly prices). Defaults to “daily”. | "weekly" |
close_column | str | The column name for closing prices in the historical data. Defaults to “Adj Close”. | "Close" |
short_window | int | The number of periods of the short moving average. Defaults to 8. | 8 |
long_window | int | The number of periods of the long moving average. Defaults to 21. | 21 |
lookback | int | The number of periods over which the averages rise or fall. Defaults to 2. | 2 |
moving_average | str | The moving average. Options are: “simple” (Simple Moving Average), “exponential” (Exponential Moving Average), “double_exponential” (Double Exponential Moving Average), “triangular” (Triangular Moving Average), “weighted” (Weighted Moving Average), “hull” (Hull Moving Average), “kaufman_adaptive” (Kaufman Adaptive Moving Average). Defaults to “exponential”. | "exponential" |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the AMAT. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
References
- Paper Archer’s TradingView script “Archer Moving Averages Trends”, which defines the indicator; there is no published primary source.
- Library Referenced against pandas-ta-classic’s amat