Strategy ยท Pine Script v6 ยท On the chart

BTC ATH Golden Cycle [Infinity]

by ymlee1104

This long-only strategy automates staged entries and exits based on Bitcoin all-time high drawdowns and percentage gains.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code194
Settings27inputs
LicenceNone stated
Last update7 months ago13 Mar 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 ATH Golden Cycle [Infinity] scales into positions across five configured percentage drop levels from the highest recorded price. Profit taking occurs in five partial exit steps relative to the average entry price, resetting the cycle on the final stage. The strategy plots overlays directly on the price chart alongside an optional multi-timeframe EMA band. It relies on scaling and target exits without standard stop-loss protection.

Details

Published by

ymlee1104 on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Support & resistance, Trend, Moving averages

Markets

Crypto

Timeframes

Any timeframe

Risk Notes

  • The strategy can add several entries in the same direction
  • 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
์‹œ์ž‘์ผtimetimestamp("2019-12-16 00:00 +0900")start_time
์ข…๋ฃŒ์ผtimetimestamp("2099-12-31 00:00 +0900")end_time
1๋‹จ๊ณ„ ํ•˜๋ฝ๋ฅ  (%)float20.0buy_drop_1
1๋‹จ๊ณ„ ํˆฌ์ž…๋น„์ค‘ (%)float10.0buy_qty_1
2๋‹จ๊ณ„ ํ•˜๋ฝ๋ฅ  (%)float35.0buy_drop_2
2๋‹จ๊ณ„ ํˆฌ์ž…๋น„์ค‘ (%)float15.0buy_qty_2
3๋‹จ๊ณ„ ํ•˜๋ฝ๋ฅ  (%)float50.0buy_drop_3
3๋‹จ๊ณ„ ํˆฌ์ž…๋น„์ค‘ (%)float20.0buy_qty_3
4๋‹จ๊ณ„ ํ•˜๋ฝ๋ฅ  (%)float65.0buy_drop_4
4๋‹จ๊ณ„ ํˆฌ์ž…๋น„์ค‘ (%)float25.0buy_qty_4
5๋‹จ๊ณ„ ํ•˜๋ฝ๋ฅ  (%)float75.0buy_drop_5
5๋‹จ๊ณ„ ํˆฌ์ž…๋น„์ค‘ (%)float30.0buy_qty_5
Show all 27 settings
SettingTypeDefaultVariable
1๋‹จ๊ณ„ ์ˆ˜์ต๋ฅ  (%)float100.0sell_gain_1
1๋‹จ๊ณ„ ๋งค๋„๋น„์ค‘ (%)float6.0sell_qty_1
2๋‹จ๊ณ„ ์ˆ˜์ต๋ฅ  (%)float250.0sell_gain_2
2๋‹จ๊ณ„ ๋งค๋„๋น„์ค‘ (%)float13.0sell_qty_2
3๋‹จ๊ณ„ ์ˆ˜์ต๋ฅ  (%)float400.0sell_gain_3
3๋‹จ๊ณ„ ๋งค๋„๋น„์ค‘ (%)float17.0sell_qty_3
4๋‹จ๊ณ„ ์ˆ˜์ต๋ฅ  (%)float500.0sell_gain_4
4๋‹จ๊ณ„ ๋งค๋„๋น„์ค‘ (%)float40.0sell_qty_4
5๋‹จ๊ณ„ ์ˆ˜์ต๋ฅ  (%)float600.0sell_gain_5
5๋‹จ๊ณ„ ๋งค๋„๋น„์ค‘ (%)float100.0sell_qty_5
ํƒ€์ž„ํ”„๋ ˆ์ž„ ์„ ํƒtimeframetf_input
Wait for timeframe closesbooltruewait_close
EMA Bandbooltrueshow_ema_band
Fast ๊ธธ์ดint1fast_length
Slow ๊ธธ์ดint26slow_length
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

Omar Edited WF

by Alorse
330 stars

Omar Edited WF is a trading strategy overlay built around Williams Fractals and multiple Exponential Moving Averages. It detects high and low fractal pivot points over configurable lookback periods alongside three adjustable EMA trendlines. Long entries are ma

Strategy v5 TrendMoving averages
Updated 2 months ago ยท None stated GitHub repository of Omar Edited WF
257 stars

This strategy calculates dynamic support and resistance levels using pivot highs and lows alongside a custom smoothed trend filter and a 3-period EMA. It identifies entry opportunities when price breaks out relative to the trend filter and short-term EMA cross

Strategy v5 TrendSupport & resistance Repaints
Updated 6 weeks ago ยท None stated GitHub repository of 30s - ES 1m Strategy Candle Bar

This strategy overlays the price chart and looks for VWAP pullbacks. It goes long when a short SMA crosses above VWAP after RSI has been oversold within ten bars, and short on the opposite cross after RSI has been overbought. Optional Minervini-style moving-av

Strategy v5 TrendOscillators & momentum
Updated 2 years ago ยท GPL-3.0 GitHub repository of Advanced VWAP-Momentum Pullback Trend Qualifier
104 stars

This strategy combines three Exponential Moving Averages with Williams Fractals to execute trend-following or mean-reverting trades. It analyzes price structure using short, medium, and long-term EMAs along with fractal highs and lows. Entries trigger when fra

Strategy v5 TrendMoving averages
Updated 3 years ago ยท MIT GitHub repository of 3MA and Fractals Strategy

This strategy executes trades based on pivot levels, an exponential moving average, and a multi-stage smoothing trend line. It identifies support and resistance points from pivot highs and lows, combining them with price relationship rules against a custom smo

Strategy v5 TrendMoving averages Repaints
Updated 2 years ago ยท None stated GitHub repository of Binancash - Candle Strategy Futures on Binance
13 stars

This strategy generates entry signals using pivot points and uses custom Curie moving average closing lines for exiting positions. It features risk management components including percentage-based stop loss, take profit, trailing stops, and break-even levels,

Strategy v5 TrendMoving averages
Updated 1 year ago ยท None stated GitHub repository of BitLa PivotPoints A002

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