Mxwll Hedge Suite [Mxwll]Hello Traders!
The Mxwll Hedge Suite determines the best asset to hedge against the asset on your chart!
By determining correlation between the asset on your chart and a group of internally listed assets, the Mxwll Hedge Suite determines which asset from the list exhibits the highest negative correlation, and then determines exactly how many coins/shares/contracts of the asset must be bought to achieve a perfect 1:1 hedge!
The image above exemplifies the process!
The purple box on the chart shows the eligible price action used to determine correlation between the asset on my chart (BTCUSDT.P) and the list of cryptocurrencies that can be used as a hedge!
From this price action, the coin determined to have to greatest negative correlation to BTCUSDT.P is FTMUSD.
The image above further outlines the hedge table located in the bottom-right corner of your chart!
The hedge table shows exactly how many coins you’d need to purchase for the hedge asset at various leverages to achieve a perfect 1:1 hedge!
Hedge Suite works on any asset on any timeframe!
And that’s all! A short and sweet script that is hopefully helpful to traders looking to hedge their positions with a negatively correlated asset!
Thank you, Traders!
Hedge
TTP Pair CipherPair Cipher can run your hedge pair trading strategy.
Pair cipher can use a spread chart (two assets ratio or difference) to manage a hedge position consisting of two assets: one long and one short position.
Event though the spread chart is used to determine the entries and exits each coin price action is used to calculate floating PNL.
It supports different bot platforms. It's backtestable and can run live.
Features:
- Internal and external entry signal
- In-chart realised PNL plot
- Hedge position floating PNL chart
- Individual floating PNL for each long and short ("show coins" toggle)
- Retracement exit strategy: determine at which retracement factor to exit your position while in profit
- PNL RSI exit strategy: determine at which RSI level crossunder you'd like to exit. RSI is applied to the floating PNL
- Static TP/SL levels
- ATR TP/SL levels with individual factors. When ATR is selected the TP or SL acts as a multiplier of ATR instead.
- On-chart debug labels for alerts
- Intra candle alert: signals can trigger intra candle in this mode, but this mode will cause repainting. Example: if the position goes below SL intra candle, the alert will be sent, but later if it goes in profit before closing the candle, the backtest will continue with the position open. The backtest does NOT have access to the intra candle data. Alert intra candle reduces the risk of not applying SL.
Example of setup:
1) Load an empty 1 hour timeframe chart with the spread BYBIT:REQUSDT.P / BYBIT:REEFUSDT.P
2) Select an investment amount
3) Select TP 1.2 and enable ATR
4) Select SL 1.1 and enable ATR
5) Select RSI profits of crossunder 70
6) Don't enable external signal (you can try with TTP PNR)
7) Select BYBIT:REQUSDT.P as symbol 1
8) Select BYBIT:REEFUSDT.P as symbol 2
TTP Alt HedgeAlt hedge is a pine script that allows you to backtest and live hedge trade alt coin pairs.
Once you have selected 20 alt coins and your preferred take profit and a stop loss settings the script will find pairs: one coin that is very overbought and one that is very oversold. It will then long the one in discount and short the premium one.
The script will show you the PNL of the hedge combined position. If together they reach the TP or SL the position will be closed.
Use the "max profit retracement" to target larger TP levels and lock in profits if they retrace more than the chosen ratio. Example: if the TP retraces more than the golden ratio of 0.618 then close the position.
The indicator offers a table of profits with overall PNL and win rate stats.
It can be hooked up to WickHunter bots using alerts and the UUID of the bot.
Debug alerts shows the messages that will be sent for entry/exit deal messages.
Plot PNL shows the cumulative PNL in percentage in the same chart. This function is particularly useful since it shows the performance of the bot.
Each deal in this bot can consist of any pair of coins provided by the user. For example: long ADA + short ETH when ADA is very expensive and ETH is very cheap.
Consider using alt coins that have either strong or vey low correlation, the closer to 1 or -1 in correlation coefficient the better.
Have fun!
Plot the close-spread relationship between two price seriesThis indicator plots the close-spread relationship between two price series by calculating the change across two price series as a spread for each. Each spread is the rate of change in yesterday's closing price and the prior day's closing price. By default, weekend prices are defined to be 0.0 but can be included as user-definable input, if required.
User input:
Symbol for price series 1 - defaults to BITFINEX:BTCUSD
Symbol for price series 2 - defaults to NASDAQ:NDX
Market session time (string) - defaults to 00:00 to 23:59
Timezone - defaults to UTC-4
Market Hedge RatioRatio of crypto (total, Bitcoin, or Ethereum market cap) to major stable coins.
A low ratio suggests a lot of people are sitting in cash (sidelined if crypto rallies).
A high ratio suggests possible demand saturation.
Sentiment EURUSD 1m with hedging zonesThis is a very specialised and optimized script, for 1m EURUSD traders - daytraders, scalpers.
1m trading is very difficult, but it can be also most profitable, if done right.
Why difficult? It is hard to detect market direction - usually when trend indicators reverse, that new trend is already over. One and the same indicator signal sometimes provides one outcome (for example reversal) and sometimes exactly the opposite (continuation). It requires deep understanding on WHEN to use which indicator and when to ignore signals. Set the parameters of your indicators to a very sensitive extent and they will keep changing direction back and forth - always being too late of course :) Set the parameters too losely, and you'll be late with entries 100% of times. Looking for universal trend-showing indicator? There is none...
This script is a result of 2 years of practical following EURUSD 1m market action. Looking at charts with MANUAL TRADER'S eyes. Analyzing all together: price action, indicators, zigzag, divergences, momentum, pivot points, support and resistance. On the one hand traders say only manual trading can be successful and on the other - to stick to one strategy and be automatic when applying to it. So this is it - automatic coding of market signals as if manual trader would do it. Forex is news-driven? Yes, it is. So if market sentiment changes because of some news happening, the script will quickly recognize it and suggest reversal.
Please note I'm not pretending to have a crystal ball. Nobody has. The goal of this script is not to predict where EURUSD market will be, but to correctly notice that is has reversed. Nothing else.
Sometimes the market will move towards reversal, but not cross the line yet - these are so-called HEDGING ZONES. Sometimes they turn out to be reversals and sometimes simply best places for dip entries. Ideally a trader should hedge there, because market could move either way. You might wanna apply apply knowledge of market fundamentals there or look into some micro-indicators. Anyway, it is good to realize where those zones are and this script shows them. In pink.
It is invite-only script. DM me for access.
Yield CurveThis script tracks the U.S. 2Yr/10Yr Spread and uses inversions of the curve to predict recessions. Whenever a red arrow appear on the yield curve, expect a recession to begin within the next 2 years. Use this signal to either exit the market, or hedge current positions. Whenever a green arrow appears on the yield curve, expect a recession to have nearly ended. Use this signal to enter the market, or cut current hedges against a recession. (I may update this script in the future to better incorporate the effective federal funds rate into exit points, but for now I am satisfied with the results).
PC-Indicator - Spar_maDeutsche Version Unterhalb.
English version:
This indicator is supposed to be another tool to recognize when a panic movement has begun and also ended. Of course, there are other indicators that work very well, but this can also help to identify the timeframe.
Description of for using the indicator with the example of the panic sell-off in March:
Before the selloff started, two areas can be identified in which the market is being tested. This is when at the same time, the price intersects with the 21 moving average and the put / call indicator. This indicates that something could be wrong (no guarantee, just an indicator). This happened first (marked with 1) when the virus was discovered: Few who had been informed had any idea what might happen. The second "drop" (marked 2) happened when it was publicly announced that such a virus existed. The third time the panic broke out (marked 3) long after the virus was known. The portfolios should have been hedged here at the latest. Shortly before the yellow marking the virus was reported daily and maximum panic were spread. This was the point at which the hedge could theoretically be ended (if you have the courage to do so). However, I myself waited until the 21st and the indicator were clearly broken.
This indicator could have helped to save a loss in value of the portfolio by at least 17%. I hope this indicator can continue to perform as well.
Please leave a like and subscribe if you are interested in further trading ideas from me.
Name of the indicator: “PC-Indicator - Spar_ma”
That’s my opinion and should be treated like it.
No trade advice!
______________________________________________________________________________________________
Deutsche Version:
Dieser Indikator soll ein weiteres Tool sein um erkennen zu können, wann eine panische Bewegung beendet ist. Natürlich gibt es weitere Indikatoren die sehr gut funktionieren, dieser kann jedoch zusätzlich dabei helfen zu erkennen wann es soweit ist.
Beschreibung des Indikators an Beispiel des Panischen sell-offs im März:
Bereits vor beginn sind zwei Bereiche zu erkennen, an denen der Markt getestet wird. Dabei kreuzen sich gleichzeitig der Kurs mit dem 21-gleitendem Durchschnitt und dem Put-/Call- Indikator. Das lässt darauf zurückführen, dass etwas kommen könnte. Dies geschah zuerst (mit 1 gekennzeichnet) bei der Entdeckung des Virus: Wenige die Informiert wahren, jedoch ahnten was passieren könnte. Der zweite „Drop“ (mit 2 gekennzeichnet) geschah als öffentlich bekannt gegeben wurde, dass ein solches Virus existiert. Beim dritten Mal brach die Panic aus (mit 3 gekennzeichnet), lange nachdem dieser Virus bekannt gewesen war. Spätestens hier sollte das Konto gehedged worden sein. Erst kurz vor der gelben Markierung wurde täglich vom Virus berichtet und maximale Panic verbreitet. Dies war der Zeitpunkt an dem theoretisch der Hedge beendet werden konnte (wenn man den Mut dazu hat). Ich selbst habe allerdings noch gewartet bis der 21ger und auch der Indikator klar durchbrochen wurde.
Dieser Indikator hätte dabei helfen können einen Wertverlust des Kontos um mindestens 17% ersparen zu können. Ich hoffe dieser Indikator kann weiterhin so gut performen.
Bitte lasst ein like da und abonniert mich, falls Ihr Interesse an weiteren trading-ideen von mir habt.
Name des Indikators: “PC-Indicator – Spar_ma”
Dies ist nur meine persönliche Meinung und sollte auch so betrachtet werden.
Dies ist keine Handelsempfehlung.
Cross Pair [NeoButane]Creates candlesticks of a cross pair of any symbol you want. Ideally both pairs would be denominated in the same currency.
The candlesticks are plotted, a close value is available to use for applying indicators on, and a label shows what is being used.
Options to configure are choosing the symbols, displaying the ticker without the exchange name, and removing wicks. If the exchange prefix is 'BATS', 'FRED', or 'TVC', it is automatically removed.
Short In Downtrend Below MA100 (Coinrule)This is a simple strategy to take advantage of downtrends. It's useful to run such a strategy as a hedge in times of market uncertainty.
The Sell Condition - Entry
The sell signal triggers when:
the coin has MA (100) greater than the price in a timeframe of 15 minutes, meaning that the coin is in a short-term downtrend.
the coin has an RSI greater than 30 in a timeframe of 15 minutes, indicating that it didn't reach oversold conditions yet, so there is still room for a further price drop.
On Coinrule, you can launch the strategy on real market conditions, setting up multiple sequential sell orders. The strategy would keep selling while the price stays below the MA(100). In that case, it's advisable to set low amounts for the sell orders. the position will grow gradually while the downtrend intensifies. Set a minimum time interval between the sell orders will also help to have control over the overall position size.
The Buy Condition - Exit
The bot connects to each trade a stop loss and a take profit. The percentages are optimized for short term trades on mid-cap coins. You can adjust the percentages depending on the specific coin you are trading. A ratio of 1:1.5 between the stop loss and the take profit could work as the strategy trades in the same direction of the trend.
Stop loss at 3% from the entry price
Take profit at 2% from the entry price
A slightly larger stop loss allows tolerating more volatility to reduce the case of stops triggering when it shouldn't.
Example: Polynomial Regression for Spread AnalysisExample of applying polynomial regression channel to spreads or hedges between 2 assets.
Hashrate Mining of BiznesFilosofIn addition to technical analysis, you also need to pay attention to fundamental analysis. Bitcoin has one of these indicators, it is the network hashrate. And it’s important to know when mining becomes disadvantageous. Those. when network participants turn off the equipment. And there are critical points that depend on the price and number of miners in the network.
When the blue bars of the indicator grow, then you can stand in long. When stools are reduced, then it is time to close positions or hedge risks in the derivatives market.
The vertical line indicates halving.
A red flag indicates a dangerous moment, and a green flag indicates the time of purchase.
The oscillator is based on fundamental indicators and the intersection of moving averages.
===
Кроме теханализа нужно ещё обращать внимание на фундаментальный анализ. У биткоина один из таких показателей, это хэшрейт сети. И важно зать, когда майнинг становится невыгоден. Т.е. когда участники сети отключают оборудование. И есть критические точки, зависящие от цены и количества майнеров в сети.
Когда синие столбики индикатора растут, тогда можно стоять в лонг. Когда столюики уменьшаются, тогда пора закрывать позиции или хеджировать риски на рынке деривативов.
Вертикальной линией обозначен халвинг.
Красный флаг показывает опасный момент, а зелёный флаг указывает на время покупок.
Осцилятор основан на фундаментальных показателях и пересечении скользящих средних.
Commercial Short IndexThis script takes the hedger (commercial short) from the COT report and normalize the chart for configurable time frames (e.g. 26 weeks, 152 weeks and 260 weeks).
Based on the "Commercial Index-Buschi" script by MagicEins.
GRID RELOADED 1.0Script for grid trading on Bitmex XBTUSD 5min
A quick description for the input parameters. I can detail privately the ones that are important:
Points between two same dir trades = how much the price must change before a new DCA can happen
Points between SHORTS = same for short trades
Global Take Profit points = take profit for all open positions expressed in the same units as the price
Global Stop Loss points = same as for profit
Take Profit points decrease per bar = this is how much the target global profit decreases each bar toward zero
Trend up to start a trade long = wait for the DEMA to show a long slope before opening new long positions
Max long position = max n. of long positions
Check trend on trade = wait for a positive/negative bar before long/short
Min Stochastic overbought/sold for trade = wait for the stochastic to be below/above this before long/short
Limit Orders long % below close price = place limit orders % before current price. the order could be left pending.
DEMA 1 Length = periods of DEMA for trends
HA Candles = toggle a pattern match to enter trades
U.S. Stocks & Options CVI to Bitcoin Correlation [NeoButane]Conceptual indicator based on trying to find an inverse correlation between bitcoin and traditional markets due to bitcoin's usefulness as a hedge against economic downturns.
How to use this script: you look at it and see if there is a correlation or not between bitcoin/Ethereum price and either U.S. stock CVi, buy volume, sell volume, calls, puts, or the call/put ratio.
Neo BitMEX Futures Hedge Grid Alerts Premium v1.0This indicator was made to streamline finding the optimal entry to cash and carry/hedge on a futures contract when margin trading.
Explanation of the indicator:
This indicator has built-in alert conditions that you can use to give you email alerts, in-browser sound alerts, or SMS alerts. These alerts are based upon futures prices being in contango or backwardation.
From top to bottom, the grid shows XBTU18, XBTZ18, OkEx's Quarterlies (OKCOIN:BTCUSD3M), and CME's futures.
Red: Futures are trading above your defined range (default 1%) of spot
Maroon: Futures are trading above twice your defined range of spot
Lime: Futures are trading below your defined range (default 1%) of spot
Green: Futures are trading below twice your defined range of spot
What's configurable:
% to trigger
Grid size
Bar color toggle
Label toggle
Spot/index source (Bitfinex's BTCUSD, BitMEX's XBTUSD, and BitMEX's XBT Index are available)
Pricing:
Currently this standalone indicator is 0.007 BTC for lifetime use.
Example of use:
On 4 May 2018, BitMEX's XBTU18 was trading >2% above perpetual swap. The grid alerts signaled that and if one were long on bitcoin spot on any exchange, then it would have been a good idea to hedge a short on XBTU18. Eventually from there the premium gap was closed while bitcoin fell.
Here is the indicator shown with bar coloring and labels.