+ Time Weighted Average PriceThis is basically NeoButane's script (which should be more popular than it is) with a few additions, those being primarily plotted lines of the closing price of the previous TWAP, however I've also added the optionality of plotting a second TWAP of say, maybe a different resolution if you are so inclined. Also, you may plot shapes across the top or bottom of your chart color based on if current price is above or below the previous closing price of the TWAP, in case you might want to clean the chart up a bit and not plot the actual closing price lines.
But what is TWAP, exactly, you might be saying to yourself. If you're familiar with VWAP then you've probably a pretty good idea of what this is and how it works. TWAP is a calculation that defines the weighted average price over a specific time period. Traders use TWAP as a trading strategy, or more specifically, an execution strategy, to place large orders without excessively impacting the market price. They break down the large orders into several sets of small orders priced near TWAP. Basically it's VWAP but without the volume element, and most traders will likely use it in a similar fashion as they might use VWAP, and that is like a moving average--dynamic support and resistance.
I like to think of it as displaying a price range over a specified time period (such as a month or a week). This is why I think the closes of the previous period or two are so important. Losing the previous closing price or regaining it can often give you an inclination as to whether at least some of the next period (the one you're currently in) may be bearish or bullish.
Above is a more zoomed out view of ADA/USD
And here's the same image with just the closing price for the time period plotted.
Enjoy!
Nononseforex
+ Detrended Price OscillatorAccording to TradingView the Detrended Price Oscillator is an oscillator that removes trend from price in order to more clearly show an instrument's cyclical
highs and lows so that an investor or trader may more easily time when to buy or sell the underlying instrument. Accordingly, it is not meant to be used as a way of gauging momentum, however, I find it perfectly suitable for the task (at least when used "un-centered" which is how it comes by default here). If you wish to read up more on the DPO just search for it under indicators. It's built in, so you'll find all the information you need on it there. Or check investopedia.
On to the good stuff. What have I done and how does this work?
As un-centered you can use it just like any other momentum oscillator. Price above the zero line is bullish and below is bearish, generally speaking.
I've added two moving averages that you can turn on or off, and choose amongst various types and lengths. Both of these are colored based on trend.
The DPO is also colored based on trend, with a neutral color based on where the DPO is relative to the primary MA and the zero line.
Candles are colored in the same way that the DPO is.
I've added Bollinger Bands because they could be useful on an indicator like this.
All the alert conditions you could dream of.
With this set to centered you will notice that the DPO is not inline with current price. That is intentional, as it's only designed to look at historical price
data to time highs and lows of price movement. As such, I don't recommend using this when set to centered, at least if you're trading crypto. The price volatility
perhaps makes for inconsistent timing of cyclical highs and lows, or perhaps it's the rather brief amount of time cryptocurrencies have been in existence.
I do not know. Just stick to using it un-centered.
The above image shows the indicator with Bollinger Bands turned on and the MA's turned off. Also, you should note that the candle color and DPO color is based on the primary moving average you are using. If you want consistency, and want to use the Bollinger Bands, then keep your primary moving average set as a 20 SMA, as that is the basis for Bollinger Bands.
Hope this is helpful to you. Definitely pair it with an additional indicator like an RSI, or my +ADP. I like to use something rangebound to compare its signals to.
Crypto TrendThis indicator is based off of the Trend Follower system put together by jiehonglim:
This is a trend following system that combines 3 indicators which provide different functionalities, also a concept conceived by VP's No Nonsense FX / NNFX method. I’m primarily modifying this system for Crypto trading (mostly leveraged Crypto Futures). Suggestions/requests welcome.
New Features:
Added position inputs that will generate position labels
For leverage trading, position inputs will calculate your percentage-based stop loss given your entry, leverage and liquidation price
Added optional horizontal line plots for entry, stop loss, 50% take profit and 100% profit levels.
Added non-plotted Didi calculations for alert condition triggers
Added long and short alerts
These alerts will trigger for any of the 3 following conditions:
Baseline cross with volume confirmation
Didi two line cross with volume confirmation
Didi continuation with volume confirmation
1. Baseline
The main baseline filter is an indicator called Modular Filter created by Alex Grover
- www.tradingview.com
- Alex Grover - Modular Filter
-------
That's the moving average like baseline following price, filtering long and short trends and providing entry signals when the price crosses the baseline.
Entry signal indicated with arrows.
2. Volume / Volatility , I will called it Trend Strength
The next indicator is commonly known as ASH, Absolute Strength Histogram.
This indicator was shared by VP as a two line cross trend confirmation indicator, however I discovered an interesting property when I modified the calculation of the histogram.
- Alex Grover Absolute Strength
-------
My modification and other info here
- Absolute Strength Histogram v2
-------
I simplified the display of the trend strength by plotting squares at the bottom of the chart.
- Lighted Squares shows strength
- Dimmed Squares shows weakness
3. Second Confirmation / Exits / Trailing Stop
Finally the last indicator is my usage of QQE (Qualitative Quantitative Estimation), demonstrated in my QQE Trailing Line Indicator
- QQE Trailing Line for Trailing Stop
-------
Three usages of this amazing indicator, serving as :
- Second trend confirmation
- Exit signal when price crosses the trailing line
- Trailing stop when you scaled out the second trade
This indicator is plotted with crosses.
4. Position Calculator
For non-leveraged trades, set leverage to 1 and liquidation to 0
Fill out the rest of the position field to get labels that will tell you:
Your stop loss given your acceptable percentage of loss for your risk. So, for example if your actual investment is $200 and you’re trading on 20X leverage, you’d like to know what price would have to drop to for you to lose 15% of your $200 risk. This is what the position calculator is doing for you.
Your 50% take profit point
Your 100% take profit point
Check the “Show Position Lines” to plot horizontal lines for entry, stop loss, 50% TP and 100%TP
Alerts
You just get a Long Alert or Short Alert option. This was for two reasons, the first and most important was to reduce the number of alerts needed for this system to get maximum coverage. The second was just to keep things simple. Get an alert for your desired direction for any interesting signal and then check the chart manually to determine if a viable entry has presented itself. The three alert conditions are:
Main trend indicator, baseline cross with volume confirmation
Didi two line cross entry with volume confirmation
Didi continuation signal with volume confirmation
Additional plots and information
Bar Color
- Green for longs, Red for shorts, White when the baseline direction conflicts with the QQE trailing line direction
- When it's white, it's usually ranging and not trending, ASH will also keep you off ranging periods.
-------
ATR Filter
- White circles along the baseline, they will show up if the price has moved more than one ATR from the baseline
- The default allowance is 1 ATR.
-------
The previous and current ATR value
- Label on the right side of the chart showing the previous and current value of ATR
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.
[mya] ATR FilteredATR Filtered for NNFX trading.
A classic Average True Range (ATR) indicator with a simple feature to filter out the spikes.
The ATR value is the tool to determine your TP and SL on daily time-frame, specifically in the NNFX way of trading.
VP mentions in his podcast that when the ATR spikes up you have 2 options: 1. wait 14 candles for the ATR to normalize, 2. use the ATR value prior to the spike.
ATR spikes are easy to spot (thus easy to exclude) for an itraday flash crash.
On the other hand when volatility increases over several candles (as in the Covid-19 shock) it can be difficult to determine which ATR value to base your TP/SL on.
In definition of standard deviation, 95.4% of the value will fall within the 2 sigma bands. Therefore the rest 4.6% can be filtered out as an extreme value (a spike).
The ATR in this indicator will plot the standard ATR value in normal condition, then when the ATR spike happens it will stay at the highest value at the point, when the ATR exceeded its 2 sigma band.
The filtering will reset when the ATR comes back down below the extended highest value.
*Disclaimer: Use at your own risk. I am not a programmer, just another guy trying to beat this game. Let's go get it.
VP Backtester skeletonSimple backtesting skeleton script which uses ATR based stop & profit targets based on the no-nonsense forex way of trading