Wave Strength Oscillator By CryptoScriptsThe Wave Strength Oscillator uses a combination of wave strength and momentum to help catch the best entries for reversals and does so using a few methods. I'm currently using the 1h timeframe for BTC but feel free to experiment on different timeframes to see what works best for you. In the description below, I'll go over each signal, how it's derived, and how to use them!
Oversold (Green shaded area) - The oversold indication appears whenever both oscillators are oversold and is usually a good indicator that a reversal to the upside is around the corner (at least for a short period). Be advised these are the weakest of the three signals so I recommend using this signal with other indicators.
Overbought (Red shaded area) - The overbought indication appears whenever both oscillators are overbought and is usually a good indicator that a reversal to the downside is around the corner (at least for a short period). Be advised these are the weakest of the three signals so I recommend using this signal with other indicators.
Green Diamond - The green diamonds indicate whenever one or both of the oscillators are oversold AND they are both outside of the bollinger bands which is great for catching reversals to the upside (as seen in the chart). These may come two or three at a time so it may be best to wait until they have all printed before entering.
Red Diamond - The red diamonds indicate whenever one or both of the oscillators are overbought AND they are both outside of the bollinger bands which is great for catching reversals to the downside (as seen in the chart). These may come two or three at a time so it may be best to wait until they have all printed before entering.
Rocket - The rocket symbol occurs whenever BOTH oscillators are oversold and BOTH oscillators are outside of the bollinger bands. This is great for catching reversals to the upside but may come two or three at a time so it may be best to wait until they have all printed before entering.
Red Alarm - The red alarm symbol occurs whenever BOTH oscillators are oversold and BOTH oscillators are outside of the bollinger bands. This is great for catching reversals to the downside but may come two or three at a time so it may be best to wait until they have all printed before entering.
Input Options
Show Histogram - I also included a Histogram in the indicator to help gauge the level of buys/sell strength but kept it hidden for the default levels (i.e a green diamond with a red histogram bar is usually a good sign a reversal is about to happen to the upside whereas a green diamond with a green histogram bar may indicate a false reversal and there's still more room to the downside until a red bar appears. Always backtest this!)
Show Overbought/Oversold Levels - This is if you want to ignore all of the green/red shaded areas and only focus on the diamonds and rocket/alarm signals
Wave Overbought/Oversold Levels - Free free to change to value of the overbought/oversold levels to change where the green/red shades areas print
Momentum Overbought/Oversold Levels - Free free to change to value of the overbought/oversold levels to change where the green/red shades areas print
Histogram Length - This will not change anything with the signals but I included it so you can change the visuals if it helps you
Momentum Length - This will change where the signals plot
Momentum Signal - This only changes the yellow signal line and nothing else. It's not incorporated into any equation
Average Length - This will change where the signals plot
Alerts
I've set alerts on this indicator for each icon (Oversold, Overbought, Green Diamond, Red Diamond, Rocket, Red Alarm). I HIGHLY recommend setting the alerts for Candle Close so that you can be sure the signal is confirmed.
You may notice that the indicator can give multiple signals back-to-back or be overbought/oversold for multiple candles. When this happens, it's best to look at other indicators such as the RSI , MFI Pro, etc to nail the best entry and have confluence with your decision. With that said, having multiple signals back-to-back can also be an indication that the move is close to happening. This indicator works with crypto and stocks as well.
If you have any questions or would like to purchase this indicator, please comment below or PM me. I also made a video tutorial for the indicator on my Youtube channel (link is next to my profile pic)
Be advised past performance is not indicative of future returns. Backtest EVERY timeframe and NEVER blindly take signals! Also, never invest more than you can afford to lose.
Enjoy :)
Indicators
RSI, Stoch Rsi, EMA, SMA, & ROCThis indicator is simply an enhanced version of the RSI followed up by a few extra indicators that pair strongly with the RSI. This indicator allows the user to interact with various inputs based off the indicators provided. All indicators include moving average, relative strength index, stochastic relative strength index, simple moving average, exponential moving average, and rate of change. This program is unique as it is very versatile allowing the user to use as little or as many indicators as needed interchangeably.
dize Top & BottomsHi Trader,
the "Tops & Bottoms" indicator is one part of our holistic approach to identifying trading setups. It is one of many indcators of our dize indicator package and should always be used in conjunction with the other dize indicators.
💡 What is the Tops & Bottoms indicator?
The "Tops and Bottoms" indicator is a momentum indicator that gives us clues as to when a market might turn around or how intact the current trend is. When calculating, we use statistical methods that provide us with indications of abnormal market behavior.
The indicator comes with Multi-Timeframe support, which makes it easy to get an overview on what is happening on other timeframes.
💡 How to use it?
The indicator has one calculation parameter. The "Sensitivity" parameter specifies how many candles are considered in the calculation. The resolution parameter instead tells the indicator on which timeframe it should be calculated. Please be aware, that the selected timeframe should always be higher than the displayed chart timeframe.
The upper and lower visual bands of the indicator act as a threshold to detect abnormal market behavior.
Furthermore, the appearance of the indicator can be changed using the selected colors.
Let's have a look:
Using the indicator on the same timeframe:
Using the indicator on a higher timeframe:
🔓 To gain access to this indicator, please read the signature field.
Realtime Divergence for Any IndicatorThis indicator is an addon to any oscillating indicator. It shows divergences. It shows realtime divergences too. Realtime divergences are potential divergences because the actual pivot is not fully formed.
It shows:
Regular Bullish Divergences
Hidden Bullish Divergences
Regular Bearish Divergences
Hidden Bearish Divergences
Reatime divergence lines are dashed lines while non-reatime are solid.
This script also offers a fair bit of control over what you can accept as a legitimate divergence.
Also note that functions tend to not work properly in conditional and loop structures so I couldn't use a lot of functions and consequently my script is really big. Sorry.
Sherry on cryptoIf the price is above the 200 EMA, you are allowed to open only long positions and avoid shorts.
If the price is below the 200 EMA, you are allowed to open only short position and avoid longs. Don't use this indicator alone, use RSI, Stochastic RSI etc. Do not use this indicator like a bot, do TA and FA as well. This is just an indicator, do not always rely on it. It requires experience. This indicator has different winrate in different timeframes. Set its value accordingly.
MACD Multi Time Frame with Histogram MAThis is a modification of LonesomeTheBlue's MACD Multi Time Frame indicator to include also moving averages applied to histogram to filter-out important moves.
You can select average period and multiplier to highlight the type of movements that interest you most.
Happy trading!
Maverick Trend LineBackstory of the Maverick Trend Line:
If you just want to know what the indicator does and how it works, you can skip this part and jump straight to the next section. However, I thought it would be useful to provide some background as to how I came up with this script, as it turned out to be quite different from what I originally planned it to be.
This is the second indicator, part of a trading strategy, which is constructed to work alongside " RSI Effective Reversal ". In some of the earlier (draft) versions, there were gazillion trend lines, so much so that they were obstructing what was the most important thing - price action. Gradually, I started reducing them, while incorporating other indicators like Directional Movement, RSI, Quantitative Qualitative Estimation (QQE) indicator, slope adaptive moving averages, etc.
Originally constructed as a strategy, when backtested, this indicator was profitable on the major assets I was trading - SPX500, Crude Oil, Copper, Natural Gas, BTC and ETH . I tested it on the 1h and 4h time frames (those that I trade in). I implemented fairly simple entry criteria - go long when RSI is oversold and price crosses up a certain trend line and go short when RSI is overbought and the price crosses down a certain trend line.
Now, why didn't I release this as a strategy? The results were good, but not nearly as good when trading experience and subjective decision-making were implemented. The script does not take into account trend lines that are easy to see with a naked eye, nor does it account for support and resistance levels. As such, a trader with some minor experience could make much more profit by implementing "the art of trading" as opposed to mechanically following entries and exits (at least with this script).
Maybe I didn't develop it well enough to be a comprehensive automatic strategy, but I've spent over 6 months testing different variations and it never outperformed manual trading with subjective entries, stop losses set at key levels (as opposed to trail stop-loss) and adding up to existing positions when the right opportunities come. So, let me just recap before we get to the important part of how the indicator works. Maverick Trend Line, when implemented with "RSI Effective Reversal" works like a charm when used manually (as guidance), and only merely outperforms a buy and hold strategy (based on a year-over-year basis on the backtesting engine).
What does the Maverick Trend Line do?
The now very trimmed version consists of two major elements - Price Base Line and Trend Base Line . The former is a Qualitative Quantitative Estimation (QQE) moving average with some smoothing modifications, while the latter is an adaptive moving average, again with some adjustments for smoother results. The parameters that you can tweak are:
lengths of the moving averages
QQE factor
smoothing factor
type of moving average, being used as a base for generating the base lines. You can choose between EMA, SMA, RMA, WMA and ALMA
Since Price Base Line follows the price closely and the Trend Base Line follows the overall trend, the Maverick Trend Line is a combination of both, following the price action closely, while still giving it some "room to breathe". You can switch between the two base lines or Maverick at any time.
How to use the Maverick Trend Line?
I am a huge fan of simplicity (which you may already know if you've checked some of my other indicators), so there's a minimum number of steps to follow before being able to use the indicator. By default it's switch to Maverick. I suggest unticking the box, tweaking the Price and Trend Base Lines according to the asset(s) you will trade (but do not attempt to perfectly fit it to the price) and once you are ready, switch back to Maverick. Alternatively, if you will find it useful, apply the indicator twice and have all the three lines at the same time. It's entirely up to you.
I would then suggest applying the RSI Effective Reversal Indicator and wait for overbought/sold situations. Once the price goes above or below the Maverick trend line after an oversold or overbought area, you can open a long/short order respectively. The added advantage of RSI Effective Reversal is that it's constructed of candles as opposed to a mere line. As such, it give you heads up when price is about revert, as the candles start turning from bullish to bearish.
Needless to say, no indicator or strategy is perfect, so I strongly suggest papertrading first until you get a grasp of the indicator, and as always - apply sound money management rules. Protect your capital, so that you can live to trade another day.
Questions and suggestions
I'm always open to suggestions as to how I can improve my indicators to serve you better, so if you have any ideas or questions about it, please feel free to drop them in the comment section below. Thank you for your interest and for checking my work. Good luck!
T.I.P. Hoffman's scalp indicatorThis script is based on Rob Hoffman's trading strategy. I do my best to implement and cover all necessary parts for the complete strategy, including multiple moving averages and Hoffman's retracement strategy according to bars (45%).
Difference that I do on my own is that my script follow the trend, based on SMA50, so script will not give you Long signals, including bar retracement signals, if price is not above the SMA50, while for Short signal is opposite rule. Long/Short signal will always show only in case if complete bar is away of SMA5, which means completely above for Long, or completely below SMA5 for Short. In that case SL will be on SMA5.
There is two ways to control take profit and stop loss lines, one with auto calculated - according to SMA5, and the other way is to put your desired % for SL and TP. First-Auto way is always calculate % differences between open position and SMA5, so in that case position of SMA5 will be SL while TP will be in size 1:1.5 .
I hope this script means something to someone. If there is some more tips-ways to improve it do not hesitate to contact me.
Best Regards to All of You!
Infiten's Return Candle OscillatorInfiten's Return Candle Oscillator is an oscillator which shows the percentage return on the open, high, close and low over a customizable period in the form of candlesticks. It may be helpful for seeing volatility, swing trading, or mean reversion trading.
The RCO consists of two plotted elements :
RCO Candles (short length): candlesticks which are plotted with low = the product of the percentage changes in the low over a period, high = the product of the percentage changes in the high over a period, close = the product of the percent changes in close over a period, and open = the product of the percentage changes in return over a period. Similarly to with standard candlesticks, if the percentage change on the close is higher than the percentage change on the open, the candlestick is green, otherwise it is red.
Smoothed RCO Line (long length) : a moving average of the average of the low, close, open and high calculated for the RCO Candles. The line's transparency is determined by the percentage difference between the RCO and the highest or lowest RCO over the long length. A more transparent line means that the RCO is closer to the highest or lowest RCO, and may be indicative of a reversal, or weakening trend.
Wizard AlgoWizard Algo:
==============================
Features of the indicator:
- BULL/BEAR Signals
- TP (Take-Profit) and Exit System
- Possible Reversal Signals
- Reversal Scalper
- Reversal Bands
- Trend Bar Colors
- Auto Support/Resistance Levels
- Auto Trend-Lines
================================
Description:
1. Signals: The signals consists of 2 different approaches and the users can choose which signal type they want to use. The indicator gives bull/bear signals based on certain condition, such as trend and momentum. The "TP" signals stands for "Take Profit." These signals help users to decide when to take profits or liquidate all position. The Indicator includes an exit system that can used as another means of closing a position. The exit system uses a 1.5x risk to reward ratio to determine where to keep the take profit and stop loss target.
2.Reversal Scalper: Reversal scalpers are the tiny up(aqua) and down(fuchsia) triangles on the chart. These signals a possible reversal in the price and they can be used to enter a scalping trade. The signals uses mainly momentum and candle price action to determine when there could be a possible reversal in price.
3. Reversal Bands: The reversal band is the green/red cloud like indicator. This can help determine when a price is oversold and therefore, it could reverse. Same goes for the short side, if price is in the overbought territory, then it could reverse to the downside. The reversal bands uses mainly volatility. This is not the same thing as Bollinger bands.
4. Bar Colors: The candle bar colors helps to determine the current trend. The colors are given based on the current trend. The colors lime/red shows strong trend, and orange/cyan/blue shows weak trend.
5. Auto S/R and Auto trendlines: These indicators can be used for determining price actions. Both of these work in similar manner. They mainly look at the previous pivots and draws a line connecting the pivots. S/R are the horizontal lines and the trendline have angles to them.
EMA Slope HistogramThe script shows change in a single EMA over a specified period as a histogram. The period of EMA as well as Change period can be specified. Moreover, it also shows change in direction of EMA. The change can be negative for a downward trend and positive for an upward trend.
Dynamic ADX - [The Pine Guru]Dynamic ADX by The Pine Guru
What is the Dynamic ADX?
The Dynamic ADX is an indicator created using the regular ADX, Line, and additional ADX Moving Average. This MA allows the script to calculate the ADX differently to the original ADX, providing greater input and accessibility to the user. As the ADX is a volatility indicator, it is communicates to trend strength in the markets. The Dynamic ADX displays these trending Periods through user controlled visualizers like Fills, Background Color, and Bar Color.
How do I use the Dynamic ADX?
This indicator has 4 different "versions" or "conditions" in which it displays trend strength. These are achieved by checking and unchecking ADX, ADX MA and Line. Different combinations of these 3 inputs will result in a change of true condition that the script outputs.
Dynamic ADX Achieved by checking the ADX and ADX MA, results in an ADX similar to an MA Crossover, with the ADX being over the MA indicating a true or strong trend condition.
Regular ADX Achieved by Checking the ADX and Line. Results in the regular calculation of the ADX.
Mixture Achieved by Checking all three sections, which results in the calculation a normal ADX as well as the MA. Provides and extra condition or confluence into the ADX.
MA and Line Achieved by checking the ADX MA and Line. Results in a similar calculation to an original ADX but with a smoother MA.
Recommendations
This indicator will work typically in all markets with high volume and volatility. It is recommended that it is used as a confluence in a trading system, and not as an outright indicator. As always do your own testing before live use with this indicator. Do your own Research and refinements.
Please Leave a like if you enjoy this Indicator
RSI Swing Trading Setup (2-Period)A simple script that adjusts the RSI visibly in order to better accommodate swing trading and certain swing trading setups/strategies.
--------------------------------------------------------------------------------------------------------------------------------------------------------
Best used in conjunction with "Linear Regression Channel by LonesomeTheBlue" with 2.2σ (std.dev) and Show Fib Levels.
^Click image for a redirect to that script.
--------------------------------------------------------------------------------------------------------------------------------------------------------
In certain price action patterns:
A bearish reversal from a previously bullish move can indicate tops of a rally if the RSI moves from 0-40 to 60 (1)
A bullish reversal from a previously bearish move can indicate bottoms of a pullback if the RSI moves from 60-100 to 40 (2)
(USE THE LINEAR REGRESSION CHANNEL TO VALIDIFY THE RETRACEMENTS)
--------------------------------------------------------------------------------------------------------------------------------------------------------
(1)
--------------------------------------------------------------------------------------------------------------------------------------------------------
(2)
--------------------------------------------------------------------------------------------------------------------------------------------------------
Multi Asset + Correlation OverlayFrom time to time, you may want to overlay multiple assets on the same chart instead of using multi-chart views. This can be a much cleaner way of viewing and comparing multiple assets. There is some functionality built into TradingView that lets you do this to a certain extent, but I wanted additional options, correlation labeling and ways to adjust the overlay location. So, today I am releasing to the community my Multi-Asset + Correlation Overlay script / indicator.
What is does: This script allows you to overlay the price of any ticker onto your chart. It also labels the line with the ticker name, and calculates / labels the correlation coefficient of your newly overlayed asset.
How to use it: Add the indicator to your chart. Then, go into the indicator settings to set the ticker of the asset you want to pull in along with how you want to "offset" it. Your 2 tickers may not be priced near each-other, so the offset setting allows you to pull the ticker you added up/down to better visually align with your chart's price range/layout. For instance, if the asset you added is priced $400 higher than the underlying chart price, you may want to set the offset to -400.
If you would like to add multiple tickers and multiple overlays, you can do that by just adding the indicator to your chart more than once. The color is adjustable, and the ticker of the asset will print to the right of the line representing the asset price. The script also calculates the correlation coefficient between the ticker overlay and the underlying chart asset. The correlation coefficient prints to the right of the ticker.
Indicators OverlayHello All,
This script shows the indicators in separate windows on the main chart. Included indicators are RSI, CCI, OBV, Stochastic, Money Flow Index, Average True Range and Chande Momentum Oscillator. indicator windows are located at the top or bottom of the chart according to last moves of the Closing price. Different colors are used for each indicator. Horizontal levels are shown as dashed line and label as well.
Using the options;
You can enable/disable the indicators you want to see or not
You can change source and length for each indicator
You can set window length. using this length indicator windows are located on the chart
After you added this indicator to your chart I recommend: right click on any of the indicator windows => "Visual Order" => "Bring to front" as seen screenshot below:
in this example only 3 indicators enabled and period is set as 80:
indicator windows moves to the top or bottom of the chart according to the close price:
P.S. if you want to see any other indicator in the options then leave a comment under the indicator ;)
Enjoy!
taLibrary "ta"
█ OVERVIEW
This library holds technical analysis functions calculating values for which no Pine built-in exists.
Look first. Then leap.
█ FUNCTIONS
cagr(entryTime, entryPrice, exitTime, exitPrice)
It calculates the "Compound Annual Growth Rate" between two points in time. The CAGR is a notional, annualized growth rate that assumes all profits are reinvested. It only takes into account the prices of the two end points — not drawdowns, so it does not calculate risk. It can be used as a yardstick to compare the performance of two instruments. Because it annualizes values, the function requires a minimum of one day between the two end points (annualizing returns over smaller periods of times doesn't produce very meaningful figures).
Parameters:
entryTime : The starting timestamp.
entryPrice : The starting point's price.
exitTime : The ending timestamp.
exitPrice : The ending point's price.
Returns: CAGR in % (50 is 50%). Returns `na` if there is not >=1D between `entryTime` and `exitTime`, or until the two time points have not been reached by the script.
█ v2, Mar. 8, 2022
Added functions `allTimeHigh()` and `allTimeLow()` to find the highest or lowest value of a source from the first historical bar to the current bar. These functions will not look ahead; they will only return new highs/lows on the bar where they occur.
allTimeHigh(src)
Tracks the highest value of `src` from the first historical bar to the current bar.
Parameters:
src : (series int/float) Series to track. Optional. The default is `high`.
Returns: (float) The highest value tracked.
allTimeLow(src)
Tracks the lowest value of `src` from the first historical bar to the current bar.
Parameters:
src : (series int/float) Series to track. Optional. The default is `low`.
Returns: (float) The lowest value tracked.
█ v3, Sept. 27, 2022
This version includes the following new functions:
aroon(length)
Calculates the values of the Aroon indicator.
Parameters:
length (simple int) : (simple int) Number of bars (length).
Returns: ( [float, float ]) A tuple of the Aroon-Up and Aroon-Down values.
coppock(source, longLength, shortLength, smoothLength)
Calculates the value of the Coppock Curve indicator.
Parameters:
source (float) : (series int/float) Series of values to process.
longLength (simple int) : (simple int) Number of bars for the fast ROC value (length).
shortLength (simple int) : (simple int) Number of bars for the slow ROC value (length).
smoothLength (simple int) : (simple int) Number of bars for the weigted moving average value (length).
Returns: (float) The oscillator value.
dema(source, length)
Calculates the value of the Double Exponential Moving Average (DEMA).
Parameters:
source (float) : (series int/float) Series of values to process.
length (simple int) : (simple int) Length for the smoothing parameter calculation.
Returns: (float) The double exponentially weighted moving average of the `source`.
dema2(src, length)
An alternate Double Exponential Moving Average (Dema) function to `dema()`, which allows a "series float" length argument.
Parameters:
src : (series int/float) Series of values to process.
length : (series int/float) Length for the smoothing parameter calculation.
Returns: (float) The double exponentially weighted moving average of the `src`.
dm(length)
Calculates the value of the "Demarker" indicator.
Parameters:
length (simple int) : (simple int) Number of bars (length).
Returns: (float) The oscillator value.
donchian(length)
Calculates the values of a Donchian Channel using `high` and `low` over a given `length`.
Parameters:
length (int) : (series int) Number of bars (length).
Returns: ( [float, float, float ]) A tuple containing the channel high, low, and median, respectively.
ema2(src, length)
An alternate ema function to the `ta.ema()` built-in, which allows a "series float" length argument.
Parameters:
src : (series int/float) Series of values to process.
length : (series int/float) Number of bars (length).
Returns: (float) The exponentially weighted moving average of the `src`.
eom(length, div)
Calculates the value of the Ease of Movement indicator.
Parameters:
length (simple int) : (simple int) Number of bars (length).
div (simple int) : (simple int) Divisor used for normalzing values. Optional. The default is 10000.
Returns: (float) The oscillator value.
frama(source, length)
The Fractal Adaptive Moving Average (FRAMA), developed by John Ehlers, is an adaptive moving average that dynamically adjusts its lookback period based on fractal geometry.
Parameters:
source (float) : (series int/float) Series of values to process.
length (int) : (series int) Number of bars (length).
Returns: (float) The fractal adaptive moving average of the `source`.
ft(source, length)
Calculates the value of the Fisher Transform indicator.
Parameters:
source (float) : (series int/float) Series of values to process.
length (simple int) : (simple int) Number of bars (length).
Returns: (float) The oscillator value.
ht(source)
Calculates the value of the Hilbert Transform indicator.
Parameters:
source (float) : (series int/float) Series of values to process.
Returns: (float) The oscillator value.
ichimoku(conLength, baseLength, senkouLength)
Calculates values of the Ichimoku Cloud indicator, including tenkan, kijun, senkouSpan1, senkouSpan2, and chikou. NOTE: offsets forward or backward can be done using the `offset` argument in `plot()`.
Parameters:
conLength (int) : (series int) Length for the Conversion Line (Tenkan). The default is 9 periods, which returns the mid-point of the 9 period Donchian Channel.
baseLength (int) : (series int) Length for the Base Line (Kijun-sen). The default is 26 periods, which returns the mid-point of the 26 period Donchian Channel.
senkouLength (int) : (series int) Length for the Senkou Span 2 (Leading Span B). The default is 52 periods, which returns the mid-point of the 52 period Donchian Channel.
Returns: ( [float, float, float, float, float ]) A tuple of the Tenkan, Kijun, Senkou Span 1, Senkou Span 2, and Chikou Span values. NOTE: by default, the senkouSpan1 and senkouSpan2 should be plotted 26 periods in the future, and the Chikou Span plotted 26 days in the past.
ift(source)
Calculates the value of the Inverse Fisher Transform indicator.
Parameters:
source (float) : (series int/float) Series of values to process.
Returns: (float) The oscillator value.
kvo(fastLen, slowLen, trigLen)
Calculates the values of the Klinger Volume Oscillator.
Parameters:
fastLen (simple int) : (simple int) Length for the fast moving average smoothing parameter calculation.
slowLen (simple int) : (simple int) Length for the slow moving average smoothing parameter calculation.
trigLen (simple int) : (simple int) Length for the trigger moving average smoothing parameter calculation.
Returns: ( [float, float ]) A tuple of the KVO value, and the trigger value.
pzo(length)
Calculates the value of the Price Zone Oscillator.
Parameters:
length (simple int) : (simple int) Length for the smoothing parameter calculation.
Returns: (float) The oscillator value.
rms(source, length)
Calculates the Root Mean Square of the `source` over the `length`.
Parameters:
source (float) : (series int/float) Series of values to process.
length (int) : (series int) Number of bars (length).
Returns: (float) The RMS value.
rwi(length)
Calculates the values of the Random Walk Index.
Parameters:
length (simple int) : (simple int) Lookback and ATR smoothing parameter length.
Returns: ( [float, float ]) A tuple of the `rwiHigh` and `rwiLow` values.
stc(source, fast, slow, cycle, d1, d2)
Calculates the value of the Schaff Trend Cycle indicator.
Parameters:
source (float) : (series int/float) Series of values to process.
fast (simple int) : (simple int) Length for the MACD fast smoothing parameter calculation.
slow (simple int) : (simple int) Length for the MACD slow smoothing parameter calculation.
cycle (simple int) : (simple int) Number of bars for the Stochastic values (length).
d1 (simple int) : (simple int) Length for the initial %D smoothing parameter calculation.
d2 (simple int) : (simple int) Length for the final %D smoothing parameter calculation.
Returns: (float) The oscillator value.
stochFull(periodK, smoothK, periodD)
Calculates the %K and %D values of the Full Stochastic indicator.
Parameters:
periodK (simple int) : (simple int) Number of bars for Stochastic calculation. (length).
smoothK (simple int) : (simple int) Number of bars for smoothing of the %K value (length).
periodD (simple int) : (simple int) Number of bars for smoothing of the %D value (length).
Returns: ( [float, float ]) A tuple of the slow %K and the %D moving average values.
stochRsi(lengthRsi, periodK, smoothK, periodD, source)
Calculates the %K and %D values of the Stochastic RSI indicator.
Parameters:
lengthRsi (simple int) : (simple int) Length for the RSI smoothing parameter calculation.
periodK (simple int) : (simple int) Number of bars for Stochastic calculation. (length).
smoothK (simple int) : (simple int) Number of bars for smoothing of the %K value (length).
periodD (simple int) : (simple int) Number of bars for smoothing of the %D value (length).
source (float) : (series int/float) Series of values to process. Optional. The default is `close`.
Returns: ( [float, float ]) A tuple of the slow %K and the %D moving average values.
supertrend(factor, atrLength, wicks)
Calculates the values of the SuperTrend indicator with the ability to take candle wicks into account, rather than only the closing price.
Parameters:
factor (float) : (series int/float) Multiplier for the ATR value.
atrLength (simple int) : (simple int) Length for the ATR smoothing parameter calculation.
wicks (simple bool) : (simple bool) Condition to determine whether to take candle wicks into account when reversing trend, or to use the close price. Optional. Default is false.
Returns: ( [float, int ]) A tuple of the superTrend value and trend direction.
szo(source, length)
Calculates the value of the Sentiment Zone Oscillator.
Parameters:
source (float) : (series int/float) Series of values to process.
length (simple int) : (simple int) Length for the smoothing parameter calculation.
Returns: (float) The oscillator value.
t3(source, length, vf)
Calculates the value of the Tilson Moving Average (T3).
Parameters:
source (float) : (series int/float) Series of values to process.
length (simple int) : (simple int) Length for the smoothing parameter calculation.
vf (simple float) : (simple float) Volume factor. Affects the responsiveness.
Returns: (float) The Tilson moving average of the `source`.
t3Alt(source, length, vf)
An alternate Tilson Moving Average (T3) function to `t3()`, which allows a "series float" `length` argument.
Parameters:
source (float) : (series int/float) Series of values to process.
length (float) : (series int/float) Length for the smoothing parameter calculation.
vf (simple float) : (simple float) Volume factor. Affects the responsiveness.
Returns: (float) The Tilson moving average of the `source`.
tema(source, length)
Calculates the value of the Triple Exponential Moving Average (TEMA).
Parameters:
source (float) : (series int/float) Series of values to process.
length (simple int) : (simple int) Length for the smoothing parameter calculation.
Returns: (float) The triple exponentially weighted moving average of the `source`.
tema2(source, length)
An alternate Triple Exponential Moving Average (TEMA) function to `tema()`, which allows a "series float" `length` argument.
Parameters:
source (float) : (series int/float) Series of values to process.
length (float) : (series int/float) Length for the smoothing parameter calculation.
Returns: (float) The triple exponentially weighted moving average of the `source`.
trima(source, length)
Calculates the value of the Triangular Moving Average (TRIMA).
Parameters:
source (float) : (series int/float) Series of values to process.
length (int) : (series int) Number of bars (length).
Returns: (float) The triangular moving average of the `source`.
trima2(src, length)
An alternate Triangular Moving Average (TRIMA) function to `trima()`, which allows a "series int" length argument.
Parameters:
src : (series int/float) Series of values to process.
length : (series int) Number of bars (length).
Returns: (float) The triangular moving average of the `src`.
trix(source, length, signalLength, exponential)
Calculates the values of the TRIX indicator.
Parameters:
source (float) : (series int/float) Series of values to process.
length (simple int) : (simple int) Length for the smoothing parameter calculation.
signalLength (simple int) : (simple int) Length for smoothing the signal line.
exponential (simple bool) : (simple bool) Condition to determine whether exponential or simple smoothing is used. Optional. The default is `true` (exponential smoothing).
Returns: ( [float, float, float ]) A tuple of the TRIX value, the signal value, and the histogram.
uo(fastLen, midLen, slowLen)
Calculates the value of the Ultimate Oscillator.
Parameters:
fastLen (simple int) : (series int) Number of bars for the fast smoothing average (length).
midLen (simple int) : (series int) Number of bars for the middle smoothing average (length).
slowLen (simple int) : (series int) Number of bars for the slow smoothing average (length).
Returns: (float) The oscillator value.
vhf(source, length)
Calculates the value of the Vertical Horizontal Filter.
Parameters:
source (float) : (series int/float) Series of values to process.
length (simple int) : (simple int) Number of bars (length).
Returns: (float) The oscillator value.
vi(length)
Calculates the values of the Vortex Indicator.
Parameters:
length (simple int) : (simple int) Number of bars (length).
Returns: ( [float, float ]) A tuple of the viPlus and viMinus values.
vzo(length)
Calculates the value of the Volume Zone Oscillator.
Parameters:
length (simple int) : (simple int) Length for the smoothing parameter calculation.
Returns: (float) The oscillator value.
williamsFractal(period)
Detects Williams Fractals.
Parameters:
period (int) : (series int) Number of bars (length).
Returns: ( [bool, bool ]) A tuple of an up fractal and down fractal. Variables are true when detected.
wpo(length)
Calculates the value of the Wave Period Oscillator.
Parameters:
length (simple int) : (simple int) Length for the smoothing parameter calculation.
Returns: (float) The oscillator value.
█ v7, Nov. 2, 2023
This version includes the following new and updated functions:
atr2(length)
An alternate ATR function to the `ta.atr()` built-in, which allows a "series float" `length` argument.
Parameters:
length (float) : (series int/float) Length for the smoothing parameter calculation.
Returns: (float) The ATR value.
changePercent(newValue, oldValue)
Calculates the percentage difference between two distinct values.
Parameters:
newValue (float) : (series int/float) The current value.
oldValue (float) : (series int/float) The previous value.
Returns: (float) The percentage change from the `oldValue` to the `newValue`.
donchian(length)
Calculates the values of a Donchian Channel using `high` and `low` over a given `length`.
Parameters:
length (int) : (series int) Number of bars (length).
Returns: ( [float, float, float ]) A tuple containing the channel high, low, and median, respectively.
highestSince(cond, source)
Tracks the highest value of a series since the last occurrence of a condition.
Parameters:
cond (bool) : (series bool) A condition which, when `true`, resets the tracking of the highest `source`.
source (float) : (series int/float) Series of values to process. Optional. The default is `high`.
Returns: (float) The highest `source` value since the last time the `cond` was `true`.
lowestSince(cond, source)
Tracks the lowest value of a series since the last occurrence of a condition.
Parameters:
cond (bool) : (series bool) A condition which, when `true`, resets the tracking of the lowest `source`.
source (float) : (series int/float) Series of values to process. Optional. The default is `low`.
Returns: (float) The lowest `source` value since the last time the `cond` was `true`.
relativeVolume(length, anchorTimeframe, isCumulative, adjustRealtime)
Calculates the volume since the last change in the time value from the `anchorTimeframe`, the historical average volume using bars from past periods that have the same relative time offset as the current bar from the start of its period, and the ratio of these volumes. The volume values are cumulative by default, but can be adjusted to non-accumulated with the `isCumulative` parameter.
Parameters:
length (simple int) : (simple int) The number of periods to use for the historical average calculation.
anchorTimeframe (simple string) : (simple string) The anchor timeframe used in the calculation. Optional. Default is "D".
isCumulative (simple bool) : (simple bool) If `true`, the volume values will be accumulated since the start of the last `anchorTimeframe`. If `false`, values will be used without accumulation. Optional. The default is `true`.
adjustRealtime (simple bool) : (simple bool) If `true`, estimates the cumulative value on unclosed bars based on the data since the last `anchor` condition. Optional. The default is `false`.
Returns: ( [float, float, float ]) A tuple of three float values. The first element is the current volume. The second is the average of volumes at equivalent time offsets from past anchors over the specified number of periods. The third is the ratio of the current volume to the historical average volume.
rma2(source, length)
An alternate RMA function to the `ta.rma()` built-in, which allows a "series float" `length` argument.
Parameters:
source (float) : (series int/float) Series of values to process.
length (float) : (series int/float) Length for the smoothing parameter calculation.
Returns: (float) The rolling moving average of the `source`.
supertrend2(factor, atrLength, wicks)
An alternate SuperTrend function to `supertrend()`, which allows a "series float" `atrLength` argument.
Parameters:
factor (float) : (series int/float) Multiplier for the ATR value.
atrLength (float) : (series int/float) Length for the ATR smoothing parameter calculation.
wicks (simple bool) : (simple bool) Condition to determine whether to take candle wicks into account when reversing trend, or to use the close price. Optional. Default is `false`.
Returns: ( [float, int ]) A tuple of the superTrend value and trend direction.
vStop(source, atrLength, atrFactor)
Calculates an ATR-based stop value that trails behind the `source`. Can serve as a possible stop-loss guide and trend identifier.
Parameters:
source (float) : (series int/float) Series of values that the stop trails behind.
atrLength (simple int) : (simple int) Length for the ATR smoothing parameter calculation.
atrFactor (float) : (series int/float) The multiplier of the ATR value. Affects the maximum distance between the stop and the `source` value. A value of 1 means the maximum distance is 100% of the ATR value. Optional. The default is 1.
Returns: ( [float, bool ]) A tuple of the volatility stop value and the trend direction as a "bool".
vStop2(source, atrLength, atrFactor)
An alternate Volatility Stop function to `vStop()`, which allows a "series float" `atrLength` argument.
Parameters:
source (float) : (series int/float) Series of values that the stop trails behind.
atrLength (float) : (series int/float) Length for the ATR smoothing parameter calculation.
atrFactor (float) : (series int/float) The multiplier of the ATR value. Affects the maximum distance between the stop and the `source` value. A value of 1 means the maximum distance is 100% of the ATR value. Optional. The default is 1.
Returns: ( [float, bool ]) A tuple of the volatility stop value and the trend direction as a "bool".
Removed Functions:
allTimeHigh(src)
Tracks the highest value of `src` from the first historical bar to the current bar.
allTimeLow(src)
Tracks the lowest value of `src` from the first historical bar to the current bar.
trima2(src, length)
An alternate Triangular Moving Average (TRIMA) function to `trima()`, which allows a
"series int" length argument.
GoldenCO Aie2 Use of GoldenCO Aie2
This market price movement trend analysis uses exponential moving average which is ema5/20/50. The purpose of using this EMA is to find out the effect of price changes that occur and the current trend of the market whether bullish or bearish.
It is suitable for short-term or long-term trading.
for short term trading, the trader uses ema5-ema20 and for long term trading the trader can use ema5-ema50 as analysis.
This indicator serves as a guide to traders in trading activities.
we hope that, by recognizing and knowing the trend of this price movement it can help traders in trading activities well and can reduce risk. May it benefit the trader.
DISCLAIMER : This is not Buy/Sell call, just sharing idea analysis for education. Trade at your own risk.
GoldenCO Aie3Use of GCOv3 strategy for market analysis
This gco3 strategy uses exponential moving average analysis which is 5emas to show the movement of stock prices in the market. It is also to track the impending changes to the market price. the use of EMA is more sensitive to trend changes and it is one way to see the trend of price movements and as a guide to the trader.
The parameters used are EMA5/EMA20/EMA50/EMA100/EMA200.
The above parameters indicate a price condition that includes 4 phases of the price trend, namely the accumulation, uptrend, distribution, and ddowntrend phases.
we hope that, by recognizing and knowing the trend of this price movement it can help traders in trading activities well and can reduce risk. May it benefit the trader.
DISCLAIMER ; This is not Buy/Sell call, Just analysis idea for education. Trade At Your Own Risk
TRADERS COMPANION BUY AND SELL INDICATORTHE 'PROBLEM'
A lot of buy and sell strategies are based on price action being at a particular (support) level, crossovers of different moving averages or of price action over moving averages. Whilst this is a safe way to trade, the price paid is lost earnings , whilst one waits for price/moving averages to reach a particular level/configuration. So for instance price may have to move X% before it crosses over a critical level and only then is a trade taken - the X% is usually 'lost'.
THE 'SOLUTION'
My motivation was to write a buy and sell indicator which makes (long) calls as early as possible therefore maximising profits and minimising losses whilst also identifying local tops at which profits may be taken if so desired.
THE METHOD
The philosophy of this indicator is centred around analysis of candlestick parameters for the present candle and comparing these to those of previous candles at set points. The results of these comparisons are then correlated with moving averages of price action and in so doing one is able to detect shift reversals earlier than conventional indicators would. Consequently, a signal can be created very close to the bottom of a rally. In addition, a 'take profit' signal can be created from what has been identified as a local top. Please refer to the attached chart where it becomes evident quite immediately that buy and TP signals allow for maximisation of a given trend, hence maximisation of profits.
MARKETS
The script may be applied to any market i.e. crypto, forex, stocks - as long as there's a chart on Tradingview, it will work.
CONDITIONS
The script works well in all time frames. Obviously at higher time frames one gets 'cleaner' signals since high time frames are themselves a kind of filter, given that lower time frames are 'busy' by nature.
CAVEAT
Whilst great care and attention has been put into polishing and re-polishing this script, it needs to be stated that it's not perfect. Two issues that one needs to be aware of:
1.) Sometimes signals will not be made as early as the actual bottom of a rally.
Mitigation for this is two fold:
a.) Most of the calls made by the script are close to a bottom and therefore profits realised from this are far more than any losses accrued from a late call.
b.) The script should never be used in isolation but along with TA strategies and common sense.
2. Sometimes a 'bad' call will be made.
Mitigation for this is two fold:
a.) The script has a 'smart' feature that calls for exit signals as soon as it's realised that the long call was not a favourable one. This enables one to minimise losses by cutting them quickly.
b.) The script should never be used in isolation but along with TA strategies and common sense.
PLEASE PERUSE ATTACHED CHART
I encourage you to please peruse the attached 'GOBTC' chart for a demonstration of the script in play.
HOW TO GET AND USE THE SCRIPT
Since its invite only, please PM me and I will be happy to add you. Once added, you will see the list under Indicators>Inviteonlyscripts>TRADERS COMPANION at which point you click and it will show on your chart. It also needs to be stated that there is a no obligation trial period during which one is encouraged to 'test-drive' the script to ones hearts content.
Technical Analyst by DGTWho needs a Technical Analyst?
yes I can hear someone is asking for, and here is one that can help you with technical analysis
The analyst will present a technical anlaysis report at a glance calculated by the most popular technical indicators , and the good part, the anlayst will do it voluntarily
technical skills of the analyst:
- experienced an all markets
- ability to interpret moving averages
- ability to interpret volume changes
- ability to interpret trend folowing indicators such as:
* directional movement index (dmi), identify trend strength and trend direction
* complex ichimoku cloud , identify trend stregth, and tk crosses
- ability to interpret oscillators such as:
* relative strength index, identify oversold overbought levels, identify the rsi flow
* commodity channel index, identify oversold overbought levels
* awesome identify if grawing or falling
* macd if bullish or bearish, and macd histogram if grawing or falling
- ability to calculate probability and its trend
- non-stop hardworker,
- available 7/24,
- highly dedicated always on duty,
- open for new ideas and willing to learn
- upon request the analyst will create reports with custom settings of your choise
the analyst is not a decition maker, trading success is all about following your trading strategy and the analyst aims to help with the presented reports calculated by the most popular technical indicators
the analyst supports 9 of the popular technical indicators and is willing to learn more , please share your comments and feedbacks and help the analyst improve skills
cheers!
Disclaimer : The script is for informational and educational purposes only. Use of the script does not constitutes professional and/or financial advice. You alone the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
Convergence/divergence indicatorConvergence/divergence indicator (CDI)
Class : arbitrage oscillator
Trading type : intraday trading
Time frame : 1 hour
Purpose : trading on divergence
Level of aggressiveness : standard
Arbitrage - several logically related transactions aimed at profit from the difference in prices for the same or related assets at the same time in different markets.
Pair trading is a trading strategy based on trading a pair of financial instruments that have some fundamental or statistical relationship, expressed in the fact that the price ratio of these instruments tends to return to a certain average value in the long term.
“Convergence/divergence indicator (CDI)” using correlation analysis from different time frames provides information about statistical relationship between pair of assets.
Correaltion - a statistical relationship between two variables, showing that a larger value (in the case of positive, direct correlation) or a smaller (in the case of negative, inverse correlation) corresponds to a larger value of one value in a certain part of the cases.
The correlation coefficient is a statistical measure of the strength of the relationship between the relative movements of two variables.
The values range between -1.0 and 1.0.
A correlation of -1.0 shows a perfect negative correlation, while a correlation of 1.0 shows a perfect positive correlation.
A correlation of 0.0 shows no linear relationship between the movement of the two variables.
“Convergence/divergence indicator (CDI)” a) allows to find assets where pair arbitrage is possible and determines the moments in time and prices when the conditions for pair arbitrage are ideal.
“Convergence/divergence indicator (CDI)” evaluates the statistical relationship between pair of assets in a particular period of time and, if it is available, seeks for the divergence in price fluctuations of these “identical” assets.
“Convergence/divergence indicator (CDI)” displays the current value and dynamics of the Pearson correlation coefficient for a pair of selected assets based on daily (thick blue line) and hourly (thin red line) data.
Basic parameters:
- asset 1 (name of the trading instrument 1);
- asset 2 (name of the trading instrument 2);
- period_d (number of periods used to calculate daily correlation).
- period_h (number of periods used to calculate hourly correlation).
To gain the access to this indicator, please, send a private message to Trade24Fx.
MichaelIndicator «Michael»
Class : trend indicator
Trading type : intraday trading / mid-term trading
Time frame : 15 min -1 day
Purpose : trend trading, reversal points identification,
Level of aggressiveness : standard
Indicator “ Michael ” indicator is designed to identify a local trend and generate signals for trading in the direction of the current trend. It can be used to trade at time intervals from 15 minutes to 1 day. The frequency of the signals depends on the selected time interval, as well as the indicator settings. For example, on an interval of 15 minutes and standard settings, the number of trades will be about 5-10 per day.
The indicator combines the advantages of average analysis, as well as regression analysis, which allow you to decrease unnecessary noise in price dynamics and concentrate on the overall picture of price movement.
The main feature of the Michael indicator is an attempt to partially offset the main drawback of the analysis of averages - the delay of signals. Averages, by their nature, show what was, and not what will be. As a result, often the predicative abilities of this method of technical analysis are questioned. In order to improve the quality of the signals, auto-regression model is used in the indicator. As the result “Michael” shows not what was, but what will be. That is, the delayed signals of the moving averages are balanced by the auto-regression model. Overall, a trader gets a picture that optimally describes the current reality.
In “ Michael ”, two autoregressive models with different lags are used, which allows monitoring not only general, but also current moods in the market.
Indicator “ Michael ” checks for the presence of price deviations from equilibrium values. If such deviations are detected, the indicator generates signals in the direction of the local trend.
Structure of indicator
The indicator consists of the following elements:
- trend line (center line) - shows the current trend in the market using a special color display. Red is a downward trend, blue is an upward trend, green is a flat;
- volatility lines - black channel lines that monitor the level of volatility in the market. Their divergence is a signal of an increase in market volatility. Convergence - decrease in volatility;
- stop lines - show the calculated value of the stop / profit value for the position in case of signal generation at a specific moment in time.
Parameters of the indicator
To configure the indicator, the following parameters are provided:
- periodFAR (default value is 13) - period for determining a short-term trend. The higher it is, the more conservative will be the perception of an indicator of a trend.
- periodSAR (default value is 34) - period for determining the current trend. Responsible for the level of trade aggressiveness. The lower the value of this parameter, the more signals the indicator will generate and vice versa.
- Stop_period (default value is 21) - period for calculating stop lines.
- Stop_agressor (default value is 1) - the parameter responsible for the aggressiveness of stop losses. The higher it is, the wider the lines of stops are.
Rules of trading
The main purpose of the indicator is to determine the prevailing market sentiments: bullish (the trend line is colored blue), bearish (the trend line is colored red) or neutral (the trend line is colored green). Accordingly, with dominance in the bull market, only buy transactions are allowed, and in a bear market, sells are allowed.
Signals to enter positions are displayed on the chart. Stops are set below (for purchases) or above (for sales) the red lines.