Volume [Educational]Hello All,
This is an educational work and it's developed to show how to write scripts that will work like built-in volume indicator.
We have new features in Pine Script™ Language, such chart.bg_color, chart.fg_color, chart.left_visible_bar_time, chart.right_visible_bar_time and many more. Many Thanks to Tradingview and Pine Team for such great additions!
You can find more information about these new functions here .
How the script works?
- At the first step it calculates how many visible bar on the chart by using chart.right_visible_bar_time and chart.left_visible_bar_time functions.
- Calculates the zero line for the volume
- Finds maximum volume on visible area and normalize all volume values
- Draws volume bars
- Shows volume info as indicator value. in this step it uses chart.fg_color and plotarrow() commands to show the values in optimum color.
In order to place the indicator at the bottom of the chart, Please set Bottom Margin = 0 as shown in the following screenshot:
You can change the volume bar colors optionally.
An Example screenshot with different volume bar colors:
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.
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.
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.
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!
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
Team TemaTema highlights bars based on the triple ema ( tema ) with two different length qualifiers.
The tema is believed to react quicker to price fluctuations than the simple moving average ( sma ), the exponential moving average ( ema ), and the double ema ( dema ). The shorter length tema crossing over the longer one is believed to indicate a bullish trend ahead, highlighted in green. The shorter length crossing below the longer one may indicate a bearish trend is on the way.
Benefits.
It has been found that most traders lose money because they panic early, and don't let profits run. Tema helps me to filter out trading noise , reduce stress and stay in profitable trades longer . Highlighting the candle wicks reveals trends in highs and lows that may be difficult to see otherwise. I like being able to adjust the settings and look back to see how much noise would have been good to filter out.
Things to watch out for.
Like other moving averages, the tema is a lagging indicator , vulnerable to false signals, especially during a large move up or down . Use with other indicators that are better designed for detecting tops and bottoms. Adjust the lengths to filter out what you think may be wrong signals. The settings are subjective , and it depends on the security and the time period. Manually create a note or reminder with your favorite settings for each. You may choose how much price fluctuation to filter out by going into settings, marked with the gear icon.
Unconfirmed sentiment arrow.
Tema draws an arrow of current sentiment , based on the unconfirmed price action of the faster tema. It shows where it thinks prices are presently going, barring other factors. Its main purpose is to extend a line from the end of the tema, so it is not difficult to see. Remember, it is probably wrong until the last bar closes. And even then, buyers or sellers could come along at any moment and change the outlook.
Big 9 Volume - Volume indicator from exchanges with real volumeHere is a very basic indicator combining the volumes of the 9 biggest exchanges trading BTC/USD or BTC/USDT. These 9 exchanges were chosen based on the report by Bitwise Invest stating that 95% of the volume on CoinMarketCap is fake. On these 9 exchanges, however, volume data appears to be reliable. Please note BitFlyer was not included because it does not trade in USD. Please note also that data on all 9 exchanges is only available from June 2018.
Anyone is welcome to modify this and make it more elegant, this was just a quick implementation.
Linear Momentum and Performance Indicators (IFTA Jan 2019)This a porting to Trading View of the 12 new indicators introduced in IFTA Journal (January Edition) by Akram El Sherbini, MFTA, CFTe, CETA.
Indicators are available in "Linear Momentum and Performance Indicators" at page four.
IFTA Journal is available below:
ifta.org
Indicators implemented herein:
Linear Force Index: The linear force index LFI measures the force of buyers and sellers during rallies and declines, respectively. It combines two important pieces of market information—the price acceleration
and volumes.
Pressure Index: The pressure index PRI measures the buying and selling pressure over a certain range within a time interval by moving around its zero line. The index indicates a rise in buying pressure when it crosses above the zero line and a rise in selling pressure
when it crosses below the zero line level. The buying and selling force moves the last price during the session to form a range with low and high boundaries.
Strength Index Index : The strength index SI is a leading indicator to the pressure index. It measures the ability of buyers to resist sellers and vice versa. SI of today is the ratio of the latest pressure index value to the strain of today.
Power Index : It measures the buying and selling power within a time interval by moving around its zero line.
Intensity Index : The intensity index II measures the buying and selling intensity within a time interval by moving around its zero line.
Dynamic Strength Index : The sole purpose of the dynamic strength index DSI and the integral dynamic strength index IDSI is to lead their intensity indicator peers.
Integral Force Index
Integral Pressure Index
Integral Strength Index
Integral Power Index
Integral Intensity Index
Integral Dynamic Strength Index
The following example shows a trade following the signal while several indicators are crossing the zero line:
Integral performance indicators have a fewer number of trades than the performance indicators. This result is normal, as the integral indicators are less sensitive than their peers. Moreover, the power, intensity, and dynamic strength are less sensitive than the force, pressure, and strength indicators. The same applies for their integrals. Therefore, the integrals of power, intensity, and dynamic strength indicators are more inclined to be medium-term indicators.
As the paper is suggesting "the linear momentum and the new performance indicators should make a significant change in categorizing several indicators in technical analysis."
Technical indicators are using biased mathematical implementations. For example Momentum Index is in reality a velocity indicator, Force index a Momentum indicator and so on. From a Physical perspective correct momentum, force, velocity etc. needs to be corrected and re-categorized.
The author also gives important insights in how these indicators can be used "simultaneously to identify price turning points and filter irrelevant divergences."
"This paper will attempt to adjust the price momentum and force concepts introduced by Welles Wilder and Alexander Elder, respectively. By introducing the concept of linear momentum, new indicators will emerge to dissect the market performance into six main elements: market’s force, pressure, strength, power, intensity, and dynamic strength. This will lead to a deeper insight about market action. The leading performance indicators can be used simultaneously to identify price turning points and filter irrelevant divergences. The linear momentum and the new performance indicators should make a significant change in categorizing several indicators in technical analysis."
Suggestions and feedback are welcome
Hope you enjoy this,
CryptoStatistical
multiple SMA EMA BB full mod + timeframeyou can add as much SMA EMA BB as you want by editting the source code
just remove the // from the indicator code
JMA Clone 3The clone of Jurik moving average function with a power argument
The power argument allows to closely approximate price movements. The higher the power, the closer the fit. Also helps to find a balance between smoothing and fitting.
4 EMA's in oneAnother useful script I've been experimenting with. 4 EMA's in one!
Red = 200
Orange = 100
Yellow = 50
Blue = 25
Color coded in order of their respective frequencies.
Right now it's as plain and simple as you can get. Only inputs you can change are the average values.
Will update upon request and popularity.
Happy new year and God bless!
Volume Conversion IndicatorVolume Conversion Indicator
The volume conversion indicator is much like the in-built volume indicator. This particular volume indicator allows you to find out how much of something has been traded in a given timeframe.
This is done by multiplying volume by the average price at that point.
What does this mean?
Well, say, for example, you were watching DGB/BTC (DigiByte/Bitcoin). Instead of the volume being displayed in the amount of DGB traded, the amount of BTC traded is displayed instead.
Feel free to comment... Hope this helps :D