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
96 lines of Pine Script v5 from Buying Selling Volume Strategy.pine, published under GPL-3.0. Keep the author's credit and licence lines when you reuse it.
Buying Selling Volume Strategy plots a column chart of the combined metric minus in a separate pane and draws Bollinger Bands on the source for volatility analysis. Long signals activate when minus exceeds the upper band, buying pressure is stronger, and close is above weekly VWAP. Short signals use selling pressure dominance and price below VWAP. Settings control entry timeframe, volume ema length, stddev multiplier, and dynamic ATR-based take profit and stop loss percentages. It draws on a separate pane.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
customTimeframe
timeframe
60
customTimeframe
allow_long
bool
true
allow_long
allow_short
bool
false
allow_short
length
int
20
length
StdDev
float
2.0
mult
TP Multiplier for Long entries
float
100.0
ProfitTarget_Percent_long
SL Multiplier for Long entries
float
1.0
LossTarget_Percent_long
TP Multiplier for Short entries
float
100.0
ProfitTarget_Percent_short
SL Multiplier for Short entries
float
5.0
LossTarget_Percent_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.
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
Kenny's Strategy combines multiple exponential moving averages to identify trend changes and generate entry signals. It calculates short, medium, and long EMAs from a user-selected source and checks for alignment within specific zones. A long-term EMA filter r
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
KC15 is a price-chart strategy that configures two moving averages, a Bollinger Band Width Percentile filter, and PMARP entry and exit thresholds for long and short trades. Users can switch each average between SMA and EMA, set lengths and colors, and toggle l
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
Smooth Trend Radar Strategy calculates a double-smoothed Supertrend baseline using WMA and EMA to identify trend direction and sideway regimes. It plots baseline rejection signals on flips, trend slope filters, and statistical overextension highlights with can