[ AlgoChart ] - Compare MarketIndicator Description:
This indicator allows you to display a second asset, selectable from the input panel, in a separate window. Plotted on the same time scale as the first asset but with a distinct price scale, the indicator enables analysis of the relationships and relative movements of two financial instruments. It’s an ideal tool for understanding whether two assets move in a correlated or divergent manner.
Key Features:
Multi-Asset Comparison: Display two assets simultaneously to compare their trends.
Custom Scale: Each asset uses its own price scale, making comparative analysis easier.
Intuitive Interface: Easily select the second asset through the input panel.
Operational Applications:
Spread Trading: Identify optimal moments to execute spread trades when two highly correlated instruments move in opposite directions.
Supply & Demand: Pinpoint zones of interest on both assets, increasing the validity of support and resistance areas.
Exposure Reduction: Monitor instruments that move similarly to avoid exposing the portfolio in identical directions, thereby reducing the risk of double losses.
Additional Features:
Candle Color Change: When a directional divergence occurs between the two assets, the candles change color to highlight the event.
Customizable Notifications: Receive instant alerts when a divergence occurs, allowing you to act promptly.
Spreadtrading
Z-Score Pairs TradingTitle: Z-Score Pairs Trading Indicator
Description:
This indicator implements a Z-score based pairs trading strategy, allowing traders to identify potential statistical arbitrage opportunities between two selected assets.
Key Features:
- Calculates Z-score for the price difference between any two user-selected symbols
- Visualizes Z-score with customizable thresholds for signals
- Generates long and short signals based on extreme Z-score values
- Adaptable to various markets including stocks, ETFs, and commodities
How It Works:
1. The indicator calculates the price difference between two selected symbols.
2. It then computes the Z-score of this difference, showing how far the current spread deviates from its historical average.
3. When the Z-score exceeds set thresholds (default ±2), the indicator generates trading signals.
Settings:
- Symbol A and Symbol B: Select any two tradable symbols to compare
- Lookback Period: Number of periods for calculating the moving average and standard deviation
Interpretation:
- Z-score above 2: Potential short signal (pair is likely overextended)
- Z-score below -2: Potential long signal (pair is likely oversold)
- Z-score between -2 and 2: Normal trading range, no signals
Visual Aids:
- Blue line: Z-score
- Dashed lines: Threshold levels at 0, ±1, and ±2
- Green triangles: Long signals
- Red triangles: Short signals
Disclaimer:
This indicator is for educational and research purposes only. Trading carries a high level of risk. Always conduct your own analysis and manage your risk appropriately before entering any trade.
Made by @marekfleisi
[ AlgoChart ] - Pearson Index CorrelationCorrelation Indicator (Pearson Index)
The correlation indicator measures the strength and direction of the relationship between two financial assets using the Pearson Index.
Correlation values range from +100 to -100, where:
+100 indicates perfect positive correlation, meaning the two assets tend to move in the same direction.
-100 indicates perfect negative correlation, where the two assets move in opposite directions.
The neutral zone ranges from +25% to -25%, suggesting that the asset movements are independent, with no clear correlation between them.
Interpreting Correlation Levels:
Correlation above +75%: The two assets tend to move similarly and in the same direction. This may indicate a risk of overexposure if both assets are traded in the same direction, as their movements will be very similar, increasing the likelihood of double losses or gains.
Correlation below -75%: The two assets tend to move similarly but in opposite directions. This correlation level can be useful for strategies that benefit from opposing movements between assets, such as trading pairs with inverse dynamics.
Practical Use of the Indicator:
Risk management: Use the indicator to monitor asset correlations before opening positions. High correlation may indicate you are duplicating exposure, as two highly correlated assets tend to move similarly. This helps avoid excessive risk and improves portfolio diversification.
Statistical Arbitrage: During moments of temporary decorrelation between two assets, the indicator can be used for statistical arbitrage strategies. In such cases, you can take advantage of the divergence by opening positions and closing them when the correlation returns to higher or positive levels, thus potentially profiting from the reconvergence of movements.
While the correlation indicator provides valuable insights into asset relationships, it is most effective when used in conjunction with other concepts and tools. On its own, it may offer limited relevance in trading decisions.
Arbitrage Spread v3 : 12 spreads dashboard [Arby.Trade]This indicator allows you to track in real time the change in the spread (the difference in the exchange rate) between two assets simultaneously for 12 trading pairs.
⚙️ How does the indicator work?
In the indicator settings menu, the user selects two trading pairs, for example BTCUSDT on the Binance exchange and BTCUSDT on the Bybit exchange, after which the script will receive prices from both exchanges and compare them with each other, calculating the percentage deviation between prices (spread). The script will do this work with all 12 trading pairs added to the script settings menu. The script can only work with those assets and exchanges that are on board TradingView, and this is not a small thing.
⚡️ How to use it?
At times when the spread value is negative, this means that the price of the asset on the first exchange is less than on the second. That is, by buying an asset on the first exchange and selling it on the second one, you can earn money (of course, it is important to take into account the commissions of the exchanges for these transactions). When the spread is above zero, the opposite is true. The exchanges and the prices at which to buy are displayed in the green Buy row. Prices and exchanges for sale are in the Sell row and highlighted in red. When the spread is zero, the prices on both exchanges are the same and there is no arbitrage situation.
To improve the accuracy of the indicator, try to use the minimum timeframe available for your TradingView subscription – minute or second.
🕒 Counter of arbitration situations
For each trading pair, the table below the Buy row shows the number of arbitrage situations that have been on the asset for a certain period of time. In this case, an arbitrage situation is understood as the moment when the spread value exceeded the Signal Threshold Level set by the user. Each time the spread value of the Signal Threshold Level is exceeded, the counter will add one. The counter takes into account only those arbitrage situations that were on the market during the time period back from the current moment. For example, for a 1-hour period (1h) of the counter, the number of arbitration situations for the last hour will be displayed. For each asset you can simultaneously track the number of arbitrage situations during three selected time periods from 5 minutes to a day.
The counter will allow you to evaluate the prospects of arbitrage of selected trading pairs. For example, if the number of arbitrage situations on a trading pair was 1-2 within an hour, then it is obvious that it is better not to waste time waiting for another such situation on this pair and look for the next one.
🔔 Setting up Alerts
In the script settings, you can set the threshold value of the spread – Spread Signal Threshold. When this level is reached, the table related to the asset whose spread has reached this level will be highlighted. Also, this level is a signal level for setting up alerts from the indicator.
To set up alerts, open the Alerts tab in the TradingView menu on the right. Click the "Create Alert" button. Then, in the window that opens, select this indicator in the "Condition" line. After that, you can set a name for this alert and complete the notification setup by clicking the "Create" button.
We, the authors of this script, have been engaged in cryptocurrency arbitrage for a long time and, first of all, created it for ourselves and our daily arbitrage trading, but this does not prevent you from using it at your discretion for any types of assets and in any markets.
We have a lighter version of the indicator that allows you to track the spread for only one trading pair or three at the same time. In these versions you can also view the chart of the spread itself, which can be useful for assessing the nature of the spread movement in the history. If this indicator seems too heavy for you and your device, you can use these lighter versions:
🧩 Arbitrage Spread v1 : 1 pair + 1 chart
🧩 Arbitrage Spread v2 : 3 pairs + 3 charts
If, on the contrary, the capabilities of your hardware allow, do not forget that you can always add several indicators to your screen – for example, use the version with 12 pairs as a dashboard with many pairs, and in addition to it one of the versions with a spread chart and look at a more detailed picture of one or three instruments separately.
--
Данный индикатор позволяет отслеживать в реальном времени изменение спреда (разницы в курсе) между двумя активами одновременно для 12 торговых пар.
⚙️ Как устроен индикатор?
В меню настроек индикатора пользователь выбирает две торговые пары, например BTCUSDT на бирже Binance и BTCUSDT на бирже Bybit, после чего скрипт получит цены с обеих бирж и сравнит их между собой, рассчитав процентное отклонение между ценами (спред). Такую работу скрипт проделает со всеми 12 торговыми парами добавленными в меню настроек скрипта. Скрипт может работать только с теми активами и биржами, которые есть на борту TradingView, и это не мало.
⚡️ Как пользоваться?
В моменты, когда значение спреда отрицательное, это означает, что цена на актив на первой бирже меньше, чем на второй. То есть, купив актив на первой бирже и продав его на второй можно заработать (конечно при этом важно учитывать комиссии бирж на совершение данных сделок). Когда спред выше нуля - наоборот. Биржи и цены, по которым надо покупать отображаются в зеленой строке Buy. Цены и биржи для продажи – в строке Sell и выделены красным цветом. Когда спред равен нулю – цены на обеих биржах одинаковы и арбитражная ситуация отсутствует.
Для повышения точности работы индикатора старайтесь использовать минимально доступный для вашей подписки TradingView таймфрейм – минутный или секундный.
🕒 Счетчик арбитражных ситуаций
По каждой торговой паре в таблице под строкой Buy отображается количество арбитражных ситуаций, которые были на инструменте в течение определенного промежутка времени. В данном случае под арбитражной ситуацией понимается момент, когда значение спреда превысило установленный пользователем сигнальный уровень спреда Signal Threshold Level. При каждом превышении значения спреда уровня Signal Threshold Level счетчик будет прибавлять единицу. Счетчик учитывает только те арбитражные ситуации, которые были на рынке в течение временного периода назад от текущего момента. К примеру, для 1-часового периода (1h) счетчика будет отображаться количество арбитражных ситуаций за последний час. По каждому инструменту одновременно можно отслеживать количество арбитражных ситуаций в течение трех выбранных временных периода от 5 минут до суток.
Счетчик позволит оценить перспективность арбитража выбранных торговых пар. К примеру, если количество арбитражных ситуаций на торговой паре в течение часа было 1-2, то очевидно, что лучше не тратить время на ожидание очередной такой ситуации на данной паре и поискать следующую.
🔔 Настройка оповещений
В настройках скрипта можно настроить пороговое значение спреда – Spread Signal Threshold. При достижении этого уровня будет подсвечена таблица относящаяся к активу, спред которого достиг этого уровня. Так же, этот уровень является сигнальным для настройки оповещений от индикатора.
Для настройки оповещений откройте вкладку «Оповещения» в меню TradingView справа. Нажмите кнопку «Создать оповещение». Затем в открывшемся окне в строке «Условие» выберете данный индикатор. После чего вы можете задать название данному оповещению и завершить настройку оповещения, нажав кнопку «Создать».
Мы, авторы данного скрипта, давно занимаемся арбитражем криптовалюты и, в первую очередь, создавали его для себя и своей каждодневной арбитражной торговли, но это не мешает вам использовать его по своему усмотрению для любых видов активов и на любых рынках.
У нас есть более легкая версия индикатора, позволяющая отслеживать спред только по одной торговой паре или одновременно по трем. В этих версиях также можно просматривать график самого спреда, что может быть полезным для оценки характера движения спреда в истории. Если данный индикатор покажется для вас и вашего устройства слишком тяжелым вы можете воспользоваться этими более легкими версиями:
🧩 Arbitrage Spread v1 : 1 pair + 1 chart
🧩 Arbitrage Spread v2 : 3 pairs + 3 charts
Если, наоборот, возможности вашего железа позволяют, не забывайте, что вы всегда можете добавить себе на экран несколько индикаторов – например, версию с 12 парами использовать как дашборд с множеством пар, а в дополнение к ней одну из версий с графиком спреда и смотреть более детальную картину по одному или трем инструментам отдельно.
Arbitrage Spread v2 : 3 pairs + 3 charts [Arby.Trade]
This indicator allows you to track in real time the change in the spread (the difference in the exchange rate) between two assets for three trading pairs at the same time.
How does the indicator work?
In the indicator settings menu, the user selects two trading pairs, for example BTCUSDT on the Binance exchange and BTCUSDT on the Bybit exchange, after which the script will receive prices from both exchanges and compare them with each other, calculating the percentage deviation between prices (spread). This setting can be made for three trading pairs. Keep in mind that the script can only work with those assets and exchanges that are on board TradingView, and this is quite a lot.
According to the calculated value of spreads, the spread lines for three trading pairs are displayed on the screen. The spread lines move between values above zero and below. When the spread line is below zero, it means that the price of the asset on the first exchange is less than on the second. That is, by buying an asset on the first exchange and selling it on the second one, you can earn money (of course, it is important to take into account the commissions of the exchanges for these transactions). When the spread line is above zero, the opposite is true. When the spread is zero, the prices on both exchanges are the same and there is no arbitrage situation.
Indicator settings.
For a better visual representation of the current spread value, the indicator has the ability to set two threshold spread levels. The first threshold level is the level below which the spread is not interesting to the trader and he will not consider arbitrage deals. The second threshold level is the level of a particularly high spread. When the spread value exceeds the second threshold level, the spread values will be signed above the spread line, and the extreme values for the user-defined period of bars back will be additionally highlighted in a brighter color. Both threshold levels are displayed on the chart and the user can change their values in the indicator settings menu.
The script allows you to leave only one spread line on the chart for one of the three trading pairs, while maintaining the display of indicator tables for three trading pairs. The script also allows you to completely disable the display of unnecessary trading pairs.
If the volatility of the spread lines is too high and the spread lines from different trading pairs overlap each other, use the "Distance between charts" setting and increase its value until the display of all three charts becomes comfortable.
Alerts.
Additionally, you can set the threshold value of the spread, at which the script will send notifications from TradingView. We called it the Spread Signal Threshold. This threshold level has nothing to do with the visual thresholds described above. You can set a signal level exceeding the second visual threshold or make it lower, but it is important to understand that TradingView alerts will only be triggered if the Spread Signal Threshold is exceeded. This threshold level is common to all trading pairs, so notifications will be sent when this spread level is reached for any of the three trading pairs.
To set up alerts, open the "Alerts" tab in the TradingView menu on the right. Click the "Create Alert" button. Then, in the window that opens, select this indicator in the "Condition" line. After that, you can set a name for this alert and complete the notification setup by clicking the "Create" button.
We, the authors of this script, have been engaged in cryptocurrency arbitrage for a long time and, first of all, created it for ourselves and our daily arbitrage trading, but this does not prevent you from using it at your discretion for any types of assets and in any markets.
We have a lighter version of the indicator that allows you to track the spread for only one trading pair. If this indicator seems too heavy for you and your device, you can use a lighter version .
If, on the contrary, the capabilities of your hardware allow, do not forget that you can always add several copies of this indicator to your screen and simultaneously track not 3, but 6-9-12 and so on arbitrage pairs at the same time. ;)
--
Данный индикатор позволяет отслеживать в реальном времени изменение спреда (разницы в курсе) между двумя активами по трем торговым парам.
Как устроен индикатор?
В меню настроек индикатора пользователь выбирает две торговые пары, например BTCUSDT на бирже Binance и BTCUSDT на бирже Bybit, после чего скрипт получит цены с обеих бирж и сравнит их между собой, рассчитав процентное отклонение между ценами (спред). Такую настройку можно произвести для трех торговых пар. Учитывайте, что скрипт может работать только с теми активами и биржами, которые есть на борту TradingView, и это не мало.
По рассчитанному значению спредов на экран выводится линии спредов по трем торговым парам. Линии спредов двигаются между значениями то выше нуля, то ниже. Когда линия спреда ниже нуля это значит что цена на актив на первой бирже меньше, чем на второй. То есть, купив актив на первой бирже и продав его на второй можно заработать (конечно при этом важно учитывать комиссии бирж на совершение данных сделок). Когда линия спреда выше нуля - наоборот. Когда спред равен нулю - цены на обеих биржах одинаковы и арбитражная ситуация отсутствует.
Настройки индикатора.
Для лучшего визуального представления о текущем значении спреда индикатор имеет возможность задать два пороговых уровня спреда. Первый пороговый уровень – это уровень, ниже которого спред не интересен трейдеру и он не будет рассматривать арбитражные сделки. Второй пороговый уровень – это уровень особенно повышенного спреда. Когда значение спреда превышает второй пороговый уровень над линией спреда будут подписаны значения спреда, а экстремальные значения за заданный пользователем период баров назад будут дополнительно выделены более ярким цветом. Оба пороговых уровня отображаются на графике и пользователь может менять их значения в меню настроек индикатора.
Скрипт позволяет оставить на графике только одну линию спреда по одной из трех торговых пар, при этом сохранив отображение индикаторных таблиц по трем торговым парам. Также скрипт позволяет полностью отключить отображение ненужных торговых пар.
Если волатильность линий спреда слишком высока и линии спреда от разных торговых пар накладываются друг на друга воспользуйтесь настройкой «Distance between charts» и увеличивайте ее значение до тех пор пока отображение всех трех графиков не станет комфортным.
Уведомления.
Дополнительно можно настроить пороговое значение спреда, при достижении которого скрипт будет отправлять уведомления от TradingView. Мы назвали это Spread Signal Threshold. Этот пороговый уровень никак не связан с визуальными пороговыми уровнями, описанными выше. Вы можете задать сигнальный уровень превышающий второй визуальный пороговый уровень или сделать его ниже, но важно понимать, что оповещения TradingView будут срабатывать только от превышения именно Spread Signal Threshold. Этот пороговый уровень является общим для всех торговых пар, поэтому уведомления будут приходить при достижении этого уровня спреда по любой из трех торговых пар.
Для настройки оповещений откройте вкладку «Оповещения» в меню TradingView справа. Нажмите кнопку «Создать оповещение». Затем в открывшемся окне в строке «Условие» выберете данный индикатор. После чего вы можете задать название данному оповещению и завершить настройку оповещения, нажав кнопку «Создать».
Мы, авторы данного скрипта, давно занимаемся арбитражем криптовалюты и, в первую очередь, создавали его для себя и своей каждодневной арбитражной торговли, но это не мешает вам использовать его по своему усмотрению для любых видов активов и на любых рынках.
У нас есть более легкая версия индикатора, позволяющая отслеживать спред только по одной торговой паре. Если данный индикатор покажется для вас и вашего устройства слишком тяжелым вы можете воспользоваться более легкой версией .
Если, наоборот, возможности вашего железа позволяют, не забывайте, что вы всегда можете добавить себе на экран несколько копий этого индикатора и отслеживать одновременно не 3, а 6-9-12 и тд арбитражных пар одновременно. ;)
Arbitrage Spread v1 : 1 pair + 1 chart [Arby.Trade]This indicator allows you to track in real time the change in the spread (the difference in the exchange rate) between two assets.
How does the indicator work?
In the indicator settings menu, the user selects two trading pairs, for example BTCUSDT on the Binance exchange and BTCUSDT on the Bybit exchange, after which the script will receive prices from both exchanges and compare them with each other, calculating the percentage deviation between prices (spread). The script can only work with those assets and exchanges that are on board TradingView.
According to the calculated spread value, the spread line is displayed on the screen. This line moves between values above zero and below. When the spread line is below zero, it means that the price of the asset on the first exchange is less than on the second. That is, by buying an asset on the first exchange and selling it on the second one, you can earn money (of course, it is important to take into account the commissions of the exchanges for these transactions). When the spread line is above zero, the opposite is true. When the spread is zero, the prices on both exchanges are the same and there is no arbitrage situation.
Indicator settings.
For a better visual representation of the current spread value, the indicator has the ability to set two threshold spread levels. The first threshold level is the level below which the spread is not interesting to the trader and he will not consider arbitrage deals. The second threshold level is the level of a particularly high spread. When the spread value exceeds the second threshold level, the spread values will be signed above the spread line, and the extreme values for the user-defined period of bars back will be additionally highlighted in a brighter color. Both threshold levels are displayed on the chart and the user can change their values in the indicator settings menu.
Alerts.
Additionally, you can set the threshold value of the spread, at which the script will send notifications from TradingView. We called it the Spread Signal Threshold. This threshold level has nothing to do with the visual thresholds described above. You can set a signal level exceeding the second visual threshold or make it lower, but it is important to understand that TradingView alerts will only be triggered if the Spread Signal Threshold is exceeded.
To set up alerts, open the "Alerts" tab in the TradingView menu on the right. Click the "Create Alert" button. Then, in the window that opens, select this indicator in the "Condition" line. After that, you can set a name for this alert and complete the notification setup by clicking the "Create" button.
We, the authors of this script, have been engaged in cryptocurrency arbitrage for a long time and, first of all, created it for ourselves and our daily arbitrage trading, but this does not prevent you from using it at your discretion for any types of assets and in any markets.
--
Данный индикатор позволяет отслеживать в реальном времени изменение спреда (разницы в курсе) между двумя активами.
Как устроен индикатор?
В меню настроек индикатора пользователь выбирает две торговые пары, например BTCUSDT на бирже Binance и BTCUSDT на бирже Bybit, после чего скрипт получит цены с обеих бирж и сравнит их между собой, рассчитав процентное отклонение между ценами (спред). Скрипт может работать только с теми активами и биржами, которые есть на борту TradingView, и это не мало.
По рассчитанному значению спреда на экран выводится линия спреда. Данная линия двигается между значениями то выше нуля, то ниже. Когда линия спреда ниже нуля это значит что цена на актив на первой бирже меньше, чем на второй. То есть, купив актив на первой бирже и продав его на второй можно заработать (конечно при этом важно учитывать комиссии бирж на совершение данных сделок). Когда линия спреда выше нуля - наоборот. Когда спред равен нулю - цены на обеих биржах одинаковы и арбитражная ситуация отсутствует.
Настройки индикатора.
Для лучшего визуального представления о текущем значении спреда индикатор имеет возможность задать два пороговых уровня спреда. Первый пороговый уровень – это уровень, ниже которого спред не интересен трейдеру и он не будет рассматривать арбитражные сделки. Второй пороговый уровень – это уровень особенно повышенного спреда. Когда значение спреда превышает второй пороговый уровень над линией спреда будут подписаны значения спреда, а экстремальные значения за заданный пользователем период баров назад будут дополнительно выделены более ярким цветом. Оба пороговых уровня отображаются на графике и пользователь может менять их значения в меню настроек индикатора.
Уведомления.
Дополнительно можно настроить пороговое значение спреда, при достижении которого скрипт будет отправлять уведомления от TradingView. Мы назвали это Spread Signal Threshold. Этот пороговый уровень никак не связан с визуальными пороговыми уровнями, описанными выше. Вы можете задать сигнальный уровень превышающий второй визуальный пороговый уровень или сделать его ниже, но важно понимать, что оповещения TradingView будут срабатывать только от превышения именно Spread Signal Threshold.
Для настройки оповещений откройте вкладку «Оповещения» в меню TradingView справа. Нажмите кнопку «Создать оповещение». Затем в открывшемся окне в строке «Условие» выберете данный индикатор. После чего вы можете задать название данному оповещению и завершить настройку оповещения, нажав кнопку «Создать».
Мы, авторы данного скрипта, давно занимаемся арбитражем криптовалюты и, в первую очередь, создавали его для себя и своей каждодневной арбитражной торговли, но это не мешает вам использовать его по своему усмотрению для любых видов активов и на любых рынках.
Arbitrage SpreadThis indicator helps to find spreads between cryptocurrencies, assess their correlation, spread, z score and atr z score.
The graphs are plotted as a percentage. Because of the limitation in pine tradingview for 5000 bars a period was introduced (after which a new starting point of the graph construction will be started), if you want it can be disabled
The multiplier parameter affects only the construction of the joint diagram on which z score and atr z score are calculated (construction of the diagram is done by dividing one pair by another and multiplying by the multiplier parameter) is shown with a red line
To create a notification you have to specify the data for parameters other than zero which you want to monitor. For parameters z score and atr z score data are counted in both directions
The data can be tracked via the data window
Link to image of the data window prnt.sc
Cuban's Pair Trading IndexThe purpose of this indicator is to visually simplify the relationship between two assets when searching for pair trades or higher beta opportunities.
With highly correlated pairs, it can be a blessing or a curse during volatility when you're somehow stuck in the only lower beta pairs, or maybe you're market neutral and the wrong leg starts nuking.
This indicator was built as a visual way to track pair relationships.
Fundamentally, this script does the following:
Plots the relative performance of the relationship between two assets across multiple time horizons
Uses a consistent measurement of historical performance, regardless of asset -- currently standard deviations, may add log difference in the future
Plots a custom Average Directional Index on the current chart ticker for current asset contextual momentum
Plots the average 'rotation' of both the ADX and Pair Delta independently, over n numbers of rotations -- able to be specified using the 'Rotation Lookback' variable
If you've never pair traded crypto before (i.e. long $DYDX, short $ETH), you might not be aware that most highly correlated alt asset returns tend to oscillate on a low timeframe rolling basis around the performance of the majors -- and more recently, predominantly $ETH. With this in mind and using this oscillator, we can track that relationship.
Users are given the ability to adjust the following:
Comparison Asset
Fast and Slow Delta Lookbacks
Whether to wait for one bar delay during security calls
Rotation Lookback
Rotation Threshold for Pair Delta and ADX independently
ADX Lookback
Whether to utilize the ADX on the current chart ticker or also net that off against the ADX of the comparison asset
TO DO:
Aesthetic update to Pair Delta plot
Permanent fix for security call forced delay
Spread ChartThis script lets you chart a spread of a maximum of 3 tickers (one of them being the ticker in the main chart).
Y axis is the currency amount of the spread, that is calculated by this formula:
Y = PnL = quantity * price * handleValue
Y is calculated for each ticker specified, and the sum of Ys obtained is plotted.
this way it is possible to view the PnL of the spread directly.
It is necessary to specify the handle value (point value) in the script inputs (not for the main chart ticker).
A table summarizes the spread configuration, containing all inputs.
two_leg_spread_diffThis script helps you discern the relative change of each leg in a two-legged spread over a given period. The main plot is a difference in log return over the number of bars identified by the "lag" parameter. E.g. if "lag" is 10 and leg one has increased 3% over the past ten bars, while leg two has only increased 1%, the plot value is 2%. The main plot is also colored blue when leg one increases while leg two decreases on a given bar, and red if the opposite is true. This feature identifies periods where the correlation between the two legs diminishes. The one and two standard deviation of the main plot is also plotted in faint background lines. Additionally, a table indicates the percentage in which the main plot is within one standard deviation (acc 1) and two standard deviations (acc 2). Note that the standard deviation updates on each bar, so the current standard deviation is not the one used to calculate the accuracy. Rather, if there are N bars, N different standard deviation readings have been used to compute the accuracy statistics.
The inputs are:
- timeframe: the timeframe of the chart
- leg1_sym: the symbol of the first leg
- leg2_sym: the symbol of the second leg
- lag: the number of bars back to reference for computing the log return of each leg
- anchor_to_session_start: for intraday charts only, this overwrites the "lag" input so that the "lag" always sets the point of comparison to the session start. This setting is used to compute the relative change over a single session.
Nasdaq DowJones STOCH+RSIAlternative & UPDATED version of my previous indicator for spread trading.
This indicator can work pretty well also with other indices or correlated assets such as nasdaq100 and dax40.
The spikes from one side of the channel or the orizzontal lines signal a possible entry signal for a spread trading strategy.
Nasdaq DowJones RATIOThis script gives you the ratio between the Nasdaq 100 and the Dow 30 (nas100/dow30). The RSI helps you understand when one of the two indices is overbought or oversold compared to the other one. This indicator is supposed to be of help for the strategy called spread trading, which consists in shorting an asset and buying the other one.
Spread InformerThe goal of this study is to produce information about the average size of candles in the given time frame. This can be used to help dial in your market making bot spreads.
EarnedHello friends. I am glad to present for your attention one of my products based on the X-Volume indicator code. The "Earned" indicator shows how much money is earned on the market relative to actual timeframe. Accuracy is relative but nevertheless it is close to actual calculated figures.
How this information can help you? Moust easy interpritation -
1) Trend up - earnings up - bulls in the market.
2) Downward trend and earnings up - bears in the market.
3) Trend up - earnings down - fake growth.
4) Downward trend - earnings down - fake bears.
Bitcoin Futures: Premium Discount Backwardation Contango [CR]Bitcoin Futures Premium Discount - Backwardation Contango
Cryptorhythms back at it again with another release for your quarantined pleasure! We've had this one in our back pocket for a few months adding new features and testing it out. Now its time to release it into the wild!
Intro
This indicator is used to capture additional profits by spread trading on futures contracts.
Description
This indicator is for members only and instructions will be given out upon becoming a member. It allows you to select from dozens of perpetual, futures and spot markets to compare, along with providing an info panel of many useful statistics and triggers.
How to get access?
You can get more information on joining by referring to my signature links. Members gain access to an entire suite of proven trading indicators and a supportive community of traders.
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
SpreadTrade - CointegrationThe Cointegration strategy is to short the outperforming instrument and go long on the underperforming instrument
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.
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.
Spreads + MA + Bollinger Bands [USDBRL] Crypto
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 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.
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.
PT_maSpreadThis indicator is designed for use with Profit Trailer's SPREAD strategies.
The user can select either EMA or SMA averages and input their own buy value settings.
It incorporates trailing values, either manual trailing values or automatically calculated values based on volatility.
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