Top Trend Backtest (Simple) [Loxx]Simple backtest for Top Trend found here:
What this backtest includes:
-Customization of inputs for Top Trend calculation
-Take profit 1 (TP1), and Stop-loss (SL), calculated using standard RMA-smoothed true range
-Activation of TP1 after entry candle closes
-Long and short signal cross entries
Happy trading!
Keltnerchannel
Top Trend [Loxx]Top Trend is a trend following indicator that signals breakouts and plots dynamic support and resistance levels.
Included:
-Calculation of Top Trend using either Bollinger Bands and Keltner Channels
This is an exact clone of the "TopTrend" for MT4 indicator
Keltner Channel Width Oscillator (KingThies)Definition
The Keltner Channel Width oscillator is a technical analysis indicator derived originally from the same relationship the Bollinger Band Width indicator takes on Bollinger Bands.
Similar to the Bollinger Bands, Kelts measure volatility in relation to price, and factor in various range calculations to create three bands around the price of a given stock or digital asset. The Middle Line is typically a 20 Day Exponential Moving Average while the upper and lower bands highlight price at different range variations around its basis. Keltner Channel Width serve as a way to quantitatively measure the width between the Upper and Lower Bands and identify opportunities for entires and exits, based on the relative range price is experiencing that day.
Calculation
Kelt Channel Width = (Upper Band - Lower Band) / Middle Band
More on Keltner Channels
Keltner channel was first described by a Chicago grain trader called Chester W. Keltner in his 1960 book How to Make Money in Commodities. Though Keltner claimed no ownership of the original idea and simply called it the ten-day moving average trading rule, his name was applied by those who heard of this concept through his books.
Similarly to the Bollinger Bands, Keltner channel is a technical analysis tool based on three parallel lines. In fact, the Keltner indicator consists of a central moving average in addition to channel lines spread above and below it. The central line represents a 10-day simple moving average of what Chester W. Keltner called typical price. The typical price is defined as the average of the high, low and close. The distance between the central line and the upper, or lower line, is equivalent to the simple moving average of the preceding 10 days' trading ranges.
One way to interpret the Keltner Channel would be to consider the price breakouts outside of the channel. A trader would track price movement and consider any close above the upper line as a strong buy signal. Equivalently, any close below the lower line would be considered a strong sell signal. The trader would follow the trend emphasized by the indicator while complementing his analysis with the use of other indicators as well. However, the breakout method only works well when the market moves from a range-bound setting to an established trend. In a trend-less configuration, the Keltner Channel is better used as an overbought/oversold indicator. Thus, as the price breaks out below the lower band, a trader waits for the next close inside the Keltner Channel and considers this price behavior as an oversold situation indicating a potential buy signal. Similarly, as the price breaks out above the upper band, the trader waits for the next close inside the Keltner Channel and considers this price action as an overbought situation indicating a potential sell signal. By waiting for the price to close within the Channel, the trader avoids getting caught in a real upside or downside breakout.
Bollinger Bands + Keltner Channel Refurbished█ Goals
This is an indicator that brings together Bollinger Bands and Keltner's Channels in one thing.
Both are very similar, so I decided to make a merge of the best features I found out there.
Here there is the possibility of choosing one of these two as needed.
In addition, I added the following resources:
1. Pre-Defined intermediate bands with Fibonacci values;
2. Detachment of the bands in which the price was present;
3. Choice of Moving Average:
"Simple", "Exponential", "Regularized Exponential", "Hull", "Arnaud Legoux", "Weighted Moving Average", "Least Squares Moving Average (Linear Regression)", "Volume Weighted Moving Average", "Smoothed Moving Average", "Median", "VWAP");
4. Statistics: bars count within the bands.
█ Concepts
Keltner Channels vs. Bollinger Bands
"These two indicators are quite similar.
Keltner Channels use ATR to calculate the upper and lower bands while Bollinger Bands use standard deviation instead.
The interpretation of the indicators is similar, although since the calculations are different the two indicators may provide slightly different information or trade signals."
(Investopedia)
Bollinger Bands (BB)
"Bollinger Bands (BB) are a widely popular technical analysis instrument created by John Bollinger in the early 1980’s.
Bollinger Bands consist of a band of three lines which are plotted in relation to security prices.
The line in the middle is usually a Simple Moving Average (SMA) set to a period of 20 days (the type of trend line and period can be changed by the trader; however a 20 day moving average is by far the most popular).
The SMA then serves as a base for the Upper and Lower Bands which are used as a way to measure volatility by observing the relationship between the Bands and price.
Typically the Upper and Lower Bands are set to two standard deviations away from the SMA (The Middle Line); however the number of standard deviations can also be adjusted by the trader."
(TradingView)
Keltner Channels (KC)
"The Keltner Channels (KC) indicator is a banded indicator similar to Bollinger Bands and Moving Average Envelopes.
They consist of an Upper Envelope above a Middle Line as well as a Lower Envelope below the Middle Line.
The Middle Line is a moving average of price over a user-defined time period.
Either a simple moving average or an exponential moving average are typically used. The Upper and Lower Envelopes (user defined) are set a range away from the Middle Line.
This can be a multiple of the daily high/low range, or more commonly a multiple of the Average True Range."
(TradingView)
█ Examples
Bollinger Bands with 200 REMA:
Keltner Channel with 200 REMA:
Bollinger Bands with 55 ALMA:
Keltner Channel with 55 ALMA:
Bollinger Bands with 55 Least Squares Moving Average:
█ Thanks
- TradingView (BB, KC, ATR, MA's)
- everget (Regularized Exponential Moving Average)
- TimeFliesBuy ("Triple Bollinger Bands")
- Rashad ("Fibonacci Bollinger Bands")
- Dicargo_Beam ("Is the Bollinger Bands assumption wrong?")
LNL Keltner ExhaustionLNL Keltner Exhaustion resolves the constant issue of Bands vs. EMAs
With the keltner exhaustion wedges, you can easily see the keltner channel extremes witout using the actual bands. That way, you will know whether the price is outside of the keltner channels + you can use other indicators (such as EMAs) on chart without the bands so the chart does not look messy & hard to read.
Two Types of Wedges:
1. Green/Red Wedge - Price action is extended outside the regular band. More of a "profit taking" zone rather than "entry taking" (default set to 3.0 ATR factor).
2. Purple Wedge - Price action is extended outside of the extreme band. Chances are price will revert to mean soon (default set to 4.0 ATR factor).
Works great as a target tool with the squeeze setup or as an overall extension gauge.
Hope it helps.
SSL + Wavetrend (7 indicators) by TradeSmartHello everyone! This script is implementing a strategy that uses 7 indicators: SSL, Wavetrend, SSL Hybrid, Keltner Channel, EMA, Candle Height and ATR. This is the 2nd best strategy that we have tested so far (based on the 100 backtests).
STRATEGY ENTRY RULES
Long entry: go long if SSL Hybrid is blue (between last candle and entry candle) and SSL Channel crosses up (green SSL line is on the top) and Wave Trend prints green dot (candle color turns yellow) and entry Candle Height is not higher than 0.6 and entry candle is inside the Keltner Channel and price target does not hit the 200 EMA.
Short entry: go short if SSL Hybrid is pink (between last candle and entry candle) and SSL Channel crosses down (red SSL line is on the top) and Wave Trend prints red dot (candle color turns blue) and entry Candle Height is not higher than 0.6 and entry candle is inside the Keltner Channel and price target does not hit the 200 EMA.
EXIT STRATEGY
The strategy will exit based on a set ATR value. Take profit and stop loss levels can be changed with risk/reward settings.
CHANGEABLE SETTINGS
Wave Trend: Channel Length, Average Length, Wave Trend Limit High, Wave Trend Limit Low
SSL: Period
SSL Hybrid: SSL1 / Baseline Type, SSL1 / Baseline Length, Base Channel Multiplier
Target Price Limit: can set 6 different limiters for long and short entries
Candle Height Limit: Limit based on, Candle Limit High, Candle Limit Low
Keltner Channel: Limit range long, Limit range short, Length, Multiplier, Source, Use Exponential MA, Bands Style, ATR Length
Exit strategy: ATR Length, ATR Smoothing, Stop Loss Multiplier (risk), Exit Price Multiplier (reward)
Setups: Capital Percentage, Risk Percentage, Allow Long Entries, Allow Short Entries
Date Range: Limit Between Dates, Start Date, End Date
Trading Time: Valid Trading Days
FIRST RELEASE SETTINGS FOR ALGOUSDT 30 M (3/19/2022)
Wave Trend: Channel Length = 11, Average Length = 19, Wave Trend Limit High = 27, Wave Trend Limit Low = -48
SSL: Period = 10
SSL Hybrid: SSL1 / Baseline Type = EMA, SSL1 / Baseline Length = 36, Base Channel Multiplier = 0.21
Target Price Limit: can set 6 different limiters for long and short entries: all false
Candle Height Limit: Limit based on: Candle Body (open/close), Candle Limit High = disabled, Candle Limit Low = enabled, 0.32
Keltner Channel: Limit range long = enabled, Full range, Limit range short = enabled, Full range, Length = 3, Multiplier = 1, Source = close, Use Exponential MA = enabled, Bands Style = Average True Range, ATR Length = 11
Exit strategy: ATR Length = 14, ATR Smoothing = EMA, Stop Loss Multiplier (risk) = 1.9, Exit Price Multiplier (reward) = 2
Setups: Capital Percentage = disabled, Risk Percentage = enabled, 1, Allow Long Entries = enabled, Allow Short Entries = enabled
Date Range: Limit Between Dates = disabled, Start Date, End Date
Trading Time: Valid Trading Days = 1234567
Hope you like this strategy, feel free to check all of our scripts. Thank you for your support!
multicolor Bollinger Bands (BB <-> KC)Concept:
After every low volatile phase comes a high volatile phase and after every high volatile phase comes a low volatile phase.
If the Bollinger bands are smaller then the Keltner channel (colored red), the price action is low in volatility… meaning a breakout (colored green) will happen soon.
If Bollinger band is bigger than the Keltner channel = green
If Bollinger band is smaller than the Keltner channel = red
Displaying the Keltner Channel is optional
If multicolor BB is disabled, BB color = blue (default color)
Customise colors to your liking under settings -> style
-----------------------------------
To get alerts for all coins
1. visit » tradingview.com/crypto-screener
2. set the filter to »
Bollinger Upper Band (20) below Keltner Channels Upper Band (20)
Bollinger Lower Band (20) above Keltner Channels Lower Bands (20)
3. add your own custom filters, like: exchange, marketcap, etc…
4. choose the timeframe you want
5. enable alerts
Keltner Channel With User Selectable Moving AvgKeltner Channel with user options to calculate the moving average basis and envelopes from a variety of different moving averages.
The user selects their choice of moving average, and the envelopes automatically adjust. The user may select a MA that reacts faster to volatility or slower/smoother.
Added additional options to color the envelopes or basis based on the current trend and alternate candle colors for envelope touches. The script has a rainbow gradient by default based on RSI.
Options (generally from slower/smoother to faster/more responsive to volatility):
SMMA,
SMA,
Donchian, (Note: Selecting Donchian will just convert this indicator to a regular Donchian Channel)
Tillson T3,
EMA,
VWMA,
WMA,
EHMA,
ALMA,
LSMA,
HMA,
TEMA
Value Added:
Allows Keltner Channel to be calculated from a variety of moving averages other than EMA/SMA, including ones that are well liked by traders such as Tillson T3, ALMA, Hull MA, and TEMA.
Glossary:
The Hull Moving Average ( HMA ), developed by Alan Hull, is an extremely fast and smooth moving average . In fact, the HMA almost eliminates lag altogether and manages to improve smoothing at the same time.
The Exponential Hull Moving Average is similar to the standard Hull MA, but with superior smoothing. The standard Hull Moving Average is derived from the weighted moving average ( WMA ). As other moving average built from weighted moving averages it has a tendency to exaggerate price movement.
Weighted Moving Average: A Weighted Moving Average ( WMA ) is similar to the simple moving average ( SMA ), except the WMA adds significance to more recent data points.
Arnaud Legoux Moving Average: ALMA removes small price fluctuations and enhances the trend by applying a moving average twice, once from left to right, and once from right to left. At the end of this process the phase shift (price lag) commonly associated with moving averages is significantly reduced. Zero-phase digital filtering reduces noise in the signal. Conventional filtering reduces noise in the signal, but adds a delay.
Least Squares: Based on sum of least squares method to find a straight line that best fits data for the selected period. The end point of the line is plotted and the process is repeated on each succeeding period.
Triple EMA (TEMA) : The triple exponential moving average (TEMA) was designed to smooth price fluctuations, thereby making it easier to identify trends without the lag associated with traditional moving averages (MA). It does this by taking multiple exponential moving averages (EMA) of the original EMA and subtracting out some of the lag.
Running (SMoothed) Moving Average: A Modified Moving Average (MMA) (otherwise known as the Running Moving Average (RMA), or SMoothed Moving Average (SMMA)) is an indicator that shows the average value of a security's price over a period of time. It works very similar to the Exponential Moving Average, they are equivalent but for different periods (e.g., the MMA value for a 14-day period will be the same as EMA-value for a 27-days period).
Volume-Weighted Moving Average: The Volume-weighted Moving Average (VWMA) emphasizes volume by weighing prices based on the amount of trading activity in a given period of time. Users can set the length, the source and an offset. Prices with heavy trading activity get more weight than prices with light trading activity.
Tillson T3: The Tillson moving average a.k.a. the Tillson T3 indicator is one of the smoothest moving averages and is both composite and adaptive.
Optimized Keltner Channels SL/TP Strategy for BTCThis strategy is optimized for Bitcoin with the Keltner Channel Strategy, which is TradingView's built-in strategy. In the original Keltner Channel Strategy, it was difficult to predict the timing of entry because the Buy and Sell signals floated in the middle of the candle in real time. This strategy is convenient because if the bitcoin price hits the top or bottom of the Keltner Channel and closes the closing price, you can enter Buy or Sell at the next candle start price. In addition, this strategy provides Stop Loss and Take Profit functions to maximize profit.
_________________________________
Recommended settings are below.
- length: 9
- multiplier: 1
- source: close
- (v) Use EMA
- Bands Style: Average True Range
- ATR Length: 19
- Stop Loss (%): 20
- Take Profit (%) : 20
_________________________________
- length: 9
- multiplier: 1
- source: close
- (v) Use EMA
- Bands Style: Average True Range
- ATR Length: 18
- Stop Loss (%): 20
- Take Profit (%) : 5
_________________________________
▶ Usefulness and Originality
- Stop Loss and Take Profit functions are available
- Convenient Buy and Sell entry compared to the original Keltner Channel Strategy
- Optimized for BTCUSD market (maximizing profits)
___________________________________________
이 전략은 TradingView의 Built-in 전략인 Keltner Channel Strategy를 비트코인에 맞게 최적화되었습니다. 기존의 Keltner Channel Strategy는 Buy, Sell 신호가 캔들 중간에 실시간으로 떠서 진입 시점을 예측하기 어려운 불편함이 있었지만 이 전략은 비트코인 가격이 Keltner Channel 상단 혹은 하단을 찍고 종가를 마감하면 그 다음 캔들 시작가에서 Buy 혹은 Sell 진입이 가능하여 편리합니다. 또한, 이 전략은 Keltner Channel을 만나서 캔들을 마감한 가격 (bprice, sprice)을 시각적으로 plot을 제공하여 타점 및 차트를 보기에 편리하며 손절가 및 목표가를 지정한 백테스팅이 가능합니다.
Optimized Keltner Channels Strategy for BTCThis strategy is optimized for Bitcoin with the Keltner Channel Strategy, which is TradingView's built-in strategy. In the original Keltner Channel Strategy, it was difficult to predict the timing of entry because the Buy and Sell signals floated in the middle of the candle in real time. This strategy is convenient because if the bitcoin price hits the top or bottom of the Keltner Channel and closes the closing price, you can enter Buy or Sell at the next candle start price. In addition, this strategy provides a visual plot of the price (bprice, sprice) at which the candle is closed by hitting Keltner Channel.
▶ Usefulness and Originality
- Convenient Buy and Sell entry compared to the original Keltner Channel Strategy
- Optimized for BTCUSD market (maximizing profits)
___________________________________________
이 전략은 TradingView의 Built-in 전략인 Keltner Channel Strategy를 비트코인에 맞게 최적화되었습니다. 기존의 Keltner Channel Strategy는 Buy, Sell 신호가 캔들 중간에 실시간으로 떠서 진입 시점을 예측하기 어려운 불편함이 있었지만 이 전략은 비트코인 가격이 Keltner Channel 상단 혹은 하단을 찍고 종가를 마감하면 그 다음 캔들 시작가에서 Buy 혹은 Sell 진입이 가능하여 편리합니다. 또한, 이 전략은 Keltner Channel을 만나서 캔들을 마감한 가격 (bprice, sprice)을 시각적으로 plot을 제공하여 타점 및 차트를 보기에 편리합니다.
Keltner Channel [LINKUSDT] 1HThis is a long-only strategy tested on LINK/USDT, 1 hour bar, from Feb 2019. The entry is determined by the breakout of upper Keltnel Channel and when the +DI is higher than 32. Instead of a fixed stop-loss from the original script , I change the exit to the middle band of the Keltnel Channel. 1st profit target will close 20% of the position. 2nd profit target will close 30% of the position. While the remaining 50% position will be closed when the price closes below the middle band of the Keltnel Channel, to take advantage of big trend. All parameters are adjustable. I added another option to enable or disable the ribbon trend filter.
My thoughts: For the same period, LINK appreciated 3000%. So I guess most in and out strategies couldn’t beat a buy and hold strategy during this period. But this doesn’t mean that this strategy is not feasible as each strategy is designed to only take advantage of a certain pattern or behavior of the market. Also, short term strategies allow you to use leverage and hence enable you to use you capital efficiently. Commission is set to 0.1%, taking account of the slippage.
Suggestion: Please perform walk forward analysis before you use real money for trading. Parameters need to be adjusted from time to time depends on your analysis. Can try using ATR for profit targets as over a longer term, the volatility might drop hence a high fixed % profit targets might not be realistic.
Any suggestions are welcome!
Combo Backtest 123 Reversal & Keltner Channel This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
The Keltner Channel, a classic indicator
of technical analysis developed by Chester Keltner in 1960.
The indicator is a bit like Bollinger Bands and Envelopes.
WARNING:
- For purpose educate only
- This script to change bars colors.
Keltner Color count [DinhChienFX]Use the synchronization of the 3 lines Basis, Upper, Lower to calculate whether the trend will continue or not.
1. Color the 3 lines Basis, Upper, Lower of the Keltner channel
- If the value of 3 Basis, Upper, and Lower lines in front of a candle increases, fill in green.
- If the value of 3 Basis, Upper, and Lower lines in front of one candle decreases, color in red.
- If 1 of the 3 lines Basis, Upper, and Lower are not in the same direction, paint in gray.
2. Identify the trend.
a. Assign a score for the channel color.
... If blue plus 1 point.
... If red subtracts 1 point.
... If gray gives 0 points.
b. Formula for calculating trend:
Take the total number of past candles. If total> 0 is an Up trend. If total <0 is the downtrend. If total = 0 is sideways.
...Uptrend
...Downtrend
Example: Counting 25 past candles equates to 1 day + 1 hour to determine a trend.
SVIEWThis is momentum based indicator
Input
1. Two EMA
2. Stochastic
Thought process
1. Difference between fast and slow ema has a oscillating nature.
2. Stochastic %k %d crossover gives early signals
3. early entry gives low risk high reward setup
Calculation
1. A= EMA (fast) - EMA (slow)
2. B =Stochastic(%K)-Stochastic(%D)
When A is increasing and B is positive, bar is green
When A is decreasing and B is negative, bar is red
Else, bar is black
Use
This is an early entry signal system. When used with Channel trading system, it gives high probability, low risk high reward setups
Example
When price has breached below -2 Keltner channel, and impulse candle turns green, go long (or sell put options )
29 minutes ago
Release Notes:
This is combination of
1. Ema diff
2. stochastic
3. Keltner channel
4. Bollinger bands
5. bunch of EMAs
Thought process
1. Difference between fast and slow ema has a oscillating nature.
2. Stochastic %k %d crossover gives early signals
3. early entry gives low risk high reward setup
Calculation
1. A= EMA (fast) - EMA (slow)
2. B =Stochastic(%K)-Stochastic(%D)
When A is increasing and B is positive, bar is green
When A is decreasing and B is negative, bar is red
Else, bar is black
Use
This is an early entry signal system. When used with Channel trading system, it gives high probability, low risk high reward setups
Example
When price has breached below -2 Keltner channel, and impulse candle turns green, go long (or sell put options )
Keltner Channel AlertSimple Keltner Indicator with a custom alert.
The alert should ring when any Band has the price crossing.
CBG Keltner ChannelsHere's an updated version of the CBG Keltner Channel indicator.
1. Added a new option for painting bars and backgrounds.
- Option 5 will paint up bars if the midline moving average is moving up and price is above the control moving average. It will paint down bars if the opposite is true. If neither are true, it will paint a neutral color. The neutral color defaults to gray bars and no color for backgrounds.
2. I've also added a 3rd band.
The chart here shows the default settings except for the inner band which is turned off.
NSDT Triple KeltnerA different spin on Keltner Channels. Using 3 channels of varying widths provides a good visual for potential entries off of extremes. Normal channel is center, green and red "zones" could be used as potential entry/exit areas, and the outside yellow zones may be viewed as extremes (signifying potential breakouts or strong reversal areas).
OneGreenCandle - Hull Keltner Channel
The Keltner Channel, a classic indicator of technical analysis developed by Chester Keltner in 1960.
The indicator is a bit like Bollinger Bands and Envelopes.
This variation uses the Hull Moving Average as the centre line for the channel.
Keltner | Bollinger | SqueezePercent B (%B), it's derivation Percent K (%K) and squeeze indicator combined in one.
blue line = bollinger %
orange line = keltner %
red background = squeeze*
squeeze = bollinger bands are inside (encapsulated by) keltner channel
Keltner Channels ProHello Fellow Traders!
Script Info
Keltner Channel uses Average True Range and Bollinger Bands uses Standard Deviation.
And if you compare the two, you’ll realize Keltner Channel is “smoother” version to Bollinger Bands.
I have included a one hour backtest including slippage and 0.075% commissions to meet most exchanges standards, as you can see it fairs quite well using the opportunities BUY & Sell the Keltner Channel breakouts.
FEATURES
------------------------
*Goat Alerts & Autoview Ready*
- Easy to Use
- DCA
- Take Profit
- Stop Loss
You can get access to any of my scripts by visiting my Website, all links are down below!
Keltner Channel Alerts [QuantNomad]This is a script with alerts for standard Keltner Channer Strategy you can find in TradingView.
Use "Once Per Bar" option when creating alerts.