Strategy Myth-Busting #5 - POKI+GTREND+ADX - [MYN]This is part of a new series we are calling "Strategy Myth-Busting" where we take open public manual trading strategies and automate them. The goal is to not only validate the authenticity of the claims but to provide an automated version for traders who wish to trade autonomously.
Our fifth one we are automating is one of the strategies from "The Best 3 Buy And Sell Indicators on Tradingview + Confirmation Indicators ( The Golden Ones ))" from "Online Trading Signals (Scalping Channel)". No formal backtesting was done by them and resuructo messaged me asking if we could validate their claims.
Originally, we mimic verbatim the settings Online Trading Signals was using however weren't getting promising results. So before we stopped there we thought we might want to see if this could be improved on. So we adjusted the Renko Assignment modifier from ATR to Traditional and adjusted the value to be higher from 30 to 47. We also decided to try adding another signal confirmation to eliminate some of the ranged market conditions so we choose our favorite, ADX . Also, given we are using this on a higher time-frame we adjusted the G-Channel Trend detection source from close to OHLC4 to get better average price action indication and more accurate trend direction.
This strategy uses a combination of 2 open-source public indicators:
poki buy and sell Take profit and stop loss by RafaelZioni
G-Channel Trend Detection by jaggedsoft
Trading Rules
15m - 4h timeframe. We saw best results at the recommended 1 hour timeframe.
Long Entry:
When POKI triggers a buy signal
When G-Channel Trend Detection is in an upward trend (Green)
ADX Is above 25
Short Entry:
When POKI triggers a sell signal
When G-Channel Trend Detection is in an downward trend (red)
ADX Is above 25
If you know of or have a strategy you want to see myth-busted or just have an idea for one, please feel free to message me.
Trend
TwV Market SignalsSignals Indicator
Summary
This indicator allows traders to have in handy short and long signals and estimate the trend of the market.
The indicator draws Long and Short signals depending on the trend analysis. The indicators also use meaningful colors for traders to be able to visually understand the graphs, such us fillings on EMAs, so the possible trend is represented.
The colors used are light green for bullish, red for bearish, dark green for possible bearish to bullish change and purple for possible bullish to bearish change. These colors are applicable to all fillings and summary box.
How to use this indicator
The use of EMAs 10,20 and 50 draw the medium to long term trends, therefore avoiding signals against the trend. Furthermore the EMAs will advise possible change in trends, specially considering the 10 and 20 cross, considering that crossing the 10,20 and 50, might confirm the change in med to long term trend change of the price. This is completely visual in the chart as it tints green for positive trend and yellow to red for negative trend.
The 200 SMA is included as it also gives better confirmation to the trend, the basics tell that when the EMAs mentioned above are below the 200 SMA then the likelihood for entries in long positions are not the best and vice versa for short.
Therefore, the trader shall filter Long and Short Signals accordingly as this EMAs are not used to send Long and Short signals considering that they confirm the trend in a slow pace and not reactively to the price volatility.
There are two strategies built-in within the indicator:
Strategy 1 – Longer time trades and high volatility handling
The Long and Short Signals are based on 14 and EMAs (by default). This two Mas are used to send signals based on their crossovers as they are way more reactive to the price movement.
Trader shall consider that EMAs are used for higher timeframes, therefore the indicator has the possibility to adjust the EMAs and use SMAs or WMAs instead for one or the two parameters (14 and 21).
WMAs react faster to the price volatility so the trader shall adjust this according to the timeframe being used. (Lower timeframes suggested).
This strategy is used for trades that might keep running for longer periods of times.
For reference on what the SMAs, EMAs and WMAs are, please see below sections in the description.
Strategy 2 - Shorter time trades and unhandled high volatility
The Long and Short Signals are bases on HMA. HMAs (Hull Moving Averages) track the price movement and volatility way faster that SMAs, EMAs and WMAs, therefore as the HMA follow the price quicker, it is intended for short time trades even in higher timeframes.
Scalping is not suggested using this strategy as HMA do not handle high volatility even on higher timeframes.
One of the biggest differences from the first strategy is that there is no more than a single HMA length to work with, which is 24 as default.
HMAs calculation is different to other MAs, therefore combining various HMAs lengths looking for crossovers become trend identification a lot less precise. HMAs are not intended to be used with different length crossovers.
Exit points = The use of Stochastic and VRVP
Stochastic RSI
It is well known that when Stochastic RSI resets when overbought or oversold therefore traders have within a summary box the possibility to check whether the K & D lines in the Stochastic RSI hace crossed over bullish or bearish.
Although the crossover is not mandatory for a change trend, the crossover might be used by the trader to exit a position considering that the price might move on the opposite direction.
Traders shall look at the summary box, where bullish and bearish crossovers are shown, so they evaluate their position exit.
Visible Range Volume Profile
The use of the VRVP is to find support and resistance on the price movements. Although high and lows are used as possible supports and resistances, VRVP shows an area of confluence on the order book, where volume of positions are accumulated and that might act as support or resistance depending on the price direction.
Traders can visually activate the VRVP to see the Point of Control (POC) directly on the chart as a line (similar as how a support or resistance would be drawn). Moreover, traders have the ability to see within the summary box, whether to see if the price is above or below the POC, so they clearly know if it is acting as support or resistance.
Price Direction
Trade the market trend is well know to be used to identify possible price direction. It is important not to confuse the longer time trend drawn by the EMAs with the TTM Trend bar color. The TTM trend colors bars according to the price direction, helping traders not to confuse when a red bar appears on an up trend or green bars on a down trend.
This coloring helps traders not to exit trades based on bar coloring, which might psychologically affect when scalping or short-term trading specially.
Originally, the TTM trend is used considering the ADX in and indicator called TTM Squeeze, where the strength of the movement is measured, therefore although candle colors help with the price direction, ADX provides the trader the ability to see whether the direction is losing momentum and then catch the best possible exit before the direction change.
How to use Summary
1. Receive the Long or Short Signals using strategy 1 or 2, depending on the selected in the main menu of the indicator.
2. Evaluate the trend based on the 10,20, 50 and 200 MAs. Filter the Long and Short signals accordingly.
3. Monitor constantly the TTM Trend and the ADX for the direction and strength of the position entered and review if the momentum is being lost, considering step 4 or other possible reasons that might lead to exiting the position.
4. Once entered to a position evaluate constantly the Stochastic RSI bearish or bullish crossover or POC value on screen or summary box to exit the position.
Terminology basics
Trend indicators
Exponential Moving Average (EMAs): The base indicator is composed of moving averages of 10, 20 and 55 exponential periods, to determine a possible bullish or bearish trend (EMA Crossing)
Simple Moving Average (SMA): The base indicator is composed of a moving average of 200 simple periods, which in conjunction with the EMAs can lead to estimate potential upward or downwards moves, as well as possible resistances. (SMA Positioning)
Weighted moving average (WMA): It is a technical indicator that traders use to generate trade direction and make a long or short position. It assigns greater weighting to recent data points and less weighting on past data points. (WMA Crossing)
Strength and S/R indicators
VPVR (Volume Profile Visible Range): It allows to determine the Point of Control (POC) which is the node with the highest volume profile. This can be used as an important retest point or to calculate potential support and resistance. The POC level is represented with a red dotted line in the graph.
The VPVR is a simplified version of the “TwV Multi-timeframe Dynamic VRVP” that you can find for free use in my profile. This version calculates the main’s timeframe POC and also has the possibility to be fixed range if the trader enables it from the menu. (Dynamic range by default).
ADX (Average Directional Index): The ADX helps the indicator to estimate the strength of the movement, always considering the DI+ and DI- to not go against the trend strength. This is represented as summary text in a table.
/
Exit indicator
Stochastic RSI: It is an indicator used in technical analysis that ranges between zero and a hundred and is created by applying the Stochastic oscillator formula to a set of relative strength index (RSI) values rather than to standard price data. Using RSI values within the Stochastic formula gives traders an idea of whether the current RSI value is overbought or oversold (Exit zones)
/
Summary Panel
This panel allows the trader to have a summary of the current status (bearish or bullish) of some of the most determinant indicators within the strategy. It has the following characteristics:
It is placed on the right bottom side of the chart by the default. Traders can change its position or hidden it through the main menu of the indicator.
Its colors change according to the indicator’s values and constant change for easier detection.
The summary box shows the projection for each of the indicators (Trend, Stochastic, EMA, VPVR and ADX).
The summary box is multi-language (English and Spanish), which can be changes in the main menu of the indicator
Alerts
Within the indicator’s menu, you can set up alerts for all long, short, close long and close short signals, which might come in handy when the trader would like to have notifications on the Trading View website, desktop app or phone apps. Furthermore, there are also signals for possible exit points, which can also be activated from the indicator’s menu.
TwV Market Signals ScreenerMarket Signals Screener
This indicator allows traders to have a view of multiple pairs and timeframes Long/Short signals and specific information of parameters, based on the TwV Market Signals also developed by me and that can be found on my profile.
Full Screener Panel
This panel allows the trader to monitor multiple pairs at a single screen, giving an immediate vision of possible entries and exits (Long/Short). Moreover, allows traders to have handy all information of the TwV Market Signals Indicator that might be analyzed further for each pair. It has the following characteristics:
It can be placed anywhere on the screen through the main menu of the indicator.
It can be combined with the same indicator multiple times, as per screener is limited to show 40 pairs, you can select the number of panels being added to adjust position one next to each other.
It strengthens colors when a pair has changed its signals in order to the trader to know immediate changes and then do the follow up
The screener shows the pairs, which can be changed within the menus.
The screener shows the Long and Short Signals in its las column but previously, it shows the most critical parameters in the strategies (Market Signals Indicator) that determined the possible Long/Short position. Therefore, the EMAs, STOCH, SQZ, ADX, and TTM, are summarized in the screener for each pair.
For analyzing a specific pair, refer to the the Twv Market Signals Indicator, which is other indicator that might be on my TradingView Profile and that was used as base for the screener.
How to use this indicator and work with the strategies of the TwV Market Signals Indicator
The use of EMAs 10,20 and 50 draw the medium to long term trends, therefore avoiding signals against the trend. Furthermore, the EMAs will advise possible change in trends, especially considering the 10 and 20 cross, considering that crossing the 10,20 and 50, might confirm the change in med to long term trend change of the price. This is completely visual in the chart as it tints green for positive trend and yellow to red for negative trend.
The 200 SMA is included as it also gives better confirmation to the trend, the basics tell that when the EMAs mentioned above are below the 200 SMA then the likelihood for entries in long positions are not the best and vice versa for short.
Therefore, the trader shall filter Long and Short Signals accordingly as this EMAs are not used to send Long and Short signals considering that they confirm the trend in a slow pace and not reactively to the price volatility.
There are two strategies built-in within the indicator:
Strategy 1 – Longer time trades and high volatility handling
The Long and Short Signals are based on 14 and EMAs (by default). This two Mas are used to send signals based on their crossovers as they are way more reactive to the price movement.
Trader shall consider that EMAs are used for higher timeframes, therefore the indicator has the possibility to adjust the EMAs and use SMAs or WMAs instead for one or the two parameters (14 and 21).
WMAs react faster to the price volatility so the trader shall adjust this according to the timeframe being used. (Lower timeframes suggested).
This strategy is used for trades that might keep running for longer periods of times.
For reference on what the SMAs, EMAs and WMAs are, please see below sections in the description.
Strategy 2 - Shorter time trades and unhandled high volatility
The Long and Short Signals are bases on HMA. HMAs (Hull Moving Averages) track the price movement and volatility way faster that SMAs, EMAs and WMAs, therefore as the HMA follow the price quicker, it is intended for short time trades even in higher timeframes.
Scalping is not suggested using this strategy as HMA do not handle high volatility even on higher timeframes.
One of the biggest differences from the first strategy is that there is no more than a single HMA length to work with, which is 24 as default.
HMAs calculation is different to other MAs, therefore combining various HMAs lengths looking for crossovers become trend identification a lot less precise. HMAs are not intended to be used with different length crossovers.
Exit points = The use of Stochastic and VRVP
Stochastic RSI
It is well known that when Stochastic RSI resets when overbought or oversold therefore traders have within a summary box the possibility to check whether the K & D lines in the Stochastic RSI hace crossed over bullish or bearish.
Although the crossover is not mandatory for a change trend, the crossover might be used by the trader to exit a position considering that the price might move on the opposite direction.
Traders shall look at the summary box, where bullish and bearish crossovers are shown, so they evaluate their position exit.
Visible Range Volume Profile
The use of the VRVP is to find support and resistance on the price movements. Although high and lows are used as possible supports and resistances, VRVP shows an area of confluence on the order book, where volume of positions are accumulated and that might act as support or resistance depending on the price direction.
Traders can visually activate the VRVP to see the Point of Control (POC) directly on the chart as a line (similar as how a support or resistance would be drawn). Moreover, traders have the ability to see within the summary box, whether to see if the price is above or below the POC, so they clearly know if it is acting as support or resistance.
Price Direction
Trade the market trend is well known to be used to identify possible price direction. It is important not to confuse the longer time trend drawn by the EMAs with the TTM Trend bar color. The TTM trend colors bars according to the price direction, helping traders not to confuse when a red bar appears on an uptrend or green bars on a down trend.
This coloring helps traders not to exit trades based on bar coloring, which might psychologically affect when scalping or short-term trading specially.
Originally, the TTM trend is used considering the ADX in and indicator called TTM Squeeze, where the strength of the movement is measured, therefore although candle colors help with the price direction, ADX provides the trader the ability to see whether the direction is losing momentum and then catch the best possible exit before the direction change.
Terminology basics
Trend indicators
Exponential Moving Average (EMAs): The base indicator is composed of moving averages of 10, 20 and 55 exponential periods, to determine a possible bullish or bearish trend (EMA Crossing)
Simple Moving Average (SMA): The base indicator is composed of a moving average of 200 simple periods, which in conjunction with the EMAs can lead to estimate potential upward or downwards moves, as well as possible resistances. (SMA Positioning)
Weighted moving average (WMA): It is a technical indicator that traders use to generate trade direction and make a long or short position. It assigns greater weighting to recent data points and less weighting on past data points. (WMA Crossing)
Strength and S/R indicators
VPVR (Volume Profile Visible Range): It allows to determine the Point of Control (POC) which is the node with the highest volume profile. This can be used as an important retest point or to calculate potential support and resistance. The POC level is represented with a red dotted line in the graph.
The VPVR is a simplified version of the “TwV Multi-timeframe Dynamic VRVP” that you can find for free use in my profile. This version calculates the main’s timeframe POC and also has the possibility to be fixed range if the trader enables it from the menu. (Dynamic range by default).
ADX (Average Directional Index): The ADX helps the indicator to estimate the strength of the movement, always considering the DI+ and DI- to not go against the trend strength. This is represented as summary text in a table.
/
Exit indicator
Stochastic RSI: It is an indicator used in technical analysis that ranges between zero and a hundred and is created by applying the Stochastic oscillator formula to a set of relative strength index (RSI) values rather than to standard price data. Using RSI values within the Stochastic formula gives traders an idea of whether the current RSI value is overbought or oversold (Exit zones)
/
How to use Summary
1. Receive the Long or Short Signals using strategy 1 or 2, depending on the selected in the main menu of the indicator.
2. Evaluate the trend based on the 10,20, 50 and 200 MAs. Filter the Long and Short signals accordingly.
3. Monitor constantly the TTM Trend and the ADX for the direction and strength of the position entered and review if the momentum is being lost, considering step 4 or other possible reasons that might lead to exiting the position.
4. Once entered to a position evaluate constantly the Stochastic RSI bearish or bullish crossover or POC value on screen or summary box to exit the position.
5. Consider that for doing the evaluation individually, you shall use the TwV Market Signals.
MATHR3E RAMP-MA█ OVERVIEW
MATHR3E RAMP-MA (R-MA) is a trend following indicator.
█ CONCEPTS
Disclaimer:
MATHR3E RAMP-MA indicator is intended for advanced traders and may fit your profile, whether you are a day trader or a long-term investor.
It was originally developed by a renowned market analyst and documented in numerous books. Among them is the author Jason Perl.
It is recommended to have read the trading techniques mentioned in the books covering this indicator beforehand.
How to use:
MATHR3E RAMP-MA is useful for determining if a market is trending and when so, to procure entry points to initiate a trade in line with the expected directional move.
It can be applied to markets as a stop-loss, as well as a low-risk entry qualifier in conjunction with other indicators of the same author.
Moving Average (R-MA I):
Only displayed when market is trending
• Bull trend: Green (moving avg Lows/Period)
• Bear trend: Red (moving avg Highs/Period)
Moving Average (R-MA II):
Always displayed
• Bullish outlook on the market: the 3-day moving average must be positioned above the 34-day moving average
• Bearish outlook on the market: the 3-day moving average must be positioned below the 34-day moving average
█ FEATURES & BENEFITS
Versatile:
This indicator is based on relative price action, so you can apply it to any market or time frame without having to change the default settings.
Rate of Change:
The ROC is calculated for the fast and slow periods of the R-MA (II).
R-MA (II) is colored blue when its rate of change is advancing and maroon when it is declining.
Breakout Qualifier:
A close above/below the moving average R-MA (I) that is confirmed by the following price bar's opening price
Materialized on chart with Flags:
• Green when bear trend ends
• Red when bull trend ends
Alerts
Get notified on:
• UpTrend breakout
• DnTrend breakout
• Any breakout Signal
MATHR3E Range Conquest Index█ OVERVIEW
MATHR3E Range Conquest Index (RCI) is an arithmetic oscillator for trend analysis.
█ CONCEPTS
Disclaimer
MATHR3E RCI indicator is intended for advanced traders and may fit your profile, whether you are a day trader or a long-term investor.
It was originally developed by a renowned market analyst and documented in numerous books. Among them is the author Jason Perl.
It is recommended to have read the trading techniques mentioned in the books covering this indicator beforehand.
Introduction
MATHR3E RCI can serve several purposes:
• By helping to confirm price reversals.
• By giving low risk potential entry indication
• By outlining the emergence of a price trend
How to use
MATHR3E RCI is a dual oscillator.
Each oscillator compares the price evolution of a given day with that of two trading days earlier.
They differ in the amount of trading bars taken into account when calculating the RCI.
Oscillator values fluctuate between overbought and oversold levels
The time spent above or below these levels is compared to the Duration Analysis parameter (in bars).
When it is greater than this Duration, an excessive move is underway which usually require the oscillator to return to the neutral zone.
Strengths or weaknesses are then detected when the oscillator returns to its zone of excess by marking a mild reading, i.e. spending less time than the duration analysis parameter.
█ FEATURES & BENEFITS
Versatile
The indicator is designed to work with other indicators by the same author, including the identification of exhaustion points.
This indicator can be applied to any market or time frame.
Price Oscillator Qualifier
Identify low-risk buy or sell opportunities with
• Qualified upside breakouts
• Qualified downside breakouts
Fully Customizable
Multiples settings available to configure
• Oscillator Periods
• Duration Analysis
• Overbought and oversold reading
Alerts
Get notified on:
• Weakness signal
• Strength signal
• POQ signals
Flying Dragon Trend IndicatorFlying Dragon Trend Indicator can be used to indicate the trend on all timeframes by finetuning the input settings.
The Flying Dragon Trend family includes both the strategy and the indicator, where the strategy supports of selecting the optimal set of inputs for the indicator in each scenario. Highly recommended to get familiar with the strategy first to get the best out of the indicator.
Flying Dragon Trend plots the trend bands into the ribbon, where the colours indicate the trend of each band. The plotting of the bands can be turned off in the input settings. Based on the user selectable Risk Level the trend pivot indicator is shown for the possible trend pivot when the price crosses the certain moving average line, or at the Lowest risk level all the bands have the same colour. The trend pivot indicator is not shown on the Lowest risk level, but the colour of the trend bands is the indicator instead .
The main idea is to combine two different moving averages to cross each other at the possible trend pivot point, but trying to avoid any short term bounces to affect the trend indication. The ingenuity resides in the combination of selected moving average types, lengths and especially the offsets. The trend bands give visual hint for the user while observing the price interaction with the bands, one could say that when "the Dragon swallows the candles the jaws wide open", then there is high possibility for the pivot. The leading moving average should be fast while the lagging moving average should be, well, lagging behind the leading one. There is Offset selections for each moving average, three for leading one and one for the lagging one, those are where the magic happens. After user has selected preferred moving average types and lengths, by tuning each offset the optimal sweet spot for each timeframe and equity will be found. The default values are good enough starting points for longer (4h and up) timeframes, but shorter timeframes (minutes to hours) require different combination of settings, some hints are provided in tooltips. Basically the slower the "leading" moving average (like HMA75 or HMA115) and quicker the "lagging" moving average (like SMA12 or SMA5) become, the better performance at the Lowest risk level on minute scales. This "reversed" approach at the minute scales is shown also as reversed colour for the "lagging" moving average trend band, which seems to make it work surprisingly well.
The Flying Dragon Trend does not necessarily work well on zig zag and range bounce scenarios without additional finetuning of the input settings to fit the current condition.
Flying Dragon Trend StrategyFlying Dragon Trend Strategy can be used to indicate the trend on all timeframes by finetuning the input settings.
The Flying Dragon Trend family includes both the strategy and the indicator, where the strategy supports of selecting the optimal set of inputs for the indicator in each scenario. Highly recommended to get familiar with the strategy first to get the best out of the indicator.
Flying Dragon Trend plots the trend bands into the ribbon, where the colours indicate the trend of each band. The plotting of the bands can be turned off in the input settings. Based on the user selectable Risk Level the strategy is executed when the price crosses the certain moving average line, or at the Lowest risk level all the bands have the same colour.
The main idea is to combine two different moving averages to cross each other at the possible trend pivot point, but trying to avoid any short term bounces to affect the trend indication. The ingenuity resides in the combination of selected moving average types, lengths and especially the offsets. The trend bands give visual hint for the user while observing the price interaction with the bands, one could say that when "the Dragon swallows the candles the jaws wide open", then there is high possibility for the pivot. The leading moving average should be fast while the lagging moving average should be, well, lagging behind the leading one. There is Offset selections for each moving average, three for leading one and one for the lagging one, those are where the magic happens. After user has selected preferred moving average types and lengths, by tuning each offset the optimal sweet spot for each timeframe and equity will be found. The default values are good enough starting points for longer (4h and up) timeframes, but shorter timeframes (minutes to hours) require different combination of settings, some hints are provided in tooltips. Basically the slower the "leading" moving average (like HMA75 or HMA115) and quicker the "lagging" moving average (like SMA12 or SMA5) become, the better performance at the Lowest risk level on minute scales. This "reversed" approach at the minute scales is shown also as reversed colour for the "lagging" moving average trend band, which seems to make it work surprisingly well.
The Flying Dragon Trend does not necessarily work well on zig zag and range bounce scenarios without additional finetuning of the input settings to fit the current condition.
Strategy direction selector by DashTrader.
Multi SMI Ergodic OscillatorThe Multi SMI Ergodic Oscillator (Multi SMIEO) indicator can be used to identify potential buy and sell signals based on the relationship between the TSI and EMA lines.
The script is creating an indicator that plots multiple (3) sets of Time Series Indicator (TSI-Indicator) and Exponential Moving Average (EMA-Signal) lines as a single indicator.
The TSI is a momentum oscillator that helps identify overbought and oversold conditions. It is calculated using the close prices of an asset, a short-term moving average, and a long-term moving average. The script uses three different pairs of input values for the short-term and long-term periods, which can be adjusted by the user.
The EMA is a type of moving average that gives more weight to recent prices. It is calculated by applying a weighting factor to the most recent price, and then adding that weighted value to the previous EMA value. The script uses three different input values for the length of the EMA, which can also be adjusted by the user.
After calculating the TSI and EMA for each set, the script plots them on the same graph, with different colors and widths to differentiate them. The three sets of TSI and EMA lines are plotted to allow the user to compare the results of different periods. The script also plots a horizontal line at zero, which is used as a reference point for the oscillations of the indicator lines.
One way to use this indicator is to look for crossovers between the TSI and the EMA lines. A bullish crossover occurs when the TSI crosses above the EMA. This suggests that the buying pressure is increasing and a potential buy signal is generated. A bearish crossover occurs when the TSI crosses below the EMA. This suggests that the selling pressure is increasing and a potential sell signal is generated.
Some other ways that the indicator can be used include:
1. Identifying trends: The TSI and EMA lines can be used to identify the direction of the trend. An uptrend is present when the TSI and EMA lines are both trending upwards, while a downtrend is present when the TSI and EMA lines are both trending downwards.
2. Overbought and oversold conditions: The TSI can be used to identify overbought and oversold conditions. When the TSI is above the upper limit of the range, the asset is considered overbought and may be due for a price correction. Conversely, when the TSI is below the lower limit of the range, the asset is considered oversold and may be due for a price rebound.
3. Confirming price action: The Multi SMIEO indicator can be used to confirm price action. If a bullish divergence is present, it confirms a potential bullish reversal. If a bearish divergence is present, it confirms a potential bearish reversal.
4. Multiple time frame analysis: By using different periods for the TSI and EMA lines, the indicator can be used to analyze the asset on multiple time frames. It can be useful to compare the results of different periods to get a better understanding of the asset's price movements.
5. Risk management: This indicator can be used as an element of risk management strategy, it can help traders to identify overbought and oversold conditions to set stop loss or take profit levels.
The Multi SMI Ergodic Oscillator (Multi SMIEO) is a versatile indicator that can be used in a number of ways to analyze the price movements of an asset. It can be used to identify potential buy and sell signals, trends, overbought and oversold conditions, and to confirm price action. By using different periods for the TSI and EMA lines, the indicator can also be used to analyze the asset on multiple time frames. However, it is important to remember that indicators are based on historical data, and past performance does not guarantee future results.
It is important to use the indicator as part of a comprehensive trading strategy that includes risk management and other analysis techniques, such as fundamental and technical analysis. It is also important to keep in mind that indicators are not a standalone solution for trading, they should be used in conjunction with other market analysis and research techniques to generate better results.
Lastly, it is important to keep in mind that trading in financial markets comes with a certain level of risk and it is crucial to always have a proper risk management plan in place. Never invest more than you can afford to lose.
Probability Oscillator (Expo)█ Overview
The Probability Oscillator uses a Bayesian approach to measure the probability of a price movement and trend continuation. This approach considers the prior probability of a price movement and the current market conditions to identify trends, sentiment, momentum, and retracements.
█ How does the indicator work?
The Probability Oscillator is based on the idea of Bayesian probability , which is a way of using existing data to make predictions about the likelihood of an event occurring. This indicator uses the Bayesian probability model to analyze past trading activity and calculate the probability of a trend continuing. This function also considers the prior probability of a price movement and the current market conditions to analyze the likelihood of a retracement.
█ How to use
Investors can use this indicator to measure the market sentiment and the strength/direction of a trend. It does also give insights into momentum moves and retracements.
█ Indicator Customization
The user can change the trend approaches and input source as well as adjust the overbought and oversold areas to make the calculation more sensitive to retracements.
The user can change the sensitivity of the momentum function to adjust it only to identify the most significant momentum moves.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Market Structure MA Based BOS [liwei666]
🎲 Overview
🎯 This BOS(Break Of Structure) indicator build based on different MA such as EMA/RMA/HMA, it's usually earlier than pivothigh() method
when trend beginning, customer your BOS with 2 parameters now.
🎲 Indicator design logic
🎯 The logic is simple and code looks complex, I‘ll explain core logic but not code details.
1. use close-in EMA's highest/lowest value mark as SWING High/Low when EMA crossover/under,
not use func ta.pivothigh()/ta.pivotlow()
2. once price reaching EMA’s SWING High/Low, draw a line link High/Low to current bar, labled as BOS
3. find regular pattern benefit your trading.
🎲 Settings
🎯 there are 4 input properties in script, 2 properties are meaningful in 'GRP1' another 2 are display config in 'GRP2'.
GRP1
MA_Type: MA type you can choose(EMA/RMA/SMA/HMA), default is 'HMA'.
short_ma_len: MA length of your current timeframe on chart
GRP2
show_short_zz: Show short_ma Zigzag
show_ma_cross_signal: Show ma_cross_signal
🎲 Usage
🎯 BOS signal usually worked fine in high volatility market, low volatility is meaningless.
🎯 We can see that it performs well in trending market of different symbols, and BOS is an opportunity to add positions
BINANCE:BTCUSDTPERP
BINANCE:ETHUSDTPERP
🎯 MA Based signal is earlier than pivothigh()/pivotlow() method when trend beginning. it means higher profit-loss rate.
🎯 any questions or suggestion please comment below.
Additionally, I plan to publish 20 profitable strategies in 2023; indicatior not one of them,
let‘s witness it together!
Hope this indicator will be useful for you :)
enjoy! 🚀🚀🚀
Trend Movement S1-TMIdea:
This script combines: Moving Average (MA), Directional Movement (DMI), MACD
When condition of long or short position from all mentioned indicator are met script opens position. Once trend changes, it closes the position.
Then add some filter conditions to avoid noise.
Concept:
(Note that we take the close to get the closing price)
-Using only cross up down with MA will give a reversal point, but the downside is that it can be noisy.
-MACD will show the current trend detected by cross point.
-Then the +DI , -DI , ADX values are taken into account to confirm the price direction and movement strength.
-This strategy solves this problem by combining 2 more moving averages called 2 trend lines 1 long and 1 short. When the short line crosses up, it will show that the price trend is increasing (at this time the background between these 2 lines will be green) and vice versa (red). To determine if the current trend is bullish or bearish . This will avoid buying when price tend to go down.
-However, there will be many points where some more complex logic is needed. It will add conditions and calculate the probabilities before triggering the signals (You can see them through the item symbols B1, B2, ... ).
How it works:
1. The thin line is stand for short term moving average, and the thick line is stand for long term moving average.
If thin lines cross the thick lines, their color and background will turn green, the price is tend to go up (Uptrend).
If thin lines cross down thick lines, their color and background will turn red, the price is tend to go down (Downtrend).
2. Ability to check the checkbox in setting to show the Golden/De*ath cross.
The yellow symbol "+" is the Golden cross.
The black symbol "+" is the De*th cross.
3. Buy and Sell are show clearly on strategy as the buy and sell point. The default source from bar is CLOSE
4. Setting "Buy only" it using for spot market.
5. When "Not buy in down trend" is checked, it will not trigger buy when in down trend (thin lines cross down thick lines like description in 1.)
6. Setting High spread will call Close buy when it match the High spread bar with the High spread % value
7. It provides setting "Back test From date/To date" for backtest feature. You can set "BacktestFrom date" as the begin of test period. If check box "Using To Date" is check: "Backtest To Date" will be the end of test period.
Suitable time frames:
4h, 1D, 1W
* Please note that this logic does not attempt to predict future prices or 100% accurate signal; Strategy Tester are available to test the profitability of this strategy.
(INVITE ONLY indicator. Please direct message or visit website to try it out)
Hope you guys enjoy!
Examples:
BTCUSD 4H
TSLA 4H
[UPRIGHT Trading] Aroon Exit OscillatorHello Traders -
I'm releasing this as a friend was talking about how he used to use it as an exit indicator. The Aroon Oscillator isn't the most accurate for entries, but we find its strength in its exits.
The Aroon Oscillator was developed by legendary technical analyst, T. Chande , in 1995 as part of his "Aroon Indicator system." Chande's intention was for his system to determine trend changes. The name "Aroon" comes from the Sanskrit language and roughly translates to "Dawn's early light."
Typically, Aroon uses 25 periods; looking for the high and low 25 periods back, to show its "Aroon Up" and "Aroon Down" lines. The Aroon lines go from 0 to 100, with 100 showing a strong trend and 0 showing a weak trend.
The Aroon Oscillator is like the DMI (Directional Movement Index) created by W. Wilder, in that it, too, uses up and down directional lines; however, Aroon is looking at periods back, while DMI looks at Price difference.
I do not recommend using this indicator alone, it will give late or false signals. Only really meant as a complimentary indicator.
Included:
—A clean interface.
—Zones for easier identification of the indicator's lines movements.
—Exit Signals - All signals are off by default, but these use around the 80 level for and an exit.
—Exit Short and Exit Long alerts.
—Added Option of Early Exits for Both Long and Short.
—Attempted to Add Buy/Sell Signals
—Default is without signals.
Cheers,
Mike
(UPRIGHT Trading)
HL-D Close Fraction Oscillator | AdulariDescription:
This indicator calculates the difference between price high's and low's, and fractions it by the close price. If it calculates the difference between a high and low or low and high is defined by whether the current close is higher than the previous close. It is then also rescaled to ensure the value is always appropriate compared to the last set amount of bars.
This indicator can be used to determine whether a market is trending or ranging, and if so in which direction it is trending.
How do I use it?
Never use this indicator as standalone trading signal, it should be used as confluence.
When the value is above the middle line this shows the bullish trend is strong.
When the value is below the middle line this shows the bearish trend is strong.
When the value crosses above the upper line this indicates the trend may reverse downwards.
When the value crosses below the lower line this indicates the trend may reverse upwards.
When the value crosses above the signal this indicates the current bearish trend is getting weak and may reverse upwards.
When the value crosses below the signal this indicates the current bullish trend is getting weak and may reverse downwards.
Features:
Oscillator value indicating the difference between highs and lows fractioned by the close price.
Signal indicating a clear trend and base line value.
Horizontal lines such as oversold, overbought and middle lines, indicating possible interest zones.
How does it work?
1 — Define trend by checking if current close is above or below previous close.
2 — If the current close is above the previous close, calculate the oscillator's value using this formula:
(high - low) / close
2 — If the current close is below the previous close, calculate the oscillator's value using this formula:
(low - high) / close
3 — Smooth the original value using a specified moving average.
4 — Rescale the value using this formula:
newMin + (newMax - newMin) * (value - oldMin) / math.max(oldMax - oldMin, 10e-10)
5 — Calculate signal value by applying smoothing to the oscillator's value.
BitCoin RSI TrendWhat is it?
This indicator will plot the RSI of BTC with a red or green background based on the top and bottom values which you can set.
How to use it?
For example, you want to trade only if the RSI of BTC is between 50 and 70, so the top value is 70 and bottom is 50. If the RSI value between those values the background will be green, else it will be red.
Why to use it?
The buy and sell strength of the BTC controls the other coins, and it is noticeable when the BTC is over sold and the RSI exceeding the 70, the price will reverse its movement to down, thus it is advisable to not open long position if the RSI of BTC is above the 70-75. Also, if the RSI is under 50 there is a big possibility to move down further to the over bought areas. The best is to buy a altcoins when the BTC RSI is between 50 and 70.
For example, I could avoid a bad long trade on MATICUSDT when the RSI of BTC is going under 50
Or, get a good long trade on MATICUSDT when the RSI of BTC is between 50 and 70
Cuban's Reversion Bands V2Cuban's Reversion Bands V2
Cubans Reversion Bands, are a great indication of price overextension by using specified standard deviations, extended from a moving average basis line, the Volume Weighted Average Trend.
Reversion Bands V2 builds off the original foundation in a big way but utilizes completely new band logic and a more stable basis line, the stability leads to a more consistent band reversion zones.
The basis line is calculated with volatility metrics and long term range determinants.
The band extension points are then weighted on this basis line with the asset's average extensions taken into consideration to fit each asset individually.
Users gain the ability to customize:
EQ Sensitivity
Band Sensitivity
EQ sensitivity will control the reaction time of the basis line e.g. a comparison of the default 1, and below an increase EQ to 100:
1 EQ Sensitivity (Default)
100 EQ Sensitivity
Band Sensitivity will control the distance of deviation from the basis point, this can be used to fine tune the reversion location which could be useful in higher beta environments.
1 Band Sensitivity
100 Band Sensitivity
As a result of overextension we can take this as a means for a potential market shift, for example, in range bound conditions we expect the market to revert at the given reversion zones in the Cuban Reversion Bands V2.
Failure to revert at a band level, and extension above could signify a change in market structure and lead to a trending environment thus giving us the ability to determine a trending environment.
To Do:
alerts
implement additional confluence via other proprietary tools to increase the signal ratio
Generalized Smooth StepHello, folks. Sorry for not posting anything for a long time, just busy with my university studies for the moment.
Quick script for today — Smooth Step.
You can search for it in Wikipedia, but saying shortly and informatively, this is just an advanced type of oscillator, used as momentum indicator.
In the codes across the Internet everybody uses the 3rd order equation, BUT I found it kinda boring to use indicator this simple, so I made an option to choose the order of the equation in the settings — parameter "Order of the equation". This why it is called generalized smooth step, as it makes possible to use equation of virtually any order.
It is limited to 18 because very strange behaviour that you get after passing 18th order (it jsut becomes not tradeable any longer).
As I've mentioned above, it is an advanced version of classical oscillator, used as momentum indicator .
How to use it?
If smooth step is above 50, then the price momentum is bullish;
If smooth step is below 50, then the price momentum is bearish.
As simple as it is, it becomes useful enough on the higher timeframes (>=1H), so feel free to play with it and find optimal settings for yourself.
Hints
Try perform different smoothing and leading methods (developed by Ehler) to get better results;
You can use smooth step as confirmation/filter for trend-following trades.
Hope you will find it valueable.
Take your profits!
- Tarasenko Fyodor
RU:
Привет, ребята. Извините, что долго ничего не выкладывал, просто сейчас занят учебой в университете.
Быстрый скрипт на сегодня — Smooth Step.
Вы можете поискать его теоретическое обоснование в Википедии, но если говорить кратко и информативно, то это совершенствованный тип классического осциллятора, используемый в качестве моментум-индикатора .
В кодах в интернете все используют уравнение 3-го порядка, НО Мне было скучно пользоваться таким простым индикатором, поэтому я сделал возможность выбирать порядок уравнения в настройках — параметр " Порядок уравнения». Поэтому он называется обобщеннымsmooth step, так как позволяет использовать уравнение практически любого порядка.
Я ограничил порядок уравнения 18 , потому что индикатор показывает начинается очень странное поведение, когда вы делаете порядок больше 18 (индикатор просто начинается вести семя хаотично, что ли).
Как я уже упоминал выше, это усовершенствованная версия классического осциллятора, используемого в качестве моментум-индикатора .
Как им пользоваться?
Если smooth step выше 50, то импульс цены бычий;
Если smooth steз\p ниже 50, то импульс цены медвежий.
Хоть это и очень простой индикатор, он может оказаться достаточно полезным на старших таймфреймах (>=1H), так что не стесняйтесь играть с ним и находить оптимальные настройки для себя.
Советы
Попробуйте использовать различные методы сглаживания и лидирования (разработан Джоном Элером (John Ehler)), чтобы получить лучшие результаты;
Вы можете использовать smooth step в качестве подтверждения/фильтра для сделок, следующих за трендом.
Надеюсь, этот скрипт будет вам полезен.
Получите прибыль!
- Тарасенко Фёдор
[GTH] Minervini++ (Minervini's trend template, augmented)This indicator summarizes many of famous trader Mark Minervini's investment criteria into one (hopefully) easy to read indicator.
It is comprised of two general sections: technical and fundamental.
Within the technical section there are 4/5 groups:
(1) Price location (above SMA 50/150/200). Optional: EMA 21
(2) SMAs sequence (SMA 50 above SMA 150 above SMA 200). Optional: EMA 21
(3) SMAs trending, based on a 21 day lookback (adjustable). Optional: EMA 21
(4) Price range (between 25% above 52W low and 25% below 52W high, adjustable)
(5) Optional: Relative Strength (MarketSmith style) in comparison to the SPY (adjustable). Disabled by default, since I personally don't find it very meaningful.
Within the fundamental section there are three groups:
(1) EPS growth over 4 quarters (adjustable), average growth over before mentioned number of quarters, growth acceleration over the same
(2) Revenue, same as for EPS
(3) Net Profit Margin, same as for EPS
There is a "LED" in front of every criterion. If fulfilled it's green, otherwise red. The horizontal "LED strips" summarize the results in a sorted manner, from left to right: green, yellow, red.
The indicator also plots the (EMA 21)/SMA 50/150/200 lines used by Minervini by default (can be disabled). The location on the screen can be chosen, as well as the text size. By default the 52W high/low lines are plotted as well (can be disabled).
Notes:
Although the calculations and values displayed at the right border are based on internally retrieved daily price data and should therefore be independent from the chart's time frame, at times some figures change when a different timeframe is selected.
On rare occasions the indicator is not displayed, but appears after reloading the chart.
Asteroid Belt ScreenerAsteroid Belt Screener Observe the market in relation to the dynamic trend strength Asteroids Belt indicator, reference for trend trading opportunities.
SCAN MULTI ASSETS WITH ALL 3 RESPONSIVE TIMES ALL AT ONCE
The New Compliment Indicator to the much loved Asteroids Belt, providing a unique way to scan the market, never miss an opportunity with multi Asset Alerts and customizable display.
With additional Pre configured Aggregators, users of asteroids belt will be pleased to know that the indicator does come with 50 automated aggregation settings,
Using the custom position coordinates X,Y users can load multiple instances of the screener, choose individual assets, place them on their chart as they wish and scan for 5 assets PER screener.
Users can also choose to use assets outside of the list of 50, and control the aggregators manually, this allows for complete customization with no limit to symbols.
Users are also given the chance to set alerts for the following:
Alerts
Bullish Trend: Fast,Normal Slow (belt trend color change)
Bearish Trend: Fast,Normal Slow (belt trend color change)
Entering Belt: Fast Normal Slow (belt level detections)
Leaving Belt: Fast,Normal Slow (belt level detections)
TO DO:
Additional alerts e.g. fast trend green with red slow belt. Allowing for filtered opportunities.
Increase pre made aggregator asset lists, and improve.
Trend Line Adam Moradi v1 (Tutorial Content)
The Pine Script strategy that plots pivot points and trend lines on a chart. The strategy allows the user to specify the period for calculating pivot points and the number of pivot points to be used for generating trend lines. The user can also specify different colors for the up and down trend lines.
The script starts by defining the input parameters for the strategy and then calculates the pivot high and pivot low values using the pivothigh() and pivotlow() functions. It then stores the pivot points in two arrays called trend_top_values and trend_bottom_values. The script also has two arrays called trend_top_position and trend_bottom_position which store the positions of the pivot points.
The script then defines a function called add_to_array() which takes in three arguments: apointer1, apointer2, and val. This function adds val to the beginning of the array pointed to by apointer1, and adds bar_index to the beginning of the array pointed to by apointer2. It then removes the last element from both arrays.
The script then checks if a pivot high or pivot low value has been calculated, and if so, it adds the value and its position to the appropriate arrays using the add_to_array() function.
Next, the script defines two arrays called bottom_lines and top_lines which will be used to store trend lines. It also defines a variable called starttime which is set to the current time.
The script then enters a loop to calculate and plot the trend lines. It first deletes any existing trend lines from the chart. It then enters two nested loops which iterate over the pivot points stored in the trend_bottom_values and trend_top_values arrays. For each pair of pivot points, the script calculates the slope of the line connecting them and checks if the line is a valid trend line by iterating over the price bars between the two pivot points and checking if the line is above or below the close price of each bar. If the line is found to be a valid trend line, it is plotted on the chart using the line.new() function.
Finally, the script colors the trend lines using the colors specified by the user.
Tutorial Content
'PivotPointNumber' is an input parameter for the script that specifies the number of pivot points to consider when calculating the trend lines. The value of 'PivotPointNumber' is set by the user when they configure the script. It is used to determine the size of the arrays that store the values and positions of the pivot points, as well as the number of pivot points to loop through when calculating the trend lines.
'up_trend_color' is an input parameter for the script that specifies the color to use for drawing the trend lines that are determined to be upward trends. The value of 'up_trend_color' is set by the user when they configure the script and is passed to the color parameter of the line.new() function when drawing the upward trend lines. It determines the visual appearance of the upward trend lines on the chart.
'down_trend_color' is an input parameter for the script that specifies the color to use for drawing the trend lines that are determined to be downward trends. The value of 'down_trend_color' is set by the user when they configure the script and is passed to the color parameter of the line.new() function when drawing the downward trend lines. It determines the visual appearance of the downward trend lines on the chart.
'pivothigh' is a variable in the script that stores the value of the pivot high point. It is calculated using the pivothigh() function, which returns the highest high over a specified number of bars. The value of 'pivothigh' is used in the calculation of the trend lines.
'pivotlow' is a variable in the script that stores the value of the pivot low point. It is calculated using the pivotlow() function, which returns the lowest low over a specified number of bars. The value of 'pivotlow' is used in the calculation of the trend lines.
'trend_top_values' is an array in the script that stores the values of the pivot points that are determined to be at the top of the trend. These are the pivot points that are used to calculate the upward trend lines.
'trend_top_position' is an array in the script that stores the positions (i.e., bar indices) of the pivot points that are stored in the 'trend_top_values' array. These positions correspond to the locations of the pivot points on the chart.
'trend_bottom_values' is an array in the script that stores the values of the pivot points that are determined to be at the bottom of the trend. These are the pivot points that are used to calculate the downward trend lines.
'trend_bottom_position' is an array in the script that stores the positions (i.e., bar indices) of the pivot points that are stored in the 'trend_bottom_values' array. These positions correspond to the locations of the pivot points on the chart.
apointer1 and apointer2 are variables used in the add_to_array() function, which is defined in the script. They are both pointers to arrays, meaning that they hold the memory addresses of the arrays rather than the arrays themselves. They are used to manipulate the arrays by adding new elements to the beginning of the arrays and removing elements from the end of the arrays.
apointer1 is a pointer to an array of floating-point values, while apointer2 is a pointer to an array of integers. The specific arrays that they point to depend on the arguments passed to the add_to_array() function when it is called. For example, if add_to_array(trend_top_values, trend_top_posisiton, pivothigh) is called, then apointer1 would point to the tval array and apointer2 would point to the tpos array.
'bottom_lines' (short for "Bottom Lines") is an array in the script that stores the line objects for the downward trend lines that are drawn on the chart. Each element of the array corresponds to a different trend line.
'top_lines' (short for "Top Lines") is an array in the script that stores the line objects for the upward trend lines that are drawn on the chart. Each element of the array corresponds to a different trend line.
Both 'bottom_lines' and 'top_lines' are arrays of type "line", which is a data type in PineScript that represents a line drawn on a chart. The line objects are created using the line.new() function and are used to draw the trend lines on the chart. The variables are used to store the line objects so that they can be manipulated and deleted later in the script.
Loops
maxline is a variable in the script that specifies the maximum number of trend lines that can be drawn on the chart. It is used to determine the size of the bottom_lines and top_lines arrays, which store the line objects for the trend lines.
The value of maxline is set to 3 at the beginning of the script, meaning that at most 3 trend lines can be drawn on the chart at a time. This value can be changed by the user if desired by modifying the assignment statement "maxline = 3".
'count_line_low' (short for "Count Line Low") is a variable in the script that keeps track of the number of downward trend lines that have been drawn on the chart. It is used to ensure that the maximum number of trend lines (as specified by the maxline variable) is not exceeded.
'count_line_high' (short for "Count Line High") is a variable in the script that keeps track of the number of upward trend lines that have been drawn on the chart. It is used to ensure that the maximum number of trend lines (as specified by the maxline variable) is not exceeded.
Both 'count_line_low' and 'count_line_high' are initialized to 0 at the beginning of the script and are incremented each time a new trend line is drawn. If either variable exceeds the value of maxline, then no more trend lines are drawn.
'pivot1', 'up_val1', 'up_val2', up1, and up2 are variables used in the loop that calculates the downward trend lines in the script. They are used to store intermediate values during the calculation process.
'pivot1' is a loop variable that is used to iterate through the pivot points (stored in the trend_bottom_values and trend_bottom_position arrays) that are being considered for use in the trend line calculation.
'up_val1' and 'up_val2' are variables that store the values of the pivot points that are used to calculate the downward trend line.
up1 and up2 are variables that store the positions (i.e., bar indices) of the pivot points that are stored in 'up_val1' and 'up_val2', respectively. These positions correspond to the locations of the pivot points on the chart.
'value1' and 'value2' are variables that are used to store the values of the pivot points that are being compared in the loop that calculates the trend lines in the script. They are used to determine whether a trend line can be drawn between the two pivot points.
For example, if 'value1' is the value of a pivot point at the top of the trend and 'value2' is the value of a pivot point at the bottom of the trend, then a trend line can be drawn between the two points if 'value1' is greater than 'value2'. The values of 'value1' and 'value2' are used in the calculation of the slope and intercept of the trend line.
'position1' and 'position2' are variables that are used to store the positions (i.e., bar indices) of the pivot points that are being compared in the loop that calculates the trend lines in the script. They are used to determine the distance between the pivot points, which is necessary for calculating the slope of the trend line.
For example, if 'position1' is the position of a pivot point at the top of the trend and 'position2' is the position of a pivot point at the bottom of the trend, then the distance between the two points is given by 'position1' - 'position2'. This distance is used in the calculation of the slope of the trend line.
'different', 'high_line', 'low_location', 'low_value', and 'valid' are variables that are used in the loop that calculates the downward trend lines in the script. They are used to store intermediate values during the calculation process.
'different' is a variable that stores the slope of the downward trend line being calculated. It is calculated as the difference in value between the two pivot points (stored in up_val1 and up_val2) divided by the distance between the pivot points (calculated using their positions, stored in up1 and up2).
'high_line' is a variable that stores the current value of the trend line being calculated at a given point in the loop. It is initialized to the value of the second pivot point (stored in up_val2) and is updated on each iteration of the loop using the value of different.
'low_location' is a variable that stores the position (i.e., bar_index) on the chart of the point where the trend line being calculated first touches the low price. It is initialized to the position of the second pivot point (stored in up2) and is updated on each iteration of the loop if the trend line touches a lower low.
'low_value' is a variable that stores the value of the trend line at the point where it first touches the low price. It is initialized to the value of the second pivot point (stored in up_val2) and is updated on each iteration of the loop if the trend line touches a lower low.
'valid' is a Boolean variable that is used to indicate whether the trend line being calculated is valid. It is initialized to true and is set to false if the trend line does not pass through all the lows between the pivot points. If valid is still true after the loop has completed, then the trend line is considered valid and is drawn on the chart.
d_value1, d_value2, d_position1, and d_position2 are variables that are used in the loop that calculates the upward trend lines in the script. They are used to store intermediate values during the calculation process.
d_value1 and d_value2 are variables that store the values of the pivot points that are used to calculate the upward trend line.
d_position1 and d_position2 are variables that store the positions (i.e., bar indices) of the pivot points that are stored in d_value1 and d_value2, respectively. These positions correspond to the locations of the pivot points on the chart.
The variables d_value1, d_value2, d_position1, and d_position2 have the same function as the variables uv1, uv2, up1, and up2, respectively, but for the calculation of the upward trend lines rather than the downward trend lines. They are used in a similar way to store intermediate values during the calculation process.
thank you.
Trend and Momentum DashboardI created this indicator to tell me when it's time to trade (going long) and when it's time to wait (or going short).
You can enter up to 13 ticker (default is S&P500 and key market segments).
For each ticker, fibonacci levels are calculated and represented either in 5 color or 3 color mode as single lines.
(Thanks to eykpunter for the fibonacci level implementation. I'm using his code and modified it slightly).
Color coding (5 color mode) explanation:
blue = in uptrend area
light blue = in prudent buyers area
gray = in center area
light red = in prudent sellers area
red = in downtrend area
The topline is a combination of all ticker and shows if the market is either bullish or bearish (threshold adjustable in settings)
The bullish/bearish trend can also be used as background color. Alternatively the last bar in the selected time period is been highlighted.
How to use it:
The indicator works on all timeframes. Use the color coding explanation above to see the status of each asset.
a) You can evaluate "long" term trend using day or week timeframe. e.g. I'm usually trading only long and stay out of the market when it is not bullish (top line & background = blue). I'm also using it to know which segments/assets are currently "hot".
b) You can evaluate short term momentum (using 1h or lower timeframe) and see in which direction the market/assets are moving. e.g. I use this when the exchanges open to see how the day is going to move.
I've attached 3 examples in the screenshot - first is the default, in the second one I'm using different asset classes and the third one is for crypto.
Limitations:
There are security request limits as well as string limitations for the security calls in pine script, so I went to the maximum what is currently possible.
(No financial advise, for testing purposes only)
Cosmic Channel LiteCosmic Channel Lite ( CC Lite) draws dynamic non-repainting trendlines and helps
⭐ know when a breakout is about to begin
⭐ predict the position and timing of the next swing reversal
⭐ predict sudden changes in volatility
⭐ recognize whether the price is in bearish or bullish territory
👀 HOW IT WORKS
Cosmic Channel Lite draws a dynamic channel consisting of a support line, basis line and resistance line. These are calculated by applying the Reduced Median Method to groups of moving averages of different type over several periods each, effectively taking 20 data points and reducing them to 3. In between, 6 internal levels are left to give context inside the channel with stable levels, the extremes of which help highlight the SR lines (see chart). The basis line color is determined by its smoothed angle with positive angles in green and negative in purple. The aim of this indicator is to provide a consistent and generic price context that works out-of-the-box and accordingly the settings have been stripped to the bare minimum with no need to continually adjust them.
📗 HOW TO USE IT
The Cosmic Channel Lite plots are meant to be used as a guide for entering and exiting positions and setting stop-loss and take profit levels. The indicator is deemed effective for any particular timeframe as long as the price stays within the maximum bounds of the indicator's plots. For this reason it is recommended to use Cosmic Channel Lite in a multi-chart layout where each chart has a different timeframe. The 5 primary strategies are:
long when the price reverses off of the support line and short when the price reverses off of the resistance line
long when the support line is highlighted and short when the resistance line is highlighted
long when the price breaks above the resistance line and short when the price breaks below the support line
long when the price moves above the basis line after being below it for a prolonged period and visa-versa (short when the price moves below the basis line)
long/short in the direction the price takes after a stable level ends
🔔 SMART ALERTS
Get notified at the most critical times by settings just one alert. Simply select CC Lite and Any alert() function call as the conditions when creating an alert and you will be tipped-off on bar-close as follows:
R─ (resistance line is highlighted)
S─ (support line is highlighted)
For example, an alert such as CC Lite 6h R─ would mean that during the last 6-hour bar the resistance line has been highlighted. The highlight lasts at least 15 bars from the first highlight bar regardless of price action.
Open DriveOpen Drive is a market profile concept introduced by Jim Dalton. It occurs when the price moves directionally and persistently for the first 30 minutes from the cash market open.
It is necessary to use 30-minute bars as there needs to be enough time to measure an extreme move of the cash open. This means there will be fewer trades than other strategies using faster time periodicities.
The script finds open drives from these time points 0700/ 0800 and 1300/1430.
The entry signal also has a breakout threshold using the 5-bar high and 5-bar low to only take trades moving away from the prior 5-bar range. This weeds out most mid-range trades and small range expansion bars.
If the price has had a strong move from the open and has broken either below the prior 5-bar low or above the prior 5-bar high by an amount equal to the prior 5-bar range a trade is entered in the direction of the move.
The Exit criteria; exit after 3 bars which is 90mins when using a 30min periodicity.
Note, this script is shared to show that momentum generated on or around the cash open tends to persist. The entry and exits of this strategy are quite naive but there are plenty of ways to take more aggressive entries on faster time frames when an open drive occurs. The times chosen for this strategy will suit stock index futures mainly. The user can experiment with other futures products and their corresponding pit/ cash open hours.
Google "open drive market profile" for more information on open drives and market profile concepts.
Happy trading!
Price Filter [AstrideUnicorn]The indicator calculates a fast price filter based on the closing price of the underlying asset. Overall, it is intended to provide a fast, reliable way to detect trend direction and confirm trend strength, using statistical measures of price movements.
The algorithm was adapted from Marcus Schmidberger's (2018) article "High Frequency Trading with the MSCI World ETF". It demeans the price time series using the long-term average and then normalizes it with the long-term standard deviation. The resulting time series is then compared to specified thresholds to determine the trend direction.
HOW TO USE
The indicator surface is colored green if the price is trending upwards and red if the price is trending downwards. If the indicator outline is the opposite color of the indicator surface, it indicates that the price is moving against the trend and the current trend may be losing strength.
If the 'Use threshold' setting is enabled, the indicator will be colored blue if its value is within the range defined by the upper and lower thresholds. This indicates that the price is trending sideways, or that the current trend is losing strength.
SETTNGS
Length - the length of the long-term average used to calculate the price filter. Recommended range 20 - 200. The sensitivity of the indicator increases as the value becomes smaller, allowing it to detect smaller price moves and swings earlier.
Threshold - the threshold value used to detect trend direction.
Use threshold - a boolean (true/false) input that determines whether to use the threshold value for confirmation.