Trader4TOS
Member
08-08-23 Updated Version 1.4
https://usethinkscript.com/threads/mega-moving-average-for-thinkorswim.15858/post-129691
Combining major moving averages into a single indicator can be a useful approach to gain a holistic view of the market's trend and potential support/resistance levels. However, it's essential to consider other factors, such as price action, volume, and market context, to make well-informed trading decisions. So I created a moving average that combines the 9,21,50,100,200 and 300 exponential moving averages into one indicator reflected on the chart. It uses the EMA's to provide you with a comprehensive view of the overall trend and potential support/resistance levels in the price action. This can be useful for identifying trend reversals, determining entry/exit points, and understanding the overall strength of the market. Furthermore,
here are a few points to consider when using the Mega Moving Average indicator:
In addition to combining all the major moving averages. I also added a volume surge/spike detection feature and all these are adjustable within the options menu.
Ultimately, Due diligence must be applied and one should not solely depend on indicators to make trading decisions. Only to give guidance and support your technical findings and or confirm in the midst of speculations.
Hope someone finds it as useful as it has been to my trading.
https://usethinkscript.com/threads/mega-moving-average-for-thinkorswim.15858/post-129691
Combining major moving averages into a single indicator can be a useful approach to gain a holistic view of the market's trend and potential support/resistance levels. However, it's essential to consider other factors, such as price action, volume, and market context, to make well-informed trading decisions. So I created a moving average that combines the 9,21,50,100,200 and 300 exponential moving averages into one indicator reflected on the chart. It uses the EMA's to provide you with a comprehensive view of the overall trend and potential support/resistance levels in the price action. This can be useful for identifying trend reversals, determining entry/exit points, and understanding the overall strength of the market. Furthermore,
here are a few points to consider when using the Mega Moving Average indicator:
- Selecting relevant moving averages: Choose moving averages that align with your trading strategy and the timeframe you are focusing on. Common choices include the 50-day, 100-day, and 200-day moving averages, which are widely followed by traders and investors.
- Customizing parameters: Adjust the parameters of the moving averages (e.g., length, type) to suit your analysis. Different combinations may yield different results, so it's essential to experiment and find the settings that work best for your trading style.
- Consider the context: It's crucial to interpret the moving average crossovers and interactions within the context of the overall market conditions. For example, a bullish crossover may carry more weight in an up-trending market, while a bearish crossover may be more significant during a downtrend.
- Use additional confirmation: While moving averages can provide valuable insights, it's often beneficial to use them in conjunction with other technical indicators or chart patterns to strengthen your analysis and reduce false signals.
In addition to combining all the major moving averages. I also added a volume surge/spike detection feature and all these are adjustable within the options menu.
Ultimately, Due diligence must be applied and one should not solely depend on indicators to make trading decisions. Only to give guidance and support your technical findings and or confirm in the midst of speculations.
Hope someone finds it as useful as it has been to my trading.
Ruby:
# created by Trader4TOS
# DEMA
input demaLength = 9;
def demaValue = DEMA(close, demaLength);
# TEMA
input temaLength = 21;
def temaValue = TEMA(close, temaLength);
# SMA
input smaLength = 50;
def smaValue = SimpleMovingAvg(close, smaLength);
# Additional lengths
input maLength1 = 100;
def maValue1 = SimpleMovingAvg(close, maLength1);
input maLength2 = 200;
def maValue2 = SimpleMovingAvg(close, maLength2);
input maLength3 = 300;
def maValue3 = SimpleMovingAvg(close, maLength3);
# Combine moving averages into one
def combinedMA = (demaValue + temaValue + smaValue + maValue1 + maValue2 + maValue3) / 6;
# Volume surge/spike detection
input volumeThreshold = 2.0; # Adjust the threshold according to your preference
def averageVolume = VolumeAvg(length = 20);
def volumeSurge = volume >= averageVolume * volumeThreshold;
# Color change condition
def colorChangeCondition = volumeSurge;
# Plot the combined moving average with color change
plot Indicator = combinedMA;
Indicator.SetDefaultColor(GetColor(1));
Indicator.SetPaintingStrategy(PaintingStrategy.LINE);
Indicator.AssignValueColor(if colorChangeCondition then Color.BLACK else Color.Light_GREEN);
Last edited: