INVITE-ONLY SCRIPT

Spreads + MA + Bollinger Bands

Updated
Cryptocurrency adoption is on a constant upward trajectory. The interest for trading 'crypto assets' could not stay anywhere behind. The amateur nature of the market together with huge 'price inefficiencies' is always giving rise to excellent arbitrage opportunities throughout the globe. This code aims to help traders to make money placing safe and profitable trades which will eventually help the community to move towards more efficient price discovery.

The script combines up to three assets to be monitored at the same time. It also allows the trader to plot Simple or Exponential Moving Averages [(SMA) and (EMA)] and Bollinger Bands (BB) for each asset he wants to trade.

Instructions:
* International/local -- it allows the trader to switch between international spreads and local (currency) spreads, considering the market he is targeting. The default value is international. Unchecking the field will set the script for local trades.
* Fees -- enables one to add his effective operational cost directly on the chart. This feature might be potentially relevant for traders who engage with fast-moving markets which demands action to be taken right away. The logic for calculations when fees are in place is the following (fee ≠ 0): if (spread > 0), then (spread - fee). If (spread < 0), then (spread + fee). When the spread is too short, the code may plot somewhat weird charts. In this case, it might be interesting to keep fee = 0.
* Standard/ Absolute BB -- it changes from standard Bollinger Bands (default value) to absolute Bollinger Bands. The standard version calculates the bands over the moving average. The absolute version calculates each band in isolation taking absolute values as arguments. Play with the two options (and deviation) to see which is better regarding your market and the instrument of your choice. Uncheck the field to get the absolute version. Feedback on this point is particularly appreciated.
* Expon. Ma -- it switches everything from Simple Moving Averages (SMA) to Exponential Moving Averages (EMA). Default value: SMA.

I hope you guys manage to make money using the script. And if you do, feel free to show your appreciation. Any amount is welcome! Let's take advantage of what crypto enabled us.

Tips : =>
BTC: 33RUY4AXBEL89gEsoqDpXRgvdZWePhLrqc
LTC: M9mBqVhxWNuZuCPEsrRtH3ygxNYnCdMEki
LTC: 36btZsgNxqiPibag6quTEtdX367wXskUnJ (old format)
ETH: 0x1D3E1701F1A0C379e7Fcb60BADBcd14AcE8160c4
DASH: XnKHHcmhZmR2SAqavP1x6FbEBrqTYa4kTk

If you want to use the script, please, let me know leaving a comment below.

Trade wisely and good luck out there.
Release Notes
* Fees - This release simplifies the calculation of the fees. It no longer takes fee=0 as particularly relevant to the calculation. Now it is going to work just like this (spread + fee). It's worth saying that 'fees' accepts values between -2 and 2. The trader can play with that to get his 'effective profit' regarding each leg of his spread trade straight on the chart.
ARBarbitrageBollinger Bands (BB)BTCBTCUSDCryptocurrencyMoving Averagesspreadspreadtrading

Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact fernandofurtado for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases, you can find a good open-source alternative for free in our Community Scripts.

Author's instructions

Want to use this script on a chart?

Warning: please read before requesting access.

Disclaimer