by hasnocool· code credited to MartinShkreli and tweakerID
This strategy calculates and plots aggregated Bitcoin volume collected across multiple exchanges, along with two volume moving averages in a separate pane.
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
64 lines of Pine Script v4 from Aggregate BTC Volume + EMA Strat.pine, published under GPL-3.0. Keep the author's credit and licence lines when you reuse it.
Aggregate BTC Volume + EMA Strat enters long positions when price crosses above a fast EMA while remaining above a slow EMA, and enters short positions under the inverse conditions. Positions are closed when aggregated volume spikes above a moving average multiplied by a user-defined threshold. Inputs control EMA lengths, volume parameters, trade direction, and a daily maximum loss percentage, but individual trades lack fixed stop losses.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Direction (Long=1, Both=0, Short=-1
int
0
direction
Show MA
bool
true
showma
Vol Slow MA Length
int
100
i_MAslow
Vol Fast MA Length
int
10
i_MAfast
Slow EMA Length
int
255
i_EMA
Fast EMA Length
int
40
i_EMAFast
Volume MA Multiplier
int
4
i_VolMult
Use Fast MA for exit condition
bool
true
i_useMAFast
Reverse Trades
bool
false
i_reverse
Allow Maximum Loss Filter
bool
true
i_AllowMaxLoss
Maximum Loss % Allowed Per Day
int
6
i_MaxLoss
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 strategy plots a comparative relative strength line against a benchmark symbol in a separate pane. It calculates price and volume simple moving averages alongside a multi-period highest high. Long trades enter using full equity when price exceeds its movi
This Pine Script strategy calculates the accumulation/distribution line with ta.accdist and its 21-period EMA. It plots these in a separate pane. The strategy issues long entries on ta.crossover of the accumulation/distribution line above its EMA and short ent
This strategy enters long when a faster moving average crosses above a slower one and short when it crosses below, unless long-only mode is on. An optional volume filter requires volume above a 20-bar average times a multiplier. Exits use a percentage stop los
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
This strategy enters long when a fast EMA crosses above a slow EMA and RSI, ADX, and volume all clear their thresholds. It sizes the order from a percentage of equity and an ATR stop distance, then sets a partial profit target at a multiple of that risk. After
This overlay strategy combines three distinct SuperTrend levels with multiple moving averages and volume profile analytics on the main price chart. It calculates trend directions using three configurable ATR periods and multipliers alongside SMA, EMA, and HMA