Indicator · Pine Script v4 · On the chart

Accumulation Zones

by davro

Accumulation Zones identifies macro accumulation periods specifically geared toward Bitcoin by measuring elapsed time since the genesis block.

View on GitHub

GitHub stars10on the repository
Pine versionv4older, still runs
Lines of code16
Settings2inputs
LicenceNone statedfile: MPL-2.0
Last update5 years ago13 Jul 2021

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

16 lines of Pine Script v4 from studies/thomas/accumulationSignal.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.

accumulationSignal.pine
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/

//@version=4
study("Accumulation Zones", "AZ", overlay=true)

o = input(1231502400, 'Genesis block timestamp in seconds', minval=8)
// The signal has to be valid for 3 days before showing on the chart
c = input(3, 'Confirmations', minval=0)
td = time - time[1]
t = round((time - o * 1000) / td) // Current time duration since genesis

//Feigenbaum constant
lm = round(t/4.669201609102990671853203820466)
clm = close[lm]
plotshape(crossover(clm[c], close[c]) and clm > close, text='Buy', location=location.belowbar, style=shape.triangleup, color=#00ff88, size=size.tiny)
bgcolor(clm > close ? color.new(#00ff88, 95) : color.new(#ff0088, 100))

Overview

Accumulation Zones calculates a historical bar offset based on the Feigenbaum constant, comparing current closing prices against historical prices at that interval. When the shifted historical price crosses above the price confirmed over multiple bars, the indicator plots a Buy triangle below the bar and highlights the background. User settings allow configuring the genesis block timestamp and confirmation count.

Details

Published by

davro on GitHub

Type

Indicator, Pine Script v4

Draws

On the price chart

Category

Trend

Markets

Crypto

Timeframes

H4 and above

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Genesis block timestamp in secondsint1231502400o
Confirmationsint3c
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

948 stars

The Adaptive Laguerre Filter calculates a smoothed, dynamically adjusted trendline plotted directly on the main price chart. It dynamically adjusts its damping factor (alpha) based on recent price range variations and median percentile calculations over a spec

Indicator v4 TrendMoving averages
Updated 10 days ago · GPL-3.0 GitHub repository of Adaptive Laguerre Filter
575 stars

This indicator detects equal highs and lows by comparing prices within user-defined left and right bars using a tolerance percentage. It plots horizontal lines on the price chart for equal highs in one color and lows in another. A screener allows input of mult

Indicator v5 Support & resistanceTrend
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Equal Highs and Lows with Screener
330 stars

This script plots three moving averages on the price chart: a fast EMA or SMA with 10 periods, a slow EMA or SMA with 20 periods, and a trend EMA or SMA with 100 periods. It signals trend changes by drawing a white cross when the fast moving average crosses ab

Indicator v4 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of 3 EMA/SMA + Cross [Alorse]
318 stars

This indicator calculates an ATR trailing stop line derived from the highest high minus an average true range multiple over a specified lookback period. It plots the trailing stop line directly on the price chart and colors price bars based on whether the clos

Indicator v5 TrendVolatility & bands
Updated 2 months ago · MIT GitHub repository of ATR Trailing Stoploss

All Candlestick Patterns

by shunjizhan
292 stars

All Candlestick Patterns detects and highlights a wide range of bullish, bearish, and neutral candlestick patterns directly on the price chart. It features optional trend filtering using either a 50-period simple moving average or a combination of 50-period an

Indicator v4 Candlestick patternsTrend
Updated 3 years ago · None stated GitHub repository of All Candlestick Patterns

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers