hamster-bot MRS 2 (simplified version) MRS - Mean Reversion Strategy (Countertrend) (Envelope strategy)
This script does not claim to be unique and does not mislead anyone. Even the unattractive backtest result is attached. The source code is open. The idea has been described many times in various sources. But at the same time, their collection in one place provides unique opportunities.
Published by popular demand and for ease of use. so that users can track the development of the script and can offer their ideas in the comments. Otherwise, you have to communicate in several telegram chats.
Representative of the family of counter-trend strategies. The basis of the strategy is Mean reversion . You can also read about the Envelope strategy .
Mean reversion , or reversion to the mean, is a theory used in finance that suggests that asset price volatility and historical returns eventually will revert to the long-run mean or average level of the entire dataset.
The strategy is very simple. Has very few settings. Good for beginners to get acquainted with algorithmic trading. A simple adjustment will help avoid overfitting. There are many variations of this strategy, but for understanding it is better to start with this implementation.
Principle of operation.
1)
A conventional MA is being built. (fuchsia line). A limit order is placed on this line to close the position.
2)
(green line) A limit order is placed on this line to open a long position
3)
(red line) A limit order is placed on this line to open a short position
Attention!
Please note that a limit order is used. Conclude that the strategy has a limited capacity. And the results obtained on low-liquid instruments will be too high in the tester. On real auctions there will be a different result.
Note for testing the strategy in the spot market:
When testing in the spot market, do not include both long and short at the same time. It is recommended to test only the long mode on the spot. Short mode for more advanced users.
Settings:
Available types of moving averages:
SMA
EMA
TEMA - triple exponential moving average
DEMA - Double Exponential Moving Average
ZLEMA - Zero lag exponential moving average
WMA - weighted moving average
Hma - Hull Moving Average
Thma - Triple Exponential Hull Moving Average
Ehma - Exponential Hull Moving Average
H - MA built based on highs for n candles | ta.highest(len)
L - MA built based on lows for n candles | ta.lowest(len)
DMA - Donchian Moving Average
A Kalman filter can be applied to all MA
The peculiarity of the strategy is a large selection of MA and the possibility of shifting lines. You can set up a reverse trending strategy on the Donchian channel for example.
Use Long - enable/disable opening a Long position
Use Short - enable/disable opening a Short position
Lot Long, % - % allocated from the deposit for opening a Long position. In the spot market, do not use % greater than 100%
Lot Short, % - allocated % of the deposit for opening a Short position
Start date - the beginning of the testing period
End date - the end of the testing period (Example: only August 2020 can be tested)
Mul - multiplier. Used to offset lines. Example:
Mul = 0.99 is shift -1%
Mul = 1.01 is shift +1%
Non-strict recommendations:
1) Test the SPOT market on crypto exchanges. (The countertrend strategy has liquidation risk on futures)
2) Symbols altcoin/bitcoin or altcoin/altcoin. Example: ETH/BTC or DOGE/ETH
3) Timeframe is usually 1 hour
If the script passes moderation, I will supplement it by adding separate settings for closing long and short positions according to their MA
Скользящие средние
Volatility Exponential Moving AverageVEMA is a custom indicator that enhances the traditional moving average by incorporating market volatility. Unlike standard moving averages that rely solely on price, VEMA integrates both the Simple Moving Average (SMA) and the Exponential Moving Average (EMA) of the closing price, alongside a measure of market volatility.
The unique aspect of VEMA is its approach. It calculates the standard deviation of the closing price and also computes the simple moving average of this volatility. This dual approach to understanding market fluctuations allows for a more nuanced understanding of market dynamics.
Key to VEMA's functionality is the dynamic weighting factor, which adjusts the influence of SMA and EMA based on current market volatility. This factor increases the weight of the EMA, which is more responsive to recent price changes, during periods of high volatility. Conversely, during periods of lower volatility, the SMA, which offers a smoother view of price trends, becomes more prominent.
The resultant is a hybrid moving average that responds adaptively to changes in market volatility. This adaptability makes VEMA particularly useful in dynamic markets, potentially offering more insightful trend analysis and reversal signals compared to traditional moving averages.
Day Open,High,Low Fib LevelsDay Open,High,Low Fibonacci Levels indicator depicts Fibonacci levels from Highest to lowest price levels vis-à-vis Day Open Price. The indicator is structured based on default Intraday number of bars. Hence the indicator and Gray Zone concept is effective in lower time frames .The indicator has also “Regular” Check in Box option under “Input” with default 14 bars under “Regular Length” to switch over from default Intraday Length.
Green Zone represent area above Day Open Price when close is above Day Open Price.
Red Zone represent area below Day Open Price when close is below Day Open Price.
Gray Zone represent band within the Maximum and Minimum of Moving Averages of MA24,MA38,MA50,MA62,MA79 drawn with relevance to Fibonacci levels. The movement within this band is expected to be resistant prone on either direction.
Fibonacci levels between Highest and Lowest points during Green Zone and Red Zone are derived and reflected at 78.6,61.8,50.0,38.2 and 23.6 levels for users guidance.
Trades above Gray Zone are favored for Buy trades and below Gray Zone are favored for Sell trades. Trades within Gray Zone are resistant prone from either direction.
If number of bars in Gray Zone during Intraday are more than the combined number of bars above Green Zone and number of bras below Gray Zone then market may be assumed to be in Range bound state.
MA20 and MA200 are in default in display state. Position of MA 20 above and below Gray Zone and vis-à-vis MA Mid (Mid point in Gray Zone ) reflects the prevailing trend .MA 200 reflects the general Up trend or Down trend .
The Indicator reflects the Green Zone, Gray Zone ,Red Zone in the Table below the Chart depending on the position of Day Open Price below or above the Last Price .If the number of bars in the Gray Zone are more than the combined number of bars above and below Gray Zone the table reflect Range Bound Market.
Supplementing with other monitoring tools and Price Action dynamics the indicator assist the user to plan his entry and exit of trade based on the position of the market whether it is in Green Zone or Red Zone by taking into account the Fibonacci Levels.
DISCLAIMER : For educational and entertainment purpose only .Nothing in this content should be interpreted as financial advice or a recommendation to buy or sell any sort of security/ies or investment/s.
Demand and Supply Zones Lite [Afnan]Are you looking to level up your trading game and spot potential turning points in the stock market? Introducing the Smart Money Demand and Supply Zones indicator, a powerful tool designed to identify opportunities created by the Smart money.
The Smart Money Demand and Supply Zones indicator is built upon the principles of Rally Base Rally (RBR), Rally Base Drop (RBD), Drop Base Rally (DBR), Drop Base Drop (DBD).
🔍 Key Details 🔍
The "Smart Money" concept refers to large institutional investors and professional traders who possess significant financial resources and expertise. The importance of smart money lies in their influence on market trends and price movements. Their actions and positions often serve as signals for retail traders and investors to make informed decisions.
Formation of Smart Money: Smart money is attracted to areas in the market where they can find favourable risk-to-reward opportunities.
1. Rally Base Rally (RBR) Zones: These zones occur after a rally (upward price movement), followed by a period of consolidation (base formation), and then another rally. Smart money often forms positions here as it suggests a strong uptrend continuation.
2. Rally Base Drop (RBD) Zones: In this case, there is a rally, followed by a base formation, but instead of another rally, the price drops. Smart money may position themselves here in anticipation of a potential trend reversal.
3. Drop Base Rally (DBR) Zones: These zones form when there is a drop in price, followed by a base formation, and then a rally. Smart money may take positions here, expecting a trend reversal to the upside.
4. Drop Base Drop (DBD) Zones: In this scenario, the price drops, then forms a base, but subsequently continues to drop. Smart money might take bearish positions here, anticipating further downward movement.
🚀 Pending Orders from Smart Money Zones: 🚀
When the price approaches these smart money zones, institutional investors often place remaining pending orders to enter the market.
By identifying RBR/DBR zones as potential buying opportunities and RBD/DBD zones as potential selling opportunities on price charts, retail traders can align their trades with smart money activities. Implementing proper risk management and confirming signals enhances the likelihood of successful trades by following the footsteps of institutional investors.
💡 Key Features of the Indicator 💡
This indicator includes the following features:
Customizable Zone Length: Adjust the number of base candles in a zone to suit your preferences and strategy.
Candle Body Size Customization: Personalize the body size of candles for fine-tuning visual representation.
Base Candle Selection: Choose between the body of the candle or narrow range candles as the base candle for zone plotting.
Colour Customization For Candles: Customize Drop, Base, Rally, and Zone colours to match your visual preferences.
Number of Zones: This feature is flexible, allowing you to customize the quantity of zones displayed on the chart for improved visibility.
Zone Colours: You have the option to personalize the colours for both fresh and tested zones based on your preferences.
Zone Strength Customization: Adjust candle sensitivity for better control.
Swing High and Swing Low: Enable or disable support and demand lines based on Swing High and Swing Low.
Wick of Candle: Customize zone plotting using the body or wicks of candles for flexible analysis.
Previous Zones: You can choose to display or disable previous zones on the chart that have been deleted and utilized before. This option helps you maintain a clutter-free chart while retaining valuable historical information.
Moving Averages: Utilize four (4) customizable Moving Averages to enhance analysis from any time frame.
💎 Employing a Top-Down Approach and Multiple Time Frame Analysis: 💎
Let's delve into the concept of adopting a top-down approach combined with multiple time frame analysis in trading scenarios. It is consistently recommended to trade with the trend because, as the saying goes, "the trend is your friend." If you identify a demand zone on the chart but the overall trend is downward, it's crucial to confirm the stock's trend in higher timeframes. Avoid purchasing from the demand zone in such a scenario as you would be going against the trend. To consider buying from the demand zone, ensure that the overall trend is upward by checking the higher timeframe.
Similarly, if the higher timeframe trend is upward but the price is approaching a higher timeframe supply zone, refrain from buying in the lower timeframe. If the price reaches a higher timeframe supply zone, there is a likelihood that the price will face rejection from this zone.
If the price is significantly extended from the EMA 20 on a higher timeframe, for instance, if you plan to trade on a 30-minute timeframe and the price is considerably extended from the daily EMA 20, consider trading from zones that are closer to the daily EMA 20. When the price is extended from the higher timeframe EMA 20, it implies that the price is expensive, and there may be a tendency for it to return to the EMA 20. Therefore, it is advisable to trade from zones that are closer to the higher timeframe EMA 20 and avoid zones that are extended from the higher timeframe EMA 20.
For instance, imagine you're considering purchasing a stock that has reached a demand zone known as Rally Base Rally (RBR). If you identify a corresponding demand zone in a higher time frame located at the same position, and concurrently observe that the intermediate time frame indicates an upward trend, your potential for a successful trade is enhanced.
Conversely, if you spot a buying zone in a lower time frame, but notice a supply zone in the higher time frame at that exact position, the likelihood of a profitable trade decreases significantly. In such cases, it's prudent to steer clear of the lower time frame zone. This emphasizes the critical significance of employing a top-down approach or conducting a multiple time frame analysis.
Note: By Doing top down approach you can easily follow the footprints of smart money in the stock market or any other market by using this indicator and make well-informed trading decisions.
Remember, don't make decisions based only on one time frame. Check the overall trend of the stock and look at buying and selling points on bigger time scales. If you only use one time scale, your chances of making successful trades will be lower.
💎 To execute these comprehensive analyses and optimize your trading outcomes, you can make use of my indicator called "Demand & Supply Zone Scoring: Rally Base & Drop Concept."💎
This indicator is thoughtfully crafted to assess the strength of trade setups based on demand and supply zones through a scoring mechanism. It serves as your guide for correct top-down and multiple time frame analysis, eliminating the possibility of overlooking any strategic parameters. To gain deeper insights, you can learn more about how to use this indicator in its description.
Lastly, Thank you for your support, your likes & comments." Feel free to ask if you have questions.
Let's conquer the markets together! 🚀
Demand and Supply Zones Pro [Afnan]Are you looking to level up your trading game and spot potential turning points in the stock market? Introducing the Smart Money Demand and Supply Zones indicator, a powerful tool designed to identify opportunities created by the Smart money.
The Smart Money Demand and Supply Zones indicator is built upon the principles of Rally Base Rally (RBR), Rally Base Drop (RBD), Drop Base Rally (DBR), Drop Base Drop (DBD).
🔍 Key Details 🔍
The "Smart Money" concept refers to large institutional investors and professional traders who possess significant financial resources and expertise. The importance of smart money lies in their influence on market trends and price movements. Their actions and positions often serve as signals for retail traders and investors to make informed decisions.
Formation of Smart Money: Smart money is attracted to areas in the market where they can find favourable risk-to-reward opportunities.
1. Rally Base Rally (RBR) Zones: These zones occur after a rally (upward price movement), followed by a period of consolidation (base formation), and then another rally. Smart money often forms positions here as it suggests a strong uptrend continuation.
2. Rally Base Drop (RBD) Zones: In this case, there is a rally, followed by a base formation, but instead of another rally, the price drops. Smart money may position themselves here in anticipation of a potential trend reversal.
3. Drop Base Rally (DBR) Zones: These zones form when there is a drop in price, followed by a base formation, and then a rally. Smart money may take positions here, expecting a trend reversal to the upside.
4. Drop Base Drop (DBD) Zones: In this scenario, the price drops, then forms a base, but subsequently continues to drop. Smart money might take bearish positions here, anticipating further downward movement.
🚀 Pending Orders from Smart Money Zones: 🚀
When the price approaches these smart money zones, institutional investors often place remaining pending orders to enter the market.
By identifying RBR/DBR zones as potential buying opportunities and RBD/DBD zones as potential selling opportunities on price charts, retail traders can align their trades with smart money activities. Implementing proper risk management and confirming signals enhances the likelihood of successful trades by following the footsteps of institutional investors.
💡 Key Features of the Indicator 💡
This indicator includes the following features:
Customizable Zone Length: Adjust the number of base candles in a zone to suit your preferences and strategy.
Candle Body Size Customization: Personalize the body size of candles for fine-tuning visual representation.
Alert Feature: The alert feature can notify you when the price reaches a demand or supply zone, with the ability to customize the risk-to-reward parameters.
Base Candle Selection: Choose between the body of the candle or narrow range candles as the base candle for zone plotting.
Colour Customization For Candles: Customize Drop, Base, Rally, and Zone colours to match your visual preferences.
Number of Zones: This feature is flexible, allowing you to customize the quantity of zones displayed on the chart for improved visibility.
Zone Colours: You have the option to personalize the colours for both fresh and tested zones based on your preferences.
Zone Strength Customization: Adjust candle sensitivity for better control.
Swing High and Swing Low: Enable or disable support and demand lines based on Swing High and Swing Low.
Wick of Candle: Customize zone plotting using the body or wicks of candles for flexible analysis.
Previous Zones: You can choose to display or disable previous zones on the chart that have been deleted and utilized before. This option helps you maintain a clutter-free chart while retaining valuable historical information.
Moving Averages: Utilize four (4) customizable Moving Averages to enhance analysis from any time frame.
💎 Employing a Top-Down Approach and Multiple Time Frame Analysis: 💎
Let's delve into the concept of adopting a top-down approach combined with multiple time frame analysis in trading scenarios. It is consistently recommended to trade with the trend because, as the saying goes, "the trend is your friend." If you identify a demand zone on the chart but the overall trend is downward, it's crucial to confirm the stock's trend in higher timeframes. Avoid purchasing from the demand zone in such a scenario as you would be going against the trend. To consider buying from the demand zone, ensure that the overall trend is upward by checking the higher timeframe.
Similarly, if the higher timeframe trend is upward but the price is approaching a higher timeframe supply zone, refrain from buying in the lower timeframe. If the price reaches a higher timeframe supply zone, there is a likelihood that the price will face rejection from this zone.
If the price is significantly extended from the EMA 20 on a higher timeframe, for instance, if you plan to trade on a 30-minute timeframe and the price is considerably extended from the daily EMA 20, consider trading from zones that are closer to the daily EMA 20. When the price is extended from the higher timeframe EMA 20, it implies that the price is expensive, and there may be a tendency for it to return to the EMA 20. Therefore, it is advisable to trade from zones that are closer to the higher timeframe EMA 20 and avoid zones that are extended from the higher timeframe EMA 20.
For instance, imagine you're considering purchasing a stock that has reached a demand zone known as Rally Base Rally (RBR). If you identify a corresponding demand zone in a higher time frame located at the same position, and concurrently observe that the intermediate time frame indicates an upward trend, your potential for a successful trade is enhanced.
Conversely, if you spot a buying zone in a lower time frame, but notice a supply zone in the higher time frame at that exact position, the likelihood of a profitable trade decreases significantly. In such cases, it's prudent to steer clear of the lower time frame zone. This emphasizes the critical significance of employing a top-down approach or conducting a multiple time frame analysis.
Note: By Doing top down approach you can easily follow the footprints of smart money in the stock market or any other market by using this indicator and make well-informed trading decisions.
Remember, don't make decisions based only on one time frame. Check the overall trend of the stock and look at buying and selling points on bigger time scales. If you only use one time scale, your chances of making successful trades will be lower.
💎 To execute these comprehensive analyses and optimize your trading outcomes, you can make use of my indicator called "Demand & Supply Zone Scoring: Rally Base & Drop Concept."💎
This indicator is thoughtfully crafted to assess the strength of trade setups based on demand and supply zones through a scoring mechanism. It serves as your guide for correct top-down and multiple time frame analysis, eliminating the possibility of overlooking any strategic parameters. To gain deeper insights, you can learn more about how to use this indicator in its description.
Lastly, Thank you for your support, your likes & comments." Feel free to ask if you have questions.
Let's conquer the markets together! 🚀
buy/sell signals with Support/Resistance (InvestYourAsset) 📣The present indicator is a MACD based buy/sell signals indicator with support and resistance, that can be used to identify potential buy and sell signals in a security's price.
📣It is based on the MACD (Moving Average Convergence Divergence) indicator, which is a momentum indicator that shows the relationship between two moving averages of a security's price.
📣 The indicator also plots support and resistance levels, which can be used to confirm buy and sell signals. The support and resistance can also be used as a stoploss for existing position.
👉 To use the indicator, simply add it to your trading chart. The indicator will plot three sections:
📈 Price and Signals: This section plots the security's price and the MACD buy and sell signals.
📈 MACD Oscillator: This section plots the MACD oscillator, which is a histogram that shows the difference between the two moving averages.
📈 Moving Averages: This section plots the two moving averages that the MACD oscillator is based on.
📈 Support and Resistance: This section plots support and resistance levels, which are calculated based on the security's recent price action.
👉 To identify buy and sell signals, you can look for the following:
📈 Buy signal: When shorter Moving Average crosses over longer Moving Average.
📈 Sell signal: When shorter moving average crosses under longer moving average.
📈 You can also look for divergences between the MACD oscillator and the security's price. A divergence occurs when the MACD oscillator is moving in one direction, but the security's price is moving in the opposite direction. Divergences can be a sign of a potential trend reversal.
👉 To confirm buy and sell signals, you can look for support and resistance levels take a look at below snapshot. If a buy signal occurs at a support level, it is a stronger signal than if it occurs at a random price level. Similarly, if a sell signal occurs at a resistance level, it is a stronger signal than if it occurs at a random price level.
⚡ Here is a example of how to use the indicator to identify buy signal:
☑ Add the indicator to your trading chart.
☑Look for a buy signal when short MA crosses over Long MA.
☑Look for the buy signal to occur at a support level.
☑Enter a long position at the next candle.
☑Place a stop loss order below the support level.
☑Take profit when the MACD line crosses below the signal line, or when the security reaches a resistance level.
⚡ Here is an example of how to use the indicator to identify a sell signal:
☑Add the indicator to your trading chart.
☑Look for a sell signal, when shorter moving average crosses under longer moving average.
☑Look for the sell signal to occur at a resistance level.
☑Enter a short position at the next candle.
☑Place a stop loss order above the resistance level.
☑Take profit when the MACD line crosses above the signal line, or when the security reaches a support level.
✅Things to consider while using the indicator:
📈Look for buy signals in an uptrend and sell signals in a downtrend. This will increase the likelihood of your trades being successful.
📈Place your stop losses below the previous swing low or support for buy signals and above the previous swing high or resistance for sell signals. This will help to limit your losses if the trade goes against you.
📈Consider taking profits at key resistance and support levels. This will help you to lock in your profits and avoid giving them back to the market.
Follow us for timely updates regarding indicators that we may publish in future and give it a like if you appreciate the indicator.
Dinapoli Thrust Scanner Multi MarketThis is the Multi-Market version of the Dinapoli Thrust Scanner. This indicator is able to scan up to 12 markets in 3 time frames simultaneously.
This tool is an aid to the trader and shouldn't be used in automated trading. As any Dinapoli trader would know, the Thrust pattern recognition requires visual approval from the trader.
The Thrust Scanner can display the following information onscreen:
A Multi-Timeframe Table that colors to indicate Recent/Current Thrusts. Green color signals a potential Up Thrusts, whilst red color signals a potential Down Thrust.
The DMA crosses get signaled with custom colors.
The Thrust Scanner has a Sensitivity Control which allows the trader to customize the accuracy of the scanner:
The stricter the setting, the lesser the number of potential Thrust that qualify, and therefore the more accurate the Thrust detection.
The looser the setting, the more number of potential Thrust being detected, but also the more Look Alikes (LaL) or false positives there will be.
Note: The scanner is resource hungry, and sometimes it might need some seconds to fully display the data.
VLTS Candles by nnamdertWhat is VLTS
VLTS is the Value Line Trading System
What Does this Indicator Do?
This indicator draws boxes that represent both the DAILY and HOURLY candles as an overlay on the current timeframe.
1. If you are viewing the 15-minute timeframe chart, a Box will be drawn around the 4 candles that would represent an hourly candle. This way you can see inside the hourly candle easily while viewing the 15-minute timeframe.
2. If you are viewing the 4-hour timeframe chart a Box will be drawn around the 6 candles that would represent the 24-hour timeframe. (6 x 4 = 24)
3. This indicator allows you to see BOTH the DAILY BOX and the HOURLY BOX at the same time. This allows you to see the bars inside the hourly and the hourly bars (represented by boxes) inside the daily box (which represents the daily candle).
(See the screenshot below)
How do I use it?
To get the most out of this indicator, it is meant to be used with the VLTS / Value Line Trading System. The Value line is simply the center of a contraction candle on the daily. This indicator allows you to easily visualize the contraction on both the Daily and the Hourly timeframes while viewing a lower timeframe chart.
After finding the Value Line, you can follow the Value Line Trading Rules to find entries and exits. (using Expansion Legs, Trends etc.)
In the screenshot below, we can see the manually drawn Value Line using the Daily Candle.
Zooming out while on the 15-minute timeframe allows the trader to easily spot Contraction areas and manually draw them in for use with the VLTS.
As seen in the screenshot below we draw a box around the daily contraction without having to switch timeframes.
Features
User inputs allow the trader to turn features ON or OFF as desired.
For example, as seen in the screenshot below, traders can turn OFF the Box Fill option and leave only the border for a less cluttered look.
Traders can turn OFF the boxes completely and use a fully customizable Moving Average on the chart after using the boxes to find the value line.
Traders can also have all features turned ON at the same time of OFF at the same time.
Bullish and Bearish Ticks can be turned ON to alert the trader of Bullish Sentiment while using other indicators without the need to have the boxes or moving average visible on the chart.
Color Coded Bars can be used to identify the same Bullish / Bearish Conditions if tick plots are not desirable or conflict with other indicators.
Happy Trading !!! I hope you enjoy the indicator.
Glowing RSI Candlesticks (With Buy and Sell helpers)This is not your average, boring RSI indicator.
This indicator is still an RSI (momentum) indicator, but I have converted the line into candlesticks.
It has an option to make it glow neon blue to make it look cooler (dark background recommended for full effect).
There is a red zone at 70, because of course, and a green zone at 30 for the same reason.
On top of that, it has triple moving averages, two of which it uses to create some simple buy and sell indications (the vertical green and red lines).
Enjoy! :)
Dynamic 5-Day Moving AverageThe Dynamic 5-Day Moving Average (MA) indicator is designed to provide traders with a consistent, time-adjusted moving average line across various timeframes. This indicator is especially useful for traders who switch between multiple timeframes and want a moving average that represents a fixed 5-day period, ensuring that the MA reflects a consistent lookback period relative to the amount of trading time each candle represents.
Features:
Timeframe Adaptability: Automatically adjusts the MA period to correspond to a 5-day lookback, regardless of the selected timeframe.
Intraday Precision: For intraday charts (5m, 15m, 30m, 1h, 2h, 4h), the indicator calculates the number of periods within the 5-day span based on the chart's timeframe.
Daily and Weekly Timeframe Compatibility: Sets the period to 5 for daily charts to maintain the 5-day MA, and to 1 for weekly charts, where each candlestick represents a week's worth of trading days.
Calculation Logic:
The indicator begins by defining the total number of trading minutes in 5 days, based on a standard 6.5-hour trading day.
A dynamic period calculation function then determines the number of those intervals that fit into the 5-day minute total for the selected timeframe.
For daily charts, the period is a straightforward 5, while for weekly charts, the period is set to 1, reflecting the average of the past 5 trading days.
Averaged Moving Average Ribbon with Bollinger BandsThis indicator provides a visual representation of an averaged weighted moving average (WMA) ribbon (default setting) along with Bollinger Bands on a price chart. Pay attention to how the moving average and band expand and contract, as well as where price crosses the Bollinger bands (Green and red) or the basis line (blue). Look for patterns, and exploit them to your advantage to give you another edge in trading.
>> Feel free to suggest changes or other additions in the comments :)
Here's a brief explanation of how this indicator works:
1. **Moving Average Type:** You can select the type of moving average (MA) to use from the dropdown menu. The available options are Weighted Moving Average (WMA), Simple Moving Average (SMA), and Exponential Moving Average (EMA).
2. **Bollinger Bands Deviation:** This input allows you to adjust the deviation for the Bollinger Bands. Higher values increase the width of the bands, while lower values decrease it.
3. **Moving Average Lengths:** The script calculates various moving averages (WMA, SMA, or EMA) with different lengths, ranging from 5 to 100, in increments of 5. These moving averages are used to create the ribbon.
4. **Ribbon Calculation:** The indicator calculates the selected moving average (WMA, SMA, or EMA) for each of the specified lengths. It then averages these moving averages to create a ribbon of MAs. This ribbon represents a smoother and more encompassing view of the underlying price action.
5. **Bollinger Bands:** The script also calculates and plots Bollinger Bands based on the ribbon's average. The upper Bollinger Band (green) and lower Bollinger Band (red) are plotted around the ribbon average. These bands provide insights into potential overbought and oversold conditions.
In summary, this indicator allows traders and analysts to visualize a weighted moving average ribbon with Bollinger Bands to gain a better understanding of price trends, volatility, and potential reversal points in the market. The combination of different moving average lengths and Bollinger Bands can help in making informed trading decisions.
Ribbon Trend [Orderflowing]Ribbon Trend | Customizable Smoothing | Forecasting (+)
Built using Pine Script V5.
Introduction
The Ribbon Trend indicator is a unique tool to deliver a better view of market trends.
It stands out with its unique smoothing capabilities and customizable features, offering a fresh perspective beyond a standard moving average ribbon.
Inspiration and Originality
The inspiration for the Ribbon Trend came from a desire to evolve the standard MA ribbon or the basic two-part MAs into something bolder.
The addition of unique smoothing features not commonly found in other MA Ribbon indicators underscores its originality and the value it brings to a trader.
Core Functionality
At its core, it can use a selection of moving averages, including Hull, Double Exponential, Exponential, Weighted, and Linear Regression.
These are not just randomly chosen; each has a purpose, providing a foundation for the trend ribbon based on your input, allowing for much personalization of the script to fit your trading style.
Smoothing Techniques
What sets the indicator apart is its smoothing process.
Designed to reduce market noise, offering a clearer trend.
You have full control over the degree of smoothing, with options for single/double smoothing, and weighted smoothing.
The key is that the trend representation is accurate and sufficiently responsive to market conditions.
How It Works:
Here's a detailed explanation of how it operates:
Input Parameters:
The price data (such as closing price) that the moving averages will be calculated on.
The number of periods to be used in the moving average calculation.
The period length for the signal line, which is derived from the main moving average.
The type of moving average to be used (HMA, DEMA, EMA, WMA, LINREG).
The factor by which the moving average is smoothed to reduce noise.
Option to decide if a second smoothing should be applied.
The factor for the second smoothing, if applied.
Option to decide if weighted smoothing should be applied.
The factor for the weighted smoothing, if applied.
Option to decide if the forecast lines should be displayed.
Optional: Choose the color of the forecast lines.
Moving Average Calculations:
The script has functions for each moving average type, which take the source and the length as arguments. (HMA, DEMA, EMA, WMA, LINREG).
Smoothing Mechanism:
The selected moving average is first smoothed using an Exponential Moving Average with the smoothing factor.
If double smoothing is on, the smoothed moving average is further smoothed using the other smoothing factor.
If weighted smoothing is on, the smoothed moving average is combined with the original moving average using the weight factor to provide a balance between responsiveness and smoothness.
Trend and Signal Line Calculation:
The script calculates a signal line using the Hull Moving Average of the smoothed moving average over the signal length.
The main moving average (ma value) and the signal line (ma signal) are plotted on the chart, with their colors determined by their relative positions to indicate bullish or bearish trends.
Visual:
A fill color is applied between the main moving average and the signal line to create the 'ribbon' effect, which changes color based on the trend direction.
The plotting of the moving average and signal line, along with the fill, provides a clear visual representation of the trend.
Forecasting Feature:
The script includes a forecasting feature that projects the trend line forward, giving traders a visual cue of potential future trend directions.
This is achieved by extending the current trend lines forward by a set number of periods to create dotted forecast lines.
Below you see the smoothing examples snapshots of the indicator to get a better understanding:
Single Smoothing (Based on User Input):
Double Smoothing (User Input -> Second Smoothing Factor):
Weighted Smoothing (User Input -> Weight Factor):
Combined Smoothing Features (1|2|Weighted):
Visual Clarity and Interpretation
The indicator enhances visual clarity with a color-coded system.
A bullish trend is indicated by a blue ribbon, while a bearish trend is represented by red.
The color scheme simplifies the interpretation of trend direction.
(You can also change color in the style tab)
Adaptability for Trading Style
Flexible and suitable for various trading styles and timeframes.
Settings are fully adjustable, allowing traders to fine-tune the indicator to their specific needs, whether for scalping, day trading, or longer-term strategies.
Its trend can be used to:
Identify the start/end of trends, providing traders with entry and exit signals.
Recognize shifts in volatility for breakouts or breakdowns.
Enhance other trading systems or strategies by providing an additional layer of trend analysis.
Use the direction of the trend as a “Mean Reversion Target”
Use the trend to add size to winning positions or cut losing positions.
Commitment to Value
This indicator is not a recombination of existing tools.
The value is within the matrix of calculation and smoothing techniques based on user input.
The Ribbon Trend provides a distinct advantage, justifying its place as a closed source script.
Customization and User Input
The Ribbon Trend respects the need for customization.
It empowers you to set preferences for the source, moving average length, signal period, and smoothing factors.
The optional forecast lines, adjustable in visibility and color, further enhances its adaptability.
Conclusion and Usage
It is more than a basic indicator.
It is a comprehensive and fully customizable trend analysis tool.
It is designed to integrate seamlessly with your trading strategy, providing a layer of confluence.
It is not a standalone solution but a solid addition to your trading arsenal.
What RSI? Weighted Heiken Ashi Triple RSIWhat You're Looking At:
The indicator presents a few key elements on its pane which is separate from the price chart:
Smoothed RSI Average Line: This line represents an average of three different RSI calculations, each weighted differently. It's been smoothed out to reduce noise and help you see the trend more clearly.
Moving Average Line: This is a line that smooths out the average RSI line even further and helps you identify the overall trend.
Bollinger Bands: These are two lines that create a channel around the RSI average line. The upper band typically represents an overbought condition, and the lower band represents an oversold condition.
Background Color: The background of the indicator pane will change colors to indicate buy (green) or sell (red) signals.
Horizontal Lines: There are horizontal lines drawn at levels 70, 50, and 30. These represent overbought, midpoint, and oversold levels, respectively.
How to Operate and Interpret:
Trend Identification: Look at the moving average line. If it's trending upwards, the overall momentum may be considered bullish. If it's trending downwards, the momentum may be bearish.
Buy Signals: You may consider a buy signal when:
The smoothed RSI average crosses above the moving average line.
The smoothed RSI average is below 30 and starts to rise, crossing the oversold line.
The background color turns green, signifying favorable conditions to buy according to the indicator's logic.
Sell Signals: You may consider a sell signal when:
The smoothed RSI average crosses below the moving average line.
The smoothed RSI average is above 70 and starts to fall, crossing the overbought line.
The background color turns red, signifying favorable conditions to sell according to the indicator's logic.
Overbought/Oversold Conditions: When the smoothed RSI line touches or crosses the Bollinger Bands, it could be indicating that the asset is overbought (upper band) or oversold (lower band). Some traders use these conditions to look for potential reversals.
Cautions for Trading:
If the smoothed RSI average is between the bands and near the middle line (50), the market might be considered neutral, and some traders may choose to wait for clearer signals.
Just because the indicator gives a buy or sell signal, it doesn't mean the price will immediately move in that direction. It's important to consider other factors in your trading strategy.
Final Notes:
Always use this indicator in conjunction with other analysis methods. No indicator is perfect, and they should be used to supplement your trading strategy, not replace it.
It's important to set stop losses according to your risk tolerance when entering any trades based on these signals.
Practice with the indicator in a demo account to become familiar with its behavior before using it with real money.
By following the movements and signals of this indicator, you can get a sense of the momentum and potential entry or exit points in the markets you are trading.
Baseline Optimizer NNFX [m8b]DESCRIPTION
The Baseline Optimizer indicator is a tool to aid in baseline configuration (specifically moving averages). It manages state across iterations within a single bar to allow the indicator to test different settings. This allows the user to find a specific configuration that works well for that asset and timeframe. It also recreates pieces of the default TradingView backtesting framework so multiple settings can be tested concurrently.
Originality and usefulness
Default pine script doesn't allow for state management within a loop due to the way historical values are handled (e.g. EMA). It also does not allow for backtesting across multiple settings concurrently. The the functions are all unique in that they allow for proper state management during the optimization process.
ADDITIONAL BACKGROUND AND USAGE
While the platform is built to support the NNFX way of trading, this indicator can be utilized by any trader who wants to optimize an MA for a specific asset, chart, or time frame regardless of asset class.
NNFX revolves around a systematic approach to trading, designed to be mechanical and with minimal discretionary input. This strategy typically involves multiple indicators across different categories to confirm trading signals. The approach involves:
Baseline indicator to determine the overall trend direction
Confirmation (Leading & Lagging) indicator used to validate the trade
Volume indicator to confirm the presence of market participation
Exit indicator to signal when to close the trade
Supported Moving Averages
v1 (this indicator): ALMA, DEMA, EMA, HMA, KAMA, RMA / SMMA, SMA, Tilson T3, TEMA, WMA, VWMA
USAGE
By default, this indicator will run on “Standard” mode, and acts as a roll-up of MAs. Simply set the MA type and length.
When mode is set to “Optimizer”, a table will appear on the chart that displays trade stats for the various configurations.
Net Profit, Closed Trades, % Profitable, Profit Factor, Max Drawdown, Avg Trade, Avg Bars
STANDARD SETTINGS
MA Type: ALMA, DEMA, EMA, HMA, KAMA, RMA, SMA, T3, TEMA, WMA, VWMA
MA Length: Length of the MA
MA: Source: Source for the MA
OPTIMIZER SETTINGS
Profit factor threshold: Acts as a filter to the trading stats to make it more readable
% profitable threshold: Acts as a filter to the trading stats to make it more readable
Min trades threshold: Acts as a filter to the trading stats to make it more readable
Start & End Date: The data window for the optimizer to backtest
Trade Direction: All, Long only, Short Only
Pyramid Max: Works the same as standard TradingView pyramid
Optimizer Param Start: The first value for the optimizer
Optimizer Param End: The end value for the optimizer
Optimizer Param Step: The step value for the optimizer
Stats green threshold: The value to turn results green
Stats red threshold: The value to turn results red
IMPORTANT NOTES (Errors & Pine Limitations)
Warm-up Period Multiplier: "Warming up" refers to the period where the indicator begins to reflect accurate and meaningful data. A default value of 5 should generally ensure baseline data is accurate. If performance is an issue (e.g. timeouts), this can be adjusted down at the cost of accuracy. While this may not be ideal, for the purposes of optimization the results should be directionally accurate in most cases with lower values. If you see the stats changing in real-time in the results, that’s often a good indicator your warm-up is too short. Note, the EMA in particular requires a long warm-up due to its nature (~3 x length)
Timeouts: Depending on your TradingView plan, scripts will either timeout after 20 or 40 seconds. If you get too aggressive with either timeframes or Start/End/Step, you may timeout. THIS IS NOT A BUG, it’s a limitation of TradingView and/or your plan. The fixes for this are 1) test less states at a time 2) use a higher timeframe 3) get a Premium TradingView Plan.
Array Size / Memory Size: This should rarely be an issue with baseline optimization, BUT if you get really aggressive with settings (particularly on the T3) you could run into a scenario with Pine reaches/exceeds the limitation of an array size (100,000). If this happens, reduce your timeframe or input param values to resolve.
DISCLAIMER
This indicator is for educational purposes only, not financial advice. The developers are not financial advisors and accept no liability for how you use the information or features. By using this indicator, you acknowledge that all trading decisions are your own responsibility and that past performance does not guarantee future results.
SMA Crossover Support & Resistance [Rami_LB]This indicator draws a horizontal line on the price chart at the point where two pre-defined SMA (Simple Moving Average) lines intersect. It is most useful for identifying crossed SMA lines on the 1-hour chart and then trading on smaller chart intervals.
For optimal performance, it is recommended to customize the values of the SMA lines individually for each currency pair, as these values can vary from one pair to another. To do this, switch to the 1-hour chart and adjust the SMA parameters until you visually observe that these settings would yield favorable results based on historical data. Certainly, you can also adjust the length of the lines accordingly when you switch from the 1-hour chart to smaller timeframes.
Please note that this indicator allows traders to visually identify potential trend changes and crossovers between short-term and long-term moving averages, aiding in decision-making for trading strategies.
Panoramic EMA - Multi TimeframePanoramic EMA - Multi Timeframe
This indicator provides a straightforward visualization of Exponential Moving Averages (EMAs) from multiple timeframes simultaneously. This indicator allows traders to customize the display of EMAs, making it easier to identify and analyze trends and potential support or resistance levels across different periods.
Settings:
EMA Lengths: Customize up to five EMA lengths. Activating a length will display its EMA line on the chart for the selected timeframes.
Timeframes Selection: Choose up to four different timeframes to display the EMAs. This lets you observe how EMAs behave on various scales from a single chart.
Interpretation:
Utilize the EMAs as potential zones of dynamic support or resistance.
Observe the relationship between price action and EMAs across different timeframes to gauge market sentiment and identify trend consistency or potential shifts.
This tool is designed to offer visual clues about the market state through the behavior of EMAs. It does not generate direct buy or sell signals. It is recommended to understand how the assets you are trading interact with EMAs. For instance, in our example below, Bitcoin demonstrates a tendency to interact with the 800 and 200-length EMAs on the 4-hour timeframe, providing areas where price rejections may occur:
Note: This is a utility-focused indicator meant to supplement your market analysis and should be used in conjunction with other analysis methods or indicators for the best results.
DNS Relax Buy/SellDNS Relax Buy/Sell Indicator
It is a very simple indicator to use for long-term investors.
It uses ema 3 in Buy and Sell alerts. If ema 3 crosses the baseline line (ema200 Daily) up, it means Buy, and if it breaks down, it means Sell.
There is also a 'take profit line' to determine and see the profit rate.
It can be changed from the settings.
Additionally, the blue line on the indicator (appears as full blue) is the closing price line of the bar where the buy signal is located. It can be turned off from the style settings.
You can also turn buy and sell signals on and off from the settings.
My advice to you is to use this indicator in small time periods. for example, in 1-minute, 3-minutes or 5-minutes time periods.
It can be used in all financial instruments.
Wishing you to always win.
Z-ScoreThe "Z-Score" indicator is a unique and powerful tool designed to help traders identify overbought and oversold conditions in the market. Below is an explanation of its features, usefulness, and what makes it special:
Features:
Z-Score Calculation: The indicator calculates the Z-Score, a statistical measure that represents how far the current price is from the moving average (MA) in terms of standard deviations. It helps identify extreme price movements.
Customizable Parameters: Traders can adjust key parameters such as the Z-Score threshold, the type of MA (e.g., SMA, EMA), and the length of the moving average to suit their trading preferences.
Signal Options: The indicator offers flexibility in terms of signaling. Traders can choose whether to trigger signals when the Z-Score crosses the specified threshold or when it moves away from the threshold.
Visual Signals : Z-Score conditions are represented visually on the chart with color-coded background highlights. Overbought conditions are marked with a red background, while oversold conditions are indicated with a green background.
Information Table: A dynamic information table displays essential details, including the MA type, MA length, MA value, standard deviation, current price, and Z-Score. This information table helps traders make informed decisions.
Usefulness:
Overbought and Oversold Signals: Z-Score is particularly valuable for identifying overbought and oversold market conditions. Traders can use this information to potentially enter or exit positions.
Statistical Analysis: The Z-Score provides a statistical measure of price deviation, offering a data-driven approach to market analysis.
Customization: Traders can customize the indicator to match their trading strategies and preferences, enhancing its adaptability to different trading styles.
Visual Clarity: The visual signals make it easy for traders to quickly spot potential trade opportunities on the price chart.
In summary, the Z-Score indicator is a valuable tool for traders looking to incorporate statistical analysis into their trading strategies. Its customizability, visual signals, and unique statistical approach make it an exceptional choice for identifying overbought and oversold market conditions and potential trading opportunities.
Multi-TF AI SuperTrend with ADX - Strategy [PresentTrading]
## █ Introduction and How it is Different
The trading strategy in question is an enhanced version of the SuperTrend indicator, combined with AI elements and an ADX filter. It's a multi-timeframe strategy that incorporates two SuperTrends from different timeframes and utilizes a k-nearest neighbors (KNN) algorithm for trend prediction. It's different from traditional SuperTrend indicators because of its AI-based predictive capabilities and the addition of the ADX filter for trend strength.
BTC 8hr Performance
ETH 8hr Performance
## █ Strategy, How it Works: Detailed Explanation (Revised)
### Multi-Timeframe Approach
The strategy leverages the power of multiple timeframes by incorporating two SuperTrend indicators, each calculated on a different timeframe. This multi-timeframe approach provides a holistic view of the market's trend. For example, a 8-hour timeframe might capture the medium-term trend, while a daily timeframe could capture the longer-term trend. When both SuperTrends align, the strategy confirms a more robust trend.
### K-Nearest Neighbors (KNN)
The KNN algorithm is used to classify the direction of the trend based on historical SuperTrend values. It uses weighted voting of the 'k' nearest data points. For each point, it looks at its 'k' closest neighbors and takes a weighted average of their labels to predict the current label. The KNN algorithm is applied separately to each timeframe's SuperTrend data.
### SuperTrend Indicators
Two SuperTrend indicators are used, each from a different timeframe. They are calculated using different moving averages and ATR lengths as per user settings. The SuperTrend values are then smoothed to make them suitable for KNN-based prediction.
### ADX and DMI Filters
The ADX filter is used to eliminate weak trends. Only when the ADX is above 20 and the directional movement index (DMI) confirms the trend direction, does the strategy signal a buy or sell.
### Combining Elements
A trade signal is generated only when both SuperTrends and the ADX filter confirm the trend direction. This multi-timeframe, multi-indicator approach reduces false positives and increases the robustness of the strategy.
By considering multiple timeframes and using machine learning for trend classification, the strategy aims to provide more accurate and reliable trade signals.
BTC 8hr Performance (Zoom-in)
## █ Trade Direction
The strategy allows users to specify the trade direction as 'Long', 'Short', or 'Both'. This is useful for traders who have a specific market bias. For instance, in a bullish market, one might choose to only take 'Long' trades.
## █ Usage
Parameters: Adjust the number of neighbors, data points, and moving averages according to the asset and market conditions.
Trade Direction: Choose your preferred trading direction based on your market outlook.
ADX Filter: Optionally, enable the ADX filter to avoid trading in a sideways market.
Risk Management: Use the trailing stop-loss feature to manage risks.
## █ Default Settings
Neighbors (K): 3
Data points for KNN: 12
SuperTrend Length: 10 and 5 for the two different SuperTrends
ATR Multiplier: 3.0 for both
ADX Length: 21
ADX Time Frame: 240
Default trading direction: Both
By customizing these settings, traders can tailor the strategy to fit various trading styles and assets.
Multi EMA/SMADescription:
This indicator combines both an Exponential Moving Average (EMA) and a Simple Moving Average (MA). The user can customize the lengths of both the EMA and the MA, as well as their respective colors and line widths.
Features:
Custom Lengths for EMA and MA: The user can specify the desired length for both the EMA and the MA.
Visibility Control: There are options to only display the MA and EMA during the times the price crosses them. This helps in highlighting significant crossover points. Additionally, the user can define how many bars before and after the crossover they wish to visualize the MA and EMA.
Customizable Appearance: The color and line width for both the MA and the EMA can be adjusted as per user preferences.
Dynamic Labels: The indicator provides labels that display the current values of the MA and the EMA. Additionally, these labels dynamically update to reflect any changes to the EMA or MA length input by the user.
Bull Bear Power with Optional Normalization FunctionThis indicator is designed to provide traders with insights into market sentiment and potential trend reversals. This indicator enhances the traditional Bull Bear Power (BBP) by adding valuable visualizations and customization options to assist traders in making informed trading decisions.
Indicator Overview:
The NBBP indicator calculates Bull Bear Power, which measures the strength of bullish and bearish forces in the market. It does so by taking the difference between the high and the exponential moving average (EMA) of the closing price for a specified length. This raw BBP is represented on the chart as a line.
Key Features:
-- Zero Line : The NBBP indicator introduces a central reference line at zero. This line serves as a pivotal point for interpreting market sentiment. When the BBP line is above zero, it is colored green, indicating a predominance of bullish sentiment. Conversely, when the BBP line is below zero, it turns red, signaling a prevalence of bearish sentiment. This coloration helps traders quickly identify shifts in market sentiment.
-- OPTIONAL Normalization Function : One of the standout features of the NBBP indicator is its optional normalization function. When activated in the settings menu, this function scales the BBP values from -1 to +1. This means that BBP values are adjusted to fit within a standardized range, making it easier for traders to compare sentiment across different timeframes or assets. Normalization is particularly valuable for identifying extreme sentiment conditions and potential reversals.
-- Moving Average : To provide additional context and smooth out BBP fluctuations, the indicator includes an exponential moving average (EMA). The EMA of BBP is plotted on the chart as a white line. Traders can use this moving average to identify trends and potential trend reversals.
-- Fill Between Lines : The indicator visually enhances the BBP by filling the area between the BBP line and the zero line with a translucent color. This fill helps traders visualize the strength and duration of bullish or bearish sentiment.
Interpretation:
-- BBP Line : Traders can assess the raw BBP line for shifts in sentiment. When the line crosses above zero, it may suggest a shift from bearish to bullish sentiment, potentially indicating a buying opportunity. Conversely, when the line crosses below zero, it may signal a shift from bullish to bearish sentiment, suggesting a potential selling opportunity.
-- Normalization Function : The optional normalization function allows traders to gauge sentiment on a standardized scale. Values above 0 indicate bullish sentiment, while values below 0 suggest bearish sentiment. The closer the values are to their polar ends (-1 or +1), the stronger the sentiment.
-- Moving Average : The EMA of BBP helps identify trends. When BBP crosses above the EMA, it may indicate a strengthening bullish trend, while a crossover below the EMA may suggest a bearish trend.
Customization:
The NBBP indicator provides traders with flexibility through customizable settings. Users can adjust the BBP length, EMA length, and choose to activate or deactivate the normalization function based on their trading preferences and strategy.
Limitations:
The NBBP indicator is most effective when used in conjunction with other technical analysis tools and market context. Traders should consider multiple factors when making trading decisions.
Normalization function results may vary depending on the chosen length and market conditions. If the desired result is not achieved through default settings, try changing timeframes or toggling on/off the normalization function. Users should exercise caution and combine it with other indicators and analysis techniques.
In conclusion, the NBBP indicator is a versatile tool that empowers traders to assess market sentiment, identify potential reversals, and follow trends. Its intuitive visualizations, normalization function, and customizable settings make it a valuable addition to any trader's toolkit.
ai.1ai.1 = All in One indicator
"ai.1" is a high probability low risk predictive oscillator based on various well known indicators "All in One". I wanted to be able to get an equal output result for a multiple trading metrics comparison. I wanted to see what all market participants see, because all market participants look at charts in different ways with different indicators. By combining these well known trading indicators into the same scale I get a comprehensive view of the market as it is, not just through one prism.
The ai.1 indicator uses Stochastic and/or Moving Average Convergence Divergence formulas to visualize: Relative Strength Index, Commodity Channel Index, Money Flow Index, True Strength Index, Momentum, Average True Range, Standard deviation, Accumulation Distribution Index, Price Volume Trend, Positive Volume Index and/or On Balance Volume in a standard type of appearance.
1) MACD: Moving Average Convergence Divergence reveals changes in the strength, direction, momentum, and duration of a trend in a stock's price.
2) Stoch: Stochastic is a technical indicator widely used in short-term trend analysis of futures and stock markets. Stochastic is calculated with the lowest and highest by a formula of 100.
3) RSI: Relative Strength Index is calculated from the upward and downward price changes.
4) CCI: The Commodity Channel Index is calculated as the difference between the typical price of a commodity and its simple moving average, divided by the mean absolute deviation of the typical price.
5) MFI: The Money Flow Index is a technical oscillator that uses price and volume for identifying overbought or oversold conditions in an asset.
6) TSI: True Strength Index uses moving averages of the underlying momentum of a financial instrument.
7) MOM: Momentum is simply the difference of the source price and price length.
8) ATR: Average True Range measures the range between high and low.
9) STDV: Standard deviation is the statistical measure of market volatility, measuring how widely prices are dispersed from the average price. If prices trade in a narrow trading range, the standard deviation will return a low value that indicates low volatility.
10) AD: Accumulation Distribution Index is a cumulative indicator that uses volume and price to assess whether a stock is being accumulated or distributed.
11) PVT: Price Volume Trend uses the cumulative volume and price change.
12) PVI: Positive Volume Index compares the previous volume flow with the current volume.
13) OBV: On Balance Volume is the cumulative volume change.
To be able to merge these formulas I had to normalize the math into 1 scale. I did this by using Stochastic and then converting that by its historical minimum and maximum. The normalized output scale range for ai.1 is -100 to 100.
100 = overbought
-100 = oversold
MACD is a unique scale with neutral zero.
Stochastic is a 0-100 scale.
Relative Strength Index is a 0-100 scale.
Commodity Channel Index is generally a -400<400 scale with neutral zero.
Money Flow Index is a 0-100 scale.
True Strength Index is a unique scale with neutral zero.
Momentum is a unique scale with neutral zero.
Average True Range is a unique scale.
Standard deviation is a unique scale.
Accumulation Distribution Index is a unique scale.
Price Volume Trend is a unique scale.
Positive Volume Index is a unique scale.
On Balance Volume is a unique scale.
Everything in between is either bullish or bearish.
Rising = bullish
Falling = bearish
crossover = bullish
crossunder = bearish
cross = anticipation of the next cross direction
convergence = direction change
divergence = momentum
*Represents a how to use tooltip*
The default input settings / style:
Source = ohlc4
7 = K length, *Stochastic length*
3 = D smoothing, *smoothing length*
6 = MACD-ai.1 fast, *fast length line*
color = blue
13 = MACD-ai.1 slow, *slow length line*
color = white
4 = MACD-ai.1 signal, *histogram length*
color rising above 0 = bright green
color falling above 0 = dark green
color falling below 0 = bright red
color rising below 0 = dark red
2 = Stretch, *Output multiplier for MACD-ai.1 visual expansion*
1 = MA, *moving average of ALL or Choice Type ai.1-lines*
MACD-ai.1 variable choice / Choice type ai.1-line:
RSI *Relative Strength Index*
CCI *Commodity Channel Index*
MFI *Money Flow Index*
TSI *True Strength Index*
MOM *Momentum*
ATR&STDV *weighted average True Range & Standard Deviation*
ATR *True Range*
STDV *Standard Deviation*
PVT *Price Volume Trend*
PVI *Positive Volume Index*
OBV *On Balance Volume*
AD *Accumulation Distribution*
ALL *Weighted average of all*
ALLP *Weighted average of all price based*
ALLV *Weighted average of all volume based*
MACD-ai.1 price label / text color
crossover = green label / black text
crossunder = red label / white text
MACD-ai.1 price label on / off
*unchecked off/ checked on*
label decimal place: 2
*example: use 0 for a round number, use 4 for Forex*
long MACD-ai.1 crossover = green tiny circle
short MACD-ai.1 crossunder = red tiny circle
bullish rising green tiny dot
bearish falling red tiny dot
All ai.1-line = weighted average of all metrics
All cross oversold / overbought levels
*values used to trigger a label or character print*
oversold = -65 green tiny circle
extreme oversold = -85 green small circle
overbought = 65 red tiny circle
extreme overbought = 85 red small circle
All ai.1-line extreme cross price label on / off
All ai.1-line cross price label on / off
All ai.1-line reversal price label on / off
*unchecked off/ checked on*
ai.1-lines variable choice:
RSI *Relative Strength Index*
CCI *Commodity Channel Index*
MFI *Money Flow Index*
TSI *True Strength Index*
MOM *Momentum*
ATR&STDV *weighted average True Range & Standard Deviation*
ATR *True Range*
STDV *Standard Deviation*
PVT *Price Volume Trend*
PVI *Positive Volume Index*
OBV *On Balance Volume*
AD *Accumulation Distribution*
ALL *Weighted average of all*
ALLP *Weighted average of all price based*
ALLV *Weighted average of all volume based*
Choice Type ai.1-line cross oversold / overbought levels
*values used to trigger a label or character print*
oversold = -70 green tiny circle
extreme oversold = -90 green small circle
overbought = 70 red tiny circle
extreme overbought = 90 red small circle
Choice Type ai.1-line extreme cross price label on / off
Choice Type ai.1-line cross price label on / off
Choice Type ai.1-line reversal price label on / off
*unchecked off/ checked on*
Horizontal lines:
100 white
75 red
50 yellow
25 purple
0 white
-25 blue
-50 orange
-75 green
-100 white
Example screenshots of various ways to view ai.1 indicator depending on your preferred settings:
MACD-ai.1 with price labels and All ai.1-line output with directional color:
RSI ai.1-line blue with AD ai.1-line white
MACD-ai.1 fast, slow lines w/ signal histogram
long MACD-ai.1 crossover = green tiny circle
short MACD-ai.1 crossunder = red tiny circle
bullish rising green tiny dot
bearish falling red tiny dot
ATR&STDV ai.1-line with directional color:
All ai.1-line output with directional color & extreme overbought / oversold points:
All price ai.1-line purple with All volume ai.1-line orange
The ai.1 indicator can be used independently by itself or in conjunction with your favorite indicator to compare and contrast the accuracy for a trade setup entry and/or exit. The ai.1 indicator can be used on all time frames from 1 minute to 1 month etcetera. However, the default length settings are fine tuned & quick reacting for trading in real time. So, you can make it slower by adjusting the length larger to fit your trading or investing time frame. But I would not tinker with the default length settings without validating its output by back testing it on each specific time frame.
Different time frame snapshot examples:
EUR/USD 1hr chart:
BTC/USD 1 day chart:
ES1! 2 week chart:
TSLA 2 day chart:
Smart MAThe Smart MA indicator is a tool designed for traders seeking insights into market trends, with its foundation rooted in moving averages. It offers two distinctive color options, with "Crossing" as the default choice and "Direction" as an alternative. Let's delve deeper into these options:
1. "Crossing" Color Option (Default):
Key Features:
Utilizes the interaction between fast and slow moving averages.
The color of the base moving average (MA) line dynamically changes based on crossovers between these moving averages.
Offers real-time visual signals for potential shifts in market sentiment.
Interpretation:
With the "Crossing" color option as the default setting, the base MA line's color responds to the interaction of the fast and slow moving averages.
A crossover where the fast MA crosses above the slow MA may prompt the base MA line to change to a bullish color (e.g., teal), indicating a potential bullish trend.
Conversely, if the fast MA crosses below the slow MA, the base MA line's color may alter to represent a bearish sentiment (e.g., red). This color shift provides a visual marker for a potential bearish trend, potentially guiding traders towards shorting opportunities.
2. "Direction" Color Option:
Key Features:
Focuses on the directional trend of the base moving average (MA).
The color of the base MA line signifies the direction in which the base MA is moving.
Aids in quickly identifying the prevailing market trend.
Interpretation:
Uptrend - Bullish Direction: When the base MA slopes upward, indicating an average price increase over the chosen base MA length, the base MA line's color may shift to a bullish hue (e.g., teal). This visual cue signals a potential uptrend, suggesting favorable long positions.
Downtrend - Bearish Direction: If the base MA slopes downward, signifying an average price decrease over the selected base MA length, the base MA line could change to a bearish shade (e.g., red). This color shift acts as an indicator of a potential downtrend, implying possible opportunities for shorting.
Customization:
Both color options allow traders to adjust the indicator's parameters, including base MA length, MA type, fast MA length, and slow MA length, to align with their trading strategies and preferred timeframes.
In summary, the Smart MA indicator, based on moving averages, provides traders with two color options: the default "Crossing" and "Direction" as an alternative. The "Crossing" option leverages fast and slow moving averages to offer real-time visual cues for dynamic market shifts. The "Direction" option simplifies trend analysis by focusing on the directional trend of the base MA. The choice between these options depends on your trading style and the depth of analysis you require. With the Smart MA indicator, you're equipped to make informed trading decisions in today's financial markets.