1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
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
74 lines of Pine Script v5 from Big Whale Purchases and Sales.pine, published under GPL-3.0. Keep the author's credit and licence lines when you reuse it.
Big Whale Purchases and Sales applies Bollinger Bands to day-to-day asset changes to identify statistically significant outlier movements based on a user-selected standard deviation multiplier. When whale holdings surge past the upper band, it signals purchases, and drops below the lower band signal sales. It plots visual markers directly on the price chart and can toggle into a strategy mode that permits pyramiding up to five orders, though it lacks built-in stop-loss rules.
On-chain whale asset tracking via IntoTheBlock feeds
Bollinger Bands outlier detection on asset changes
Selectable coverage for dozens of major cryptocurrencies
Toggle between indicator plot mode and strategy execution
Configurable standard deviation sensitivity threshold
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Strategy Mode
bool
false
UseStrategy
Standard Deviations
float
2.0
StdDevs
Blockchain
string
BTC
Source
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.
This overlay strategy is built for ES futures on the one-minute chart. It plots a volume-weighted moving average of price opens and standard-deviation bands at Fibonacci ratios, plus a second longer volume-weighted average from a higher-timeframe open. Call an
This overlay strategy looks for gold scalps from break of structure and change of character. It enters long when a bullish break, a bullish character change, and an optional volume filter align, and short on the opposite set. Optional RSI levels can block trad
This strategy trades on the price chart using multiple indicators. It enters long positions when price dips meet conditions on Bollinger Bands 40 and 20, RSI, MFI, volume and other thresholds. It exits at custom ROI profit levels based on RSI or after timeout
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
This strategy enters long or short when eight conditions align over the last two bars. It requires EMA 10 and EMA 55 alignment on the one-hour, four-hour and daily charts, a positive ADX slope, matching monitor direction, and price relative to a 400-bar point
VSA Pro: Trend and Rejection is an overlay strategy combining SuperTrend trend filtering with Volume Spread Analysis principles. It calculates SuperTrend direction to enter long positions when a new bullish trend starts and exits all positions when the trend t