Acceleration Bands
Calculate Headley’s Acceleration Bands: bands around a moving average that widen with the range of the candles, whose breakouts show an accelerating trend.
Acceleration Bands place an envelope around a simple average of the close whose width follows the High - Low range of each period relative to its price. Headley used a close outside the bands as the start of an accelerating move (a breakout) and a close back inside them as the end of it.
The formula is as follows:
\[\text{Range Ratio} = \frac{\text{multiplier} \cdot (\text{High} - \text{Low})}{\text{High} + \text{Low}}\] \[\text{Upper Band} = \operatorname{SMA}(\text{High} \cdot (1 + \text{Range Ratio}),\; \text{window})\] \[\text{Middle Band} = \operatorname{SMA}(\text{Close},\; \text{window})\] \[\text{Lower Band} = \operatorname{SMA}(\text{Low} \cdot (1 - \text{Range Ratio}),\; \text{window})\]Also known as: ACCBANDS, Price Headley’s Acceleration Bands.
Example · TSLA · 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_acceleration_bands:
from financetoolkit import Toolkit
toolkit = Toolkit(
tickers=["TSLA"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2025-01-01",
end_date="2025-12-31",
)
toolkit.technicals.get_acceleration_bands().xs("TSLA", level=1, axis="columns")
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
Where did Tesla trade within its Acceleration Bands in 2025?
Which returns:
| Date | Lower Band | Middle Band | Upper Band |
|---|---|---|---|
| 2025-01-02 | 362.582 | 420.298 | 479.804 |
| 2025-01-03 | 361.951 | 422.923 | 484.906 |
| 2025-01-06 | 363.220 | 425.002 | 488.375 |
| 2025-01-07 | 363.644 | 425.259 | 490.209 |
| 2025-01-08 | 365.220 | 425.516 | 488.862 |
| 2025-01-10 | 364.248 | 425.204 | 488.668 |
| 2025-01-13 | 363.022 | 424.130 | 487.747 |
| 2025-01-14 | 360.691 | 423.043 | 488.866 |
| 2025-01-15 | 359.853 | 422.643 | 488.916 |
| 2025-01-16 | 359.665 | 420.183 | 485.685 |
| 2025-01-17 | 358.398 | 417.515 | 482.795 |
| 2025-01-21 | 360.499 | 416.712 | 476.237 |
| 2025-01-22 | 362.392 | 415.659 | 472.397 |
| 2025-01-23 | 363.639 | 415.225 | 469.229 |
| 2025-01-24 | 363.736 | 414.024 | 467.826 |
| 2025-01-27 | 362.378 | 410.767 | 463.981 |
| 2025-01-28 | 359.177 | 407.966 | 460.724 |
| 2025-01-29 | 357.977 | 405.837 | 457.177 |
| 2025-01-30 | 354.810 | 404.981 | 458.220 |
| 2025-01-31 | 355.389 | 405.019 | 457.114 |
| 2025-02-03 | 355.921 | 405.239 | 456.426 |
| 2025-02-04 | 357.889 | 404.327 | 453.437 |
| 2025-02-05 | 357.716 | 402.683 | 450.296 |
| 2025-02-06 | 357.532 | 401.682 | 447.085 |
| 2025-02-07 | 355.695 | 400.015 | 446.524 |
| 2025-02-10 | 355.294 | 397.815 | 443.674 |
| 2025-02-11 | 352.506 | 394.075 | 441.024 |
| 2025-02-12 | 350.265 | 391.082 | 436.077 |
| 2025-02-13 | 347.920 | 387.468 | 431.658 |
| 2025-02-14 | 344.879 | 384.569 | 428.524 |
| 2025-02-18 | 342.448 | 380.950 | 423.366 |
| 2025-02-19 | 341.078 | 377.774 | 418.691 |
| 2025-02-20 | 337.667 | 374.738 | 415.502 |
| 2025-02-21 | 333.107 | 371.010 | 413.137 |
| 2025-02-24 | 328.619 | 367.207 | 409.799 |
| 2025-02-25 | 322.757 | 362.490 | 407.425 |
| 2025-02-26 | 317.196 | 357.125 | 403.581 |
| 2025-02-27 | 311.813 | 351.767 | 398.758 |
| 2025-02-28 | 307.027 | 346.402 | 392.019 |
| 2025-03-03 | 300.105 | 340.405 | 387.095 |
| 2025-03-04 | 293.773 | 334.823 | 382.688 |
| 2025-03-05 | 288.170 | 329.168 | 376.895 |
| 2025-03-06 | 282.426 | 323.432 | 371.093 |
| 2025-03-07 | 276.500 | 317.849 | 365.992 |
| 2025-03-10 | 268.347 | 310.875 | 361.129 |
| 2025-03-11 | 260.955 | 304.868 | 355.700 |
| 2025-03-12 | 258.044 | 300.848 | 349.406 |
| 2025-03-13 | 253.384 | 296.056 | 344.349 |
| 2025-03-14 | 248.765 | 290.758 | 338.483 |
| 2025-03-17 | 243.224 | 284.866 | 332.466 |
| 2025-03-18 | 236.965 | 278.426 | 325.892 |
| 2025-03-19 | 230.893 | 272.192 | 319.455 |
| 2025-03-20 | 225.615 | 266.284 | 312.590 |
| 2025-03-21 | 221.166 | 261.830 | 306.743 |
| 2025-03-24 | 217.332 | 259.223 | 304.062 |
| 2025-03-25 | 217.397 | 258.490 | 300.447 |
| 2025-03-26 | 216.565 | 257.553 | 298.973 |
| 2025-03-27 | 215.769 | 257.112 | 299.097 |
| 2025-03-28 | 215.565 | 255.641 | 297.705 |
| 2025-03-31 | 214.749 | 254.366 | 294.529 |
| 2025-04-01 | 215.019 | 254.187 | 293.722 |
| 2025-04-02 | 212.196 | 254.370 | 296.368 |
| 2025-04-03 | 212.065 | 254.561 | 296.777 |
| 2025-04-04 | 210.459 | 253.399 | 297.542 |
| 2025-04-07 | 209.804 | 253.957 | 297.982 |
| 2025-04-08 | 208.722 | 253.520 | 300.050 |
| 2025-04-09 | 204.349 | 254.726 | 305.694 |
| 2025-04-10 | 203.994 | 255.312 | 307.207 |
| 2025-04-11 | 203.502 | 255.429 | 308.097 |
| 2025-04-14 | 203.848 | 256.146 | 309.261 |
| 2025-04-15 | 204.784 | 257.586 | 311.044 |
| 2025-04-16 | 204.467 | 257.870 | 312.194 |
| 2025-04-17 | 204.973 | 258.125 | 312.378 |
| 2025-04-21 | 204.913 | 257.065 | 310.931 |
| 2025-04-22 | 204.469 | 255.044 | 308.144 |
| 2025-04-23 | 203.310 | 253.174 | 306.510 |
| 2025-04-24 | 203.209 | 252.547 | 304.396 |
| 2025-04-25 | 201.945 | 253.137 | 304.930 |
| 2025-04-28 | 201.890 | 254.254 | 306.603 |
| 2025-04-29 | 204.005 | 255.898 | 307.880 |
| 2025-04-30 | 205.007 | 256.582 | 307.749 |
| 2025-05-01 | 208.509 | 256.471 | 305.587 |
| 2025-05-02 | 209.404 | 257.467 | 306.527 |
| 2025-05-05 | 212.673 | 259.509 | 306.158 |
| 2025-05-06 | 218.367 | 261.611 | 304.010 |
| 2025-05-07 | 223.380 | 264.329 | 302.593 |
| 2025-05-08 | 229.700 | 264.961 | 298.807 |
| 2025-05-09 | 232.787 | 267.253 | 300.365 |
| 2025-05-12 | 236.825 | 270.557 | 302.985 |
| 2025-05-13 | 239.893 | 274.643 | 307.283 |
| 2025-05-14 | 244.187 | 279.322 | 312.025 |
| 2025-05-15 | 249.846 | 284.385 | 316.019 |
| 2025-05-16 | 254.819 | 289.815 | 321.649 |
| 2025-05-19 | 260.322 | 295.545 | 327.204 |
| 2025-05-20 | 265.859 | 300.837 | 332.846 |
| 2025-05-21 | 270.223 | 305.031 | 337.243 |
| 2025-05-22 | 273.795 | 309.108 | 342.200 |
| 2025-05-23 | 279.078 | 311.827 | 343.170 |
| 2025-05-27 | 283.369 | 315.678 | 345.969 |
| 2025-05-28 | 287.645 | 318.921 | 349.055 |
| 2025-05-29 | 292.088 | 322.735 | 353.008 |
| 2025-05-30 | 294.655 | 326.032 | 357.407 |
| 2025-06-02 | 297.351 | 328.806 | 360.034 |
| 2025-06-03 | 300.595 | 332.007 | 363.755 |
| 2025-06-04 | 302.247 | 334.841 | 368.380 |
| 2025-06-05 | 298.348 | 335.265 | 375.585 |
| 2025-06-06 | 298.553 | 335.781 | 376.783 |
| 2025-06-09 | 297.135 | 336.298 | 378.100 |
| 2025-06-10 | 296.476 | 336.683 | 379.054 |
| 2025-06-11 | 297.500 | 336.301 | 378.130 |
| 2025-06-12 | 296.236 | 334.873 | 377.541 |
| 2025-06-13 | 294.379 | 333.997 | 377.752 |
| 2025-06-16 | 293.941 | 332.954 | 376.401 |
| 2025-06-17 | 292.731 | 331.668 | 375.913 |
| 2025-06-18 | 291.375 | 330.579 | 374.685 |
| 2025-06-20 | 290.710 | 329.956 | 373.878 |
| 2025-06-23 | 289.191 | 330.338 | 375.904 |
| 2025-06-24 | 288.989 | 330.394 | 377.164 |
| 2025-06-25 | 287.069 | 328.627 | 376.776 |
| 2025-06-26 | 285.616 | 327.072 | 374.911 |
| 2025-06-27 | 283.681 | 325.332 | 373.008 |
| 2025-06-30 | 283.152 | 323.892 | 370.127 |
| 2025-07-01 | 281.342 | 321.793 | 367.815 |
| 2025-07-02 | 279.322 | 320.361 | 365.957 |
| 2025-07-03 | 279.807 | 319.526 | 363.297 |
| 2025-07-07 | 284.549 | 319.988 | 357.049 |
| 2025-07-08 | 285.157 | 320.122 | 356.492 |
| 2025-07-09 | 287.755 | 319.487 | 353.745 |
| 2025-07-10 | 287.861 | 318.676 | 352.181 |
| 2025-07-11 | 287.460 | 318.030 | 350.640 |
| 2025-07-14 | 287.805 | 317.920 | 349.543 |
| 2025-07-15 | 288.522 | 317.193 | 348.012 |
| 2025-07-16 | 287.323 | 316.820 | 348.123 |
| 2025-07-17 | 287.947 | 316.973 | 347.437 |
| 2025-07-18 | 288.668 | 317.353 | 347.061 |
| 2025-07-21 | 289.455 | 317.670 | 346.983 |
| 2025-07-22 | 290.676 | 316.841 | 344.153 |
| 2025-07-23 | 290.889 | 316.445 | 342.294 |
| 2025-07-24 | 291.114 | 315.333 | 339.304 |
| 2025-07-25 | 289.546 | 314.847 | 339.781 |
| 2025-07-28 | 289.172 | 314.945 | 340.147 |
| 2025-07-29 | 289.350 | 315.122 | 340.080 |
| 2025-07-30 | 290.254 | 316.038 | 341.022 |
| 2025-07-31 | 290.152 | 315.670 | 341.485 |
| 2025-08-01 | 288.842 | 315.034 | 341.624 |
| 2025-08-04 | 289.384 | 315.800 | 342.601 |
| 2025-08-05 | 290.208 | 316.345 | 342.738 |
| 2025-08-06 | 290.205 | 317.546 | 344.470 |
| 2025-08-07 | 291.425 | 318.166 | 344.630 |
| 2025-08-08 | 291.638 | 318.974 | 346.275 |
| 2025-08-11 | 292.463 | 320.080 | 347.741 |
| 2025-08-12 | 293.427 | 321.583 | 349.110 |
| 2025-08-13 | 294.715 | 322.469 | 350.372 |
| 2025-08-14 | 295.110 | 323.277 | 351.464 |
| 2025-08-15 | 295.118 | 323.322 | 352.173 |
| 2025-08-18 | 295.686 | 323.656 | 351.631 |
| 2025-08-19 | 296.112 | 323.516 | 351.767 |
| 2025-08-20 | 294.519 | 323.083 | 352.484 |
| 2025-08-21 | 295.775 | 323.824 | 352.860 |
| 2025-08-22 | 295.891 | 325.021 | 354.211 |
| 2025-08-25 | 296.885 | 326.072 | 355.130 |
| 2025-08-26 | 298.140 | 327.595 | 356.430 |
| 2025-08-27 | 300.656 | 329.123 | 357.296 |
| 2025-08-28 | 302.551 | 331.009 | 358.696 |
| 2025-08-29 | 303.710 | 332.570 | 361.245 |
| 2025-09-02 | 304.974 | 333.575 | 362.162 |
| 2025-09-03 | 305.363 | 334.844 | 364.518 |
| 2025-09-04 | 307.182 | 335.775 | 364.805 |
| 2025-09-05 | 308.125 | 337.204 | 366.985 |
| 2025-09-08 | 309.370 | 338.041 | 368.088 |
| 2025-09-09 | 310.392 | 338.438 | 367.725 |
| 2025-09-10 | 311.247 | 338.786 | 368.065 |
| 2025-09-11 | 310.703 | 340.257 | 370.173 |
| 2025-09-12 | 311.133 | 343.275 | 374.698 |
| 2025-09-15 | 313.848 | 347.249 | 380.160 |
| 2025-09-16 | 317.435 | 351.572 | 385.033 |
| 2025-09-17 | 320.950 | 356.399 | 390.032 |
| 2025-09-18 | 326.144 | 361.047 | 394.949 |
| 2025-09-19 | 331.144 | 366.345 | 400.332 |
| 2025-09-22 | 337.052 | 371.055 | 405.062 |
| 2025-09-23 | 341.215 | 375.017 | 409.913 |
| 2025-09-24 | 344.797 | 379.574 | 415.245 |
| 2025-09-25 | 347.315 | 383.263 | 420.272 |
| 2025-09-26 | 350.755 | 387.984 | 425.253 |
| 2025-09-29 | 356.674 | 393.451 | 429.779 |
| 2025-09-30 | 361.642 | 399.219 | 435.785 |
| 2025-10-01 | 366.601 | 405.488 | 442.424 |
| 2025-10-02 | 369.157 | 410.361 | 451.922 |
| 2025-10-03 | 370.940 | 414.310 | 458.455 |
| 2025-10-06 | 375.212 | 419.653 | 463.542 |
| 2025-10-07 | 378.355 | 423.959 | 470.005 |
| 2025-10-08 | 381.743 | 428.504 | 474.853 |
| 2025-10-09 | 386.743 | 431.841 | 477.048 |
| 2025-10-10 | 388.306 | 432.718 | 479.919 |
| 2025-10-13 | 389.747 | 434.011 | 479.839 |
| 2025-10-14 | 389.631 | 434.392 | 480.854 |
| 2025-10-15 | 390.892 | 434.856 | 480.999 |
| 2025-10-16 | 390.900 | 435.452 | 481.603 |
| 2025-10-17 | 390.013 | 436.113 | 483.243 |
| 2025-10-20 | 391.234 | 436.774 | 482.799 |
| 2025-10-21 | 393.122 | 437.612 | 482.187 |
| 2025-10-22 | 392.989 | 437.421 | 482.394 |
| 2025-10-23 | 390.922 | 438.700 | 485.135 |
| 2025-10-24 | 391.182 | 438.366 | 485.910 |
| 2025-10-27 | 390.179 | 438.827 | 487.404 |
| 2025-10-28 | 390.761 | 439.618 | 488.866 |
| 2025-10-29 | 392.172 | 439.721 | 488.155 |
| 2025-10-30 | 394.237 | 439.926 | 485.287 |
| 2025-10-31 | 397.098 | 441.262 | 484.178 |
| 2025-11-03 | 397.625 | 442.019 | 485.557 |
| 2025-11-04 | 398.527 | 442.577 | 485.558 |
| 2025-11-05 | 398.392 | 443.746 | 487.802 |
| 2025-11-06 | 396.723 | 444.264 | 491.680 |
| 2025-11-07 | 398.582 | 445.066 | 489.990 |
| 2025-11-10 | 399.349 | 445.533 | 490.536 |
| 2025-11-11 | 400.675 | 446.051 | 490.310 |
| 2025-11-12 | 400.533 | 445.824 | 490.565 |
| 2025-11-13 | 398.331 | 444.486 | 490.894 |
| 2025-11-14 | 395.207 | 442.738 | 490.657 |
| 2025-11-17 | 391.579 | 440.812 | 491.036 |
| 2025-11-18 | 388.390 | 438.745 | 489.833 |
| 2025-11-19 | 387.182 | 436.996 | 487.809 |
| 2025-11-20 | 386.350 | 434.308 | 486.652 |
| 2025-11-21 | 384.270 | 432.177 | 483.955 |
| 2025-11-24 | 382.474 | 430.445 | 481.950 |
| 2025-11-25 | 380.279 | 428.387 | 479.536 |
| 2025-11-26 | 378.784 | 426.641 | 477.292 |
| 2025-11-28 | 378.964 | 426.144 | 475.292 |
| 2025-12-01 | 378.624 | 424.824 | 473.466 |
| 2025-12-02 | 377.579 | 422.867 | 471.024 |
| 2025-12-03 | 376.938 | 422.991 | 470.430 |
| 2025-12-04 | 378.747 | 422.614 | 468.144 |
| 2025-12-05 | 381.980 | 423.068 | 465.090 |
| 2025-12-08 | 382.935 | 423.572 | 465.300 |
| 2025-12-09 | 383.015 | 423.568 | 465.475 |
| 2025-12-10 | 383.271 | 424.160 | 466.516 |
| 2025-12-11 | 384.623 | 424.974 | 466.161 |
| 2025-12-12 | 387.525 | 427.823 | 467.358 |
| 2025-12-15 | 393.212 | 431.371 | 469.219 |
| 2025-12-16 | 396.512 | 435.419 | 472.632 |
| 2025-12-17 | 398.807 | 438.719 | 478.400 |
| 2025-12-18 | 402.103 | 442.688 | 482.811 |
| 2025-12-19 | 407.829 | 446.987 | 483.929 |
| 2025-12-22 | 413.434 | 451.869 | 488.149 |
| 2025-12-23 | 418.628 | 455.258 | 490.468 |
| 2025-12-24 | 422.209 | 458.558 | 493.941 |
| 2025-12-26 | 424.545 | 460.988 | 497.583 |
| 2025-12-29 | 425.825 | 462.462 | 499.780 |
| 2025-12-30 | 427.161 | 463.676 | 501.346 |
| 2025-12-31 | 429.244 | 464.700 | 501.571 |
250 rows
Parameters
get_acceleration_bands 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”, in which case the open, high and low prices are adjusted for dividends in the same way. | "Close" |
window | int | The number of periods of the simple averages. Defaults to 20, as defined by Headley. | 20 |
multiplier | float | The multiplier of the relative range. Defaults to 4.0, as defined by Headley. | 2.0 |
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 bands. 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 Headley, P. (2002). “Big Trends in Trading: Strategies to Master Major Market Moves.” John Wiley & Sons.
- Library Referenced against TA-Lib’s ACCBANDS
- Library Referenced against pandas-ta-classic’s accbands