Trend line & pivot level
This script can plot pivot levels and trend lines that are haven't broke out.
In the setting, left and right means how to get the pivot. the pivot will be gotten based on the left candles and the right candles. boxes will be auto deleted after the box was broke.
Important: This is just a beta version, if you find some bug with using this script. Don't hesitate to contact me.
What the future version will have? Might be pattern scanner, multi trend line, levels in different time frame, break out alert, or better key level algorithm. Depends on when I have free time.
Cerca negli script per "trend"
Trend SuggestionsThis brings together a number of variables to produce trend predictions that could be utilized as decision-making tools.
Uses the aforementioned price and volume derivatives
- A moving average and three weighted moving averages (WMA1, WMA2, WMA3)
- Super Trend Line (ST)
- Opening Range Breakout on Five Minutes, Resistance Bands Pocket pivots, support, and price volume
he Direction is determined by the High and Low Bands of WMAs and the Supertrend Line, which are used to determine the Upper and Lower Lines around the Price. When the price passes below the lower boundary of the band, a downtrend is said to have begun.
Similarly, for an uptrend, this continues until the price passes over the upper edge of the band. Teal for an uptrend and fuchsia for a downturn area shared by the band to identify the trend.
The first five minutes of the breakout lines have a tiny buffer augmentation of 11% applied to them.
Based on what has been observed, support and resistance zones have been somewhat changed from the figures that are often utilized (might work other markets as well)
The markings that may be seen are as follows:
- Blue Triangle indicates a pocket pivot with an upward bias;
- Maroon Triangle indicates a pocket pivot with a downward bias;
- Teal colored Diamonds indicate price upthrusts and potential trend confirmation locations, depending on success or failure.
- Similar backdrop color changes that look as vertical shading are also used to identify them.
- Fuchsia-colored diamonds indicate price declines and a potential trend, depending on whether it persists or fails.
- Dark green and maroon square boxes indicate potential price reversals in the support and resistance bands, respectively.
It goes without saying that this work is derived from numerous other open-source community initiatives.
Feel free to adjust anything you'd like, and we appreciate any feedback.
HHV & LLV based TrendHHV and LLV gives good information about the trend.
A trend will be visible when its seen with fast and slow line cross
UP trend: HHV_fastline = HHV Slowline and LLVfastline crossover LLVSlowline
DOWN trend: HHV_fastline crossunder HHV Slowline and LLVfastline !=LLVSlowline
Attempted to plot the same with multiple options to choose fastline length, slowline length, Multi time frame.
Interactive trendlineThis is a concept that I have been playing with
to make a manual trend line that has more then just two connecting dots
but that has sequential data connected on every bar between the
beginning an the end point that can then be used to determine a break of trend or
a bounce.
This is added in a few simple steps
1) add the indicator to your chart
2) set the x_1 time bar
3) set the y_1 price
4) set the x_2 time bar
5) set the y_2 price
6) check the table that calculated the run value and enter that value in the settings box in the "Run" input box
Trend Cloud Performance - TradingEDThis case study is based on a Price Level Average as in Donchian Channels but with a Variance Level (aka Standard Deviation ), and a performance chart. The use of this indicator is restricted to private use, and it can be used only by invitation. Different functionalities have been added to the original code, such as alerts and signals that seek to make trading much easier to interpret by any type of trading operator of any experience level , from beginner to intermediate and advanced.
Key components of the original indicator:
• Donchian Channels are a technical indicator seeks to identify bullish and bearish extremes that favor reversals as well as higher and lower breakouts, breakdowns, and emerging trends.
• The middle band simply computes the average between the highest high over N periods and the lowest low over N periods.
• These points identify the median or mean reversion price.
Donchian Channels are three lines generated by moving average calculations that comprise an indicator formed by upper and lower bands around a midrange or median band.
The center line identifies the median or mean reversion price for the period, highlighting the middle ground achieved for the period through the bull-bear conflict. The bottom line identifies the extent of bearish energy, highlighting the lowest price achieved for the period through the bull-bear conflict.
Main functions of this modified indicator:
1) The SOURCE for the count can be determined by the trader (close, open, etc).
2) The MEASURE can be based on a CANDLES count if you are trading OHLC Charts from 1D onwards, or if your trading is intraday, you can also select counts by MINUTES , HOURS or DAYS , depending on your trading style.
3) LENGTH , by default it will be loaded as 20 but considering the previous point, you can modify it according to your convenience.
4) STANDARD DEVIATION , by default it will come loaded with 2 deviations, but you can modify it according to your convenience to operate.
6) You have the option to hide or show a LABEL at the top of the chart, with respect to the signals: bullish green, bearish red.
7) You have the option to hide or show SIGNALS based on the MOVING AVERAGE that you have previously chosen.
8) You have the option to hide or show SIGNALS based on the STANDARD DEVIATION that you have previously chosen.
Main functions to customize the style of this indicator:
a) You can select the colors for the UPPER BAND , MOVING AVERAGE and LOWER BAND depending on the trend, whether it is BEARISH or BULLISH , with the colors that best suit you. *
b) When you have a SHORT SIGNAL or a LONG SIGNAL , you can change the EMOTICON that comes by default. **
c) For any type of SIGNAL , it is painted as a VERTICAL LINE in the graph, you can change the color that comes by default. *
d) In the case of the LABELS that appear at the top, the text is not modifiable, but you can customize both the type of label and change the default color. *
e) You can select the colors for the BACKGROUND of the indicator according to the trend, whether it is BEARISH or BULLISH , with the colors that best suit you. *
* By default, they are marked as red for downtrends and green for uptrends.
** By default, they are marked with an emoticon indicating the possible direction of the price, down if it is bearish or up if it is bullish.
Trend trader + STC [CHFIF] - CV This script is my first strategy script coupling the Trend trader (indicator developed by Andrew Abraham in the Trading the Trend article of TASC September 1998.) and Schaff Trend Cycle . The STC indicator is widely used to identify trends and their directions. It is sometimes used by traders to predict trend reversals as well. Based on the movement of the Schaff Trend Cycle , buy or sell signals are generated, which are then used by traders to initiate either long or short positions.
Around I built a user interface to help you in creating a customized strategy to your need.
My idea behind doing this was to make customizable parameters and back testing easier than manually with a lot of flexibility and options. More possibility we have, more solutions we find right? So I started this script few weeks ago to be my first script (second in reality, but first to be published.)
Strategy it self is made out of 2 simple step:
1→ STC gives a Buy/Sell signal.
2→Price is closing above the TT (Buy) or below (Sell) and the signal is the same as given by the STC .
To complete your strategy in order to reach the best result, I added few options:
→ Money management: Define the type of risk you want to take (entry risk will always risk the same percentage of your portfolio disregarding the size of the SL, Fix amount of money, fix amount of the capital (portfolio). NOTE: Margin is not coded yet, target is to show liquidation price. Please keep an eye on the releases to know when it is released.
→ Stop loss and Take profit management: Define the type of target you want to use (ATR, fixed percentage, pivots points) and even customise different take profit level or activate the trailing. Each type of target is customizable via the menu
→ Moving average: You can also complete the strategy using different moving average. To draw it tick the box on the left, to use it in the calculation of the result, tick the box "Price>MA" in front of the needed EMA . You can select different type of MA ( SMA , EMA , DEMA , TEMA , RMA, HMA , WMA , VWAP , VWMA , etc...)
→ RSI: 4 possible approach to use the RSI to complement the strategy:
• OB/OS => short position will be taken only if RSI goes under the lower limit. Long if the RSI goes above the limit. Ticking confirmation will wait to cross back the limit to validate the condition
• Rev OB/OS => Short will be taken if RSI is below lower limit and stays below. Long will be taken if RSI is above upper limit and stays above.
• MA dominance => RSI has to be above MA for long, below for short. Confirmation box ticked requires 2 bars with the RSI on a side to validate signal.
• MA Dominance + limit => It is a combination of the requirement of the provious option and also Rev. OB/OS
→ Volume confirmation => This will consider the volume MA for entry confirmation. The volume will have to be above the MA define by the value entered in the field.
→ Waddah Attar explosion indicator can also be used as a filter for entries in this way:
• Explosion line > dead zone to validate entries
• Trend > dead zone to validate entry
• Both > dead zone is a compound of both rules above to get entry confirmation
→ ADX can also be used as a filter. I added 2 Threshold in order to have a minimum level of acceptance for valid entry but also a maximum level.
When your strategy is setup, you can setup alerts and I would recommend to setup the date range before doing the alerts. Why? Simply because the script do not cover pyramiding and will give a signal only if a trade is not ongoing.
In setting up the sessions at which you would want to trade, no signal within those range can be missed. You can setup 2 sessions, the days and also the global range of backtesting.
Trend LinesHello Everyone.
This is my first script on TV, hope you find it useful.
How it works?
- On each bar it finds last x (depending on your settings) higher and lower Pivot Points ( PP ).
- It searches for possible trend line from oldest PP to newest, once found it stops and draws the line.
- The higher the time frame the lower the number of PP needed. Play around with the number of PP and left/right bars needed to confirm a PP and you get different results.
For suggestions don't hesitate to contact me
Multi-Timeframe Simple TrendSimple Trend State Indicator inspired by @TaPlot's Price Time Frame Continuity indicator. Indicator works well on any Chart Timeframe although some aliasing of the State Response should be expected when comparing a State Response calculated on one Chart Timeframe to a Higher Chart Timeframe ie. comparing the State Result for 30 min from both a 1D Chart and 130 min Chart.
Current Trend State is calculated based on the Current Angle of the SMA Length "L". A Simple moving average is used as an Array Function has to be used to calculate the current MA Value for Time Frames < Chart.
Current Trend State Control is as follows:
Long Trend State = Current Angle > Min Long Angle
Bullish Trend State = Current Angle < Min Long Angle and Current Angle > Max Reversal Angle
Neutral Trend State = Current Angle < Max Reversal Angle and Current Angle > Min Reversal Angle
Bearish Trend State = Current Angle < Min Reversal Angle and Current Angle > Max Short Angle
Short Trend State = Current Angle < Max Short Angle
I use Gann Angle based State Angle definitions in my charts.
Visualization of the Trend State is controlled via the colors selected in the GUI.
Indicator output creates 6 Panels organized linearly at the Location defined via the GUI. Each panel identifies the Timeframe and Timeframe State for the Timeframes selected in the GUI.
IMPORTANT - Timeframes 4-6 MUST be < Current Chart. Timeframes 1-3 should be >= Current Chart
What does the Tool give you? It enables you to see, based on a standardized measure, the relative behavior of the underlying trends on the selected Timeframe ie . the current Asset Trend Support Structure.
So for Simple Trend Following: an identified Bullish Pulse could be Identified, and then followed to the highest Timeframe that is able to maintain that Bullish State. This is your Pivotal Timeframe. If a Bearish Pulse is identified then ride it until it grows strong enough to change the Trend State of the panel below your Pivotal Timeframe.
Cycle Trend SROverview:
This indicator draws resistance and support lines calculated by market cycles.
By default, blue dots are resistance and red dots are support.
How to calculate market cycle?:
It use sine wave indicator by John Ehlers to calculate the market cycle.
How to determine support and resistance levels?:
There are two conditions for the depiction of a resistance and support lines.
The sine wave indicator has two lines(sine and lead sine).
The first condition is the crossing of these two lines.
The second condition is a new high or low.
- In the case of a resistance, it is a move below the low of the previous candle.
- In the case of a support, it is a move above the high of the previous candle.
When the two conditions are fulfilled, the highest or lowest price of the past few candles is used.
The default setting is three, but this can be changed in parameter settings.
Cycle changes and market reversals do not always occur at the same time.
This is because price movements are not created by cycles, but by the results of trades.
This allows us to understand the true support or resistance line, not the theoretical one.
How to use?:
This indicator assumes that price movements are formed by cycles and trends.
The first step is to determine whether the cycle or the trend is stronger.
- When the price is above support or below resistance, the Cycle dominates the market.
- When the price is below support or above resistance, the Trend dominates the market.
In a cycle-dominated situation, enter the market at the time when support or resistance lines is depicted.
It is better to target only those cycles that match the upper time frame.
In a trend-dominated situation, think about riding the trend.
The timing to go outside of support and resistance is a trigger.
PB(pullback) will be drawn only in case of a strong trend.
A strong uptrend is when the price goes above a resistance line and the next support line depicted is above the resistance line.
There is a threshold for this, which is twice as high as the price of ATR for period 14.
A strong downtrend is the opposite of this.
At the end of the cycle after the PB, the END is described.
This can be used as a sign of a market reversal.
If PB and END are not needed, hide them in the settings.
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 :)
Trend Following with Bollinger BandsThis is a trend following system which uses the Bollinger Bands instead of the Donchian Channels.
Long position:
* Price closes above the middle line.
* The fast EMA (in this case the 40) crosses over or is above the slow one (in this case the 120)
Short position:
* Price closes below the middle line.
* The fast EMA crosses under or is below the slow one.
Stoploss:
* 4 ATRs away from the price.
10X Bars - Directional TrendsMy interpretation of John Carter's popular Simpler Trading 10X Bars indicator.
Momentum is displayed to quickly see the quality and strength of a trend based on a calculation of the Directional Movement Index (DMI). The DMI is an indicator developed by J. Welles Wilder in 1978 that identifies in which direction the price of an asset is moving. The DMI is calculated by comparing prior highs and lows and produces 2 measurements illustrating the strength of the current trend:
-> a positive directional movement line (+DI); and
-> a negative directional movement line (-DI).
The average directional index (ADX) measures the strength of the current trend, either +DI or +DI; a reading above 20 typically indicates a strong trend.
-> Green bars indicate an uptrend i.e. when +DI is above -DI and ADX is greater than 20 - there is more upward pressure than downward pressure in the price;
-> Red bars indicate a downtrend i.e. when -DI is above +DI and ADX is greater than 20 - there is more downward pressure on the price; and
-> Yellow bars indicate no strong directional trend and potential for a reversal.
Volume spikes 50% above average volume are then flagged as dots at the bottom of the chart (although you can change this location), confirming the momentum further.
This indicator should compliment other popular indicators, as confirmation whether to stay in a position or not.
Trend Fusion By CryptoScriptsWelcome to Trend Fusion! This isn't your typical moving average indicator. It's a multi-timeframe indicator that consists of 3 different moving averages AND let's you choose between EMA, SMA, WMA, VWMA, HMA, and RMA. For example, you can have the 5min 200 EMA, 15min 200 EMA, and 1 hour 200 EMA all on the SAME chart without having to switch timeframes! This helps to create an edge over the competition so you don't have to have multiple charts open and you can see everything on one screen. You can also modify each moving average to the timeframe and value of your choice.
Signals
The Trend Fusion fires a buy signal (green triangle) whenever Moving Average 1 crosses above Moving Average 2 and 3. This is great for catching a bullish trend early, especially when combined with other indicators.
The Trend Fusion fires a sell signal (red triangle) whenever Moving Average 1 crosses below Moving Average 2 and 3. This is great for catching a bearish trend early, especially when combined with other indicators.
You can also make Moving Average 2 and 3 the same value if you just want to create an alert for one moving average crossing over another. (i.e MA 1 is the 50EMA and MA 2 and 3 both have a value of 200 so you're just looking for the 50EMA to cross over the 200EMA).
This indicator is great for catching big trends and catching them early (as seen by the picture), and fires multiple buy signals or sell signals in case you didn't catch the first one so you still have time to get in the trade.
Alerts
You can also set alerts for the buy and sell signals! Just click the clock icon in the top middle of the chart and click Trend Fusion in the drop-down menu. Make sure to select "Once per bar close" so you know the signal is confirmed.
Each timeframe acts differently so make sure you experiment/backtest with each one and tailor your moving average values accordingly.
Disclaimer: Past results are not indicative of future returns.
PM me to obtain access and please let me know if you have any questions! :)
[blackcat] L3 M.H. Pee Trend Continuation FactorLevel: 3
Background
Developed by M. H. Pee, the Trend Continuation Factor aims to help traders identify whether the market is trending, and, in case it is, in what direction it is headed. It can be used in any time frame, with every currency pair and is suitable for beginner traders.
Function
The indicator is comprised of two lines, namely the PlusTCF and MinusTCF, which separately correspond to bullish and bearish momentum, respectively. If the PlusTCF line is positive, then the prevailing trend is bullish, while a positive MinusTCF line signifies a bearish trend. Logically, both lines cannot be positive at the same time because the market cannot be in a bullish and a bearish trend simultaneously. However, they both can be negative at a current moment, implying that the market has consolidated in a trading range.
As for trading this indicator, it is generally interpreted and acted upon in a similar way as trading the Average Directional Movement Index. The most basic trading strategy involving the TCF is to enter long positions when the PlusTCF line is positive and to enter short positions when the MinusTCF is positive.
Traders also tend to regard the crossovers of the PlusTCF and MinusTCF lines as entry signals in the direction of the advancing line. Thus, if the PlusTCF crosses the MinusTCF and becomes positive, you should initiate a long entry, and vice versa.
Key Signal
PlusTCF Line --> bullish momentum line in yellow;
MinusTCF Line --> bearish momentum line in fuchsia.
Alerts are available.
Remarks
This is a Level 3 free and open source indicator.
Feedbacks are appreciated.
Quantum Trend Radar PanelOverview
One of the biggest issues trading any market is in keeping track of trading opportunities as they arise across all the various timeframes without having multiple monitors or charts open and this is where the Radar Panel steps in. Using TradingView’s Table function, we have incorporated a host of our leading indicators on the panel which can be applied to any timeframe and from which you can instantly spot opportunities as they arise whether in terms of trend, reversals, volatility, or volume. In addition, when using a scanner such as this, it also highlights broad sentiment if, for example, you have added currency pairs from the same matrix or a group of stocks from the same sector. And you can of course have multiples open across the various timeframes.
The Quantum Trends Radar Panel is a powerful indicator that keeps track of indicator signals of up to 10 different symbols in real time. For each symbol, it can display the current signals of 2 Quantum Trading trend indicators namely:
Quantum Trends
Quantum Trend Monitor
It can also display the current Open, High, Low, and Close prices of each symbol. Each indicator has 1 or more columns allotted to them to display information about their respective signals. Below we will discuss what each indicator does and how it displays its signals in the Radar Panel.
Trends
All traders know that price is a leading indicator. Yet few traders ever discover how to correctly interpret the start of a new trend, or indeed the end of an old one. To add further complexity, markets spend over 70% of their time in congestion, moving sideways in a narrow range. The traders worst enemy.
What’s the answer? Step forward – the Quantum Trends indicator. With this simple and elegant indicator, dynamic trends are painted for you instantly and dynamically, in real time. In trading any market, you need to be quick on your feet, and the Quantum Trends indicator delivers in spades! But even better, not only will it signal your possible entry and exit, but it also signals a market in congestion – equally important. Knowing when to stay out, is just as important as knowing when to get in.
In the Radar Panel, the Trends indicator displays where the last trend dot is heading and the sentiment of the dot or the trend direction.
Columns
Dot – this column displays whether the current trend dot is going upwards, downwards, or sideways
Trend Direction – this column displays the sentiment of the current trend dot and its color
Trend Monitor
One of the hardest things to do in trading, is to stay in, and take the maximum profit from any position. You know how it goes. You get in and all is going well. Then the market reverses. You get frightened, and close out. What happens next?
Yes, you guessed it – the market reverses again and starts to move fast. Now it’s too late. You have missed out on some great profits, and are left wishing you had stayed in.
That’s why we developed the Quantum Trend Monitor. It does just that. It monitors the strength of the trend. It will help you stay in, when your emotion is telling you to get out. The Trend Monitor will give you the confidence, not just to stay in, but to take the maximum profit from each and every trade.
In the Radar Panel, the Trend Monitor indicator displays where the trend line (one of Trend Monitor’s 2 modes) is heading at and the current sentiment or trend direction.
Columns
Trend Line – in the indicator proper, the trend line shows the progression or steepness of the trend’s momentum, and this information is simplified as the direction of the line, whether it is going upwards, downwards, or sideways.
Trend Direction – this column displays the current sentiment and its color
OHLC Prices
Apart from the 2 Quantum indicators, the Radar Panel also displays the current OHLC prices of each symbol.
Open
High
Low
Close
Their color changes depending on the current price action.
With the portability of the TradingView platform, having the Radar Panel in your set of tools truly puts all the power of the Quantum trend indicators right at your fingertips. Get yours now.
CCT Trend MeterThis indicator shows the current market trend if bullish or bearish. It also indicates market consolidation.
What it does.
These trends are calculated using four (4) different trending indicators: Indicator 1 (Bar1) - Ichimoku Cloud , Indicator 2 (Bar2) - Gain Hilo Activator , Indicator 3 (Bar3) - Parabolic SAR's and Indicator 4 (Bar4) - Super Trend which have been enhanced for better accuracy.
The trend meter bars are filled with green or red colours based on market momentum.
How it does it.
When the trend meter indicates all green the trend is bullish.
When the trend meter indicates all red the trend is bearish.
When the trend meter indicates mix colours the market is consolidating.
How to use it.
This indicator works best with the CCT Entry Bar.
When all four (4) trending indicators calculate the same trend direction a green or red highlighted bar appears.
Alerts can also be set to make the trader aware of these highlighted bars.
This indicator does not repaint.
To access this indicator use the link below.
TIL Trend NavigatorTrading Indicator Lab’s Trend Navigator for TradingView is an indicator that can help you reveal the underlying trends in any chart on any timeframe.
Determining Trends
It only takes a minute or two to analyze the indicator with its simple yet insightful methods of representing bullish, bearish and ranging price action across the chart. It forms a single line that runs in 3 directions:
- Upward direction – represents a significant bullish price action
- Horizontal direction – represents ranging price action or consolidation
- Downward direction – represents a significant bearish price action
The indicator borrows the concept of Renko charts where upward and downward price action are shown to move at a single identical angle. This makes the indicator more intuitive and easier to read.
Support and Resistance
That’s not all. The Trend Navigator can also serve as a support or resistance line at any given point in the bar history. This is distinguished with the dual colors of the lines which alternates at each segment:
- Support segment (green) – the segment acts as support where price moves above the line
- Resistance segment (orange) – the segment acts as resistance where price moves below the line
Breakouts occur when the bar crosses above or below the Trend Navigator, at which point, its line changes color to signal the change of its role as a support or resistance level.
Available Alert Conditions
- Cross – triggers when price crosses the Trend Navigator
- Soar – triggers when majority of the bar’s body crosses above the Trend Navigator
- Plummet – triggers when majority of the bar’s body crosses below the Trend Navigator
- Uptrend – triggers when a new uptrend is detected
- Downtrend – triggers when a new downtrend is detected
- Ranging – triggers when a new ranging price action is detected
- Trend Reversal – triggers when either an uptrend or downtrend is detected
Inputs
- Length – sets the number of bars the indicator analyzes at each execution
- Support Segment Color – allows the user to change the color of the support segments. Its default color is green
- Resistance Segment Color – allows the user to change the color of the resistance segments. Its default color is orange
Trend ExplorerAre we in a bull or a bear market?
From the technical analysis point of view, the answer is "It depends". It depends from the parameters of your indicator, the timeframe of the pair you are looking and the volatility of that specific market you are looking to.
After I experimented with various trending indicators I decided to develop a framework that potentially could "embed" already existing logic from well known indicators (e.g. Supertrend OTT etc.).
The most important part is that I managed to abstract that logic away and experiment even further to produce some more robust, market and timeframe resolution agnostic results. While at the same time I was able to switch between market and timeframe resolution specific configuration to take some decision.
Finally, I decided to share this code with you folks! Developed this indicator "Trend Explorer" in an effort to make the aforementioned abstraction of all those trending indicators.
The goal is to enable the user to explore and combine different approaches in order to create a more robust and market general/specific, timeframe resolution invariant/fluctuating and volatility auto/manual adjusted indicator according to his needs.
The logic behind the abstraction is fairly simple. The trending indicator consists of two boundary lines the "bull trend low boundary" (green) and the "bear trend high boundary" (red). The indicator also has a control line (orange). Every time the control line crosses a boundary there is a trend reversal! The boundary lines are defined by the thresholds. To be more precise, boundaries are pulled upwards by thresholds (blue) during a bull market and downwards during a bear market. I challenge the user to experiment with the different ways of calculating the thresholds and the control. I am open to suggestions that might improve and extend the possibilities of this indicator. Any feedback, comments, general thoughts or bug reports are welcome.
Why did I chose those defaults?
For threshold calculation I chose MINMAX which calculates the local minimum and maximum using a sliding window. As far as I know it is not used in any existing trending indicator, but it seems reasonable for a trader to search for local min and max to make a decision. The width of the sliding window a.k.a the "period to remember" the local min and max is 30 days by default, just because I believe that for regular people it is a reasonable period of time to forget too.
Also, compared to the SUBADD method MINMAX does not seem to lag behind, especially when using averages in the SUBADD mode. Moreover, I consider MINMAX to be more general than the margins used by the SUBADD since margins should be configured based on the underlying market volatility.
For a source of min and max I chose the low and high values just because they are timeframe resolution invariant, meaning that they have the same (not exactly due to number precision and rounding, but very close) results for a single pair whether you use "4 hour" or "1 day" time interval! Another popular choice might be (close, close) since many traders wait for the daily candle to close in order to discard outliers. However, this approach is not resolution invariant and it depends from the time interval the user has selected.
Do you have any interesting trending indicator you would like to see how it performs in this framework logic? Let me know!
Do you have in mind any variation of Control or Thresholds calculation you would like to test? Please describe it in the comments below so I can add it in my implementation for you!
Did you find any other bug or you experienced any strange behavior? PM me with a description of the bug, the trading pair the timeframe resolution the exact time (candle) and all the necessary configurations for this indicator so I can reproduce it on my machine!
Please enjoy with caution,
Jason
[blackcat] L3 Automatic Trend ChannelsLevel: 3
Background
Trend channels, also sometimes called price channels or trading channels, are a popular tool in technical analysis used by investors to determine good places to buy or sell. Trend channels consist of at least two trend lines that connect the swing highs and the swing lows of a trending or a sideways moving market. It’s important to note that trend channels don’t have to be perfectly parallel lines, but more on that later!
Function
Unlike many other authors who are eager to draw automatic trend lines, I made a trade-off between trend lines based channels and moving averages. As a result, it is more clear to see the trend change and price positions with overbought and oversolder zones highlighted in fuchsia and yellow colors, respectively. Same to trend lines, there are 3 main types of trend channels.
Ascending channel or Rising channel (higher highs and higher lows, which would break out sliver color trend channel and run into fuchsia color overbought band)
Descending channel or Falling channel (lower highs and lower lows, which would break out sliver color trend channel and run into yellow color oversold band)
Sideways or horizontal channel (ranging, which will keep oscillating within silver color trend channel)
Inputs
Algo Lookback (Smaller for Less Computing Power) --> This indicator is very computing-power consuming and if you failed to load it properly and try to input a smaller integer value here.
Algo Nested Period (Smaller for Faster Response) --> This indicator is very computing-power consuming and if you failed to load it properly and try to increase the number here.
Key Signal
Silver channel --> trend channel to identify sideways.
fuchsia band --> overbought band and sell after price cross under the fuchsia lines (Note, the second crossunder is more meaningful)
yellow band --> oversold band and buy after price break out and cross over the yellow lines (Note, the second crossover is more meaningful)
Remarks
This indicator algorithm is very computing-power consuming and it may fail to load in small time frame.
This is a Level 3 free but closed source indicator.
Feedbacks are appreciated.
Keltner TrendThis indicator takes the concept of Keltner Channels and uses them as a trend following system by using a deviation band of 1 ATR, such that when the price closes above the upper band a bull trend is predicted to follow, and when the price closes below the lower band the start of a bear trend is assumed.
Only 1 band is plotted at all times depending on the bias of the trend.
Default settings are a 21 EMA as a centerline with a 13 period ATR.
Enjoy!
sadosi trends and barrierThis indicator should be used for give ideas.
what they can do?
draw up and down trend lines
draw support and resistance lines
to inform about the current price
signal for high and low prices
how can?
By analyzing the prices in the 3 selected periods, 3 highs and 3 lows prices are marked. With the marked points, trend and resistance lines are drawn. The current price is analyzed and useful calculations displayed in the info box. Finaly adding moving averages. After all these transactions, the trend and resistances become easily visible on the chart.
You can fine-tune the angle of the trend using high and low extensions
you can catch different trend lines by changing the high and low trend points
By changing the periods, you can set position the trend lines more accurately.
When the price is too low or too high, the information box will warn you by change color.
The trend lines to be created are for the purpose of giving an idea and convenience. It can be used on all timeframes, including horizontal trends.
Trend Trigger 15 SecThe following are printed:
The FAST ma is a HULL smoothed transparent line that closely hugs the price bars. This is the trigger line. (default 9/3 length)
The MIDLINE ma is a HULL smoothed solid thick line that tries to show the short term trend and is used to confirm bias. (default 100 length)
The SLOWEST ma is a HULL smoothed transparent thicker line that tries to show the long term trend. It is not used in any calculation and only for visual aide. (default 200 length)
Every GREEN or RED tag that prints, will display the percentage change over the last 12 bars.
Every tag is the trigger that confirms:
1)The CLOSE is above the MIDLINE ma
2)The FAST ma is climbing (GREEN) or falling (RED)
3)RSI is climbing/falling and confirms direction with the FAST ma. The RSI has a length of 5 that is smoothed with a 7 period HULL.
4)The tag text will change from white to purple if the (very fast) RSI is above/equal to 85 or below/equal to 15.
5)The close is above either the last or second to last bar's close.
6)The percentage of change (of close) over the last 12 bars is more than 0.25% or less than -0.25%
Each trigger will print a stop line and targets at = 0.5x stop value, 1x stop value, 1.5x stop value, 2x stop value. These lines continue to print until the FAST ma changes direction. I use a formatted gamma box to easily overlay and extend those lines when needed.
_______________________________________________________________________________________________________________________________________________________________________________________________________________
Here is an example of the use of a gamma box to draw an actual entry. I draw set it up so that, while holding control; click on the 1st target line, then move far right and click in space so the 2nd target line ALIGNS with the pointer.
EXAMPLE:
imgur.com
GAMA BOX SETTINGS:
imgur.com
__________________________________________________________________________________________________________________________________________________________________________________________________________________
The LONG position stop value is calculated by determining the lowest low of the last 12 bars - 0.1*wma(atr(20),20).
The SHORT position stop value is calculated by determining the highest high of the last 12 bars + 0.1*wma(atr(20),20).
These calculations find the low of the last 3 minutes, extend it by a small amount, and then draws the stops and targets.
There is always a running tag that prints ahead of the current bar. It displays the percentage change in the current direction of the FAST ma. It also shows the RSI value which will turn purple if RSI is >=85 or <=15.
The circle and flag below the tag helps visually confirm the trend direction of the FAST and MIDLINE mas.
The circle colors in diction of the MIDLINE ma
The flag colors in the direction of the FAST ma.
When they are both RED, both lines confirm a SHORT entry.
When they are both GREEN, both lines confirm a LONG entry.
If you enable the PM signal, position entries will fire before 09h30m30s (coded begin time).
If you enable "backtest", prior days will show tags/targets/stops including PM times.
There is a single alarm option. It will fire for either a LONG or SHORT entry.
The alarm is listed as "SIGNAL".
Once it is armed, the alarm will show as active in the "Alerts" column, which will read: {{ticker}} {{plot_3}}% @ {{close}}
This will print (when fired):
The ticker,
The percentage of change over the last 12 bars. If the value is negative than the entry is trending DOWN, if this value is positive; than the entry is trending UP)
The price at which the alarm fired.
Trend Persistence Rate Indicator [CC]The Trend Persistence Rate Indicator was created by Richard Poster (Stocks and Commodities Feb 2021 pg 12) and this indicator is a good trend strength indicator similar to ADX. A good strategy with this indicator according to the author is to combine this with a moving average crossover strategy and a volatility indicator. Buy when the price crosses over the moving average and when the volatility and this indicator are over a selected minimum. I think 30-40 as a minimum for this indicator works well. Exit that position when this indicator peaks and starts to go down and it should be very profitable for you. I have included general buy and sell signals with this indicator as well.
Let me know if there are any other indicators you would like to see me publish!