Strategy · Pine Script v6 · On the chart

BTC MA Accumulation v1

by yalili8521

BTC MA Accumulation v1 is a scalping strategy designed primarily for 1-minute Bitcoin charts.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code238
Settings13inputs
LicenceNone stated
Last update7 days ago21 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  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 strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

BTC MA Accumulation v1 identifies trend continuation by requiring a triple moving average stack alongside steady price accumulation or distribution. The script counts consecutive rising or falling bars within a lookback window while filtering out sharp price spikes. Entries trigger when price aligns with slope-confirmed MAs. Risk is managed using dynamic moving average stop losses, trailing stops after reaching a profit threshold, and partial take-profits. The strategy draws directly on the price chart.

Details

Published by

yalili8521 on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Trend, Moving averages, Scalping

Markets

Crypto

Timeframes

M1-M5

Risk Notes

  • The strategy enters trades without a stop loss

Settings

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

SettingTypeDefaultVariable
Fast MAint5ma_fast_len
Mid MAint10ma_mid_len
Slow MAint20ma_slow_len
Accumulation lookback barsint10acc_lookback
Min bars rising (of lookback)int6acc_min_bars
Max single bar % move (reject spikes)float0.3max_bar_size
Stop Loss MAstringMA20stop_ma
Trailing Stop MAstringMA10trail_ma
Min % profit before trailingfloat0.1min_profit_trail
Use Take Profitbooltrueuse_tp
Take Profit %float0.8tp_pct
TP1 close %float50tp1_close_pct
Show all 13 settings
SettingTypeDefaultVariable
Allow shorts (bear stack)booltrueallow_short
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

257 stars

This overlay strategy marks short-term turning points on the price chart and enters SPY option-style trades from them. It plots simple moving averages of highs and lows, draws up and down reversal arrows, and colors bars when a short-term extreme coincides wit

Strategy v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of SPY Options Trading - Alert

This strategy generates trading signals on the 5-minute price chart using Williams Fractals for trend reversals, combined with EMA fast and slow trend filters and optional RSI confirmation. Long entries trigger on bullish fractals aligned with rising EMA and R

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 5min Williams Fractals Scalping (3commas)
53 stars

This strategy trades EUR/USD on the price chart using a fast and slow exponential moving average crossover filtered by RSI. It enters long when the fast EMA crosses above the slow EMA while RSI is above 50 and below the overbought level, and enters short on th

Strategy v6 TrendMoving averages
Updated 2 months ago · MPL-2.0 GitHub repository of EUR/USD EMA9-21 + RSI Scalping Strategy
13 stars

This strategy plots on the price chart and enters from a moving-average filter, ADX and Gann colours. Price above a 200-period EMA allows only longs; price below allows only shorts. A Gann aqua colour with ADX above a key level opens a long, and a Gann brown c

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard TradingZone ADX Gann

Scalping 3EMA

by rodrigo-brito
9 stars

This long-only strategy calculates three exponential moving averages with lengths of 50, 100, and 150 periods, plotting them directly on the price chart. It also calculates a 14-period RSI and MACD. The strategy opens long positions when the moving averages al

Strategy v4 TrendOscillators & momentum
Updated 5 years ago · MIT GitHub repository of Scalping 3EMA

More strategys

Trade Your Charts With a Regulated Broker

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

Compare brokers