Enhanced Time Segmented Volume (Multi MA)**THIS VERSION ALLOWS THE USER TO SELECT WHICH MOVING AVERAGE THEY WOULD LIKE TO UTILIZE FOR THE SIGNAL LINE**
Chart shows two different options of many. Top option is the default settings and bottom option is a different moving average with no other changes.
Time Segmented Volume was developed by Worden Brothers, Inc to be a leading indicator by comparing various time segments of both price and volume. Essentialy it is designed to measure the amount of money flowing in and out of an instrument.
Time Segmented Volume was originally ported to TradingView by user @liw0 and later corrected by user @vitelot. I never quite understood how to read Time Segmented Volume until I ran across a version by user @storma where they indicated when price would be long or short, but that code also utilized the incorrect calculation from user @liw0.
In an effort to make Time Segmented Volume more accessible and easier to read, I have re-coded it here. The calculations are based on the code from @vitelot and I have added direction indicators below the chart.
If the histogram (TSV) is greater than zero and greater than the moving average, price should be moving long and there will be a green box below the chart.
If TSV falls below the moving average while still being greater than zero, the trend may be exhausting and has been coded to read Price Action Long - FAILURE with a black x below the chart.
If the histogram (TSV) is less than zero and less than the moving average, price should be moving short and there will be a red box below the chart.
If TSV rises above the moving average while still being less than zero, the trend may be exhausting and has been coded to read Price Action Short - FAILURE with a black x below the chart.
At times, the moving average may be above zero while TSV is below zero or vice versa. In these situations the chart will indicate long or short based on whether or not TSV is greater or less than zero. It is possible a new trend may be forming as the moving average obviously lags, but also possible price is consolidating with little volume and causing TSV to oscillate close to zero.
More information regarding Time Segmented Volume can be found here: www.worden.com
Original code ported by @liw0
Corrected by @vitelot
Updated/Enhancements by @eylwithsteph with inspiration from @storma
Multiple MA Options Credits to @Fractured and @lejmer
Bits and Pieces from @AlexGrover, @Montyjus, and @Jiehonglim
As always, trade at your own risk.
Trendtrading
Enhanced Time Segmented VolumeTime Segmented Volume was developed by Worden Brothers, Inc to be a leading indicator by comparing various time segments of both price and volume. Essentialy it is designed to measure the amount of money flowing in and out of an instrument.
Time Segmented Volume was originally ported to TradingView by user @liw0 and later corrected by user @vitelot. I never quite understood how to read Time Segmented Volume until I ran across a version by user @storma where they indicated when price would be long or short, but that code also utilized the incorrect calculation from user @liw0.
In an effort to make Time Segmented Volume more accessible and easier to read, I have re-coded it here. The calculations are based on the code from @vitelot and I have added direction indicators below the chart.
If the histogram (TSV) is greater than zero and greater than the moving average, price should be moving long and there will be a green box below the chart.
If TSV falls below the moving average while still being greater than zero, the trend may be exhausting and has been coded to read Price Action Long - FAILURE with a black x below the chart.
If the histogram (TSV) is less than zero and less than the moving average, price should be moving short and there will be a red box below the chart.
If TSV rises above the moving average while still being less than zero, the trend may be exhausting and has been coded to read Price Action Short - FAILURE with a black x below the chart.
At times, the moving average may be above zero while TSV is below zero or vice versa. In these situations the chart will indicate long or short based on whether or not TSV is greater or less than zero. It is possible a new trend may be forming as the moving average obviously lags, but also possible price is consolidating with little volume and causing TSV to oscillate close to zero.
More information regarding Time Segmented Volume can be found here: www.worden.com
Original code ported by @liw0
Corrected by @vitelot
Updated/Enhancements by @eylwithsteph with inspiration from @storma
As always, trade at your own risk.
Pivot Point SupertrendHello All,
There are many types of SuperTrend around. Recently I thought about a Supertrend based on Pivot Points then I wrote "Pivot Point SuperTrend" script. It looks it has better performance on keeping you in the trend more.
The idea is behind this script is finding pivot point, calculating average of them and like in supertrend creating higher/lower bands by ATR. As you can see in the algorithm the script gives weigth to past pivot points, this is done for smoothing it a bit.
As I wrote above it may keep you in the trend more, lets see an example:
As an option the script can show main center line and I realized that when you are in a position, this line can be used as early exit points. (maybe half of the position size)
While using Pivot Points, I added support resistance lines by using Pivot Point, as an option the script can show S/R lines:
And also it can show Pivot Points:
When you changed Pivot Point Period you can see its reaction, in following example PP period is 4 (default value is 2). Smaller PP periods more sensitive trendlines.
Alerts added for Buy/Sell entries and Trend Reversals. (when you set alerts use the option " Once Per Bar Close ")
ENJOY!
SaiSrikar 1D MAGICThis is an indicator derived from MACD indicator.
This indicator can be used for identifying trend and take positional trades everyday during asian session.
The signal will come once in 3 days at the time of releasing the script. Changes will be made to improve the script.
Recommened:
Apply indicator on 1 day TF and on Asian Market opening , depending on the signal, Green means buy or Red means Sell.
Take this signal as soon as asian market opens.
To get in a trend ASAP:
You can follow the trend very well if you apply to 15 Min TF. You can quickly get into a trend using the signals. Beware of fakeouts in the market
Trend Following MAs 3DHello All,
This is Moving Averages Trend Following 3D indicator. The idea is based on direction of MAs and relation between 20 moving averages (5 to 100 period).
Option to show different type of MAs: EMA, SMA, RMA, WMA, VWMA.
As I haved tested it looks succesful at calculating trend direction and trend strength.
For a better look I tried to make it 3D, it looks good I think, waiting comments ;)
Some screenshots:
By using RMA type:
When it gets tiny it means there is no trend:
An example for down trend:
ENJOY!
Price Action Trend Overlay | SimpleShows trends, based on the rate of change of the underlying price action. By default, keeps you in a trend longer than Heikin Ashi. Uses real candle values. Works on any asset and market; does not need volume as an input. Includes overbought/oversold information that is more responsive than standard RSI.
Underworld Hunter + Base ZoneUnderworld Hunter + Base Zone is designed to keep traders out of ranging markets by establishing a "dead zone" between the bands where price may be choppy or trends may be short lived. The original Underworld Hunter from @greenmask9 adapted Bollinger Bands by changing the basis from SMA to the EMA of the EMA of the EMA. This version now allows the user to select which moving average they would like to utilize for the calculation.
If price is outside of the upper bands, price may be bullish. If price is outside the lower bands, price may be bearish.
If price is within the green or red areas of the bands, a trend may be forming.
The system also plots when RSI has become over extended above the thresholds selected (70/20 is the default).
MA Period is the length/period the moving average is calculated with
MA Mode is the type of moving average that will be utilized in the basis calculation
The "Standard MA Calculation" Option changes the basis to calculate the moving average selected in MA Mode only once, instead of 3 times
Deviation 1 and Deviation 2 determine how far the dead zone bands will be from the basis
RSI Period is the length/period the RSI function is calculated with
RSI Extended - High Cutoff is the level RSI must reach to be marked as over extended. Most traders refer to this zone as "Overbought"
RSI Extended - Low Cutoff is the level RSI must reach to be marked as over extended. Most traders refer to this zone as "Oversold"
As many NNFx traders know, overbought and oversold essentially do not exist, though the zones can still be utilized
The remaining options are utilized for specific moving average calculations and are set to what is typically considered as "standard" for their values.
There are many options available for this code. The code has not been optimized but merely compiled. Settings should be adjusted for the instrument(s) you are trading.
Adapted from user @greenmask9
Multiple MA Options Credits to @Fractured and @lejmer
Bits and Pieces from @AlexGrover, @Montyjus, and @Jiehonglim
As always, trade at your own risk.
Trend Lines for RSI, CCI, Momentum, OBVHello Traders!
After publishing Trend Lines for RSI yesterday, I realized that Trend Lines for more indicators needed by the traders. so I decided to make it for four different indicators: RSI, CCI, OBV, Momentum
In the indicator options you can choose the indicator from pull-down menu.
How it works?
- On each bar it finds last 10 higher and lower Pivot Points (PP) for the indicator.
- from first bar to 10. Pivot Point it searchs if a trend line is possible
- for each PP it starts searching from the last PP .
- it checks if drawing a trend line possible or not and also it's broken or not
- if it's broken then optionally it shows broken trend lines as dotted (or you can option not to see broken lines)
- if it finds a continues trend line then it stops searhing more and draw trend line, this is done by checking angles (I did this to make the script faster, otherwise you may get error because of it needs time more than .2sec)
- the script makes this process for each PP
- then shows the trend lines
P.S. it may need 3-10 seconds when you added the script to the chart at first (because of calculations)
Trend lines for CCI:
Trend Lines for OBV
Trend Lines for Momentum:
You may want to watch how Trend Lines script works (that was made for RSI)
s3.tradingview.com
If you still didn't see Trend Lines v2 then visit:
All Comments are welcome..
Enjoy!
WhipLashThis is a study to determine if small candle bodies (little difference between open and close), regardless of overall candle length (high/low), can be used to filter choppy markets.
The indicator will calculate the selected average "MA Mode" of (close-open). To standardize this result and ensure any filters/thresholds do not need to be recalculated for each instrument the result will be used to calculate the Z Score.
The idea is that when candle bodies are small there is very little actual price movement, and therefore price is choppy. When considering the Z Score of that result, any outliers ie larger candle bodies, could show a potential trend forming. This indicator is similar to QStick but allows more customization by the user.
MA Mode determines which MA is used to smooth the results of (close-open)
Price Smoothing is the number of running periods the MA Mode is calculated for.
The three Thresholds are preset to the 90%, 95%, and 99% levels for Z Score. If these thresholds are altered you may wish to also alter the horizontal lines programmed for each level on the positive and negative sides.
The Z Length is the period for which the Z Score is calculated
Multiple MA Options Credits to @Fractured
Bits and Pieces from @AlexGrover, @Montyjus, and @Jiehonglim
As always, trade at your own risk.
MWDX AverageThis is a variation of an exponential moving average which follows the price pretty smoothly. Feel free to change the factor to adjust how closely it follows the price. I set the default to 0.2
Let me know if you want me to write code for any other indicators!
Price Change Rate by Pivot Points - DynamicHi Everyone
Usually I need Price Change info and I believe most of you need this info too. I want to see how it increased/decreased. I automate this by using Pivot Points.
it works dynamically and it uses Pivot Highs and Pivot Lows accordingly. That means it calculates which one to use.
Please watch following video:
Enjoy!
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.
Trend Following Moving AveragesWhile analysing a chart, one of the biggest problem is to see if there is trend or not. While thinking about it, I found the idea to analyse moving averages in channel and their momentum according to channel width. I already published it as Trend Following Bar as you see at bottom of the chart.
How it Works?
On each bar it creates a channel by highest/lowest point of a MA. highest point is upper line and lowest point is lower line of the MA channel,
It gets highest and lowest point of last 300 bars, (say Price Channel )
If the width of MA channel is greater than certain rate of price channel then it decides there is trend
After it decided there is trend, it calculates the rate between channel and MA. Bigger result means stronger trend.
According to rate of MA channel and the price channel , MA Line becomes lighter/darker. so when you look at the MA Line's color you can see the trend strength.
Some details about my idea:
Options:
You can choose following MA types as source: EMA, SMA , RMA, WMA , VWMA
"Period to Check Trend" is the period to create MA channel. Bigger period cause more sensitivity.
"Trend Channel Rate %" is rate of price channel . Price channel created by using highest/lowest of last 300 bars. I did this to make the script works on all time frames correctly.
"Use Linear Regression" is used to get rid of noise. it may cause 1-2 bars latency.
Trend Following Bar script:
All comments are welcome!.
Enjoy!
Trend Lines v2Hello Everyone. After working on new and better trend lines script for couple of weeks, finally I am proud to publish Trend Lines v2.
How it works?
- On each bar it finds last 10 higher and lower Pivot Points (PP).
- from first bar to 10. PP it search if a trend line is possible
- for each it starts searching from the last PP.
- it check if drawing a trend line possible or not and also it's broken or not
- if it's broken then optionally it shows broken trend lines as dotted
- if it finds a continues trend line and stop searhing more and draw trend line (I did this to make the script faster, otherwise you may get error because of it needs time more than .2sec)
- the script makes this process for each PP
optionally trend lines may be Solid or Dashed
optionally you may get rid of broken trend lines if you think it's crowded
and sometimes you may not see any trend line on the chart. this means you need to adjust the period for Pivot Points accordingly
also I made a video. if you watch this video you can see how the script works.
Important! after you add this tool to the chart you may need zoom-in and zoom-out to see all lines!
I thought a lot to make it free or not then I decided make it free and open source. you should know there is a lot of effort for this script, so if you think this is usefull please consider a donation ;)
Enjoy!
TAI - Trend Agreement IndexThe TAI is an experimental indicator we created to begin working on a automated trading algorithm. It takes five signals from our indicators and gives a +1 or -1 for each signal depending on if the signal is bullish or bearish.
This indicator should not be used for direct signals, but for confluence in trend. Long periods of flatness at 5 or -5 will indicate a very strong trend in that direction.
The TAI gives 4 different arrows depending on what the trend is doing.
Blue = Uptrend
Red = Uptrend Lost
Orange = Downtrend
Green = Downtrend Lost
This is a free add-on indicator for traders with access to the DBT MoMo and the Oasis Trading Suite and Bundle Package.
For Access or Questions: Private message us. Thank you.
RSI of MAsRSI of MAs is designed to calculate the moving average for a specific period, and then take the RSI of that value. This script allows the user to select which moving average they would like to utilize for the calculation, as well as customizing how the Signal Line is calculated. There are many combinations available and you will need to tune the indicator to fit your trading style. The Signal Line is designed to indicate when there is a potential change in price action. If the Signal Line is below RSIoMA, price is bullish. If the Signal Line is above RSIoMA, price is bearish.
MA Period is the length/period the moving average is calculated with
RSI Period is the length/period the RSI is calculated with
RSI MA Mode determines which moving average is applied to the MA period
Signal Line determines which moving average or QQE is used to calculate the signal line
Signal Line Period is the length/period the Signal Line is calculated with
As always, trade at your own risk.
Multiple MA Options Credits to @Fractured
Signal Line Options Credits to @lejmer
Bits and Pieces from @AlexGrover, @Montyjus, and @Jiehonglim
VQZL Z-ScoreVolatility Qaulity Zero Line attempts to keep a trader out of ranging markets, but the original calculation on TradingView had to be adjusted for each instrument. To avoid this issue, I have applied a z-score calculation to the VQZL so the result is standardized for all instruments. A Z-Score is simply a value's relationship to the mean (average) of a group of values, measured in terms of standard deviations from the mean.
This calculation allows us to compare current volatility to the mean (moving average) of the population (Z-Length). The closer the VQZL Z-Score is to the mean, the closer it will be to the Zero Line and therefore price is likely consolidating and choppy. The farther VQZL Z-Score is from the mean, the more likely price is trending.
The MA Mode determines the Moving Average used to calculate VQZL itself. The Z-Score is ALWAYS calculated with a simple moving average (as that is the standard calculation for Z-Score).
The Threshold Levels are the levels at which VQZL Z-Score will change from gray to yellow, orange, green (bullish), or red (bearish). These levels can be adjusted but you should adjust the Threshold Lines as well (in the style section), so they line up with your adjusted values.
Statistically speaking, confidence levels in relation to Z-Score are noted below. The built in Threshold Levels are the positive and negative values for 90%, 95%, and 99%. This would indicate when volatility is greater than these values they are out of the ordinary from the standard range. You may wish to adjust these levels for VQZL Z-Score to be more responsive to your trading need
80% :: 1.28
85% :: 1.44
90% :: 1.64
95% :: 1.96
99% :: 2.58
As always, trade at your own risk.
VQZL Created by Investo And Adapted From @sarangab
Multiple MA Options Credits to @Fractured
Bits and Pieces from @AlexGrover and @Montyjus
Supertrend MTF Heikin AshiThis is non-repaiting Supertrend Multi Time Frame script, uses Heikin Ashi Candles as source on normal chart
There is an option for Higher Time Frame. if you choose "Auto" then Higher Time Frame calculation is made by the script. If you choose "User Defined" option and then you can select Time Frame.
You better use this script with other indicators such as RSI, Momentum etc.
Enjoy!
GMS: Moving Average Crossover StrategyThis is a moving average crossover system built the way I would want it to be.
- The moving averages included are SMA, EMA, WMA, VWMA.
- You can select either for the first moving average or the second moving average.
- You can also select to see the Long trades, Short trades, or both at the same time.
- There is also a simple moving average trend filter. When this is selected, it only applies to the entries of a trade and not the exit. There are situations where the entry is above the trend filter and the exit is below.
The source code should be open so feel free to adapt it, make it more efficient, or take some part for your own project!
I hope it helps,
Andre
GMS: RSI & ROC StrategyThis is a basic strategy like the RSI one I posted. This one adds in the Rate of Change indicator as well.
You can separate the two for RSI only and ROC only. Everything else is the same as the RSI strategy.
- Simple moving average trend filter.
- Simple moving average trade exit.
- Both long and short or each on it's own.
The source code should be open if you want to see it or modify it for your own project. I hope it helps!
Andre
Global Market Signals
EMA Trend MeterThis is a useful trend analysis tool that I've seen others sell for high monthly subscription fees. I'm giving my version away for free.
The script consists of 3 EMAs, all weighted against the same baseline moving average to give you an overview of the trend. My meter shows the status of each EMA; either up (green) or down (red). When you see two of the same colour vertically aligned then the trade will most likely go in that direction. When all three are the same colour then it's a certainty.
The top row represents the stochastic RSI direction to further validate the EMA signals. Grey is up, black is down.
Default values for the EMAs are 7, 14 and 21 but please tweak to fit your chart.
Alerts are built in for longs and shorts when either 2 or 3 EMAs are the same colour and the stochastic indicator agrees. They'll fire only in the first instance (long/short) so you won't receive repeat alerts on each candle.
NOTE: This is a metered indicator and you get only the bottom portion of what's shown here. The signals overlaid on the chart are merely to demonstrate when the meter alerts would fire.
Haos Visual DivergencesThe Haos Visual is a trend indicator consisting of two WIlliams % indicators.
I have added divergences to spot trend reversals within assets, divergences have no repaint and require single candle confirmation.
www.prorealcode.com
Gann Trend OscillatorDeveloped by Robert Krausz, the Gann Trend Oscillator is a trend-following indicator used to determine the financial instruments long-term price direction.