((Bullish)) Candle below EMA Hello People of the Trading World...
Todays script is a basic concept of using Moving Averages and Candle Closes - this works best on Higher Timeframes and only in Bullish Conditions
"When the market is trending to the upside - we tend to see price overextend from the moving average and price revert back to the mean (Mean Reversion)"
You may ask why would you want this candle - this presents good opportunities in a trending market (NOT AN ENTRY CANDLE). This can be useful to get into existing trends which you may have missed
This candle will display when the candle close is below one of the below EMAS
9EMA
50EMA
100EMA
You can choose which one to show ie if the 21ema wasnt important but the 100ema was... turn off the 21ema and 50ema and this will display candle below the 100ema
This candle can be alerted in the settings so if price does close you wont miss it.
EXMAPLES:
If you find this script useful please leave a comment and a thumbs up :)
Trendfollowing
Current Trend [KPM] - Buy / SellYou can filter the trend with this indicator. Green Lines indicate a short-term up trend and Red lines indicate a short-term downtrend. and black lines indicate short-term consultation.
I'm not regarding anything with this indicator. All risk is yours
Thank you
Neo's Divergence FractalsDivergence Fractals combine divergence candlestick patterns with concepts pioneered by Bill Williams and George Lane to create a precise trend following tool that responds very well to the FX market. This indicator is built off of my Neo Fractal data set, which unlike traditional Williams fractals, track highest and lowest closes instead of higher highs and lower lows. Through my own research, I've found Neo Fractals to be a much more accurate way of pinpointing %K and RSI extremes than Williams fractals, especially in scenarios where markets make higher highs or lower lows, but fail to close higher or lower. This can lead to false divergence signals because the stochastic and RSI values aren't referenced at their highest or lowest point.
If divergence is detected between the previous close and the closest fractal above or below the close, the script then waits for a close above (bullish), or below (bearish) the close where divergence was present, at which point, an up (bullish) or down (bearish) fractal will appear on the chart. Divergence signals followed by engulfing candles are also colored, so they're easy to spot. These are the highest quality reversal or in some cases trend continuation signals! Divergence Fractals can be a great entry tool, but can also be great for managing and closing active trades as well. This indicator was designed to work in tandem with my %K as well as my proprietary Lucky7 indicator, mainly on the 1HR chart.
[MattLet] Market Structure BiasThis indicator is based on a zigzag and shows swings and market structure breaks.
It is very useful to analyze trend changes in short, medium and long periods.
Features:
1 - Lower Lows, Lower Highs, Higher Lows and Higher Highs
2 - Colored candles/bars Change of Character
Good luck!
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!
Booz Super SwingBooz Super Swing is an Indicator created for the purpose of identifying trends in Multiple Markets, it is based on Moving Average Crossover and extra features.
Trend Filter: allows you to take multiple entries in the same direction of the market.
If the market crosses below the 200 moving average it will take only short entries.
If the market crosses above the 200 moving average it will take only long entries.
Background Color : at a glance, you can see what cycle the market is in.
Green background : Shows that the market is in a bullish cycle.
Red background: Shows that the market is in a bearish cycle.
Markets : Booz Super Swing can be used and has been tested in Cryptocurrency, Stocks and Futures markets.
Timeframes
Charting from 1 Hour, 4 Hour, Daily, Weekly, Weekly
Weak Point :
Are Sideways Markets
Alarms :
Buy : Allows you to notify and automate entries based on market detection.
Sell : Allows you to notify and automate entries based on market detection.
Multi-Timeframe Simple TrendSimple Trend State Indicator inspired by @TaPlot's Price Time Frame Continuity indicator. Indicator works well on any Chart Timeframe although some aliasing of the State Response should be expected when comparing a State Response calculated on one Chart Timeframe to a Higher Chart Timeframe ie. comparing the State Result for 30 min from both a 1D Chart and 130 min Chart.
Current Trend State is calculated based on the Current Angle of the SMA Length "L". A Simple moving average is used as an Array Function has to be used to calculate the current MA Value for Time Frames < Chart.
Current Trend State Control is as follows:
Long Trend State = Current Angle > Min Long Angle
Bullish Trend State = Current Angle < Min Long Angle and Current Angle > Max Reversal Angle
Neutral Trend State = Current Angle < Max Reversal Angle and Current Angle > Min Reversal Angle
Bearish Trend State = Current Angle < Min Reversal Angle and Current Angle > Max Short Angle
Short Trend State = Current Angle < Max Short Angle
I use Gann Angle based State Angle definitions in my charts.
Visualization of the Trend State is controlled via the colors selected in the GUI.
Indicator output creates 6 Panels organized linearly at the Location defined via the GUI. Each panel identifies the Timeframe and Timeframe State for the Timeframes selected in the GUI.
IMPORTANT - Timeframes 4-6 MUST be < Current Chart. Timeframes 1-3 should be >= Current Chart
What does the Tool give you? It enables you to see, based on a standardized measure, the relative behavior of the underlying trends on the selected Timeframe ie . the current Asset Trend Support Structure.
So for Simple Trend Following: an identified Bullish Pulse could be Identified, and then followed to the highest Timeframe that is able to maintain that Bullish State. This is your Pivotal Timeframe. If a Bearish Pulse is identified then ride it until it grows strong enough to change the Trend State of the panel below your Pivotal Timeframe.
Honest Algo PremiumThis toolkit is a collection of innovative indicators, carefully designed to be as user friendly as possible. Get access to a collection of all the best we can offer in one indicator.
Providing Multiple Trading Styles
Our toolkit works in any market but has been specifically designed for Bitcoin and Forex.
Detect the direction of the trend using an algorithm based on our bounce manager ATR consolidation filtering
Find bounces from a handful of different pre-determined lines, the include a 20 period EMA, a supertrend, a T3 moving average and kijun-sen
Detect Rob Smith #thestrat entries
Filter out noise with our environment filters
and much more. (Check the changelog below for future additions)
If you want more information on how the price action entries of Rob Smith #thestrat work, there are many tutorials on the internet.
When using Rob Smith #thestrat entries the indicator uses bounce manager with a 200 period EMA for trend based bar coloring.
A quick explanation how it finds bounces from these lines:
Filter signals based on timeframe continuity
Timeframe continuity is a method of market analysis where you look if multiple different timeframe charts are in the same direction.
For example:
default settings we are in bull territory when the yearly, the quarterly, the monthly and the weekly candle all are green.
default settings we are in bear territory when the yearly, the quarterly, the monthly and the weekly candle all are red.
We provided multiple presets but it is recommended to use the standard preset, timeframe continuity is the strongest when using higher timeframes.
Filter signals based on market environment
We realised that trading long or short in an environment with no resistances increased our algorithms success rate.
How the algorithm does this:
1: See which timeframes the user has selected as a filter, on default these are:
Needs to be outside timeframe 1 (yearly), false
Needs to be outside timeframe 2 (quarterly), false
Needs to be outside timeframe 3 (monthly), true
2: Check if our closing price is above those timeframes previous candle high or below previous candle low.
This in combination with timeframe continuity gives a great tool to find the sentiment of the market and trade in the direction of the market.
Turn on autopilot using our signals
This tool is not made to do all decisions for you and requires a manager (you). The basic strategy using the #thestrat preset is to scale into positions on the 4H or higher timeframe, whenever a signal is fired you add to your position and as trend keeps developing the tool will keep adding to your positions.
A good manager knows risk management and does not use a very large position size per entry and builds a position over time.
We recommend you use a timeframe of 4H or higher and diversify over multiple assets. The indicator works best on assets that overtime have created long lasting trends.
Examples of perfect coins to use this on.
We know traders love clean looking charts
This is wy we added some popular indicators to our toolkit, these you can find on tradingview for free but we added them into our toolkit using our color theme, you can find these in the settings under (extra tools).
We also added an option to display bounce source, this is the source line some of our signal presets use to find bounces from using preset bounce manager parameter.
Multiple Trend Overview
-----------------
Hey there!
The indicator is used for both an overall and a short trend assessment. Both superordinate structures and subordinate movements are mapped. With the help of calculations via Ema , MACD and other tools, graphic trends can be visualized.
The green areas always signal an uptrend, while the red areas indicate a downtrend. The red & blue ema enclose the area of the minor trend. Orange & Green signal the overall trend. Ideally, both Ema faces run in the same direction as the multi-color line. Special alerts in the charts show this again directly in the chart. The multiple setting to display the trends from different time frames is innovative!
For all asset classes!
The indicator is designed for the m30 chart. But it can also be used well on other time frames. In addition, the display can be adjusted via the options and set to any time frame. The indicator has various settings and options that can be activated or deactivated separately.
Caution: Past results do not guarantee future profits!
Follow the link below to get access to this indicator or get us a PM to get access.
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
-----------------
Willkommen!
Der Indikator dient sowohl für eine übergeordnete als auch eine untergeordnete Trendeinschätzung. Hierbei werden sowohl übergeordnete Strukturen als auch untergeordnete Bewegungen abgebildet. Mit Hilfe von Berechnungen über Ema , MACD und weiteren Hilfsmittel lassen sich grafische Trends visualisieren.
Die grünen Flächen signalisieren immer einen Aufwärtstrend, während die roten Flächen einen Abwärtstrend anzeigen. Der rote & der blaue Ema schließen die Fläche des untergeordneten Trends ein. Orange & Grün signalisieren den übergeordneten Trend. Idealerweise laufen beide Ema Flächen in die gleiche Richtung wie die Multi-Farben Linie. Spezielle Alerts im Charts zeigen dies auch nochmal direkt im Chart. Innovativ ist die multiple Einstellung die Trends aus verschiedenen Timeframes abzubilden!
Für alle Asset Klassen!
Der Indikator ist für den m30 Chart ausgelegt. Lässt sich aber auch auf anderen Timeframes gut nutzen. Zusätzlich kann die Anzeige über die Optionen angepasst werden und auf jede Timeframe eingestellt werden. Der Indikator besitzt verschiedene Einstellungsmöglichkeiten und Zusätze die separat aktiviert oder deaktiviert werden können.
Achtung: Vergangene Ergebnisse garantieren keine zukünftigen Gewinne!
Verwenden Sie den folgenden Link, um Zugriff auf diesen Indikator zu erhalten oder schreibe uns eine PM um Zugriff zu erhalten.
ATR with MAOVERVIEW
The Average True Range Moving Average (ATRMA) is a technical indicator that gauges the amount of volatility currently present in the market, relative to the historical average volatility that was present before. It adds a moving average to the Average True Range (ATR) indicator.
This indicator is extremely similar to the VOXI indicator, but instead of measuring volume, it measures volatility. Volume measures the amount of shares/lots/units/contracts exchanged per unit of time. Volatility, on the other hand, measures the range of price movement per unit of time.
The purpose of this indicator is to help traders filter between non-volatile periods in the market from volatile periods in the market without introducing subjectivity. It can also help long-term investors to determine market regime using volatility without introducing subjectivity.
CONCEPTS
This indicator assumes that trends are more likely to start during periods of high volatility, and consolidation is more likely to persist during periods of low volatility. The indicator also assumes that the average true range (ATR) of the last 14 candles is reflective of the current volatility in the market. ATR is the average height of all the candles, where height = |high - low|.
Suppose the ATR of the last 14 candles is greater than a moving average of the ATR(14) of the last 20 candles (this occurs whenever the indicator's filled region is colored BLUE). In that case, we can assume that the current volatility in the market is high.
Suppose the ATR of the last 14 candles is less than the moving average of the ATR(14) of the last 20 candles (this occurs whenever the indicator's filled region is colored RED). In that case, we can assume that the current volatility in the market is low.
HOW DO I READ THIS INDICATOR?
If the ATR line is above the ATR MA line (indicated by the blue color), the current volatility is greater than the historical average volatility.
If the ATR line is above the ATR MA line (indicated by the red color), the current volatility is less than the historical average volatility.
[DMG] REVEREND v2REVEREND (RSI based Trend Reversal Indicator)
Info:
This is an RSI based convergence divergence (like MACD) indicator using SMAs or DEMAs for smoothing.
You can optionally filter the signals with the stochastic momentum indicator (SMI) levels or via simple overbought/oversold RSI levels.
Signals:
Purple is the Slow MA, Green is the Fast MA, Blue is the SMI (Momentum).
Buy and Sell signals are shown as circles (yellow on top sell, green on bottom buy)
The histogram is for easier differentiation (like macd) zero crossings creating the signals.
Usage:
Settings can never be perfect for any indicator, defaults should be good for BTC, ETH.
Sell signals should be taken with falling momentum, buys with rising momentum.
Watch out for false signals if Momentum is still rising while it prints a sell signal it is most likely false, you can filter these by using longer MAs but then it becomes more lagging.
A sufficiently fast fast-MA can be used for tracking RSI itself and since it also displays the stoch. momentum signal you can also check for divergences yourself or anticipate moves by their slope.
This is my main indicator for a year now and I wish I had followed it more ;) I additionally use EMAs, VWAP, Divergences and Volume Indicators, just remember price is king.
If you have questions or additional ideas I'd be happy to read them!
Good Luck! :D
[Fedra Algotrading Super Duper Trend Filter]All-in-one trend filter
Trend-following strategies are relatively easy to achieve, especially in backtesting. If only we knew what trend we were in! Let me help you:
- MAs crossovers
- Selection of the type of MAs
- Selection of MAs periods
-Super trend (optional)
-Trend zones based on trend lines (optional)
- Secret sauce
How to use it?
Do not open Longs if it is red
Don't open Shorts if it's green.
Apply it to your strategies and check the impact of a reliable trend filter before opening your entries.
Trending Bollinger Bands by SiddWolfBollinger Bands are mostly used for trend reversal. I believe they should be used for Trend Continuation and Trend Confirmation.
In this Trending Bollinger Bands script you will see two bands drawn on chart. The Upper band is suggestive of Uptrend and Lower Band is suggestive of Downtrend Market. It just provides the guidance of where the market is now and where it is headed. It is not to be used as a standalone indicator. Use this to confirm your hypothesis of Uptrend or Downtrend.
Bollinger Bands Trend
When the price crosses the moving average it is interpreted as the price is gonna continue in that direction. But most of the time it is a fake breakout. With this script you get an additional confirmation so that you know it is not a fake breakout and the price have caught the trend.
Bollinger Bands Reversal:
This indicator can also work for reversal. For example when price closes outside the outer bands, it is most likely that the trend is gonna reverse. Don't just enter the trade wait for some other confirmation as reversal trading is more complicated.
Confluence:
Confluence is the key factor for profitable trading. Don't use this indicator as standalone indicator instead combine it with other indicators and price action. Like the divergence occurring when the price is outside the bands is suggestive of trend reversal. I have created a non-delay, non-repaint indicator for finding divergence. I'd soon publish that script. Stay tuned.
Settings is the Key:
Try to play around with the settings. It is a simple yet effective indicator. Change the moving average type or length. I've found moving average RMA or WMA works better than SMA. Find the best setting that works with your setup. Set the Band Source as High/Low to make the outer bands more extreme.
Conclusion:
This is my first script but it isn't my last. I've created quite a few gems that I'm gonna publish soon. If you have any questions or suggestions feel free to comment below. I'd love to connect with you. Thank you.
#JJ Trend
-----------------
Hey there!
The indicator is used for a rough trend assessment. Both superordinate structures and subordinate movements are mapped here. With the help of a calculation via Ema and MACD , different timeframes can be displayed in the same chart. This makes the multi-timeframe analysis extremely easy.
On all Asset classes!
The indicator is for the m5 / m15 chart. In addition, the display can be adapted using the options and set to any timeframe.
Caution: Past results do not guarantee future profits!
Follow the link below to get access to this indicator or get us a PM to get access.
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
-----------------
Willkommen!
Der Indikator dient für eine grobe Trendeinschätzung. Hierbei werden sowohl übergeordnete Strukturen als auch untergeordnete Bewegungen abgebildet. Mit Hilfe einer Berechnung über Ema und MACD lassen sich verschiedene Timeframes im gleichen Chart abbilden. Das erleichtert die Multi Timeframe Analyse extrem.
Für alle Asset Klassen!
Der Indikator ist für den m5 / m15 Chart ausgelegt. Zusätzlich kann die Anzeige über die Optionen angepasst werden und auf jede Timeframe eingestellt werden.
Achtung: Vergangene Ergebnisse garantieren keine zukünftigen Gewinne!
Verwenden Sie den folgenden Link, um Zugriff auf diesen Indikator zu erhalten oder schreibe uns eine PM um Zugriff zu erhalten.
Donchian Screener█ OVERVIEW
This is a screener script for the Donchian Channel indicator . It's an excellent indicator for trend following, a trading strategy which tries to take advantage of long, medium or short-term moves that seem to play out in various markets.
█ DESCRIPTION
The screener works by scanning through up to 10 symbols and list down symbols that are currently breaking through the upper or lower band as definied by the Donchian Channels, at which point the market signals the start of a bullish or bearish trend.
█ HOW TO USE
After adding the indicator, open the script settings and type the symbol name and length to be used on the Donchian Channels for each stock.
█ PARAMETERS
- Use High/Low Price Breakouts: check this box if you want to use price high/low instead of price close to identify breakouts
- Panel Position: choose whether you want to position the panel on the top, middle or bottom right side of the graph (default is top)
- Default Timeframe: what timeframe to use on the screener (default is daily)
- Ticker: the ticker name you want to monitor
- Length: length parameter used on Donchian Channel indicator
█ FEATURES
The screener can scan up to 10 symbols each time.
█ LIMITATIONS
The screener will scan the symbols breaking out bands on the current bar, and as such, there maybe some delays depending on the stock/ etf /crypto you choose. Some exchanges require an additional subscription to get realtime data.
Linear Regression Channel - Auto Volume BasedBased on oryginal TV indicator BUT with a little twist. ;)
I really like the regression channel - but the problem is that the length needs to be always manually adjusted.
In this script I try to solve this issue.
This is modified version on TV indicator - Linear Regression Channel.
The main difference is that now you don't get static length - it is automatically adjuested to the recent price action (determined by highest volume in last 300 bars).
3D Trailing Stop3D Trailing Stop is an indicator designed to keep you in trend trades and let you know when it may be a good time to exit. It's calculation is based on the Trend, Volatility and Volume pattern of the instrument. Instead of most trailing stops which are based on 1 measurement, it's based on 3 measurements, hence it's name 3D Trailing Stop, which is short for 3-Dimensional.
For example when looking at a long-only trade, the more up days and the more volume on those up days, the wider the trailing stop will be. However when the trend changes, and there's more down days with more volume then the trailing stop will tighten. The idea is to try and keep us in good trends for longer and get out of reversing trends earlier.
The default distance the trailing stop will be from the EMA (5) is always a multiple of 1.5 - 3x the ATR (21) and all of these settings are changeable by the user. To change the trailing stop from the default long trend to short trend change the ATR Offset setting from - to +. If you wish to display both a long and short trailing stop, simply add the indicator again to your chart with the ATR Offset + setting enabled. The indicator also shows how far the trailing stop price is from the last price, expressed as a % on the chart so you can easily see how far away the trailing stop is.
There are a few ways it can be used, for example one may wish to enter on a 50 or 100 bar high/low breakout and use the 3D Trailing Stop as a indicator when to get out of the trade. You could exit once price goes below the trailing stop, or use the previous bar trailing stop value as the level for a quicker exit.
This indicator can be used on any market and any timeframe, for both long and short trades. We have found it to work best on stocks long-only using the daily timeframe as stocks tend to have good up-trends over time. You could also use it on smaller timeframes in conjunction with other indicators and signals to enhance your win rate.
To get access PM or email me to my address shown below.
Enjoy :)
Disclaimer: All my scripts and content are for educational purposes only. I'm not a financial advisor and do not give personal finance advice. Past performance is no guarantee of future performance. Please trade at your own risk.
8X Trend ATR SAR Dingue V58X Trend ATR SAR Dingue V5 - This is the updated version for Pine Script 5.
8x indicator into 1 :
2x ATR indicator - 3x Trend indicator - 3x SAR indicator
Trends are helpful to spot reversal and support resistance, especially on bigger time frames.
This indicator gives you a global view of various trends all at once. You can easily turn them On or Off as to not clog the screen.
Each trend is also color-coded to visualize quickly the position of the price compared to it.
You can customize lengths, adjust line sizes, have the start of a new trend marked with a circle, fill in colors.
'Tool tips' explain other settings and if you have any questions, feel free to ask in the comments below.
Thank you for the feedback and check all my ‘Dingue’ indicators.
Retail Insider Trend Following (HTF ONLY)Before I begin, here is a disclaimer: None of this is financial advice, and I'll recommend you to do your own research or talk to your financial advisor, if you want to use this. And also make sure you understand the risks properly before taking any trades. This particular indicator is a work of experiment, and I am publishing the optimized code. Please leave a comment below if you have any queries.
As per the logic, I am taking the highest point in a particular time window (used the in built ta.highest function) , and the lowest point in a particular time window (used the ta.lowest), and averaged it using the in built function (
RMA(which is the B33 Mean.)
For the offset, I am simply calculating and adding some values (which can also be input by the user.)
and this user input is in percentage.
So if you observe the lines, the Red line in between is the mean, and the Yellow lines are the offsets. (Everything can be changed in settings)
In simple layperson terms, if the price goes above the Red line, it's an uptrend,
and if the price goes below the Red line, it is in a downtrend.
Now I just wanted to keep the offset because I wanted more confirmation before actually entering a trade. (the offset can be changed again, from the settings, and the offset is in percentage)
A lot of times, you will see that the price is kind of going sideways, where, a lot of traders get trapped, as there is no clear trend.
So in order to eliminate that choppy price action and stay out, I'm using this offset. This should probably save a lot of bad trades.
So basically, if the price goes and closes above the higher offset, it will confirm a trend change, and a possible bull market.
Similarly, if the price goes and closes below the lower offset, it will confirm the end of the bull market, or a corrective phase, or a bear market.
A few things to note, however...
If you change the timeframe, you will see that the lines are not shifting/changing that much. This is because, it will consider the highest and the lowest points and average it.
So, basically, if you do the math, you will understand why,... and this logic is purely for a higher timeframe analysis/confirmation.
I'll personally recommend this kind of a setup for swing trading/confirmation on the daily or the 4H charts, mostly for longer timeframes. (If you are on the pro/pro+ or premium, you can try out 6H or 12H timeframes as well)
If you are looking for scalping, setups and indicators, this is not the right one.
If you liked it, don't forget to give a follow :)
ZigZag WavesHello All,
I am here with a new idea and script, " Zigzag Waves ". This indicator creates 3 Zigzags with different lengths, keeps the lengths of each zigzag wave and calculates/draws average waves for each zigzag. optionally it can reset the wave when zigzag direction changes and new highest/lowest found. And optionally it draws Exponential Moving Average(EMA) of the sum of waves. This idea is very new and at the moment there is no optimization for the Zigzag Periods. Maybe we altogether can improve the idea and find the best zigzag periods for different symbols and time frames.
Using the options You can play with the periods, add/remove EMA, set its color and reset the waves on new Highest/Lowest. As far as I see resetting the waves on new Highest/Lowest may bring better results.
if we enable "Reset the waves on new Highest/Lowest":
Using different periods and EMA length:
P.S. if you have ideas to improve this script, drop a comment under the script please.
Enjoy!
ROC PercentileRate Of Change Percentile calculates the current ROC (user defined length) as a percentile rank.
We use 2 separate arrays, one for all positive ROC values and one for all negative values within a defined lookback period. Then the current ROC value is compared to those arrays to find it's percentile ranking.
For example, a ranking of 75 means the ROC is in the 75th percentile of all POSITIVE ROC values over the lookback period.
A ranking of -80 is in the 80th percentile of all NEGATIVE ROC values over the lookback period.
Most ROC scripts use raw ROC values (or smoothed or otherwise altered), or have stochastic formula applied to them, I've not seen one that displays ROC as percentile ranking of previous positive/negative values.
What is the advantage?
Raw ROC data only gives half the picture. What we want to do is compare the ROC to previous ROC values, to give a sense of scale. Raw ROC values don't give you that context and you can only compare visually, usually limited to the number of bars you can see on your screen.
Using a percentile ranking gives us the context of current Rate of Change relative to the previous Rate of Change over a large lookback period, and not just visually but mathematically.
Why not using a long stochastic ROC? The problem with stochastics in general is that an outlier data point can ruin the data for the rest of the lookback period.
For example, imagine a huge outlier 8% ROC. The 2nd largest ROC is 4% and the 3rd largest is 2%, with all other values below this.
In this example, a stochastic ROC would display the 8% outlier as 100, the 4% as 50, the 2% as 25 and all other data would be squeezed down between 0-25.
Additionally, a value of 60 may have vastly different meaning depending on whether the lookback period contains a large outlier or not.
With a percentile ranking, that 8% outlier would still have a value of 100. But the 4% and 2% would be 99 and 98 respectively (this assumes 100 data points in the series, in reality values will usually be decimals).
This effectively flattens the curve and gives a more consistent and dependable experience, allowing you to more accurately assess the relative importance of the current ROC.
The line of circles is set at the 50 and -50 values for quick comparison.
Values > 50 represent ROC greater than 50% of previous positive ROC values.
Values < -50 represent ROC greater than 50% of previous negative ROC values.
Commitment of Traders ~ INDEXESMy intention was to create 1 script for the Commitment of Traders report but I wasn't not aware there is a limit on how many instrument calls can be made in PineScript so I had no choice but to divide the script into instrument categories. So far I have created 4 of them: Forex, Metals/ Commodities, Treasuries & Indexes which is the one presented here. If you are interested in the other ones, feel free to do a search.
Available Instruments: Mini S&P, VIX, Mini NASDAQ, Mini RUSSELL, EAFE Index (Global Developed Markets & EMRG Index (Global Emerging Markets)
The script calculates and plots the ZScore of both Net Long (Money Managers / Asset Managers) and Net Long (Dealers / Swap). In some instrument categories you will also see Open Interest. It depends on whether I was maxed out or not on making security calls.
If you are not familiar with ZScore, it basically calculates the distance of price from a mean average in units of Standard Deviation. In theory when price reaches +2 it signifies overbought while if it reaches -2 is oversold. However just because it's hitting an extreme in one particular average doesn't necessarily mean it will reverse as the position of price in relation with the next longer average might not be so out of range.
Must be attached to weekly chart.
If you have any questions/suggestions, feel free to add them in the comments below
Commitment of Traders ~ TREASURIESMy intention was to create 1 script for the Commitment of Traders report but I wasn't not aware there is a limit on how many instrument calls can be made in PineScript so I had no choice but to divide the script into instrument categories. So far I have created 4 of them: Forex, Indexes & Metals/ Commodities & Treasuries which is the one presented here. If you are interested in the other ones, feel free to do a search.
Available Instruments: Ultra(25-35yrs), Bonds(15-25yrs), 10yrs, 5yrs, 2yrs & 3 Month EuroDollar
The script calculates the ZScore of both Net Long (Money Managers / Asset Managers) and Net Long (Dealers / Swap) In some instrument categories you will also see Open Interest. It depends on whether I was maxed out or not on making security calls.
If you are not familiar with ZScore, it basically calculates the distance of price from a mean average in units of Standard Deviation. In theory when price reaches +2 it signifies overbought while if it reaches -2 is oversold. However just because it's hitting an extreme in one particular average doesn't necessarily mean it will reverse as the position of price in relation with the next longer average might not be so out of range.
Must be attached to weekly chart.
If you have any questions/suggestions, feel free to add them in the comments below