Multiple Trend Overview
-----------------
Hey there!
The indicator is used for both an overall and a short trend assessment. Both superordinate structures and subordinate movements are mapped. With the help of calculations via Ema , MACD and other tools, graphic trends can be visualized.
The green areas always signal an uptrend, while the red areas indicate a downtrend. The red & blue ema enclose the area of the minor trend. Orange & Green signal the overall trend. Ideally, both Ema faces run in the same direction as the multi-color line. Special alerts in the charts show this again directly in the chart. The multiple setting to display the trends from different time frames is innovative!
For all asset classes!
The indicator is designed for the m30 chart. But it can also be used well on other time frames. In addition, the display can be adjusted via the options and set to any time frame. The indicator has various settings and options that can be activated or deactivated separately.
Caution: Past results do not guarantee future profits!
Follow the link below to get access to this indicator or get us a PM to get access.
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
-----------------
Willkommen!
Der Indikator dient sowohl für eine übergeordnete als auch eine untergeordnete Trendeinschätzung. Hierbei werden sowohl übergeordnete Strukturen als auch untergeordnete Bewegungen abgebildet. Mit Hilfe von Berechnungen über Ema , MACD und weiteren Hilfsmittel lassen sich grafische Trends visualisieren.
Die grünen Flächen signalisieren immer einen Aufwärtstrend, während die roten Flächen einen Abwärtstrend anzeigen. Der rote & der blaue Ema schließen die Fläche des untergeordneten Trends ein. Orange & Grün signalisieren den übergeordneten Trend. Idealerweise laufen beide Ema Flächen in die gleiche Richtung wie die Multi-Farben Linie. Spezielle Alerts im Charts zeigen dies auch nochmal direkt im Chart. Innovativ ist die multiple Einstellung die Trends aus verschiedenen Timeframes abzubilden!
Für alle Asset Klassen!
Der Indikator ist für den m30 Chart ausgelegt. Lässt sich aber auch auf anderen Timeframes gut nutzen. Zusätzlich kann die Anzeige über die Optionen angepasst werden und auf jede Timeframe eingestellt werden. Der Indikator besitzt verschiedene Einstellungsmöglichkeiten und Zusätze die separat aktiviert oder deaktiviert werden können.
Achtung: Vergangene Ergebnisse garantieren keine zukünftigen Gewinne!
Verwenden Sie den folgenden Link, um Zugriff auf diesen Indikator zu erhalten oder schreibe uns eine PM um Zugriff zu erhalten.
Trendfollowing
ATR with MAOVERVIEW
The Average True Range Moving Average (ATRMA) is a technical indicator that gauges the amount of volatility currently present in the market, relative to the historical average volatility that was present before. It adds a moving average to the Average True Range (ATR) indicator.
This indicator is extremely similar to the VOXI indicator, but instead of measuring volume, it measures volatility. Volume measures the amount of shares/lots/units/contracts exchanged per unit of time. Volatility, on the other hand, measures the range of price movement per unit of time.
The purpose of this indicator is to help traders filter between non-volatile periods in the market from volatile periods in the market without introducing subjectivity. It can also help long-term investors to determine market regime using volatility without introducing subjectivity.
CONCEPTS
This indicator assumes that trends are more likely to start during periods of high volatility, and consolidation is more likely to persist during periods of low volatility. The indicator also assumes that the average true range (ATR) of the last 14 candles is reflective of the current volatility in the market. ATR is the average height of all the candles, where height = |high - low|.
Suppose the ATR of the last 14 candles is greater than a moving average of the ATR(14) of the last 20 candles (this occurs whenever the indicator's filled region is colored BLUE). In that case, we can assume that the current volatility in the market is high.
Suppose the ATR of the last 14 candles is less than the moving average of the ATR(14) of the last 20 candles (this occurs whenever the indicator's filled region is colored RED). In that case, we can assume that the current volatility in the market is low.
HOW DO I READ THIS INDICATOR?
If the ATR line is above the ATR MA line (indicated by the blue color), the current volatility is greater than the historical average volatility.
If the ATR line is above the ATR MA line (indicated by the red color), the current volatility is less than the historical average volatility.
[DMG] REVEREND v2REVEREND (RSI based Trend Reversal Indicator)
Info:
This is an RSI based convergence divergence (like MACD) indicator using SMAs or DEMAs for smoothing.
You can optionally filter the signals with the stochastic momentum indicator (SMI) levels or via simple overbought/oversold RSI levels.
Signals:
Purple is the Slow MA, Green is the Fast MA, Blue is the SMI (Momentum).
Buy and Sell signals are shown as circles (yellow on top sell, green on bottom buy)
The histogram is for easier differentiation (like macd) zero crossings creating the signals.
Usage:
Settings can never be perfect for any indicator, defaults should be good for BTC, ETH.
Sell signals should be taken with falling momentum, buys with rising momentum.
Watch out for false signals if Momentum is still rising while it prints a sell signal it is most likely false, you can filter these by using longer MAs but then it becomes more lagging.
A sufficiently fast fast-MA can be used for tracking RSI itself and since it also displays the stoch. momentum signal you can also check for divergences yourself or anticipate moves by their slope.
This is my main indicator for a year now and I wish I had followed it more ;) I additionally use EMAs, VWAP, Divergences and Volume Indicators, just remember price is king.
If you have questions or additional ideas I'd be happy to read them!
Good Luck! :D
EMA bands + leledc + bollinger bands trend following strategy v2The basics:
In its simplest form, this strategy is a positional trend following strategy which enters long when price breaks out above "middle" EMA bands and closes or flips short when price breaks down below "middle" EMA bands. The top and bottom of the middle EMA bands are calculated from the EMA of candle highs and lows, respectively.
The idea is that entering trades on breakouts of the high EMAs and low EMAs rather than the typical EMA based on candle closes gives a bit more confirmation of trend strength and minimizes getting chopped up. To further reduce getting chopped up, the strategy defaults to close on crossing the opposite EMA band (ie. long on break above high EMA middle band and close below low EMA middle band).
This strategy works on all markets on all timeframes, but as a trend following strategy it works best on markets prone to trending such as crypto and tech stocks. On lower timeframes, longer EMAs tend to work best (I've found good results on EMA lengths even has high up to 1000), while 4H charts and above tend to work better with EMA lengths 21 and below.
As an added filter to confirm the trend, a second EMA can be used. Inputting a slower EMA filter can ensure trades are entered in accordance with longer term trends, inputting a faster EMA filter can act as confirmation of breakout strength.
Bar coloring can be enabled to quickly visually identify a trend's direction for confluence with other indicators or strategies.
The goods:
Waiting for the trend to flip before closing a trade (especially when a longer base EMA is used) often leaves money on the table. This script combines a number of ways to identify when a trend is exhausted for backtesting the best early exits.
"Delayed bars inside middle bands" - When a number of candle's in a row open and close between the middle EMA bands, it could be a sign the trend is weak, or that the breakout was not the start of a new trend. Selecting this will close out positions after a number of bars has passed
"Leledc bars" - Originally introduced by glaz, this is a price action indicator that highlights a candle after a number of bars in a row close the same direction and result in greatest high/low over a period. It often triggers when a strong trend has paused before further continuation, or it marks the end of a trend. To mitigate closing on false Leledc signals, this strategy has two options: 1. Introducing requirement for increased volume on the Leledc bars can help filter out Leledc signals that happen mid trend. 2. Closing after a number of Leledc bars appear after position opens. These two options work great in isolation but don't perform well together in my testing.
"Bollinger Bands exhaustion bars" - These bars are highlighted when price closes back inside the Bollinger Bands and RSI is within specified overbought/sold zones. The idea is that a trend is overextended when price trades beyond the Bollinger Bands. When price closes back inside the bands it's likely due for mean reversion back to the base EMA in which this strategy will ideally re-enter a position. Since the added RSI requirements often make this indicator too strict to trigger a large enough sample size to backtest, I've found it best to use "non-standard" settings for both the bands and the RSI as seen in the default settings.
"Buy/Sell zones" - Similar to the idea behind using Bollinger Bands exhaustion bars as a closing signal. Instead of calculating off of standard deviations, the Buy/Sell zones are calculated off multiples of the middle EMA bands. When trading beyond these zones and subsequently failing back inside, price may be due for mean reversion back to the base EMA. No RSI filter is used for Buy/Sell zones.
If any early close conditions are selected, it's often worth enabling trade re-entry on "middle EMA band bounce". Instead of waiting for a candle to close back inside the middle EMA bands, this feature will re-enter position on only a wick back into the middle bands as will sometimes happen when the trend is strong.
Any and all of the early close conditions can be combined. Experimenting with these, I've found can result in less net profit but higher win-rates and sharpe ratios as less time is spent in trades.
The deadly:
The trend is your friend. But wouldn't it be nice to catch the trends early? In ranging markets (or when using slower base EMAs in this strategy), waiting for confirmation of a breakout of the EMA bands at best will cause you to miss half the move, at worst will result in getting consistently chopped up. Enabling "counter-trend" trades on this strategy will allow the strategy to enter positions on the opposite side of the EMA bands on either a Leledc bar or Bollinger Bands exhaustion bar. There is a filter requiring either a high/low (for Leledc) or open (for BB bars) outside the selected inner or outer Buy/Sell zone. There are also a number of different close conditions for the counter-trend trades to experiment with and backtest.
There are two ways I've found best to use counter-trend trades
1. Mean reverting scalp trades when a trend is clearly overextended. Selecting from the first 5 counter-trend closing conditions on the dropdown list will usually close the trades out quickly, with less profit but less risk.
2. Trying to catch trends early. Selecting any of the close conditions below the first 5 can cause the strategy to behave as if it's entering into a new trend (from the wrong side).
This feature can be deadly effective in profiting from every move price makes, or deadly to the strategy's PnL if not set correctly. Since counter-trend trades open opposite the middle bands, a stop-loss is recommended to reduce risk. If stop-losses for counter-trend trades are disabled, the strategy will hold a position open often until liquidation in a trending market if th trade is offsides. Note that using a slower base EMA makes counter-trend stop-losses even more necessary as it can reduce the effectiveness of the Buy/Sell zone filter for opening the trades as price can spend a long time trending outside the zones. If faster EMAs (34 and below) are used with "Inner" Buy/Zone filter selected, the first few closing conditions will often trigger almost immediately closing the trade at a loss.
The niche:
I've added a feature to default into longs or shorts. Enabling these with other features (aside from the basic long/short on EMA middle band breakout) tends to break the strategy one way or another. Enabling default long works to simulate trying to acquire more of the asset rather than the base currency. Enabling default short can have positive results for those high FDV, high inflation coins that go down-only for months at a time. Otherwise, I use default short as a hedge for coins that I hold and stake spot. I gain the utility and APR of staking while reducing the risk of holding the underlying asset by maintaining a net neutral position *most* of the time.
Disclaimer:
This script is intended for experimenting and backtesting different strategies around EMA bands. Use this script for your live trading at your own risk. I am a rookie coder, as such there may be errors in the code that cause the strategy to behave not as intended. As far as I can tell it doesn't repaint, but I cannot guarantee that it does not. That being said if there's any question, improvements, or errors you've found, drop a comment below!
[Fedra Algotrading Super Duper Trend Filter]All-in-one trend filter
Trend-following strategies are relatively easy to achieve, especially in backtesting. If only we knew what trend we were in! Let me help you:
- MAs crossovers
- Selection of the type of MAs
- Selection of MAs periods
-Super trend (optional)
-Trend zones based on trend lines (optional)
- Secret sauce
How to use it?
Do not open Longs if it is red
Don't open Shorts if it's green.
Apply it to your strategies and check the impact of a reliable trend filter before opening your entries.
Commitment of Traders ~ COMMODITIES/METALSMy intention was to create 1 script for the Commitment of Traders report but I wasn't not aware there is a limit on how many instrument calls can be made in PineScript so I had no choice but to divide the script into instrument categories. So far I have created 4 of them: Forex, Treasuries, Indexes & Metals/ Commodities which is the one presented here. If you are interested in the other ones, feel free to do a search.
Available Instruments: Bloomberg Commodities Index, GOLD , SILVER , CRUDE OIL & NATURAL GAS
The script calculates the ZScore of both Net Long (Money Managers / Asset Managers) and Net Long (Dealers / Swap) In some instrument categories you will also see Open Interest. It depends on whether I was maxed out or not on making security calls.
If you are not familiar with ZScore, it basically calculates the distance of price from a mean average in units of Standard Deviation. In theory when price reaches +2 it signifies overbought while if it reaches -2 is oversold. However just because it's hitting an extreme in one particular average doesn't necessarily mean it will reverse as the position of price in relation with the next longer average might not be so out of range.
Must be attached to weekly chart.
If you have any questions/suggestions, feel free to add them in the comments below
Triple Supertrend with EMA and ADX strategyPublishing a strategy that includes adx and ema filter as well
Entry: all three Supertrend turns positive. If a filter of ADX and EMA is applied, also check if ADX is above the selected level and close is above EMA
Exit: when the first supertrend turns negative
opposite for short entries
A FIlter is given to take or avoid re-enter on the same side. For example, After a long exit, if the entry condition is satisfied again for long before the short single is triggered it takes re-entry if selected.
Trending Bollinger Bands by SiddWolfBollinger Bands are mostly used for trend reversal. I believe they should be used for Trend Continuation and Trend Confirmation.
In this Trending Bollinger Bands script you will see two bands drawn on chart. The Upper band is suggestive of Uptrend and Lower Band is suggestive of Downtrend Market. It just provides the guidance of where the market is now and where it is headed. It is not to be used as a standalone indicator. Use this to confirm your hypothesis of Uptrend or Downtrend.
Bollinger Bands Trend
When the price crosses the moving average it is interpreted as the price is gonna continue in that direction. But most of the time it is a fake breakout. With this script you get an additional confirmation so that you know it is not a fake breakout and the price have caught the trend.
Bollinger Bands Reversal:
This indicator can also work for reversal. For example when price closes outside the outer bands, it is most likely that the trend is gonna reverse. Don't just enter the trade wait for some other confirmation as reversal trading is more complicated.
Confluence:
Confluence is the key factor for profitable trading. Don't use this indicator as standalone indicator instead combine it with other indicators and price action. Like the divergence occurring when the price is outside the bands is suggestive of trend reversal. I have created a non-delay, non-repaint indicator for finding divergence. I'd soon publish that script. Stay tuned.
Settings is the Key:
Try to play around with the settings. It is a simple yet effective indicator. Change the moving average type or length. I've found moving average RMA or WMA works better than SMA. Find the best setting that works with your setup. Set the Band Source as High/Low to make the outer bands more extreme.
Conclusion:
This is my first script but it isn't my last. I've created quite a few gems that I'm gonna publish soon. If you have any questions or suggestions feel free to comment below. I'd love to connect with you. Thank you.
Ichimoku Cloud [Trading Nerd]Backtesting Script that compares different way to trade the Ichimoku Cloud. With this script you can test 2*2 different Ichimoku Cloud Entry conditions, more on that down below. This script is useful to figure out what conditions work best for the applied market (so not only parameters of the Ichimoku Cloud are changeable).
Strategy foundation
This conditions need to be always satisfied for a valid entry:
Longs:
The close price must be above the (displaced) cloud: close > max(leadingspanA , leadingspanB )
The most recent cloud must be green: leadingspanA > leadingspanB
Shorts:
The close price must be below the (displaced) cloud: close < min(leadingspanA , leadingspanB )
The most recent cloud must be red: leadingspanA < leadingspanB
Options for Conversion-/Base Line
Cross: Conversion-Line cross-over Base-Line (Long), Conversion Line cross-under Base-Line (Short)
Over/Und er: Conversion-Line > Base-Line (Long), Conversion-Line < Base-Line (Short)
Options for Lagging Span
Above/Below Price: Lagging-Span > Close Price (Long), Lagging-Span < Close Price (Short)
Above/Below Cloud: Lagging-Span > Ichimoku Cloud (Long), Lagging-Span < Ichimoku Cloud (Short)
Exit Conditions
An optional Stoploss is available. 2 different Types:
ATR: Takes a multiple (set by 'ATR multiplier for SL') of the ATR and subtract it (Long) or adds it (Short) to the close price of the previous candel (before entry candle)
HH/LL: Takes the highest high/lowest low of the last X candles (set by 'Lookback Range for HH/LL SL') and sets a SL at this price
none: There is no SL.
The position is at latest exited at the next cross of the Conversion-Line and Base-Line!
Longs: Conversion-Line cross-under Base-Line.
Shorts: Conversion-Line cross-over Base-Line.
The position is closed if the cross is confirmed (candle has closed).
Risk Management
You can set the risk percent per trade:
Risk only X% of current capital (initial capital + net Profit). This requires a Stoploss-Strategy (not none).
IMPORTANT: For low Timeframes and Markets with tight SL (like Forex) it requires a lower Margin Percent than default. Go to Settings->Properties and lower the required Long/Short Margin. Otherwise Trades might not be considered because of too less capital/marign. Margins can e.g. set to: 2% (Forex), 10% (Stocks), 20% (Crypto).
MACD Strategy [Trading Nerd]This Strategy uses a EMA as a trend filter and MACD for entries. The stoploss can be calculated by the last highs/lows or by the ATR.
Entry Conditions
Long:
close price must be above the EMA
MACD-Line crossover MACD-Signal-Line
MACD-Signal- Line mus be below 0
Short:
close price must be below the EMA
MACD-Line crossunder MACD-Signal-Line
MACD-Signal- Line mus be above 0
Exit Conditions
The Stoploss can be set in two different ways:
1. By the calculated ATR value of the entry Candle. This Value can be multiplied with the ATR multiplier for SL .
For Longs: SL = entry Price - ATR * ATR-multiplier
For Shorts: SL = entry Price + ATR * ATR-multiplier
2. By the previous highest high or lowest low (also called Donchain Channels). The lookback length can be changed in the at Lookback length for HH/LL SL .
For Longs: SL = LL of the last X candles
For Shorts: SL = HH of the last X candles
Take Profit
The TP is calculated by the Risk * Risk Reward Ratio . The Risk Reward Ratio can be changed in the Settings. The Risk is the difference of entry price and stoploss price: Risk = absolute(entry price - stoploss price)
For Longs: TP = entry Price + Risk * Risk Reward Ratio.
For Shorts: TP = entry Price - Risk * Risk Reward Ratio.
Risk Management
You can set the Risk % per Trade in the settings. A Value of 2 means that the position size is calculated in a way that at a loosing trade the strategy will only loose 2% of the current capital (initial capital + net profit).
E.g.: The current capital is $1000 and a trade hits the SL. The strategy will only loose $20.
Info for Alerts: Alert message conversion of JSON Strings. You don't need to add any or \" to the alert String.
When you create the Alert the Message must be: {{strategy.order.alert_message}}
Market structure intraday ES futures strategy - BuySell ZonesThis market structure strategy for ES Mini Futures optimized for intraday market analysis ( RTH ).
Entry condition identified by bearish and bullish market structure.
Support level (Green Lines) is identified based on different variations of price fluctuations followed by the close above the range.
Resistance level (Red Lines) is identified based on different variations of price fluctuations followed by the close below the range.
The idea is to spot areas where market players were fighting for the best price and one side finally won.
Bullish trend is identified by consecutive series of support levels developing in upside direction.
Bearish trend is identified by consecutive series of resistance levels developing in downside direction.
When market develops bullish trend , strategy sets LONG limit order at fresh support level .
When market develops bearish trend , strategy sets SHORT limit order at fresh resistance level .
If there is an open position no new entries are performed.
For longs initial stop is set at previous support level adjusted by ATR.
For shorts stop is set at previous resistance level adjusted by ATR.
Stop trailing is also based on market structure.
If new support level is identified, stop moves to previous support level .
If new resistance level is identified, stop moves to previous resistance level .
There are no target. Strategy either gets stopped at current stop level or exits at session end.
Strategy calculates position size based on the previous market structure and ATR.
Strategy performs compounding position sizing so as account amount increases so does amount of traded contracts.
Usage:
Add script to your favorites and apply it on ES1! 1 minute time frame setting regular trading hours.
Script will print the limit order as well as stop levels according to the rules described above. As trade will progress, script will print levels to move the stop to.
Settings:
I added an option to disable the support and resistance lines printing if you prefer to have clean charts.
You can also change risk % to best fit your trading style.
If you just want to use the support and resistance levels as indicator you can also disable the strategy execution.
Support and Resistance indicator itself is universal and can be used on any market or timeframe.
If you want the strategy to be optimized for other markets or timeframes or have other rule set in mind feel free PM me, we will create the solution that best fits your needs and styles.
Real life trading is not get rich scheme. It is continuous process that involves various steps and dedication. If you are willing to take this path please PM me to enable the strategy for you.
Enjoy!
#JJ Trend
-----------------
Hey there!
The indicator is used for a rough trend assessment. Both superordinate structures and subordinate movements are mapped here. With the help of a calculation via Ema and MACD , different timeframes can be displayed in the same chart. This makes the multi-timeframe analysis extremely easy.
On all Asset classes!
The indicator is for the m5 / m15 chart. In addition, the display can be adapted using the options and set to any timeframe.
Caution: Past results do not guarantee future profits!
Follow the link below to get access to this indicator or get us a PM to get access.
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
-----------------
Willkommen!
Der Indikator dient für eine grobe Trendeinschätzung. Hierbei werden sowohl übergeordnete Strukturen als auch untergeordnete Bewegungen abgebildet. Mit Hilfe einer Berechnung über Ema und MACD lassen sich verschiedene Timeframes im gleichen Chart abbilden. Das erleichtert die Multi Timeframe Analyse extrem.
Für alle Asset Klassen!
Der Indikator ist für den m5 / m15 Chart ausgelegt. Zusätzlich kann die Anzeige über die Optionen angepasst werden und auf jede Timeframe eingestellt werden.
Achtung: Vergangene Ergebnisse garantieren keine zukünftigen Gewinne!
Verwenden Sie den folgenden Link, um Zugriff auf diesen Indikator zu erhalten oder schreibe uns eine PM um Zugriff zu erhalten.
"Buy signal" from Cipher B for 3commasThis is another modification for cipher B indicator from VuManChu. I also would like to acknowledge "The Art of Trading" channel in youtube for their mastery pine script course.
This script is designed to send alerts to 3commas platform. In strategy.entry in comment option, you can incorporate your token for your bot.
The buy signal accomplishes only when BTC is above simple moving average (SMA).
When BTC crosses down SMA, any position closes immediately.
The parameters were tuned for this particular plot.
Donchian Screener█ OVERVIEW
This is a screener script for the Donchian Channel indicator . It's an excellent indicator for trend following, a trading strategy which tries to take advantage of long, medium or short-term moves that seem to play out in various markets.
█ DESCRIPTION
The screener works by scanning through up to 10 symbols and list down symbols that are currently breaking through the upper or lower band as definied by the Donchian Channels, at which point the market signals the start of a bullish or bearish trend.
█ HOW TO USE
After adding the indicator, open the script settings and type the symbol name and length to be used on the Donchian Channels for each stock.
█ PARAMETERS
- Use High/Low Price Breakouts: check this box if you want to use price high/low instead of price close to identify breakouts
- Panel Position: choose whether you want to position the panel on the top, middle or bottom right side of the graph (default is top)
- Default Timeframe: what timeframe to use on the screener (default is daily)
- Ticker: the ticker name you want to monitor
- Length: length parameter used on Donchian Channel indicator
█ FEATURES
The screener can scan up to 10 symbols each time.
█ LIMITATIONS
The screener will scan the symbols breaking out bands on the current bar, and as such, there maybe some delays depending on the stock/ etf /crypto you choose. Some exchanges require an additional subscription to get realtime data.
Gann HiLo Activator Strategy█ OVERVIEW
Strategy based on the Gann Hilo Activator . This is a trend following strategy, which means it will go long (and close the previous short position) once the price closes above the high SMA, and go short (and close the previous long position) once the price closes below the low SMA.
█ PARAMETERS
- Length
- Displace (or offset): default is 1
- Begin from start: strategy will run since the beggining
- From year, month, day: Choose an specific date to start backtesting (must disable the parameter above to work)
█ HOW TO USE
After choosing the start date to run the strategy, you can change the length field and look at the backtest results to find the most optimal settings for the current symbol.
This strategy was tested on the stock and crypto market with good results. Hope you enjoy!
Linear Regression Channel - Auto Volume BasedBased on oryginal TV indicator BUT with a little twist. ;)
I really like the regression channel - but the problem is that the length needs to be always manually adjusted.
In this script I try to solve this issue.
This is modified version on TV indicator - Linear Regression Channel.
The main difference is that now you don't get static length - it is automatically adjuested to the recent price action (determined by highest volume in last 300 bars).
Donchian Channel Strategy IdeaThis strategy idea is a variation of the "Donchian Channel" trading strategy. It is built with a highest-high band, a lowest-low band, and a baseline which is average the highest-high and the lowest-low bands. This strategy is very useful in trending instruments on 1W and 1D timeframes. This is the implementation used in the QuantCT app.
You can set the operation mode to be Long/Short or long-only.
You also can set a fixed stop-loss or ignore it so that the strategy acts solely based on entry and exit signals.
Trade Idea
When the close price breaks up the previous highest-high, it is a long signal, the market is considered rising (bullish), and the plotted indicator becomes green. Long positions are held until the close price crosses under the baseline.
When the close price breaks down the previous lowest-low, it is a short signal, the market is considered falling (bearish), and the plotted indicator becomes red. Short positions are held until the close price crosses above the baseline.
Otherwise, if we have no position in the market, the market is considered ranging, and the plotted indicator becomes orange.
Entry/Exit rules
Enter LONG if the close price breaks up the previous highest-high (i.e. when the plotted indicator becomes green).
Exit LONG if the close price crosses under the baseline (i.e. when the plotted indicator becomes orange).
Enter SHORT if the close price breaks down the previous lowest-low (i.e. when the plotted indicator becomes red).
Exit SHORT if the close price crosses above the baseline (i.e. when the plotted indicator becomes orange).
CAUTION
It's just a bare trading idea - a profitable one. However, you can enhance this idea and turn it into a full trading strategy with enhanced risk/money management and optimizing it, and you ABSOLUTELY should do this!
DON'T insist on using Long/Short mode on all instruments! This strategy performs much better in Long-Only mode on many (NOT All) trending instruments (Like BTC, ETH, etc.).
3D Trailing Stop3D Trailing Stop is an indicator designed to keep you in trend trades and let you know when it may be a good time to exit. It's calculation is based on the Trend, Volatility and Volume pattern of the instrument. Instead of most trailing stops which are based on 1 measurement, it's based on 3 measurements, hence it's name 3D Trailing Stop, which is short for 3-Dimensional.
For example when looking at a long-only trade, the more up days and the more volume on those up days, the wider the trailing stop will be. However when the trend changes, and there's more down days with more volume then the trailing stop will tighten. The idea is to try and keep us in good trends for longer and get out of reversing trends earlier.
The default distance the trailing stop will be from the EMA (5) is always a multiple of 1.5 - 3x the ATR (21) and all of these settings are changeable by the user. To change the trailing stop from the default long trend to short trend change the ATR Offset setting from - to +. If you wish to display both a long and short trailing stop, simply add the indicator again to your chart with the ATR Offset + setting enabled. The indicator also shows how far the trailing stop price is from the last price, expressed as a % on the chart so you can easily see how far away the trailing stop is.
There are a few ways it can be used, for example one may wish to enter on a 50 or 100 bar high/low breakout and use the 3D Trailing Stop as a indicator when to get out of the trade. You could exit once price goes below the trailing stop, or use the previous bar trailing stop value as the level for a quicker exit.
This indicator can be used on any market and any timeframe, for both long and short trades. We have found it to work best on stocks long-only using the daily timeframe as stocks tend to have good up-trends over time. You could also use it on smaller timeframes in conjunction with other indicators and signals to enhance your win rate.
To get access PM or email me to my address shown below.
Enjoy :)
Disclaimer: All my scripts and content are for educational purposes only. I'm not a financial advisor and do not give personal finance advice. Past performance is no guarantee of future performance. Please trade at your own risk.
8X Trend ATR SAR Dingue V58X Trend ATR SAR Dingue V5 - This is the updated version for Pine Script 5.
8x indicator into 1 :
2x ATR indicator - 3x Trend indicator - 3x SAR indicator
Trends are helpful to spot reversal and support resistance, especially on bigger time frames.
This indicator gives you a global view of various trends all at once. You can easily turn them On or Off as to not clog the screen.
Each trend is also color-coded to visualize quickly the position of the price compared to it.
You can customize lengths, adjust line sizes, have the start of a new trend marked with a circle, fill in colors.
'Tool tips' explain other settings and if you have any questions, feel free to ask in the comments below.
Thank you for the feedback and check all my ‘Dingue’ indicators.
Retail Insider Trend Following (HTF ONLY)Before I begin, here is a disclaimer: None of this is financial advice, and I'll recommend you to do your own research or talk to your financial advisor, if you want to use this. And also make sure you understand the risks properly before taking any trades. This particular indicator is a work of experiment, and I am publishing the optimized code. Please leave a comment below if you have any queries.
As per the logic, I am taking the highest point in a particular time window (used the in built ta.highest function) , and the lowest point in a particular time window (used the ta.lowest), and averaged it using the in built function (
RMA(which is the B33 Mean.)
For the offset, I am simply calculating and adding some values (which can also be input by the user.)
and this user input is in percentage.
So if you observe the lines, the Red line in between is the mean, and the Yellow lines are the offsets. (Everything can be changed in settings)
In simple layperson terms, if the price goes above the Red line, it's an uptrend,
and if the price goes below the Red line, it is in a downtrend.
Now I just wanted to keep the offset because I wanted more confirmation before actually entering a trade. (the offset can be changed again, from the settings, and the offset is in percentage)
A lot of times, you will see that the price is kind of going sideways, where, a lot of traders get trapped, as there is no clear trend.
So in order to eliminate that choppy price action and stay out, I'm using this offset. This should probably save a lot of bad trades.
So basically, if the price goes and closes above the higher offset, it will confirm a trend change, and a possible bull market.
Similarly, if the price goes and closes below the lower offset, it will confirm the end of the bull market, or a corrective phase, or a bear market.
A few things to note, however...
If you change the timeframe, you will see that the lines are not shifting/changing that much. This is because, it will consider the highest and the lowest points and average it.
So, basically, if you do the math, you will understand why,... and this logic is purely for a higher timeframe analysis/confirmation.
I'll personally recommend this kind of a setup for swing trading/confirmation on the daily or the 4H charts, mostly for longer timeframes. (If you are on the pro/pro+ or premium, you can try out 6H or 12H timeframes as well)
If you are looking for scalping, setups and indicators, this is not the right one.
If you liked it, don't forget to give a follow :)
ZigZag WavesHello All,
I am here with a new idea and script, " Zigzag Waves ". This indicator creates 3 Zigzags with different lengths, keeps the lengths of each zigzag wave and calculates/draws average waves for each zigzag. optionally it can reset the wave when zigzag direction changes and new highest/lowest found. And optionally it draws Exponential Moving Average(EMA) of the sum of waves. This idea is very new and at the moment there is no optimization for the Zigzag Periods. Maybe we altogether can improve the idea and find the best zigzag periods for different symbols and time frames.
Using the options You can play with the periods, add/remove EMA, set its color and reset the waves on new Highest/Lowest. As far as I see resetting the waves on new Highest/Lowest may bring better results.
if we enable "Reset the waves on new Highest/Lowest":
Using different periods and EMA length:
P.S. if you have ideas to improve this script, drop a comment under the script please.
Enjoy!
ROC PercentileRate Of Change Percentile calculates the current ROC (user defined length) as a percentile rank.
We use 2 separate arrays, one for all positive ROC values and one for all negative values within a defined lookback period. Then the current ROC value is compared to those arrays to find it's percentile ranking.
For example, a ranking of 75 means the ROC is in the 75th percentile of all POSITIVE ROC values over the lookback period.
A ranking of -80 is in the 80th percentile of all NEGATIVE ROC values over the lookback period.
Most ROC scripts use raw ROC values (or smoothed or otherwise altered), or have stochastic formula applied to them, I've not seen one that displays ROC as percentile ranking of previous positive/negative values.
What is the advantage?
Raw ROC data only gives half the picture. What we want to do is compare the ROC to previous ROC values, to give a sense of scale. Raw ROC values don't give you that context and you can only compare visually, usually limited to the number of bars you can see on your screen.
Using a percentile ranking gives us the context of current Rate of Change relative to the previous Rate of Change over a large lookback period, and not just visually but mathematically.
Why not using a long stochastic ROC? The problem with stochastics in general is that an outlier data point can ruin the data for the rest of the lookback period.
For example, imagine a huge outlier 8% ROC. The 2nd largest ROC is 4% and the 3rd largest is 2%, with all other values below this.
In this example, a stochastic ROC would display the 8% outlier as 100, the 4% as 50, the 2% as 25 and all other data would be squeezed down between 0-25.
Additionally, a value of 60 may have vastly different meaning depending on whether the lookback period contains a large outlier or not.
With a percentile ranking, that 8% outlier would still have a value of 100. But the 4% and 2% would be 99 and 98 respectively (this assumes 100 data points in the series, in reality values will usually be decimals).
This effectively flattens the curve and gives a more consistent and dependable experience, allowing you to more accurately assess the relative importance of the current ROC.
The line of circles is set at the 50 and -50 values for quick comparison.
Values > 50 represent ROC greater than 50% of previous positive ROC values.
Values < -50 represent ROC greater than 50% of previous negative ROC values.
Commitment of Traders ~ INDEXESMy intention was to create 1 script for the Commitment of Traders report but I wasn't not aware there is a limit on how many instrument calls can be made in PineScript so I had no choice but to divide the script into instrument categories. So far I have created 4 of them: Forex, Metals/ Commodities, Treasuries & Indexes which is the one presented here. If you are interested in the other ones, feel free to do a search.
Available Instruments: Mini S&P, VIX, Mini NASDAQ, Mini RUSSELL, EAFE Index (Global Developed Markets & EMRG Index (Global Emerging Markets)
The script calculates and plots the ZScore of both Net Long (Money Managers / Asset Managers) and Net Long (Dealers / Swap). In some instrument categories you will also see Open Interest. It depends on whether I was maxed out or not on making security calls.
If you are not familiar with ZScore, it basically calculates the distance of price from a mean average in units of Standard Deviation. In theory when price reaches +2 it signifies overbought while if it reaches -2 is oversold. However just because it's hitting an extreme in one particular average doesn't necessarily mean it will reverse as the position of price in relation with the next longer average might not be so out of range.
Must be attached to weekly chart.
If you have any questions/suggestions, feel free to add them in the comments below
Commitment of Traders ~ TREASURIESMy intention was to create 1 script for the Commitment of Traders report but I wasn't not aware there is a limit on how many instrument calls can be made in PineScript so I had no choice but to divide the script into instrument categories. So far I have created 4 of them: Forex, Indexes & Metals/ Commodities & Treasuries which is the one presented here. If you are interested in the other ones, feel free to do a search.
Available Instruments: Ultra(25-35yrs), Bonds(15-25yrs), 10yrs, 5yrs, 2yrs & 3 Month EuroDollar
The script calculates the ZScore of both Net Long (Money Managers / Asset Managers) and Net Long (Dealers / Swap) In some instrument categories you will also see Open Interest. It depends on whether I was maxed out or not on making security calls.
If you are not familiar with ZScore, it basically calculates the distance of price from a mean average in units of Standard Deviation. In theory when price reaches +2 it signifies overbought while if it reaches -2 is oversold. However just because it's hitting an extreme in one particular average doesn't necessarily mean it will reverse as the position of price in relation with the next longer average might not be so out of range.
Must be attached to weekly chart.
If you have any questions/suggestions, feel free to add them in the comments below