KeltnerModified + DonchianColoredKeltner Channel + color coded candles when making new Donchian highs/lows
Canaux de Donchian (DC)
Combo Backtest 123 Reversal & Donchian Channel Width 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 Donchian Channel was developed by Richard Donchian and it could be compared
to the Bollinger Bands. When it comes to volatility analysis, the Donchian Channel
Width was created in the same way as the Bollinger Bandwidth technical indicator was.
As was mentioned above the Donchian Channel Width is used in technical analysis to measure
volatility. Volatility is one of the most important parameters in technical analysis.
A price trend is not just about a price change. It is also about volume traded during this
price change and volatility of a this price change. When a technical analyst focuses his/her
attention solely on price analysis by ignoring volume and volatility, he/she only sees a part
of a complete picture only. This could lead to a situation when a trader may miss something and
lose money. Lets take a look at a simple example how volatility may help a trader:
Most of the price based technical indicators are lagging indicators.
When price moves on low volatility, it takes time for a price trend to change its direction and
it could be ok to have some lag in an indicator.
When price moves on high volatility, a price trend changes its direction faster and stronger.
An indicator's lag acceptable under low volatility could be financially suicidal now - Buy/Sell signals could be generated when it is already too late.
Another use of volatility - very popular one - it is to adapt a stop loss strategy to it:
Smaller stop-loss recommended in low volatility periods. If it is not done, a stop-loss could
be generated when it is too late.
Bigger stop-loss recommended in high volatility periods. If it is not done, a stop-loss could
be triggered too often and you may miss good trades.
WARNING:
- For purpose educate only
- This script to change bars colors.
Donchain BreakoutIt is a long only strategy.
1. Buy when price breaks out of the upper band.
2. Exit has two options. Option 1 allows you to exit using lower band. Option 2 allows you to exit using basis line.
3. Slippage and commissions are not considered in the return calculation.
Ichimoku Kinkō hyō Keizen 改MTF善The script is not finnished yet and show's an other interpretation of how it could be scripted
Step -1 is complete... Basic Ichimoku with asjutable length and editable lines colors and visibilities.
Step -2 in progress... Adding ability to une multiple Spans, sens and Kumo on higher and lower timeframe.
Your Step : Like and Share ;) have a good year 2020 !
2020-01-06 /--------/ -R.V.
Jan 06
Release Notes: The script is not finnished yet and show's an other interpretation of how it could be scripted
Step -1 is complete... Basic Ichimoku with asjutable length and editable lines colors and visibilities.
Step -2 in progress... Adding ability to une multiple Spans, sens and Kumo on higher and lower timeframe.
Your Step : Like and Share ;) have a good year 2020 !
2020-01-06 /--------/ -R.V.
Jan 07
Jan 13
Release Notes: MTF Ichimoku is on it's way !!
Jan 17
Release Notes: The script is not finnished yet and show's an interpretation of how it could be scripted
Step -1 is complete... Basic Ichimoku with asjutable length and editable lines colors and visibilities.
Step -2 in complete... Adding ability to use multiple Spans, sens and Kumo on higher timeframe.
Step -3 in progress... Creating a UNIX based function to framgments actual chart periods in subcandles or "Subprices/periods" to plot multiple Spans, sens and Kumo on LOWER timeframe.
Your Step : Like and Share ;) have a good year 2020 !
/--------Coder--------/ -R.V.
ATR-ranged Donch on 15min// This is a simple Mean Reversion & Breakout Indicator.
// A Donchian Channel is plotted. A threshold equal to 0.25 of Daily ATR.
// If price reverses from this threshold, then it can be taken as possible Mean Reversion.
// If price crosses the previous Donchian levels, it can be taken as a possible breakout.
// Typical of such strategy is the whipsaw effect when price movement is just flat.
// I have marked the region where the lower and higher thresholds are closer to be an indicative of whipsaw.
// But it is not really effective to avoid whipsaw.
Ichimoku Kinkō hyō Keizen 改善
The script is not finnished yet and show's an other interpretation of how it could be scripted
Step -1 is complete... Basic Ichimoku with asjutable length and editable lines colors and visibilities.
Step -2 in progress... Adding ability to une multiple Spans, sens and Kumo on higher and lower timeframe.
Your Step : Like and Share ;) have a good year 2020 !
2020-01-06 /--------/ -R.V.
Donchian Breakout StrategyThis strategy buys when the Donchian Channel is broken to the upside and uses the lower Donchian Channel line as a trailing stop. You can also choose to use a moving average as a filter to keep you out of trades that are counter trend.
You can also configure which dates you want to backtest, so you can see how this behaves over specific time frames and market cycles.
Donchian Channels Alert SystemThis time I was using an script/indicator that was originally written by ChrisMoody on 12-14-2014, as turned it an Alert System to know whether the price breaks above or below the donchian channel of 20 periods.
I would like to show you how easy is to use it and configure it to receive this alerts in your phone.
Here's a page about what Donchian Channels are for the ones that don't know already: www.investopedia.com
This simple indicator prints a green alert when the close price crosses above the upper band of the DC, and a red alert when the price crosses the lower band of the DC.
When these conditions are met, the indicator throws an alertcondition signal. You can personalize your Trading View alerts using this information.
Create new alert, In the condition select "DC Alert System" and below select "Break Above" or "Break Below" depending on the case you're looking for. Save the Alert and voila.
Simply as that.
The Donchian Channel period is set to 20 by default, but you can update it to what suit best for you.
Hope this is a +1 to your trade alert system.
Have a good day!
If you like this script please give me a like and comment below.
X Period High/Low/MidToday we have a simple, but endlessly versatile, indicator that plots the X Period High/Low/Mid of your chosen market.
Traditionally the 52 week High/Low is used as a breakout signal. However, by changing to an X period, and adding a midway line, we create a more versatile indicator that can be tailored to various markets.
By default it's set at 250 periods (because I like the 250 period moving average), and I generally trade H4 and Daily time frames. But tweak it to your liking, you just have to modify the length periods by your desired time frame and lookback length. E.g. to create a 52 week indicator on the daily time frame, enter a length of 260 in the indicator (5 days per week * 52 weeks = 260).
For the above reason, I haven't made this indicator MTF, as there's no real need. However, if users find it easier I can look at adding it later.
Also, the mid point between an X period high/low is often a good trend-follower, as well as acting as support/resistance . I encourage you to experiment with different ways of using this indicator. Entire systems (if your risk management is correct) can be built and traded from this one indicator.
Good luck.
DD
Adaptive ChannelThis indicator uses KAMA to adjust the length of a channel according to volatility.
A set up is generated when a candle closes below/above the mid point line; this is indicated via the background color.
Buy/sell on the break of the high/low of the signal candle.
Use the channel top/bottom as a stop (or a close above/below the mid pint line)
Real TurtleThere are a few different attempts at the turtle strategy on here, but none that I have seen thus far correctly follow the strategy as I know it. This version uses a stop order to trail out of the position by moving the stop order to match the exit channel or stoploss as the N*2( ema of True Range * 2). This version of turtle strategy also uses stop orders for entry on either side in order to enter at optimal time. The ability to specify a backtest period was borrowed from another script, I grabbed it so long ago I no longer remember from whom i borrowed it, if it was yours I will credit you if you PM me.
This version unlike others also allows you to specify a risk % so you only risk that percentage of your equity in a trade, as calculated from your stoploss.
Disclaimer: I have published several scripts in the past when i was first learning pinescript and they are all horrible please ignore those. I would delete them, but TV doesn't allow you to delete.
Rumpy's Donchian Anchored VWAPUses donchian points to anchor VWAPs (start a new VWAP interval). The defaults are set up for a 1H chart, with lookback periods of 1 day, 2 days, 1 week, 2 weeks and 4 weeks for the anchor points.
Green : upper donchian AVWAPs, Red : lower donchian AVWAPS, thin/1day to thickest/4 week.
Option to test whether a new point should be formed from a high or low exceeding the historical high/low over a lookback length or using a closes that exceed the historical high/low.
--------------------------------------
If you find it useful please consider a tip/donation :
BTC - 3BMEXEDyWJ58eXUEALYPadbn1wwWKmf6sA
Don-xSimple indicator that nased on two donochian bases each calculated slight different with MTF , where we based a faster of 240 min over slower of daily one on each other and we put on lower time frame (30 min, 1 hour or 2 hour )
hence we can see the bullish trend (green ) or bearish trend (green ) more easy
can be used as by its own (slight lag ) or with other indicators to see where the asset direction is
Volume Weighted Donchian ChannelsDonchian channels weighted with volume, they are now closer to the price and can cross it.
Donchian resistance and sup MTFThis model has Donchian channel support and resistance levels
if you want to buy and sell according to it then you need to activate the HIGH (resistance =sell) , LOW= support =buy
as you can make signal once they occur
It has MTF so you can see it in different time frame on your graph
Donchian 1Based on the donchian bollinger that made before , then we can build signal by the channel
with alerts , take profit and stop loss
Donchian as bollingerThis indicator give as a donchian channel as bollinger
when the coin bellow the median the asset is bearish zone and opposite when its above the median
you can change the time frame=now on 1440 min
and the standart deviation of the donchian as you wish
so this model try to make the donchian channel to be more flexible like bollinger to some extent
Trend Impulse FilterIntroduction
There is a lot of indicators similar to this one, however i think this one don't share the same calculation method and this is why i share it. This indicator aim to forecast price direction using an exponential filter architecture using highest and lowest information for the estimation of a smoothing variable. This filter is similar to the average Max-Min filter.
The Indicator
In the code a is equal to 1 when the price is greater or lower than any past price over length period, else a is equal to 0. The center parameter control the filtering degree of the output, when center is equal to 1 and a = 1 the indicator return the highest or lowest depending on market current trend, when center is superior to 1 the output will be smoother, however the reactivity of the indicator will still depend on the length parameter.
A color option show you the trend of the market, however the generated signals are the same that can be generated from a Donchian channel.
When highest is greater than previous highest the indicator direction will move upward, else if lowest is lower than previous lowest the indicator direction will move downward. Therefore the indicator can give information on the Donchian channels direction and provide a nice filter.
Conclusions
Adapting to highest and lowest can make an indicator adapt to the essence of trend trading, the indicator i showed can be used as source for others indicator or in MA crossover strategies. If you have a strategy using Donchian channels you may be interested in using this indicator and se how it fit in your strategy. Hope you like it.
Thanks for reading !
Donchian Channel TestingConditions:
1. Centre line above close long entry, exit centre line below close.
2. Centre line below close short entry, exit centre line below close.
3. But For now I coded like Long Exit becomes entry for Short and vice versa
Have to further Update
Motion To Attraction ChannelsIntroduction
Channels are used a lot on technical-analysis, however most of the them rely on adding/subtracting a volatility indicator to a central tendency indicator, sometimes the central tendency indicator can even be replaced by pure price. A great channel who does not rely on this kind of architecture is the Donchian channels or the quartiles bands. Here i propose a channel similar to the one made by Richard Donchian with some additional abilities.
The Channels
In my indicator, Motion To Attraction mean that the movement of an object a attract an object b , but we can resume this approach by saying that the longer a trend period is, the smaller the distance between each channels, for example if the price create a new highest then the lowest will move toward this new highest, each time coming closer. The philosophy behind this is that the longer a trend is the more probable it is that she will end.
The code reflect it this way :
here the parameter controlling the channel A (upper)
c = change(b) ? nz(c ) + alpha : change(a) ? 0 : nz(c )
this is traduced by : if channel b move then the parameter c become greater, if channel a move then reset the parameter , the parameter d do the same.
c is used to move the channel A, when c < 1 A is closer to the highest, when c = 1 A is in a central tendency point, when c > 1 A is closer to the lowest.
Slaving the Movement
It is possible to have a better control over the channels, this is done by making c and d always equal or lower than 1. Of course it could be another max value selected by the user.
In order to do that add c1 and d1 as parameter with c1 = c > 1 ? 1 : c , same with d1 but replace c by d.
Its safer to do this but i prefer how the channels act the other way, i will consider implementing this option in the future.
Conclusion
This channel indicator does not rely on past data thanks to recursion. The alpha variable at the start can also be adaptive, this let you make the channels adaptive even if such idea can add non desired results. Low length values can create effects where the lower channel can be greater than the higher one, this can be fixed directly in the code or using the method highlighted in the Slaving the Movement part.