Interactive MA Stop Loss [TANHEF]This indicator is "Interactive." Once added to the chart, you need to click the start point for the moving average stoploss. Dragging it afterward will modify its position.
Why choose this indicator over a traditional Moving Average?
To accurately determine that a wick has crossed a moving average, you must examine the moving average's range on that bar (blue area on this indicator) and ensure the wick fully traverses this area.
When the price moves away from a moving average, the average also shifts towards the price. This can make it look like the wick crossed the average, even if it didn't.
How is the moving average area calculated?
For each bar, the moving average calculation is standard, but when the current bar is involved, its high or low is used instead of the close. For precise results, simply setting the source in a typical moving average calculation to 'Low' or 'High' is not sufficient in calculating the moving average area on a current bar.
Moving Average Options:
Simple Moving Average
Exponential Moving Average
Relative Moving Average
Weighted Moving Average
Indicator Explanation
After adding indicator to chart, you must click on a location to begin an entry.
The moving average type can be set and length modified to adjust the stoploss. An optional profit target may be added.
A symbol is display when the stoploss and profit target are hit. If a position is create that is not valid, "Overlapping MA and Bar" is displayed.
Alerts
'Check' alerts to use within indicator settings (stop hit and/or profit target hit).
Select 'Create Alert'
Set the condition to 'Interactive MA''
Select create.
Alert messages can have additional details using these words in between two Curly (Brace) Brackets:
{{stop}} = MA stop-loss (price)
{{upper}} = Upper MA band (price)
{{lower}} = Lower MA band (price)
{{band}} = Lower or Upper stoploss (word)
{{type}} = Long or Short stop-loss (word)
{{stopdistance}} = Stoploss Distance (%)
{{targetdistance}} = Target Distance (%)
{{starttime}} = Start time of stoploss (day:hour:minute)
{{maLength}} = MA Length (input)
{{maType}} = MA Type (input)
{{target}} = Price target (price)
{{trigger}} = Wick or Close Trigger input (input)
{{ticker}} = Ticker of chart (word)
{{exchange}} = Exchange of chart (word)
{{description}} = Description of ticker (words)
{{close}} = Bar close (price)
{{open}} = Bar open (price)
{{high}} = Bar high (price)
{{low}} = Bar low (price)
{{hl2}} = Bar HL2 (price)
{{volume}} = Bar volume (value)
{{time}} = Current time (day:hour:minute)
{{interval}} = Chart timeframe
{{newline}} = New line for text
I will add further moving averages types in the future. If you suggestions post them below.
Sma
NSDT Average 6This is a pretty simple concept that we were asked to put together. It uses 6 Moving Averages, and takes the average of each one, then averages them all together.
If you don't want to use 6, and only 3 for example, then just enter the same length in two of the input fields as pairs.
Example:
For 6, you could use 10, 20, 30, 40, 50, 60
For 3, you could use 10, 10, 50, 50, 100, 100
It doesn't ploy 6 MA's, it only plots one - the result of the average of an average of an average, etc..
Publishing open source so other can modify as needed.
Anchored Moving Average By Market Mindset - Zero To EndlessAnchored Moving Average?
An anchored moving average (AMA) is created when you select a point on the chart and start calculating the moving average from there. Thus the moving average’s denominator is not fixed but cumulative and dynamic.
In this indicator, I've provided three different types of Anchored Moving Averages, viz., WMA, SMA and VWAP.
WMA is relevant if big moves are there.
SMA is relevant if volume data is not to be considered or if it is not available.
VWAP is the standard anchored MA, which is most commontly used. Is consider the volume data along with the price move.
In this indicator, Auto anchor is time based anchor. A trader can opt for Pivot Type Anchor or Volume Type Anchor or some higher resolution based anchor too. The length of the pivot lookback can also be changed by the user.
It can be used for intraday, swing trading and even for technical based investment purpose.
VWAP with CharacterizationThis indicator is a visual representation of the VWAP (Volume Weighted Average Price), it calculates the weighted average price based on trading volume. Essentially, it provides a measure of the average price at which an asset has traded during a given period, but with a particular focus on trading volume. In our case, the indicator calculates the VWAP for the current trading symbol, using a predefined simple moving average (SMA) with a period of 14. This volume-weighted moving average offers a clearer view of the behavior of the VWAP and, of consequence of market dynamics.
One of the distinctive features of this indicator is its ability to provide a more "linear" representation of the data. This means that the data is "smoothed" to remove noise, allowing you to more easily identify the direction of the market trend. This smoother representation is especially useful because the financial market can be subject to significant fluctuations and volatility, and this indicator can help get a more stable view of the trend.
The indicator also offers a visualization of the market trend in a very intuitive way. Using an evaluation of the highs and lows of the last 10 days, determine whether the market is in an uptrend, downtrend, or no trend at all. To make this evaluation even clearer and more immediate, the indicator line is colored dynamically. When the trend is bullish, the line is blue, while in case of a bearish trend, it takes on a distinctive color, such as pink. If the trend is not defined, the line will be colored differently, for example light yellow. This coloration gives traders an immediate visual indication of the prevailing trend, allowing them to make more informed decisions regarding trading operations.
One potential strategy involves watching candles when they cross the VWAP line strongly. If, for example, a candlestick breaks above the VWAP line, we may look for retest areas near key support levels to gauge a potential long entry. In other words, we would consider that the price may have the potential to rise further after breaking above the VWAP line, and we would look to enter a long position to take advantage of this opportunity.
On the other hand, if a candlestick crosses below the VWAP line, we might consider looking for retest areas near the VWAP line itself, which now serves as potential resistance. This could indicate a possible short entry opportunity, as the price may struggle to break above the resistance represented by the VWAP line after breaking it down. In this case, we would look to take advantage of the expected continuation of the downtrend.
In both cases, the idea is to exploit significant movements across the VWAP line as signals of potential reversal or continuation of the trend. This strategy can help identify key entry points based on price behavior relative to the VWAP line.
Super SMA 5 8 13This indicator is based on the 5 8 13 simple moving average strategy of strategist Selçuk Gönençler. The indicator shows buy and sell signals when favorable conditions occur.
══ H O W T O U S E ══
Above 5-8-13 - Confirmed hold/buy
5 below (8-13 above) - Be careful, lose weight but don't run away.
Below 5-8 (above 13) - Risk has begun. Don't be stubborn. 13 is your last castle.
5-8-13 below. Don't fight! Wait until it rises above 5-8 again.
Momentum ChannelbandsThe "Momentum Channelbands" is indicator that measures and displays an asset's momentum. It includes options to calculate Bollinger Bands and Donchian Channels around the momentum. Users can customize settings for a comprehensive view of momentum-related insights. This tool helps assess trend strength, identify overbought/oversold conditions, and pinpoint highs/lows. It should be used alongside other indicators due to potential lag and false signals.
SMA/EMA/RSImagic 36.963 by IgorPlahutaTwo Elements in this script:
Alerts: These are notifications that draw your attention to specific market conditions. There are two types:
RSI Higher Lows or Lower Highs: This alert triggers when the Relative Strength Index (RSI) forms higher lows or lower highs.
RSI Exiting 30 (Up) or RSI Exiting 70 (Down): These alerts activate when the RSI crosses the 30 threshold upwards or the 70 threshold downwards.
ALL BUY/SELL: to catch both of them with one setting
To Set Up an Alert: To configure an alert, select the one relevant to your trading strategy, choose the "Greater than" option, and input a value of "0" (this essentially activates the alert). Adjust other settings as per your requirements.
Please note that these alerts should be used in conjunction with a system you trust for confirmation.
Moving Averages: This involves monitoring several moving averages:
SMA12, SMA20, EMA12, EMA20: These moving averages are highlighted with background colors to help you quickly identify changes or crossovers. They are superimposed on each other for easy comparison.
SMA 50, SMA200: These moving averages are also highlighted with background colors to spot crossovers, and their lines change color depending on their direction (falling in red or rising in green).
Enjoy using these tools in your trading endeavors!
RSI+SMA AL SATrsi ve sma'nın kesiştiği dönemlerde yükseliş ve düşüş dalgalarını bulmaya yarıyan indikator
En ideal kullanım 8e 8 değerleri
EMA x 3 MAsThis indicator can be used for moving average strategies based on a EMA trigger over MAs (SMAs) : MA1 , MA2 , MA3 .
Based on those crossings, the background color will change for the upcoming candle showing green for upper crossing change (the more MA are crossed, the darker is the background). Order and priority of background colors :
1/ EMA x MA1
2/ EMA x MA2 (if EMA x MA1 confirmed)
3/ EMA x MA3 (if EMA x MA1and EMA x MA2 confirmed)
EMA and MAs can also be tuned with your own values in the parameters, therefore allowing you to try different strategies and to use the EMA and MAs as support/resistance indication.
You can set up the background and lines colors in the Style in the parameters.
Candle Size w/ SMAThis simple indicator calculates the absolute size of the candle by the open and close or high and low values and then plots it on a histogram. It also features a simple moving average with a customizable lookback to track the average candle size based on your lookback.
This indicator can be used to spot unusually large or small candles. And can also be used for testing other strategies or indicators related to candle sizes.
VWMA/SMA Delta Volatility (Statistical Anomaly Detector)The "VWMA/SMA Delta Volatility (Statistical Anomaly Detector)" indicator is a tool designed to detect and visualize volatility in a financial market's price data. The indicator calculates the difference (delta) between two moving averages (VWMA/SMA) and uses statistical analysis to identify anomalies or extreme price movements. Here's a breakdown of its components:
Hypothesis:
The hypothesis behind this indicator is that extreme price movements or anomalies in the market can be detected by analyzing the difference between two moving averages and comparing it to a statistically derived normal distribution. When the MA delta (the difference between two MAs: VWMA/SMA) exceeds a certain threshold based on standard deviation and the Z-score coefficient, it may indicate increased market volatility or potential trading opportunities.
Calculation of MA Delta:
The indicator calculates the MA delta by subtracting a simple moving average (SMA) from a volume-weighted moving average (VWMA) of a selected price source. This calculation represents the difference in the market's short-term and long-term trends.
Statistical Analysis:
To detect anomalies, the indicator performs statistical analysis on the MA delta. It calculates a moving average (MA) of the MA delta and its standard deviation over a specified sample size. This MA acts as a baseline, and the standard deviation is used to measure how much the MA delta deviates from the mean.
Delta Normalization:
The MA delta, lower filter, and upper filter are normalized using a function that scales them to a specific range, typically from -100 to 100. Normalization helps in comparing these values on a consistent scale and enhances their visual representation.
Visual Representation:
The indicator visualizes the results through histograms and channels:
The histogram bars represent the normalized MA delta. Red bars indicate negative and below-lower-filter values, green bars indicate positive and above-upper-filter values, and silver bars indicate values within the normal range.
It also displays a Z-score channel, which represents the upper and lower filters after normalization. This channel helps traders identify price levels that are statistically significant and potentially indicative of market volatility.
In summary, the "MA Delta Volatility (Statistical Anomaly Detector)" indicator aims to help traders identify abnormal price movements in the market by analyzing the difference between two moving averages and applying statistical measures. It can be a valuable tool for traders looking to spot potential opportunities during periods of increased volatility or to identify potential market anomalies.
Pro Momentum CalculatorThe Pro Momentum Calculator Indicator is a tool for traders seeking to gauge market momentum and predict future price movements. It achieves this by counting consecutive candle periods above or below a chosen Simple Moving Average (SMA) and then providing a percentage-based probability for the direction of the next candle.
Here's how this principle works:
1. Counting Consecutive Periods: The indicator continuously tracks whether the closing prices of candles are either above or below the chosen SMA.
- When closing prices are above the SMA, it counts consecutive periods as "green" or indicating potential upward momentum.
- When closing prices are below the SMA, it counts consecutive periods as "red" or suggesting potential downward momentum.
2. Assessing Momentum: By monitoring these consecutive periods, the indicator assesses the strength and duration of the current market trend.
This is important information for traders looking to understand the market's behavior.
3. Predicting the Next Candle: Based on the historical data of consecutive green and red periods, the indicator calculates a percentage probability for the direction of the next candle:
- If there have been more consecutive green periods, it suggests a higher likelihood of the next candle being green (indicating a potential upward movement).
- If there have been more consecutive red periods, it suggests a higher likelihood of the next candle being red (indicating a potential downward movement).
The Pro Momentum Calculator indicator's versatility makes it suitable for a wide range of financial markets, including stocks, Forex, indices, commodities, cryptocurrencies...
Moving Average Continuity [QuantVue]"Moving Average Continuity," is designed to compare the position of two Moving Averages (MAs) across multiple timeframes.
The user can select three timeframes and determine the length and type of both a fast and slow moving average.
The indicator will display a small table in a user selected location.
This table helps traders quickly determine if, for their selected timeframes, the faster moving average is trending above or below the slower moving average.
The “Moving Average Continuity” indicator can also send you three types of alerts;
1. All moving averages are aligned bullish
2. All moving averages are aligned bearish
3. Moving averages are mixed
Key Features:
1. Timeframes: The user can select up to three distinct timeframes to compare the moving averages.
2. Moving Average Inputs: For each MA, users can determine:
• Length of the MA
• Type of the MA - Options include EMA (Exponential Moving Average), SMA (Simple Moving Average), HMA (Hull Moving Average), WMA (Weighted Moving Average), and VWMA (Volume Weighted Moving Average).
3. Positioning: Users have the ability to adjust the table's positioning (top, middle, or bottom) and horizontal alignment (right, center, or left) on the chart overlay.
4. Runtime Error Prevention: The indicator will throw an error if the chart's timeframe exceeds the maximum selected timeframe, ensuring that comparisons are done correctly.
Give this indicator a BOOST and COMMENT your thoughts!
We hope you enjoy.
Cheers.
Vortex Cross w/MA ConfirmationThis script is a trading strategy that combines the Vortex Indicator and a Moving Average (MA) to generate potential entry signals for long and short positions.
1. Vortex Indicator:
The Vortex Indicator consists of two lines: Vortex Positive (VIP) and Vortex Negative (VIM). It is designed to identify trend direction and measure the strength of a trend.
2. Moving Average (MA):
The script uses a chosen type of Moving Average (SMA, EMA, SMMA, WMA, or VWMA) to smooth the price data. The smoothed line is referred to as the "Smoothing Line."
3. Determine Long and Short Conditions:
The script looks for potential long entry signals when VIP crosses above VIM, highlighting each crossover on the chart, and the closing price is above the Smoothing Line. It searches for short entry signals when VIM crosses above VIP, with the closing price is below the Smoothing Line. When the long or short conditions are met, the strategy enters either a long or short position accordingly.
Potential Usage:
The strategy can be utilized in trending markets, where the Vortex Indicator helps identify trend direction and strength, and the Moving Average smooths the price data to filter out some noise. It aims to capture trends and ride them while avoiding false signals during choppy or sideways markets.
20/200MAs+LTF+4HTF and HighLowBox+3HTF20/200MAs
Shows 20 and 200 MAs in each TFs(tfChart,1 Lower and 4 Higher).
TFs:
current TF
Lower TF (default: lower1)
Higher TF1 (default: higher1)
Higher TF2 (default: higher1)
Higher TF3 (default: higher1)
Higher TF4 (default: higher1)
MAs:
20MA (default: sma)
1st 200MA (default: sma)
2nd 200MA (default: ema)
VWAP (optional)
HighLowBox+3HTF
Enclose in a square high and low range in each timeframe.
Shows price range and duration of each box.
In current timeframe, shows Fibonacci Scale inside(23.6%, 38.2%, 50.0%, 61.8%, 76.4%)/outside of each box.
Outside(161.8%,261.8,361.8%) would be shown as next target, if break top/bottom of each box.
1st box for current timeframe.
2nd box for higher timeframe.(default: higher1)
3rd box for higher timeframe.(default: higher2)
4th box for higher timeframe.(default: higher3)
static timeframes can also be used.
gFancyMALibrary "GalacticS2021"
printLbl(y, x, c, m, b)
Parameters:
y (float)
x (int)
c (color)
m (string)
b (bool)
SMA mechanical swing tradeIndicator that compares the closing price of an asset vs a simple moving average as a mechanical swing trading strategy. It allows the user to set any asset and timeframe for the strategy, which can be different from those the user is currently viewing. The strategy also allows the user to set an upside and downside tolerance so that retests within a few % of the SMA get some space to breathe before flipping directional bias.
If the selected asset in the strategy is different from the one currently viewed, the indicator plots the MA for the currently viewed asset but keeps applying the directional bias colors from the strategy asset.
Some examples of recommended usage of this indicator: BTCUSD 120D, BTCUSD 120D applied on ETHUSD, AAVEUSD 365D.
Ultimate Balance OscillatorIntroducing the Ultimate Balance Oscillator: A Powerful Trading Indicator
Built upon the renowned Rate of Change (ROC), Relative Strength Index (RSI), Commodity Channel Index (CCI), Williams Percent Range, and Average Directional Index (ADX) from TradingView, this indicator equips traders with an unparalleled understanding of market dynamics.
What sets the Ultimate Balance Oscillator apart is its meticulous approach to weighting. Each component is assigned a weight that reflects its individual significance, while carefully mitigating the influence of highly correlated signals. This strategic weighting methodology ensures an unbiased and comprehensive representation of market sentiment, eliminating dominance by any single indicator.
Key Features and Benefits:
1. Comprehensive Market Analysis: The Ultimate Balance Oscillator provides a comprehensive view of market conditions, enabling traders to discern price trends, evaluate momentum shifts, identify overbought or oversold levels, and gauge the strength of prevailing trends. This holistic perspective empowers traders to make well-informed decisions based on a thorough understanding of the market.
2. Enhanced Signal Accuracy: With its refined weighting approach, the Ultimate Balance Oscillator filters out noise and emphasizes the most relevant information. This results in heightened signal accuracy, providing traders with a distinct advantage in identifying optimal entry and exit points. Say goodbye to unreliable signals and welcome a more precise and dependable trading experience.
3. Adaptability to Various Trading Scenarios: The Ultimate Balance Oscillator transcends the constraints of specific markets or timeframes. It seamlessly adapts to diverse trading scenarios, accommodating both short-term trades and long-term investments. Traders can customize this indicator to suit their preferred trading style and effortlessly navigate ever-changing market conditions.
4. Simplicity and Ease of Use: The Ultimate Balance Oscillator simplifies trading analysis by providing a single line on the chart. Its straightforward interpretation and seamless integration into trading strategies make decision-making effortless. By observing bullish or bearish crossovers with the moving average, recognizing overbought or oversold levels, and tracking the overall trend of the oscillator, traders can make well-informed decisions with confidence.
5. Real-time Alerts: Stay ahead of the game with the Ultimate Balance Oscillator's customizable alert system. Traders can set up personalized alerts for bullish or bearish crossovers, breaches of overbought or oversold thresholds, or any specific events that align with their trading strategy. Real-time notifications enable timely action, ensuring traders never miss lucrative trading opportunities.
The Ultimate Balance Oscillator is a robust trading companion, empowering traders to make shrewd and calculated decisions. Embrace its power and elevate your trading endeavors to new heights of precision and success. Discover the potential of the Ultimate Balance Oscillator and unlock a world of trading possibilities.
Moving Average Reversals [QuantVue]Moving Average Reversals
Description:
The Moving Average Reversals indicator gives a quick visual representation of when a stock gets extended up or down from a user selected moving average.
The color of the histogram dynamically changes as price becomes extended or within it’s normal trading range.
The indicator also highlights the largest extensions over the past year or 252 bars if using intraday.
Lastly a simple moving average of the extensions is calculated and used to confirm a change of character.
Settings:
🔹Use different MA types - EMA, SMA, HMA, WMA, VWMA
🔹Adjustable MA length
🔹Change distance measurement source - open, close, high, low, hl2, hlc3, ohlc4, hlcc4
🔹Extension highlighting
🔹Toggle MA extensions
Don't hesitate to reach out with any questions or concerns. We hope you enjoy!
Cheers.
Volatility SpeedometerThe Volatility Speedometer indicator provides a visual representation of the rate of change of volatility in the market. It helps traders identify periods of high or low volatility and potential trading opportunities. The indicator consists of a histogram that depicts the volatility speed and an average line that smoothes out the volatility changes.
The histogram displayed by the Volatility Speedometer represents the rate of change of volatility. Positive values indicate an increase in volatility, while negative values indicate a decrease. The height of the histogram bars represents the magnitude of the volatility change. A higher histogram bar suggests a more significant change in volatility.
Additionally, the Volatility Speedometer includes a customizable average line that smoothes out the volatility changes over the specified lookback period. This average line helps traders identify the overall trend of volatility and its direction.
To enhance the interpretation of the Volatility Speedometer, color zones are used to indicate different levels of volatility speed. These color zones are based on predefined threshold levels. For example, green may represent high volatility speed, yellow for moderate speed, and fuchsia for low speed. Traders can customize these threshold levels based on their preference and trading strategy.
By monitoring the Volatility Speedometer, traders can gain insights into changes in market volatility and adjust their trading strategies accordingly. For example, during periods of high volatility speed, traders may consider employing strategies that capitalize on price swings, while during low volatility speed, they may opt for strategies that focus on range-bound price action.
Adjusting the inputs of the Volatility Speedometer indicator can provide valuable insights and flexibility to traders. By modifying the inputs, traders can customize the indicator to suit their specific trading style and preferences.
One input that can be adjusted is the "Lookback Period." This parameter determines the number of periods considered when calculating the rate of change of volatility. Increasing the lookback period can provide a broader perspective of volatility changes over a longer time frame. This can be beneficial for swing traders or those focusing on longer-term trends. On the other hand, reducing the lookback period can provide more responsiveness to recent volatility changes, making it suitable for day traders or those looking for short-term opportunities.
Another adjustable input is the "Volatility Measure." In the provided code, the Average True Range (ATR) is used as the volatility measure. However, traders can choose other volatility indicators such as Bollinger Bands, Standard Deviation, or custom volatility measures. By experimenting with different volatility measures, traders can gain a deeper understanding of market dynamics and select the indicator that best aligns with their trading strategy.
Additionally, the "Thresholds" inputs allow traders to define specific levels of volatility speed that are considered significant. Modifying these thresholds enables traders to adapt the indicator to different market conditions and their risk tolerance. For instance, increasing the thresholds may highlight periods of extreme volatility and help identify potential breakout opportunities, while lowering the thresholds may focus on more moderate volatility shifts suitable for range trading or trend-following strategies.
Remember, it is essential to combine the Volatility Speedometer with other technical analysis tools and indicators to make informed trading decisions.
High Liquidity Zones and Threshold VolumeThe High Liquidity Zones indicator is designed to identify areas of significant liquidity in the market. It helps traders recognize regions where trading volume is notably higher, indicating potential areas of increased market activity and interest.
The indicator calculates the average volume over a specified lookback period, which can be customized according to individual preferences. This average volume acts as a reference point to determine the threshold volume level. The threshold percentage input allows users to set the sensitivity of the indicator, defining the minimum volume required for an area to be considered a high liquidity zone.
When the current volume surpasses the threshold volume level, the indicator highlights these areas as high liquidity zones. This visual representation allows traders to quickly identify and focus on periods of heightened trading activity. The high liquidity zones are marked with square shapes below the histogram, providing a clear visual indication on the chart.
The first plot line represents the threshold volume level as a histogram, showing the volume levels in relation to the threshold. This histogram helps traders assess the magnitude of the volume in the identified high liquidity zones.
The second plot line represents the threshold volume's simple moving average (SMA) over the lookback period. The SMA acts as a reference line, smoothing out fluctuations in the threshold volume and providing a more stable measure of high liquidity zones. Traders can use this line to better understand the overall trend and dynamics of liquidity.
The High Liquidity Zones indicator offers flexibility, allowing traders to adapt it to their preferred trading style and timeframe. By adjusting the lookback period and threshold percentage, users can fine-tune the sensitivity of the indicator based on their trading strategies and market conditions.
Furthermore, traders can combine the High Liquidity Zones indicator with other technical analysis tools to confirm trading signals or identify areas of potential support and resistance. It can help them locate price levels where market participants have a substantial presence and where significant buying or selling pressure may occur.
Overall, the High Liquidity Zones indicator is a valuable tool for traders seeking to gain insights into market liquidity dynamics. By highlighting areas of intense trading activity, it assists in making informed trading decisions and identifying opportunities within the market.
Consensio Allocation ToolOriginally created and taught by Taylor Jenks, this indicator provides portfolio allocation suggestions based on the behaviour of price and 3 simple moving averages (4/10/40 by default)
(ie. when short & medium term SMAs are above the long term then allocation is to be 100%).
This percentage allocated to the stock/commodity is to be reduced as it passes below the SMA's, particularly as each moving average crosses.
Consensio is useful for scaling in and out of a position as the portfolio allocation will change according to the momentum of the asset.
The rules below are my own based on understanding of the trading system developed by Jenks and his online content.
This script has the following rules:
if fastAboveSlowMA and not mediumAboveSlowMA
allocation := 30.0
else if longAboveFastMA
allocation := 0.0
else if fastAboveMediumMA and fastAboveSlowMA
allocation := 100.0
else if not fastAboveMediumMA and fastAboveSlowMA
allocation := 80.0
else if not fastAboveMediumMA and not fastAboveSlowMA
allocation := 50.0
else if not mediumAboveSlowMA and fastAboveSlowMA
allocation := 50.0
// Calculate adjusted allocation percentage based on crossing moving averages
allocation := allocation + (priceAboveFastMA ? 10.0 : -10.0)
allocation := allocation + (priceAboveMediumMA ? 10.0 : -10.0)
MultiMovesCombines 3 different moving averages together with the linear regression. The moving averages are the HMA, EMA, and SMA. The script makes use of two different lengths to allow the end user to utilize common crossovers in order to determine entry into a trade. The edge of each "cloud" is where each of the moving averages actually are. The bar color is the average of the shorter length combined moving averages.
-The Hull Moving Average (HMA), developed by Alan Hull, is an extremely fast and smooth moving average. In fact, the HMA almost eliminates lag altogether and manages to improve smoothing at the same time. A longer period HMA may be used to identify trend.
-The exponential moving average (EMA) is a technical chart indicator that tracks the price of an investment (like a stock or commodity) over time. The EMA is a type of weighted moving average (WMA) that gives more weighting or importance to recent price data.
-A simple moving average (SMA) is an arithmetic moving average calculated by adding recent prices and then dividing that figure by the number of time periods in the calculation average.
-The Linear Regression Indicator plots the ending value of a Linear Regression Line for a specified number of bars; showing, statistically, where the price is expected to be. Instead of plotting an average of past price action, it is plotting where a Linear Regression Line would expect the price to be, making the Linear Regression Indicator more responsive than a moving average.
The lighter colors = default 50 MA
The darker colors = default 200 MA