DMT TEMPELTON PECK STRATEGYIntroduction Templeton Peck Strategy Version .
Bring your A-game to the market in A-Team style with DMT Templeton Peck – you’ll love it when this plan comes together!
Using customized standard deviations between historic price action ranges and volume metrics, DMT Templeton Peck enables traders to never miss a change in trend.
In its default state, the DMT Templeton Peck Strategy displays key information, such as:
• Small trend line
• Large trend line
• Position entry prices
• Take profit levels
• Stop levels
• Buy and sell trend signals
In addition to providing core functionality for the indicator’s strategy signals, traders can use this data to enter or exit trades.
When price crosses both trend lines and consolidates there is a high probability that price will continue to move in the same direction. The most profitable results are achieved when trading in the direction of the current large time frame trend.
When small and large trend lines cross a trading signal is generated which can be used to automate trades. Please see the ‘TradingView Alerts’ section of this document for further details.
The Small & Large trend line’s display can be toggled, and their colors modified in the indicator’s style options as shown below.
Basic Strategy
In its simplest form, the strategy is to buy when the price crosses and consolidates above both trend lines and sell when the price crosses and consolidates below both trend lines.
Set amount of first entry to the inputs data.
You can add a commission fee.
Adjust initial capital for your needs.
How to Trade
Confident traders may choose to enter a long position at the point
#1 when the price passes above both trend lines and begins to consolidate.
However, the safer trade is to wait for the trend lines to cross at a point
#2 and then look for an entry in the direction of the local trend.
One price action begins to reverse to the downside the strategy reverses. Confident traders may choose to enter point
#3 when the price passes both trend lines and begins to consolidate once again under the previous price action structure that is now acting as resistance.
A sell signal is generated at the point
#4 which produced a small profit; however, a new short position could have been opened when the price retraced to resistance at a point
#5 and experienced a repeated number of strong rejections.
Do not worry if you miss a trade as there is often more than a single opportunity to enter – like at position #5 when price action retests the previous local price structure as resistance.
The indicator can be used on smaller time frames to scalp or find an entry after a larger time frame has signaled, however smaller time frames will also be “choppy” and should only be traded with a paper-tested strategy.
Traders should take profit on positions at resistance & support levels and look to have fully exited the trade by the time the price crosses back over both trend lines and/or loses a previously established price level.
Indicator Tuning
In its default state, the indicator is tuned for swing trades using 30 minute & 1 hour time frames, however, you are encouraged to experiment with the indicator options.
The input also allows you to set separately longs and shorts for a better view of the trend and to avoid hunts.
Large & Small Length options define how many historic candles are used for the calculation of the relevant trend line.
As a rule of thumb, larger time frames would use smaller values and smaller time frames would use larger values, ie. On a daily chart, a large and small length could be defined as 400 and 100 respectively.
Please be aware that there are limits to the amount of historical data for any intraday level based on your TradingView subscription level:
• Basic – 5000 bars/candles
• Pro & Pro+ - 10000 bars/candles
• Premium – 20000 bars/cables
TradingView Backtest
By utilizing TradingView backtest you can set a specific date for your analysis.
Deviation
TrendTracers Bitcoin Stock to Flow ModelFor the best results, make sure to view this indicator on a bitcoin chart with a very long history (e.g. BNC:BLX)!
This model treats Bitcoin as being comparable to commodities such as gold, silver or platinum. These are known as ‘store of value’ commodities because they retain value over long time frames due to their relative scarcity. It is difficult to significantly increase their supply i.e. the process of searching for gold and then mining it is expensive and takes time. Bitcoin is similar because it is also scarce. In fact, it is the first-ever scarce digital object to exist. There are a limited number of coins in existence and it will take a lot of electricity and computing effort to mine the remaining coins still to be mined, therefore the supply rate is consistently low.
The stock-to-flow model predicts value changes in a straightforward manner. It compares an asset’s current stock to the rate of new production, or how much is produced in a year.
Calculation:
Take bitcoin production in a period, divide it by that period and then multiply by 365 to get the estimated yearly production and then calculate the stock to flow.
yearlyFlow = ((stockChange) / period ) * 365
stockToFlow = (stock - missingBitcoins) / yearlyFlow
Model Value = -1.84ᵉ * stockToFlow³.³⁶ (mathematical model to calculate the model price)
For more information about the calculations followed: stats.buybitcoinworldwide.com
Features:
Works on the Daily, Weekly and Monthly Timeframe.
Allows you to adjust between a 10-day period and a 463-day period.
Has the option to account for missing bitcoins, lets you adjust the amount of missing bitcoins.
The ability to toggle a standard deviation of the Model Value with a multiplier of 1, 2 or 3
Displays a Stock to Flow Deviation Ratio: If the Deviation Ratio is close to 0 it means the price of Bitcoin is close to the Model Value Line(or Stock to Flow Ratio). If the Deviation Ratio is close to 1 or -1, it means the price of bitcoin is near the selected deviation levels.
You can toggle between the Overlay version and the Oscillator version, default is on Oscillator version. If you want to switch: Untick Oscillator mode in the indicator settings, click on the three dots and select "move to existing pane above". Then click on the three dots again and select Pin to scale A. Done!
As a bonus: Now you can toggle a "1-year Realized Price" graph, while it's not officially part of the Stock to Flow Model it does share similar technicals about supply and scarcity. The 1-year Realized Price is the realized market cap divided by total amount of generated coins.
I just noticed that, while the color gradient function is pretty cool, it does not allow for end users to customize their colors after applying this indicator to their chart. Sorry!
Loft Strategy V4This strategy is an advanced version of the Loft Strategy V1, I shared earlier. (Loft Strategy V1 consists of a kalman filter (by alexgrover ) and a "stop and reverse" line which is following and the kalman filter. If the price goes in the same direction as the position side, the "stop and reverse" line approaches the kalman filter as set on the "Approach Decrease Step" parameter.)
In addition to the previous version, it includes a martingale like deviation and multiple take-profit.
Here it is some parameters definitions of the strategy:
Kalman Filter: The higher this parameter, the faster and more aggressive the filter. Otherwise the filter goes very smoothly
Beginning Approach: First approximation as a percentage of stop-n-reverse line
Final Approach: Minimum approximation of stop-n-reverse line
Approach Decrease Step: If the price moves in the same direction as the strategy, the approach percentage is reduced by this parameter. Otherwise nothing do
Base Order Quantity: Initial capital of position
Max Safe Order Attempt: This parameter determines the maximum number of times the strategy will raise the bet after losing in a row.
Safe Order Deviation: if the last trade is loss, multiply the bet by this parameter (aka. martingale factor)
Profit Deviation: if last trade in loss, multiply the take-profit points
Max Order Quantity: Maximum capital allowed for a position
TP1, TP2, TP3 : Take profit spots in percentage
QT1, QT2, QT3: Amount of take-profit spots
Stop Loss: Maximum stop loss allowed for a trade
Long Entry, Short Entry: Only long side, only short side or both side
Safe Stop After TP2: If the price reaches the TP2 point, move the stop-loss point to the entry price.
Safe Stop After TP1: If the price reaches TP1, move the stop-loss point to the stop-n-reverse line.
Weighted Standard Deviation BandsLinearly weighted standard deviations over linearly weighted mean.
The rationale of the study can be deduced from my latest publications where I go deeper into explaining the benefits of linear weighting, but in short, I can remind that by using linear weighting we are able to increase the information gain by communicating the sequential nature of time series to the calculations via linear weighting.
Note, that multiplier parameters can take both negative and positive values resulting in ability to have, for example, 1st and 6th weighted standard deviations higher than the weighted mean.
Despite the modification of the classic standard deviation formula, I assume that mathematical qualities of standard deviation will hold due to the fact we can alternately weight the window itself, and then apply the classic standard deviation over the weighted window. In both cases, the results will be the same.
Aight that was too formal, but your short strangles should be happy
Here is it, for you
Anchored TWAP with StDev Bands [MrShadow]TWAP with:
- Anchoring: Custom, Day, Week, Month, Quarter, Year (custom anchoring can be selected by dragging a vertical line through the chart)
- Standard Devation Bands
- Auto-coloring depending on the trend
Ergodic Mean Deviation Indicator [CC]The Ergodic Mean Deviation Indicator was created by William Blau and this is a hidden gem that takes the difference between the current price and it's exponential moving average and then double smooths the result to create this indicator. This double smoothing of course creates a lag that allows it to give off a sustained buy signal during a bullish trend and vice versa. This is a very fun indicator to experiment with and surprised that no one on here gives William Blau much attention so I will go ahead and publish the rest of his scripts eventually. I have included strong buy and sell signals in addition to normal ones so strong signals are darker in color and normal signals are lighter in color. Buy when the line turns green and sell when it turns red.
Let me know if there are any other indicators or scripts you would like to see me publish!
[UPRIGHT Trading] Top & Bottom Finder [Premium]Hello Traders,
Today I'm releasing an updated version of my previous Top & Bottom Finder (M.Right_Top & Bottom Finder 1.0).
The timing of this release couldn't be more perfect with everyone trying to 'find the bottom'. And the increased volatility that we've been seeing as of late.
Essentially, my indicator uses volatility and standard deviations among other things to assist you in finding the top or bottom of trends. You may also notice that it uses a lot of different strength indicators to provide an additional layer of complexity and confirmation.
Not just an RSI, but an RSI ema, smoothed OBV RSI's, and other volume RSI's. This is a truly unique and powerful tool for any Trader - whether you've just started or you've been trading for 20 years, I'm confident you will find value in the UPRIGHT Trading Top & Bottom Finder.
How to use it:
When it detects the trend Bottoming or Topping the histogram will change color. Bottom - Green/blue, Top - Red, (different shades of colors for different types of detection).
I've spent several hours tweaking the calculations and filters to enhance the accuracy, so this will be a noticeable upgrade from my original Top & Bottom Finder.
The length of the histogram bar can be an indication in itself, especially when it lines up close to one of the plotted lines and has noticeable direction change following this.
I've added a lot of text and pictures to help display it's capabilities, features, and customizability.
As always, it's fully customizable with alerts. Can toggle any thing on or off, and change the colors to suit your style.
3 Unique RSI's, different colors on the histogram will show different levels of detection. Some are more accurate in some timeframes than others. Bright Green and Bright Red are the most different from the rest.
I've jam-packed this indicator with Buy/Sell and Confirmation Signals and even background highlights (with colors that can mesh together). Feel free to find what works best for you.
RSI color indications and background highlights aid in confirmation. Also, as mentioned previously, sometimes a gray bar will land on a Fib and it will be a bottom signal.
The above chart should look like this
Good luck Traders,
Cheers,
Mike
(UPRIGHT Trading)
Time-of-Day DeviationCreates a 'Time-of-Day' Deviation cone starting from the first bar of the session based upon data from previous days.
DailyDeviationLibrary "DailyDeviation"
Helps in determining the relative deviation from the open of the day compared to the high or low values.
hlcDeltaArrays(daysPrior, maxDeviation, spec, res) Retuns a set of arrays representing the daily deviation of price for a given number of days.
Parameters:
daysPrior : Number of days back to get the close from.
maxDeviation : Maximum deviation before a value is considered an outlier. A value of 0 will not filter results.
spec : session.regular (default), session.extended or other time spec.
res : The resolution (default = '1440').
Returns: Where OH = Open vs High, OL = Open vs Low, and OC = Open vs Close
fromOpen(daysPrior, maxDeviation, comparison, spec, res) Retuns a value representing the deviation from the open (to the high or low) of the current day given number of days to measure from.
Parameters:
daysPrior : Number of days back to get the close from.
maxDeviation : Maximum deviation before a value is considered an outlier. A value of 0 will not filter results.
comparison : The value use in comparison to the current open for the day.
spec : session.regular (default), session.extended or other time spec.
res : The resolution (default = '1440').
[cache_that_pass] 1m 15m Function - Weighted Standard DeviationTradingview Community,
As I progress through my journey, I have come to the realization that it is time to give back. This script isn't a life changer, but it has the building blocks for a motivated individual to optimize the parameters and have a production script ready to go.
Credit for the indicator is due to @rumpypumpydumpy
I adapted this indicator to a strategy for crypto markets. 15 minute time frame has worked best for me.
It is a standard deviation script that has 3 important user configured parameters. These 3 things are what the end user should tweak for optimum returns. They are....
1) Lookback Length - I have had luck with it set to 20, but any value from 1-1000 it will accept.
2) stopPer - Stop Loss percentage of each trade
3) takePer - Take Profit percentage of each trade
2 and 3 above are where you will see significant changes in returns by altering them and trying different percentages. An experienced pinescript programmer can take this and build on it even more. If you do, I ask that you please share the script with the community in an open-source fashion.
It also already accounts for the commission percentage of 0.075% that Binance.US uses for people who pay fees with BNB.
How it works...
It calculates a weighted standard deviation of the price for the lookback period set (so 20 candles is default). It recalculates each time a new candle is printed. It trades when price lows crossunder the bottom of that deviation channel, and sells when price highs crossover the top of that deviation channel. It works best in mid to long term sideways channels / Wyckoff accumulation periods.
Ehlers Deviation Scaled Super Smoother [CC]The Deviation Scaled Super Smoother was created by John Ehlers and this is an excellent moving average that changes direction very quickly and can keep up with the current underlying trend. This indicator works by applying a Hann Windowed Moving Average to the stock's momentum and scaling that by the Root Mean Square and then using that value in the input for a Super Smoother . I have included strong buy and sell signals in addition to normal ones so lighter colors are normal signals and darker colors are strong ones. Buy when the line turns green and sell when it turns red.
Let me know if there are any other scripts you would like to see me publish!
WhaleCrew Crypto ArbitrageVisualizes the price difference (deviation) off BTC/ETH across multiple exchanges (Spot and/or Perpetuals)
Spot prices are represented by circles, while perpetual prices are shown as crosses.
Spot:
Binance
FTX
Bitfinex
Coinbase
Perpetuals:
Binance
FTX
Bybit
BitMEX
Volume TrendsThis script provides clear volume trends on any time frame. You set a long term volume trend moving average (ex 100 periods). A shorter term MA of your choice (10 in this example) will oscillate above and below based on the standard deviations of its current value relative to the long term #.
Similarly, large volume bars are plotted in terms of st dev above the long term MA.
Very useful in spotting capitulation bottoms and/or blow-off tops.
M.Right_Top & Bottom Finder 1.0Thank you @Lazybear for the calculations for squeeze and BB, and all of the other great pine-coders who inspired me to create my own indicator to share!
This is the result of hours of work learning to code pine and tweaking until everything fits exactly what I was looking for.
After using it for a while and seeing the benefits personally, I figured now might be a good time to share with everyone while we are in such great market volatility, maybe I can save you some losses.
Basically, my indicator is meant to use volatility and standard deviations to show you the top and bottom of trends.
It does indeed work on lower timeframes, I typically use it on 5m, 30m, 4hr, and 1d.
What to look for:
When it detects the trend bottoming it will send a green histogram bar down, I also created a different shade green for even more likely bottoms.
When it detects the top of the trend it will send a red bar up, I have a brighter red for more certain tops.
The length of the histogram bar is also an indication as well. Sometimes there will be a reversal while still just showing the gray bar.
I just added alerts, so hopefully those work. If not, I will update.
Let me know if you have any questions, and enjoy.
Cheers!
Standard deviation of the exponential moving average
This indicator emphasizes price movements when it moves away from or closer to the chosen moving average, within the envelope of its standard deviation. It serves as a complement to other indicators or can be used within a strategy by itself.
Bias(Deviation Rate)Deviation rate (BIAS), by calculating the distance between the closing price and a moving average to reflect the reversal created by the degree of deviation between the price and the moving average during a certain period of time.
Above the zero axis is called positive deviation and belongs to the bullish zone, while below the zero axis is called negative deviation and belongs to the bearish zone.
Regardless of whether it is a positive deviation or a negative deviation, whenever the gap between the stock price and the moving average becomes larger, it means that the stock price has an overbought/oversold condition, and a high probability will result in a reversal.
Tradingview ToolkitA new trader's biggest barrier to entry is lack of understanding where they are in terms of time and price and with tradingview free they are often limited to just 1 or 2 extra indicators as many new traders slap on RSI and MACD as 2/3 free ones. While these indicators are fine for trend analysis, its important to know where the price is in relation to time. Thus, this all-in-one script is meant to have a lot of customizable utility to save on indicator spots and act as a hotspot for many common needs.
-2 Sets of VWAP line w/ standard deviation bands with customizable timeframes.
-1 more customizable timeframe VWAP line (no std dev bands) to use as a long time frame reference
-Ability to plot previous VWAP close prices over current timeframe on all VWAP lines w/ basic color changing if price closes above/below
-2 Sets of Bollinger Bands with customizable source length and MA type
-3 customizable moving averages with custom timeframe/resolutions
-Inside candle barcolor repainter to easily notice if a candle was inside the range of the previous candle (price contraction)
Not meant to have everything on at once, but simply a place to enable and disable different things and save spots for more important things
HuD DE | TEHuD DE | TE Expert is a combination of two indicators.
1. DE or Deviation Expert
DE is based on ema5 and ema20. This MA algorithm is to filter signals such as trend and convergence/divergence. It is represented by HA Candles.
There are 4 signals to assist traders in making decisions
i. Golden Cross = possible entry point ( Green Triangle )
ii. Death Cross = possible exit point ( Red Triangle )
iii. Cross Up Level 0 = look for Buy opportunity ( Green Diamond )
iv. Cross Down Level 0 = look for Sell opportunity ( Red Diamond )
There are also ema lines to monitor the movement of current candle movement.
2. TE or Trend Expert
TE is based on ema5 movement to assist traders to see the overall trend of chart movement.
The movement is represented by HA Candles.
There are 4 ema's lines to monitor HA Candles movements.
This lines act as support / resistance which can assist traders to see the current trend of the chart.
For example, if line is green ( Uptend) and the next candle drop below the first green ema lines, next line (ema10) acts as support.
If next candle breaks ema10, we can consider making an exit plan. Or for swing traders, they can consider waiting until candle drop below ema50 ( purple line ) before deciding to exit.
Note: This indicator setting only suitable for Bursa Malaysia market.
SKYNET buy/sell 2.0The SKYNET buy/sell 2.0 indicator generates buy and sell signals based on the following conditions:
**Anchor line : This anchor line is calculated based on certain parameters.
The anchor line is calculated in such a way that the stock/instrument moves around this anchor line.
The calculation of the anchor line uses a look back period which is set to 9 by default. The user can go to the indicator settings and change it to suit their trading style.
Note:
1) As the look back period increases, the number of signals generated on the chart decreases.
2) This indicator will only work on charts/stocks/instruments which are actually traded in the market i.e actual contracts of the stock/instrument is traded in the market. Hence, it will not work on indexes.
BUY signal: When the stock/instrument deviates to the upside of the anchor line by a specific margin, the Buy signal is generated.
SELL signal: When the stock/instrument deviates to the downside of the anchor line by a specific margin, the Sell signal is generated.
Disclaimer: This indicator is not 100% accurate and false signals are generated from time to time. Trading in the markets involves huge risks and one should always do his/her own research before making any trading decisions. This indicator is only designed to help you make a trading decision.
Risk Position Sizing tool using Coefficient of VariationA way to manage portfolio risk using relative standard deviation, also known as coefficient of variation. This tool tells you how much of each stock in shares and in value to buy adjusted for their volatility risk for a given starting account capital. A problem many people have is how to diversify an account and adjusting it for the risk involved in each equity. Many would put in an equal amount of capital value into each share but is it really equal if some equities have more risk than others? A solution is to adjust the portfolio by giving less weight to those that are more volatile or risky. It's done by using a starting percent of the account, preferably a small percent of it, and buying up shares with that same amount for each equity. Each equity will also be divided by the COV to risk adjust the portfolio by giving less weight to the more volatile stocks. This is done until as much of the initial capital in the account as possible is spent.
COV is how far away the price is from the mean or average. The further the price is from the mean the more risk or volatility there is. It uses standard deviation in its calculation. The problem with SD and ATR is that they are not relative to the past or to other equities to compare to. An application where COV can be used is risk portfolio management formulas. This does not take into account correlation or other equation parts in some portfolio management formulas but only the risk or volatility, the default volatility length is mostly arbitrary, and the lower risk stocks may end up being the slowest in performance.
The text label will show how many shares will be bought and how much value each equity will have. At the end it will show the initial capital that was started off with, the total shares bought, the total value of all the shares, and the amount of capital left over. If the sources are not blank then they will be used, to blank them you will need to reset the settings to default otherwise they might still be read. If you want to add more than the given 10 equity spaces to the portfolio then you will need to add in the code manually and add it to the chart. The denominator is perhaps the important part in these types of risk position sizing tools, you can change to other things such as risk-reward ratio instead of volatility or change the volatility type, etc.
VWAP Alerts V3VWAP Alerts signal over bought/over sold conditions, relative to volume weighted average price, while deviation bands plot an extremely accurate point of mean reversion.
VWAP Alerts V3 includes multiple timeframe selection, along with multiplier input for deviation band setting
Alerts can be set for each individual band, for extreme oversold/overbought conditions, use "Vwap Low Deviation 4" and "Vwap High Deviation 4".
Alerts can also be set for VWAP bounces, by simply setting "VWAP Alert"
VWAP Oscillator CandlesThe VWAP oscillator plots VWAP as the zero line with price, relative to VWAP. This can be use the same way you would traditionally use VWAP, with a much clearer picture of deviation from VWAP. Also, after creating the script, I noticed divergence was extremely noticeable here!
Enhanced Sigma by Cryptorhythms [CR]Enhanced Sigma by Cryptorhythms
Sigma is basically the deviation of returns compared to past returns. The higher / lower the value, shows you how deviated from the average this current bars returns are.
While perhaps not usable as a complete strategy for entering and exiting, its still quite useful and informative. It can give interesting signals as to potential turning points in price action. This behavior extends to all timeframes both long term and short term.
There are 2 overbought and oversold zones here inthe indicator. One is adaptive and will change to suit the shorter term giving your extra potential signals. The fixed line shows a general level for highly deviated values.
Expect a number of further totally unique and exclusive sigma based indicators from CR in the near future. We are nowhere near done extracting the alpha from this concept!
How to get access
This indicator is available for standalone purchase or as part of our subscription options. Please see my signature or profile for more information or contact me directly.