Arbitrage DOL BR / DOL USAThis indicator is made to calculate and show the spread between the currency pair USD-BRL being negotiatied in Brasil's B3 and in USA's CME Globex.
The orange line "Arbitrage" is the spread.
The red/green line is the "Stop Loss" recommended for the strategy. If the line is green, it means that the reward/tisk ratio is above 1.
IMPORTANT: MAKE SURE TO BE USING THE SAME TIMEFRAME ON BOTH THE INDICATOR AND THE CHART.
Spread
Bitcoin SpreadThis indicator display the current lowest and the highest value of btc on a set of exchanges for a define type of market.
Bitcoin Spread was originally made by @DayTradingItalia, i have bring his indicator to pine v4, add add some stuff to it:
5 Type of BTC Market : USDT Swap, USD and Futures (current/next contract)
Spread value
VSA VolumeVolume indicator judging level of volume per bar accordingly to Volume Spread Analysis rules. It allows either to set static volume levels or dynamic ones based on ratio comparable to Moving Average. Bars are coloured based on ratio or static levels, visually presenting level of Volume (low, average, high, ultra high).
VSA SpreadMeasures spread of the candle, useful especially for Volume Spread Analysis (VSA) and to measure trend strength. Spread is coloured based on level comparable to Moving Average.
Spread PercentThis indicator shows the percent change between the highs and the lows (or optionally the open and close) of each candle. You may also set a low and a high percent threshold to better highlight the candles that exceed your desired spread percent. Red signifies low spread, green is high spread - these are unrelated to the color of the candle body. There is also the option to display a moving average of the spread percent at your desired length which is a representation of volatility over time.
This is not only helpful for historical analysis over time, but this can also be a time saver if you are trying to calculate the measured distance of a move. Save clicks - no more needing to use the measuring tool.
The settings of the indicator on the chart above are:
- Measure Candle Body Only? - No
- Highlight Thresholds? - Yes
- Thresholds Based on Moving Averages? - Yes
- Low Percent Threshold - 3.0
- High Percent Threshold - 7.0
- Show Moving Average? - Yes
- Moving Average Length - 5
Kovach Crypto SpreadThe Kovach Crypto Spread indicator calculates the spread in profit between Bitcoin and the leading Altcoins. The Altcoins are weighted by market cap and this script is update weekly so you constantly have the most relevant Altcoins and their coefficients in the indicator.
Values above zero indicate a net flow from Altcoins to Bitcoin and vice versa. Let's consider how to use this data.
1. If Bitcoin is rallying, and the spread is well above zero, this indicates that Bitcoin is providing more profit than Altcoins. Consider taking some profits from BTC and investing in Altcoins.
2. If Bitcoin is retracing, but the spread is still above zero, it means that Altcoins are getting hit harder than Bitcoin, and you should keep your position in Bitcoin.
3. If Bitcoin is ranging, and the spread is below zero, it means that Altcoins are rallying and Bitcoin is stagnant.
For access to this indicator and more, please visit quantguy.net
SpreadTrade - Distance (ps4 ver. 2)This script implements a rebrushed distance-based pair trading strategy. In this strategy, normally they trade the difference between the prices of two instruments. This difference is also called spread. Here, however we’ll trade the difference between two time frames of one instrument. And that's the main trick. Common procedure consists of the following steps:
1. Select two CORRELATED stocks. Here we'll use the same instrument in different TFs.
2. Generate the spread by calculating the difference between the prices/instruments. For distance based pair trading, we need to (rescale the data first and then) check the distance between them.
3. Define the logic to trade the spread and generate the trading signals. In this example we’ll calculate the rolling mean and rolling standard deviation of the spread. Whenever the spread goes above a rolling mean by one standard deviation, we’ll short the spread expecting the mean reversion behavior to hold true. And whenever the spread goes below its rolling mean by one standard deviation, we’ll go long on the spread.
Mind that the meaning of the orange and blue signals depends on whether tf variable is smaller or larger than the built-in timeframe.multiplier variable, i.e. tf of the chart.
For details see analyticsprofile.com
Donate: PayPal (paypal.me)
Calendar Spread - OldinvestorSimply choose what two securities (symbols) you want to compare. The study will subtract Open, High, Low, and Close of second input from the first. You may also move the plot line wherever you choose. It may be necessary to move the plot line in order for some charts to look right.
Price Spread Momentum‴ | Price Spread Momentum HistogramPrice Spread Momentum‴ is a Price Spread oscillator that allows you to have a better understanding and interpretation of its behavior once you are able to see it through an histrogram.
It has extreme zones such as overspreaded and underspreaded, but these zones start, respectively, from above 100% and from under -100%, with a mid line at 0%.
What is the best is that you can use it with any kind of graphic that it will always considere the real open, close, high and low trading values.
To have access to this indicator, please contact me at: contato @ moneywise . com . br
Believe me, this indicator will make your life much easier!
Back - Front Futures Spread 4hr IndicatorThis puts a normalized back - front spread based on the close price.
Objective Analysis of Spread (VSA)Note: Pardon for a busy chart. It really is irrelevant for this indicator. Just look at the bottom part of the chart for the indicator (SpAn).
This script is meant to add objectivity to the estimation of spread in VSA. This is best used with a similar volume indicator that measures volume in the same fashion, but a simple rule of "higher/lower than the previous 2 bars" for estimation of volume size can be used as well in conjunction with this indicator.
A 30-period (adjustable) SMA difference between the high and the close is used to estimate average spread. This value is used to plot bands of 0.8 and lower (blue) standard deviation for narrow spread, 0.8-1.3 (yellow) for medium spread, 1,3-1.8 (green) for wide spread, 1.8-3 (red) for ultra-wide spread. Anything above 3 (no color) is plain crazy. =)
How to use:
A histogram of each bar spread is plotted as well. See where each histogram bar ends. For example, if it ends in the green area, this bar has a wide spread.
Added indicator:
An ATR (14-period, adjustable) is plotted as a black line for your reference. May be used for stops. Otherwise, it is not necessary for VSA.
Feedback and suggestions for improvement are welcome.
SpreadTrade - CorrelationCorrelation Based Pair Trading Strategy (Trading the spread)
There are three popular styles of Pair trading:
* Distance based pair trading
* Correlation based pair trading
* Cointegration based pair trading
The correlation based strategy is to short the outperforming instrument and go long on the underperforming one
whenever the temporary correlation weakens which means one instrument going up and another going down.
Here, instead of two different instruments two timeframes of the same instrument are used, lower and higher.
In order to calculate the trade size, we would need to calculate hedge_ratio,
which is simply the ratio of the closing price of the instrument in the current tf to the higher tf.
So whenever we want to go short on spread we’ll short 1 unit of current tf and go long on hedge ratio times units of higher tf.
In order to generate trading signals, we need to define our trading logic.
So, we’ll go long on the spread when the hedge ratio goes below its p rolling mean by mult times of its
rolling standard deviation and vice versa.
Note that both p and mult can be changed as per your selection of instruments.
See: analyticsprofile.com
NOTE:
There is a minor problem to it in Pinescript. After a while the signal line goes horizontal and the two bounds, upper and lower, converge unless you update the time frame.
Kepp me in the know if you find a solution to this problem)
Broker Fixed Spread - Useful For Traditional MarketsAdds two variables on you chart.
Allows you to see broker's spread on a Tradingview Chart.
NOTE: This is made for fixed spreads!
Spread VisualizerRelatively simple indicator to help you visualize your spreads with two white lines on the chart. You can input up to ten symbol-specific presets along with one other that will be applied to all unspecified symbols. "Spread Visualizer" will only be helpful for those trading with fixed spreads. So, if your broker uses variable spreads, do not use this script.
Price SpreadIncludes logarithmic and linear plotting of price spread (high-low).
See comments for more information.
Thanks to @GravitasProblem for the inspiration.
Spreads + MA + Bollinger BandsCryptocurrency 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 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.
Relative Spread StrengthRelative Spread Strength indicator script. This indicator was originally developed by Ian Copsey (Stocks & Commodities V. 24:10 (16-23): Forex Focus).
Simple Spread Indicator + EMASimple indicator to see the spread between high and low, great to spot volatile moves. Put an exponential moving average of the spread in there too, adjustable to ones preferences.
EMA Spread OscillatorEMA Spread Oscillator
Quickly see past levels where diff maxed out. Momentum and price can only keep going up for so long. This obviously differs per underlying asset. So that is where this oscillator comes in handy.
Of course you can see on the chart how far apart the moving averages are, but it is easier to spot on an oscillator.
Simple Spread Simple spread between two tickers. Click format to set inputs for tickers. ex: "COINBASE:BTC:USD"
EMA and SMA SpreadI had hard time to find a simple script to show EMA and SMA spread.
Bonus add for PT users :)
Set "buy_value" as you have in PAIRS.properties to show you when your buys will become potential.