Divergence Backtester - V2Further attempts to study divergence impact on price in shorter terms.
Previous study can be found here:
In this script, we are trying to gather the stats based on last two pivot state together. For example, Individual table of Pivot High Projection is as explained below:
But, by looking at the bigger picture, we can further estimate following things regarding the current unconfirmed pivot and the new pivot which is yet to be formed.
Индекс относительной силы (RSI)
Simple RSI and SMA Long and Short (by Coinrule)The relative strength index ( RSI ) is a momentum indicator used in technical analysis . RSI measures the speed and magnitude of a security's recent price changes to evaluate overvalued or undervalued conditions in the price of that security. The RSI is displayed as an oscillator (a line graph) on a scale of zero to 100. The RSI can do more than point to overbought and oversold securities. It can also indicate securities that may be primed for a trend reversal or corrective pullback in price. It can signal when to buy and sell. Traditionally, an RSI reading of 70 or above indicates an overbought situation. A reading of 30 or below indicates an oversold condition.
A simple moving average ( SMA ) calculates the average of a selected range of prices, usually closing prices, by the number of periods in that range.
The Strategy enters and closes the trade when the following conditions are met:
LONG
SMA100 is greater than SMA150
RSI is greater than 50
SHORT
SMA100 is less than SMA150
RSI is less than 50
When a long position is opened, it remains open until the conditions for a short are met at which point the long position is closed and the short position is opened. Then, when the conditions for the long position are met, the short will be closed and a long will be opened.
This strategy is back tested from 1 January 2022 to simulate how the strategy would work in a bear market. The strategy provides good returns.
The strategy assumes each order is using 30% of the available coins to make the results more realistic and to simulate you only ran this strategy on 30% of your holdings. A trading fee of 0.1% is also taken into account and is aligned to the base fee applied on Binance.
Breakout Candles + RSIHello!
This is my firt script :)
This indicator looks for candles that are significantly larger than the previous X candle.
It is possible to set the following:
Multiplier: deviation from the size of the previous X candle (if set to 3 the size of the actual candle's body /abs(open - close)/ must be larger than the size of the bigger candle from the prevous X candles)
Previous candles: the number of previous candles to size check
Upper RSI limit: if the RSI14 close higher than the specified number, the candle will ignore
Lower RSI limit: if the RSI14 close lower than the specified number, the candle will ignore
Without dojis: if checked, watches candles only that do not have a bottom spike (bullish) or top spike (bearish). Useful for Heikin-Ashi candles
Feel free to left any suggestion!
Thank You!
Global & local RSI / quantifytoolsAs the terms global and local imply, global RSI describes broad relative strength, whereas local RSI describes local relative strength within the broad moves. A macro and micro view of relative strength so to speak. Global and local RSI are simply regular RSI and stochastic RSI. Local RSI extremes ( stochastic RSI oversold/overbought) often mark a pivot in RSI which naturally reflects to price. Local RSI extremes are visualized inside the global RSI bands (upper band for overbought, lower band for oversold) in a "heat map" style.
By default:
Stochastic RSI >= 75 = yellow
Stochastic RSI >= 87 = orange
Stochastic RSI >= 100 = pink
Users also have the ability smooth the RSI with their preferred smoothing method ( SMA , EMA , HMA , RMA, WMA ) and length. This leads to different behavior in RSI, rendering the typical RSI extremes (> 70 or < 30) suboptimal or even useless. By enabling adaptive bands, the extremes are readjusted based on typical RSI pivot points (median pivots ), which gives much more relevant reference points for oversold/overbought conditions in both global and local RSI. This feature can be used without smoothing, but it rarely provides a meaningful difference, unless the RSI calculation length is messed with.
Global RSI can be plotted as candles, bars or a line. Candles and bars can be useful for detecting rejections (wicks) in relative strength, the same you would with OHLC data. Sometimes there are "hidden rejections" that are visible in relative strength but not on OHLC data, which naturally gives an advantage. All colors can be adjusted in the input menu. You also have a real-time view of the current RSI states in top right corner. Available alerts are the following: global RSI overbought, global RSI oversold, local RSI overbought and local RSI oversold.
swami_rsi
Description:
As in the practices, most traders find it hard to set the proper lookback period of the indicator to be used. SwamiCharts offers a comprehensive way to visualize the indicator used over a range of lookback periods. The SwamiCharts of Relative Strength Index (RSI), was developed by Ehlers - see Cycle Analytics for Traders, chapter 16. The indicator was computed over multiple times of the range of lookback period for the Relative Strength Index (RSI), from the deficient period to the relatively high lookback period i.e. 1 to 48, then plotted as one heatmap.
Features:
In this indicator, the improvement is to utilize the color(dot)rgb() function, which finds to giving a relatively lower time to compute, and follows the original color scheme.
The confirmation level, which assumed of 25
2 EMA On Smoothed RSIThis is just a educatinal work. I just want to identify the trend direction on RSI so I smoothed 2 times RSI with MA and add to RSI two ema. Red line show us the trend direction and and green line is working as a support or resistance.
Multi-Indicator Divergence ScreenerHere is a new screener for everyone.
I have applied my Better Divergence On Any Indicator logic to scan 3 different indicators and up to 6 different assets at one time. Shoutout to LonesomeTheBlue and QuantNomad for their respective work on divergence and scanner scripts. I've implemented similar logic to put together this scanner.
So far, I have added support for RSI, OBV, MACD, MFI, Stochastic, and FSR, though I'm happy to add more by request. Please note, for simplicity, I have removed the logic to filter for only overbought/oversold divergences. Because this can scan both centered oscillators and non-centered indicators, overbought/oversold does not apply to all of them. I may try to find a way to work in back in later, as time allows.
Personally, I like to find confluences different types of indicators. For instance, agreeable divergence with a centered strength oscillator like RSI and a volume based indicator like OBV gives me more confidence that there will be follow-through.
Like in the Better Divergence script, you can opt to scan for confirmed divergences, potential divergences, or both.
You have the option to show or hide a table that will tell you exactly which assets have divergence, on which indicator they were found, and how many points of divergence were identified. By default, bull divergences will be green, bear will be red, but you can change these base colors to your liking. Confirmed divergences are shown with a solid background, while potentials (if selected) are shown with transparent background. If all 3 of your chosen indicators have divergence in the same direction, the asset name will show in the bull or bear color to highlight the confluence.
Alerts have also been set up to fire on bar close. The message will essentially tell you the same thing the table does, but in condensed format.
You can choose to have alerts fire any time there is any divergence detected across all assets, only when there are divergences on at least 2 of the chosen indicators for a given asset, or limit them to only when all 3 indicators show divergence in agreement.
3Commas Bot DCA Backtester & Signals FREEThis is a DCA Strategy backtester + signals, built to emulate the 3Commas DCA bots. It uses your choice of 4 different buy signals, 2 of which can be adjusted in the settings. Everything is customizable so you can backtest specific settings with different buy signals and find the best performing strategy for your risk tolerance and capital. It can be used to backtest strategies on stocks as well, but just make sure your base order is larger than the share price for the entire backtesting range or it will not calculate properly.
You can use this template to code your own buy signals and then backtest them as a DCA strategy if you know some basic pine script.
The indicator shows all of your backtesting orders on the chart. The red line is your take profit level, the blue line is your average price level, the white line is your first order and the green lines are your average down orders. If you enable a stop loss in the settings your stop loss will be shown as an orange line once all of your average down orders have been hit, it will not be set until price has dipped below your covered trading range.
These levels update when things change during backtesting so you can visualize your strategy and how it would perform as well as see if your percentage deviation is large enough to cover dips. When backtesting trades are taken, the chart will show where they were taken(in backtesting) along with info on those trades such as the number each order is, the size of that order and the percentage deviation that order is from the initial buy.
SENDING SIGNALS TO 3COMMAS
Tradingview cannot sync this backtester to 3Commas and with the way alerts are setup for strategies on Tradingview, the best option for you to give signals to your bot would be to use this backtester to figure out what trigger you want to use and then setup that indicator separately to send alerts to your bot. All of the indicators used for signals in this backtester are available for free and can be configured to match this backtester and send alerts to 3Commas for you. Just make sure you set your alerts to once per bar close and don’t use less than a 15 second timeframe because then you could trigger the Tradingview threshold for alerts and get your alerts shut off.
You can also use this backtester with your own buy triggers if you know a little pine script. Just make copy of the script and code in your own buy signals and see how it backtests.
INFO PANEL FOR ANALYZING YOUR STRATEGY
The right hand side of the screen will show an info panel that shows a lot of different information so you can quickly see your bot settings and how it performed right on the screen.
In the top right corner you will see in purple your bot settings. These include your stoploss % if turned on, take profit %, average down order %, average down order % multiplier, volume multiplier, max number of orders allowed and size of your base order.
The top section of the first column “Current Trade” shows these stats: the open trade’s average price, the open trade’s take profit price, the open trade’s PNL, how far price is from your open tarde’s take profit level in percentage, your open position size and number of open orders.
The bottom section of the first column “Overall Performance” shows these stats: total number of trades taken during backtesting range, the largest amount of trades that were open at one time during backtesting, the max drawdown, the average number of bars per trade, gross profit, net profit, percent profit from your initial capital, current portfolio value and your initial capital.
CUSTOMIZABLE OPTIONS TO FIND THE PERFECT STRATEGY
Stoploss On/Off
This will turn your stoploss on or off. By default it is set to off and will not affect anything unless turned on.
Stoploss Percentage
This is the percentage below your final average down order price that will be set as a stoploss to keep your account from going too far in the red on big dips.
Take Profit Percentage - This is the percentage of profit you want the trade to hit before taking profit on your entire DCA trade. This level updates everytime you average down.
Average Down Percentage - This is the percentage that price has to drop from your initial order to initiate your first safety order. If the Average Down Percent Multiplier is set to 1 then this percentage will be the same for every average down order.
Average Down Percentage Multiplier - This multiplies your Average Down Percentage so each safety order needs a larger percentage deviation than the previous one. This keeps your buys closer together at the beginning and further apart when you hit more orders so you can extend your trading range but still be aggressive when price is going sideways.
Volume Multiplier Per New Order - This multiplies the size of each trade based on your base order. If you set it to a 2x multiplier then each average down order will be 2 times the size of the last one. So for example, a $100 base order with a 2x multiplier would have these values for the first 3 average down orders: 200, 400, 800.
Size Of Base Order - This is the size of your first position entry and will be used as a starting point for the volume multiplier. If your base order is $100 then it will buy $100 worth of whatever crypto you are backtesting this on. If you are looking at stock charts, you need to make sure your base order is higher than the share price across the entire backtesting range or it will not perform correctly.
Max Number Of Orders - This is the maximum number of orders the bot can take, including your base order. Adjust this to suit the amount of capital you are willing to allocate to your bot based on how much money it will require to run according to your bot settings.
TIPS ON HOW TO USE FOR BEST RESULTS
If you don’t have a lot of capital to work with, then use longer timeframes with a reasonable take profit percentage so that you don’t need a lot of average down orders. You can also try keeping the volume multiplier close to 1.
You can use the 3Commas dca bot settings page to see how much capital you will need for your strategy if you match it to the settings you have on this indicator. You can also check to see how much of a percentage deviation your bot is covering to make sure you have a reasonable range to trade in and orders to cover big dips. You can also check your coverage by seeing how far down the chart the green lines cover, which are your average down orders.
Make sure the initial capital in the properties tab of the settings has enough to cover all of your orders otherwise you will get unrealistic backtesting results. Also, make sure you leave the order size in the properties tab on contracts so it calculates your trades correctly. The only settings you need to touch in the properties tab is the initial capital. Unless you are trading somewhere that has lower commission fees, then you can change that to match, but leave all the other settings as is for it to function properly.
Increasing the volume multiplier will make your average price and take profit target follow the price action a lot closer as price falls, but it can also lead to having very large orders very quickly once you get into the 1.5-3x multiple range. Try using a high volume multiplier with less safety orders and you will get better results, however you need to have money on the sidelines to add on major dips to keep your bot turning a profit. Be very careful with this as greed and impatience will hurt your overall performance. This bot is meant to make money with lots of small wins so don’t get greedy and make sure you have enough money to cover large dips. If you are being aggressive with your bot, then I recommend only using 25% or less of your portfolio to trade aggressively and then use the smart trade feature on 3commas to add chunks of funds to your trades when price dips below your last safety order. Or if you want it to run without any supervision, then use lower volume multipliers and have lots of safety orders that can cover entire bear markets and still keep buying lower.
It’s a good idea to have some capital on the sidelines that you can add in when price dips quickly. This will help lower your average price and allow your bot to get out in profit quicker. 3Commas bot has a smart trade feature that will allow you to track your average price when adding extra funds and it will automatically update your other orders which is very convenient. Look at the longer timeframes when price dips and only add chunks at major areas where price is very likely to bounce. Or you can be aggressive when trading and add to your position when price dips and is at a likely bounce zone to maximize profits.
Only trade coins that have a good amount of liquidity as the larger your orders get, the harder it will be to sell if there isn’t much liquidity. Also, beware of how large your first order is as it will usually be a market order and can move the market if there is not much liquidity.
Since this bot takes a lot of trades and performs best when taking small profits consistently, you will need to factor in exchange fees. The bot is set to .5% commission(you can change this) on the buy and sell orders as most exchanges charge that amount. Some exchanges offer no fee trading on certain coins so be sure to look around for those so you can keep the commissions and maximize profits.
I strongly encourage you to try out a lot of different setting combinations across multiple different coins and do it across a few months to see how it would have performed under various market conditions. This will help you get a better idea of how much of a percentage deviation you’ll need to be able to cover to keep your bot running and making constant profits. You can also use the deep backtesting feature of the strategy panel to see how it would have done, but just beware that the info panel of the indicator will not reflect deep backtesting results, only the normal backtesting range.
MARKETS
This backtester can be used on any market including crypto, stocks, forex & futures. You just need to make sure your base order is larger than the share price when using this on things besides crypto.
TIMEFRAMES
This backtester can be used on all timeframes.
RSI & BB QQE Mod (highlight)This script is a combination of the RSI, QQE and BB
Here is an explanation on how I combined them, and how they are used:
- RSI (Relative Strength Index)
- Display a smoothed version of the RSI to identify "oversold" and "overbought" market phases
- Used to calculate a QQE
- QQE (Quantitative Qualitative Estimation)
- Used to identify trend direction and trend strength
- Used to set a basis for the BB
- BB (Bollinger Bands)
- Used with QQE as a basis to determine a relative definition of "high RSI" and "low RSI"
- Used with QQE as a basis to determine the volatility of the RSI at a given moment
- Used to predict pivot points
Here are the main signals:
- When "RSI Smoothed" line above the Upper BB then "RSI Smoothed" line turns green
- Also , display green background color highlight
- Also , and if "RSI Smoothed" is above the overbought line then display a second green background color highlight
- When "RSI Smoothed" line bellow the Lower BB then "RSI Smoothed" line turns red
- Also , display red background color highlight
- Also , and if "RSI Smoothed" is bellow the oversold line then display a second red background color highlight
A tool codded to be aesthetically pleasing and VERY customisable:
- Designed for both light theme and dark theme users
- Value can be easily modified in the settings
- Colors can be easily swapped in the settings
- Opacity of "fill" & "bgcolor" regrouped as a single input
A tool codded to be easy to read and to learn from:
- Sources and inspirations all listed within the script
- Structure easily identifiable (to understand with little to no effort how the script works)
Notes :
- This script is lagging, because of that I do recommend using it on relatively large timeframe
- This script is OpenSource, feel free to reuse it, but if so please remember to include a link to my script in your sources
- This script is not a magical tool, use at your own risk
FieryTrading: Buy The Dip - Sell The RipDear Tradingview community,
Today I want to share a very powerful, yet easy to use indicator with you. The indicator will find local tops or bottoms and will help you determine when it's a good time to trade a potential reversal.
How does it work?
The indicator makes use of the RSI to detect extremities and waits until the RSI reverses. Furthermore, a long-term moving average is used to determine whether we're in bullish or bearish market conditions. In bullish conditions the indicator will only go long, in bearish conditions the indicator will only go short.
How do I use it?
Favorite the indicator and apply it to your chart! You can add an alert to the indicator to receive a message once it has detected a good point for a reversal trade.
The indicator can be used on all assets and on all timeframes. Personally, I've found the 1 - 4 hourly timeframes to yield the best results.
Good luck!
LibIndicadoresUteisLibrary "LibIndicadoresUteis"
Collection of useful indicators. This collection does not do any type of plotting on the graph, as the methods implemented can and should be used to get the return of mathematical formulas, in a way that speeds up the development of new scripts. The current version contains methods for stochastic return, slow stochastic, IFR, leverage calculation for B3 futures market, leverage calculation for B3 stock market, bollinger bands and the range of change.
estocastico(PeriodoEstocastico)
Returns the value of stochastic
Parameters:
PeriodoEstocastico : Period for calculation basis
Returns: Float with the stochastic value of the period
estocasticoLento(PeriodoEstocastico, PeriodoMedia)
Returns the value of slow stochastic
Parameters:
PeriodoEstocastico : Stochastic period for calculation basis
PeriodoMedia : Average period for calculation basis
Returns: Float with the value of the slow stochastic of the period
ifrInvenenado(PeriodoIFR, OrigemIFR)
Returns the value of the RSI/IFR Poisoned of Guima
Parameters:
PeriodoIFR : RSI/IFR period for calculation basis
OrigemIFR : Source of RSI/IFR for calculation basis
Returns: Float with the RSI/IFR value for the period
calculoAlavancagemFuturos(margem, alavancagemMaxima)
Returns the number of contracts to work based on margin
Parameters:
margem : Margin for contract unit
alavancagemMaxima : Maximum number of contracts to work
Returns: Integer with the number of contracts suggested for trading
calculoAlavancagemAcoes(alavancagemMaxima)
Returns the number of batches to work based on the margin
Parameters:
alavancagemMaxima : Maximum number of batches to work
Returns: Integer with the amount of lots suggested for trading
bandasBollinger(periodoBB, origemBB, desvioPadrao)
Returns the value of bollinger bands
Parameters:
periodoBB : Period of bollinger bands for calculation basis
origemBB : Origin of bollinger bands for calculation basis
desvioPadrao : Standard Deviation of bollinger bands for calculation basis
Returns: Two-position array with upper and lower band values respectively
theRoc(periodoROC, origemROC)
Returns the value of Rate Of Change
Parameters:
periodoROC : Period for calculation basis
origemROC : Source of calculation basis
Returns: Float with the value of Rate Of Change
[MAD] almost RSII continue to add things to the multibit ready indicators:
This is a modified RSI indicator with some useful additions to make it bottrading ready:
Centered around 0, so from +50 to -50.
Short-Triggerline
Long Triggerline
following value mods are possible:
POW factor --> rsi^POW
final smoothings:
SMA smoothing (level 1)
EMA smoothing (level 2)
switch all smoothings on/off
signals on:
Crossout (moves outside the high/low).
Crossin (moves back inside the high/low)
Direction change outside
Direction change inside
Signal filter output
This is a multibit capable indicator, so signal and filter can be exported to a multibit capable daisychain.
More information can be found here:
have fun
Mega Pendulum IndicatorThe MPI (Mega Pendulum Indicator) is a fusion between the Pendulum Indicator and the Swing Indicator and is used with specific trading rules.
The MPI is a semi-bounded oscillator comprised of two lines. The first bounded line is the Pendulum Indicator which oscillates between 0 and 100 but generally oscillates between 20 and 80. The second semi-bounded line is the Swing Indicator which generally oscillates between -10 and 10.
The conditions for trading the Mega Pendulum Indicator are as follows:
* Buy: Whenever the Pendulum indicator crosses over its signal line (a 5-period moving average) and at the same time, the Swing Indicator must cross over -10 after having been below it.
* Sell: Whenever the Pendulum indicator crosses below its signal line (a 5-period moving average) and at the same time, the Swing Indicator must cross under -10 after having been above it.
MTF Fantastic Stochastic (FS+)MTF Fantastic Stochastic (FS+) + Alerts
This chart overlay indicator can signal multiple triple-timeframe Stochastic RSI overbought and oversold confluences directly onto your chart, intended for use as a confluence either for reversal trade entries, or potential trade exits, indicating where price may be probable to reverse.
Features include:
- Primary set of fully configurable triple-timeframe overbought and oversold signals, indicating where 3 selected timeframes are all overbought or all oversold at the same time. Enabled by default.
- Secondary set of fully configurable triple-timeframe overbought and oversold signals, indicating where 3 selected timeframes are all overbought or all oversold at the same time, with alert option. Enabled by default.
- Also includes standard configurable Stoch RSI options, including k length, d length, RSI length, Stochastic length, etc.
- The default primary MTF #1 timeframes are set to 1minute, 5minute and 15minute. These are highly suitable for low timeframe scalpers trading on charts less than 5 minutes, and can often pin point price reversals.
- The default Secondary MTF #2 timeframes are set to 15minute, 30minute and 60minute. These are suitable for both low timeframe scalpers and considerably higher timeframe traders.
- Optional drawing of background colours and/or ribbon seen at bottom of the chart.
- Fully configurable timeframes, as well as overbought and oversold threshold levels for each individual timeframe. Overbought and oversold thresholds are set to the factory 80 and 20 levels respectively for all timeframes by default.
- Alert features for both MTF #1 and MTF #2 triple-timeframe confluences, including options for alerting overbought and oversold individually, as well as an option for alerting either overbought or oversold in a single alert.
Note: THe features listed above are accurate at the time of publishing but maybe updated or added to in future.
The Stochastic RSI
The popular oscillator has been described as follows:
“The Stochastic RSI is an indicator used in technical analysis that ranges between zero and one (or zero and 100 on some charting platforms) and is created by applying the Stochastic oscillator formula to a set of relative strength index ( RSI ) values rather than to standard price data. Using RSI values within the Stochastic formula gives traders an idea of whether the current RSI value is overbought or oversold. The Stochastic RSI oscillator was developed to take advantage of both momentum indicators in order to create a more sensitive indicator that is attuned to a specific security's historical performance rather than a generalized analysis of price change.”
How do traders use overbought and oversold levels in their trading?
The oversold level, that is when the Stochastic RSI is above the 80 level is typically interpreted as being 'overbought', and below the 20 level is typically considered 'oversold'. Traders will often use the Stochastic RSI at an overbought level as a confluence for entry into a short position, and the Stochastic RSI at an oversold level as a confluence for an entry into a long position. These levels do not mean that price will necessarily reverse at those levels in a reliable way, however. This is why this version of the Stoch RSI employs the triple timeframe overbought and oversold confluence, in an attempt to add a more confluence and reliability to this usage of the Stoch RSI.
This indicator was originally built as one of a many features included in the RF+ Divergence Scalping System and has been separated into it's own standalone indicator here for traders who do not want the many other features bundled into the original indicator. A number of features that exist in the original were intensive, and also quite niche. Therefore this lightweight single purpose chart overlay indicator offers this versatile feature of the ever popular Stochastic RSI to a wider audience of traders who may add it to various strategies.
Overlay - HARSI + Divergences // All credit to © //@author=JayRogers & VuManChu Cipher B for their original Scripts (Open Source)
/ ====== ABOUT THIS INDICATOR
// I've combined some part of the code of the following indicators to get some alerts based on the Idea and Use section below :
// - RSI based Heikin Ashi candle oscillator
// - Divergence based on the VuManChu Cipher B
// -- This is the OVERLAY Version
//
// ====== ARTICLES and FURTHER READING
//
// - www.investopedia.com
//
// "Heikin-Ashi is a candlestick pattern technique that aims to reduce
// some of the market noise, creating a chart that highlights trend
// direction better than typical candlestick charts"
//
// ====== IDEA AND USE
// - The use of the HA RSI indicator when in the OverSold and OverBought
// area combined to a Divergence & a OB/OS buy/sell
// on the Cipher B by VuManChu.
// Can be useful as a confluence at S/R levels.
// *** Tip = 1 minute timeframe seems to work the best on FOREX
//
// *** Alerts :
// - The Divergence alert needs 2 bar to calculate,
// so alerts and dots as well, it will be placed on the right spot on
// the chart as per the offset added.
// - Use "Once Per Bar" for the alert, not per bar close, or you would
// have 1 extra bar delay
//
// ** Contributions : Remodel some part of the original script in order to get :
// --> Total conditions for an alert and a dot to display, resumed :
// - Buy/Sell in OB/OS
// - Divergence Buy/Sell
// - RSI Overlay is in OB/OS on current bar (or was the bar before)
// when both Buy/Sell dots from VMC appears.
//
// ====== DISCLAIMER
// For Tradingview & Pinescript moderators =
// This follow a strategy where RSI Overlay from @JayRogers script shall be
// in OB/OS zone, while combining it with the VuManChu Cipher B Divergences
// Buy&Sell + Buy/sell alerts In OB/OS areas.
// Any trade decisions you make are entirely your own responsibility.
//
// Thanks to dynausmaux for the code
// Thanks to falconCoin for inspired me to start this.
// Thanks to LazyBear for WaveTrend Oscillator
// Thanks to RicardoSantos for
HARSI + Divergences// All credit to © //@author=JayRogers & VuManChu Cipher B for their original Scripts (Open Source)
/ ====== ABOUT THIS INDICATOR
// I've combined some part of the code of the following indicators to get some alerts based on the Idea and Use section below :
// - RSI based Heikin Ashi candle oscillator
// - Divergence based on the VuManChu Cipher B
//
// ====== ARTICLES and FURTHER READING
//
// - www.investopedia.com
//
// "Heikin-Ashi is a candlestick pattern technique that aims to reduce
// some of the market noise, creating a chart that highlights trend
// direction better than typical candlestick charts"
//
// ====== IDEA AND USE
// - The use of the HA RSI indicator when in the OverSold and OverBought
// area combined to a Divergence & a OB/OS buy/sell
// on the Cipher B by VuManChu.
// Can be useful as a confluence at S/R levels.
// *** Tip = 1 minute timeframe seems to work the best on FOREX
//
// *** Alerts :
// - The Divergence alert needs 2 bar to calculate,
// so alerts and dots as well, it will be placed on the right spot on
// the chart as per the offset added.
// - Use "Once Per Bar" for the alert, not per bar close, or you would
// have 1 extra bar delay
//
// ** Contributions : Remodel some part of the original script in order to get :
// --> Total conditions for an alert and a dot to display, resumed :
// - Buy/Sell in OB/OS
// - Divergence Buy/Sell
// - RSI Overlay is in OB/OS on current bar (or was the bar before)
// when both Buy/Sell dots from VMC appears.
//
// ====== DISCLAIMER
// For Tradingview & Pinescript moderators =
// This follow a strategy where RSI Overlay from @JayRogers script shall be
// in OB/OS zone, while combining it with the VuManChu Cipher B Divergences
// Buy&Sell + Buy/sell alerts In OB/OS areas.
// Any trade decisions you make are entirely your own responsibility.
//
// Thanks to dynausmaux for the code
// Thanks to falconCoin for inspired me to start this.
// Thanks to LazyBear for WaveTrend Oscillator
// Thanks to RicardoSantos for
Relatively Good Adviser This indicator uses the RSI as the backbone of an extremely sensitive two-indicator trend following system.
This indicator is unique in that it uses the RSI as an anchor to attempt to solve for color where there is divergence nearby.
PatronsitoPIndicator for the "Patrón Poderoso" strategy.
This strategy is based on Bollinger Bands and RSI and try to determine overbought or oversold zones where you can trade. Both indicators are combined to provide a stronger signal.
By default, it is considered an overbought zone when price is over BB upper and RSI above 80. That would be a short signal. Price below BB lower and RSI below 20 means an oversold zone and therefore a long signal.
EMA 13 (by default) is included as a guide for exiting the operation.
Alarms for signals in any direction can be used.
RSI ProfileThis indicator shows the RSI profile from historical RSI Value and High / Low RSI Pivots.
It is inspired by the Volume Profile which is a common charting study that indicates activity at specified levels. It plots a histogram on the chart meant to identify dominant/significant levels.
This script is profiling RSI levels into a histogram, which can identify the crucial RSI values in the chart. Along with the pivot options that can help identify the dominant pivot points where RSI values had been rebounding historically.
How to use:
There are three profile types available in the settings. When selecting RSI Values, the indicator will count RSI values from history, and plot the count in a histogram at the end of the chart. If you select RSI Pivots High or RSI Pivots Low, the indicator will count only the RSI Pivot Highs and Lows and plot the count in a histogram. Users can select the Pivot Left/Right length from the settings.
Users can extend the POC line to the left, to study how the values had been reacting to POC
Please note: Since the RSi values range from 0 to 100, the indicator is rounding off the values to absolute numbers. This can cause a situation where multiple POC are identified, to find the unique POC, you can increase the width of the histogram.
The Max/Min RSI settings are for visual purposes only, it can help users shrink down the histogram's top and bottom visibility
Catching the Bottom (by Coinrule)This script utilises the RSI and EMA indicators to enter and close the trade.
The relative strength index (RSI) is a momentum indicator used in technical analysis. RSI measures the speed and magnitude of a security's recent price changes to evaluate overvalued or undervalued conditions in the price of that security. The RSI is displayed as an oscillator (a line graph) on a scale of zero to 100. The RSI can do more than point to overbought and oversold securities. It can also indicate securities that may be primed for a trend reversal or corrective pullback in price. It can signal when to buy and sell. Traditionally, an RSI reading of 70 or above indicates an overbought situation. A reading of 30 or below indicates an oversold condition.
An exponential moving average (EMA) is a type of moving average (MA) that places a greater weight and significance on the most recent data points. The exponential moving average is also referred to as the exponentially weighted moving average. An exponentially weighted moving average reacts more significantly to recent price changes than a simple moving average simple moving average (SMA), which applies an equal weight to all observations in the period.
The strategy enters and exits the trade based on the following conditions.
ENTRY
RSI has a decrease of 3.
RSI <40.
EMA100 has crossed above the EMA50.
EXIT
RSI is greater than 65.
EMA9 has crossed above EMA50.
This strategy is back tested from 1 April 2022 to simulate how the strategy would work in a bear market and provides good returns.
Pairs that produce very strong results include ETH on the 5m timeframe, BNB on 5m timeframe, XRP on the 45m timeframe, MATIC on the 30m timeframe and MATIC on the 2H timeframe.
The strategy assumes each order is using 30% of the available coins to make the results more realistic and to simulate you only ran this strategy on 30% of your holdings. A trading fee of 0.1% is also taken into account and is aligned to the base fee applied on Binance.
3 Series Cross Indicator with Alerts - by WAMRAThis Indicator allows users to add any 3 combinations of moving averages (SMA, EMA, RMA, RSI, Stochastic RSI, WMA, VWAP ) with granular alert conditions.
Users can alert when all series are in climbing or declining mode.
RSI Trend Veracity (RSI TV)The RSI only plots itself between a high and a low value. It does not show its bullish/bearish sentiment.
The RSI TV shows the sentiment and helps anticipate the RSI trend but not the price trend.
When the Trend Veracity Line is in green, there is bullish sentiment. When it is in red, there is bearish sentiment.
The closer the lines get to their extremities, the more the current trend of the RSI is exhausted.
It works quite well even in choppy markets. See notes in the picture for more details.
Bearish Market Indicator V2Definition
Have you ever wonder whether if the stock/index/market is "bearish" ? A Bearish Market Indicator (B.M.I) is not a new concept, the definition is simply 20% lower from the recent (term: short-term, recent: usually within a year, a.k.a 1 year) highs (closing price with in the recent period or within in a year or simply a 52-Week High). It is called “bearish” by definition when the closing price is below 20% from the highest price within the year (52-Week high: Green Line). To visualize the “20%” below the recent highs, there is a plot (line: light yellow color in the middle) called a Bearish Market By Definition Value. For example, the SPX 500 has been in a bearish market which is why there is a purple color highlight over the 52-Week High (green line) since September 21, 2022 because the closing price is below the Bearish Market By Definition Value (light yellow color) or “20% below the recent highs”. Finally, there is a red line under in the graph and it is the lowest price within a year. So when you hear, “this ticker is at a 52-Week Low”, you know what it means.
Line Summary:
Green Color Line = 52-Week High
Yellow Color Line = 20% away from the 52-Week High or Bearish Market By Definition Value
Red Color Line = 52-Week Low
Color Summary:
Red Color = Bad
Saturated Red Color = Very Bad
Purple Color = Bearish (It may look pink: red + purple)
White Color = Less Bad (That’s because there is no certainty only probability)
Green Color = Not too Bad (That’s because there is no certainty only probability)
Now to more complicated Metrics
>> If you do not like the technical indicators, go to the indicator settings, uncheck the tables. Otherwise, please continue reading. <<
Pre-requisites
+ Understand that the indicators are lagging indicators.
+ Using it under “D” or “Day” interval
+ Already Understand: Moving Averages, Stochastic-RSI, RSI, Super Trend and MACD.
+ Please be aware that this might not be compatible with traders!
Indicators
This B.M.I is fused (comprised, combined) with multiple indicators:
- Moving Averages
I would not rely just on the Moving Averages (MA) since it is a lagging indicator. The values are derived by finding the differences with respect to the MAs (between the closing price and with the respect MA).
- Stochastic-RSI
Stochastic and RSI combo with RSI-Color coating. The first value is the rsi-stochastic-k followed by the rsi-stochastic-d both are compartmentalized with “|”.
Parameter:
Numbers > 80 Not Good
Numbers < 20 Is it time? (You can manually verify the lines (k, d) or the values from them)
- Relative Strength Index (RSI)
The first value is the rsi followed by the rsi-ma both are compartmentalized with “|”. It is also coated with RSI-color.
Parameter:
Numbers > 70 Overbought | Color Red
If the RSI > RSI’s MA = Green
If the RSI < RSI’s MA = Red
Numbers < 30 Oversold | Color Red
- Moving Averages Convergence Divergence (MACD)
The first value is the MACD-line followed by the signal-line both are compartmentalized with “|”.
Macd-line > signal line = green
Macd-line < signal line = red
- Supertrend (please look up from the documentation; i can not embed the link)
Think of this way, you’re riding a wave. If the wave is climbing, expect the price to follow.
Direction < 0 = Green
Direction > 0 = Red
- Other Trend similar to supertrend
This is similar to the Super Trend according the some. Imagine you’re drawing a trend line manually within 6 months.
Within the period, the line gets smoothed over and over til the n=9.
> If the closing is less than the 9th value, it implies the trend is slowing down.
Usage
Adjustments
+ Since there are different holidays from different countries, you can change the BMI-Period from the indicator settings “BMI-4khansolo”.
+ You can hide Technical Indicator Tables, it is also under the settings (see above).
> This will show red over the 52-Week high if it tests for positive .
Purpose
Do you like eating the same food over and over? No! I love different food! I also love a variety of indicators. Especially, I love having MULTIPLE indicators presented in one canvas at the same time (personalized).
After spending a lot of time, I want to share my “FOOD” which is made of different ingredients (indicators) with someone who appreciates food! This Makes me a chef isn't it? Yes! Chef!
Questions?
If you have questions or spotted errors, please comment them below so that I can improve.
Sources
All the materials (i.e., functions like ta.rsi, etc...) used in here are available in the platform.
All the references or sources materials are commented with the code since the I am not allowed to put them here.