Strategy · Pine Script v4 · On the chart

Btcperp H1

by WMW333· code credited to Arcotrade

This Pine v4 strategy trades Bitcoin perpetual futures on an hourly chart using candle spikes and volume.

View on GitHub

GitHub stars1on the repository
Pine versionv4older, still runs
Lines of code118
Settings21inputs
LicenceNone stated
Last update4 years ago22 Aug 2022

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

Btcperp H1 goes short on a green candle with a large upper spike and goes long on a red candle with a large lower spike, when volume exceeds a threshold, the prior bar volume and ATR are below limits. Position size comes from margin times leverage, with a trailing stop, a fixed tick stop loss, a daily trade cap, a daily loss limit and a date window.

Details

Published by

WMW333 on GitHub

Code credit

Arcotrade, as written in the script's header

Type

Strategy, Pine Script v4

Draws

On the price chart

Category

Volume, Breakout

Markets

Crypto

Timeframes

M15-H1

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
Dal Meseint6daMese
Dal Giornoint1daGiorno
Da Annoint2020daAnno
Al Meseint2aMese
Al Giornoint28aGiorno
A annoint2021aAnno
Margine $int100margine
Leva xint100leva
Soglia Volumiint10000Soglia_Volumi
Soglia Vol. barra precedenteint2000000Soglia_Volumi_Precedente
Soglia SpikeUp Green x Shortfloat0.9Soglia_spikeUpGreen
Soglia SpikeDown Red x Longfloat-0.7Soglia_spikeDownRed
Show all 21 settings
SettingTypeDefaultVariable
Soglia ATRint5000000Soglia_ATR
Soglia SpikeDown Reverse x shortint-1Soglia_SpikeDown_Reverse_per_short
Soglia SpikeUp Reverse x longint1Soglia_SpikeUp_Reverse_per_long
Trailing points(livello attivazioneint1300trailpoints
Trailing offset (x tick sopra o sotto trail pointint100trailoffset
SL Long in ticksint1400lossLong
SL Short in ticksint1400lossShort
Max trades giornalieriint20Max_trade_giornalieri
Max perdita giornaliera $int500Max_loss_giornaliera
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

BB and KC Strategy

by hasnocool
106 stars

This strategy identifies breakout momentum by combining Bollinger Bands and Keltner Channels with volume confirmation. It opens long positions when the upper Keltner Channel crosses above the upper Bollinger Band and volume exceeds its moving average. Converse

Strategy v5 Volatility & bandsBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of BB and KC Strategy
39 stars

This intraday strategy implements Mark Fisher's Opening Range Breakout (ORB) methodology tailored for index futures like ES and NQ. It calculates session opening ranges, volume z-scores, and VWAP bands to plot support, resistance, and confirmation levels on th

Strategy v6 BreakoutSessions & time Repaints
Updated 5 days ago · MIT GitHub repository of Futures Intraday Pro (ES/NQ) Strategy
23 stars

This strategy evaluates breakout and trend opportunities on the price chart using a weighted composite score of volume, trend, and candlestick structure. It tracks volume spikes, fast and slow EMAs, higher-timeframe EMA trend alignment, opening ranges, and ses

Strategy v6 TrendVolume Repaints
Updated 3 weeks ago · Custom licence GitHub repository of TradingAlpha Point-Clip Strategy

VOL/BBW/RSI/15 Strategy

by SammyEnigma
18 stars

This strategy overlays Bollinger Bands on the price chart and trades a long squeeze setup. It enters long when band width is below 0.022 and volume is at least the seven-bar average, using a stop order at the lower band. It places a short order when close cros

Strategy v4 Volatility & bandsVolume
Updated 6 years ago · None stated GitHub repository of VOL/BBW/RSI/15 Strategy
13 stars

This strategy identifies volume-based rebound signals on the price chart. It detects three or more consecutive lower volume candles followed by a higher volume candle, with price remaining lower from the start of the volume sequence, signaling potential long e

Strategy v5 VolumeBreakout
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder D002

15m Volume Alert

by JackZhao516
7 stars

This strategy monitors 15-minute volume to detect sudden volume spikes and triggers long entries directly on the price chart. It evaluates whether the latest 15-minute volume exceeds preceding bars by a factor of 10 or 50, provided that the total bar turnover

Strategy v5 VolumeBreakout Repaints
Updated 3 years ago · MIT GitHub repository of 15m Volume Alert

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