My Moving Average Crossover StrategyOverview of the My Moving Average Crossover Strategy
Moving Averages:
A short-term moving average reacts more quickly to price changes, while a long-term moving average smooths out price fluctuations over a longer period.
The strategy generates trading signals based on the crossover of these two averages:
Buy Signal: When the short-term MA crosses above the long-term MA
Sell Signal:
Implementing Take Profit and Stop Loss
1. Take Profit Levels - 10
2. Stop Loss Levels - 5
3. Take Profit Dynamic - 20
4. Stop Loss Dynamic - 2.5
Moving Averages
Rising and Falling Trendlines with MA20 (Moving Average)//@version=5
indicator("Yükselen ve Düşen Direnç - MA20 Trend Çizgisi", overlay=true)
// MA20 Hesaplama
ma_length = 20
ma20 = ta.sma(close, ma_length)
// MA20'nin Yükseldiği ve Düşüşe Geçtiği Durumları Tespit Etme
ma_uptrend = ma20 > ma20 // MA20'nin bir önceki değerden büyük olup olmadığını kontrol et
ma_downtrend = ma20 < ma20 // MA20'nin bir önceki değerden küçük olup olmadığını kontrol et
// Yükselen Trend Çizgisi Başlatma
var float trendStartUp = na
var float trendEndUp = na
var int trendStartIndexUp = na
var int trendEndIndexUp = na
// Düşen Trend Çizgisi Başlatma
var float trendStartDown = na
var float trendEndDown = na
var int trendStartIndexDown = na
var int trendEndIndexDown = na
// Yükselen Trend Çizgisi (MA20 Yükseliyorsa)
if (ma_uptrend and na(trendStartUp)) // Eğer yükselen trend başlamamışsa, başlat
trendStartUp := ma20
trendStartIndexUp := bar_index
else if (ma_uptrend) // Eğer yükselen trend devam ediyorsa, bitişi güncelle
trendEndUp := ma20
trendEndIndexUp := bar_index
// Düşen Trend Çizgisi (MA20 Düşüyorsa)
if (ma_downtrend and na(trendStartDown)) // Eğer düşen trend başlamamışsa, başlat
trendStartDown := ma20
trendStartIndexDown := bar_index
else if (ma_downtrend) // Eğer düşen trend devam ediyorsa, bitişi güncelle
trendEndDown := ma20
trendEndIndexDown := bar_index
// Yükselen Trend Çizgisini Çizme (Kırmızı Renk)
if (not na(trendStartUp) and not na(trendEndUp))
line.new(x1=trendStartIndexUp, y1=trendStartUp, x2=trendEndIndexUp, y2=trendEndUp,
color=color.green, width=2, style=line.style_solid)
// Düşen Trend Çizgisini Çizme (Mavi Renk)
if (not na(trendStartDown) and not na(trendEndDown))
line.new(x1=trendStartIndexDown, y1=trendStartDown, x2=trendEndIndexDown, y2=trendEndDown,
color=color.red, width=2, style=line.style_solid)
// MA20 Çizgisi
plot(ma20, color=color.blue, linewidth=2, title="MA20")
Rising and Falling Trendlines with MA20 (Moving Average)
This script draws rising and falling trendlines based on the 20-period Simple Moving Average (MA20). The trendlines are drawn dynamically based on whether the MA20 is rising or falling.
What this Script Does:
1. Rising Trendline (Green Line):
When the MA20 is rising (i.e., the current MA20 value is greater than the previous bar's MA20 value), the script draws a rising trendline in green color. This indicates an uptrend, where the market is showing bullish momentum.
2. Falling Trendline (Red Line):
When the MA20 is falling (i.e., the current MA20 value is less than the previous bar's MA20 value), the script draws a falling trendline in red color. This indicates a downtrend, where the market is showing bearish momentum.
3. MA20 Plot:
In addition to drawing the trendlines, the script plots the MA20 on the chart as a blue line, which helps to visualize the average price over the last 20 periods.
Strategies 71% Profit / Scalping by Jasson+FuturosMake the most of it, Time: 10:00am A 12:00pm (New-York).
GG_EMA 50/200 Crossover with RSI StrategyThe script generates a long signal if the 50 ema crosses the 200 upwards and at the same time the RSI >50.
The script generates a short signal if the 50 ema crosses the 200 downwards and at the same time the RSI <50.
ALMA Crossover StrategyALMA (Arnaud Legoux Moving Average) is a type of moving average that attempts to reduce the lag of traditional moving averages while still being responsive to recent price changes. It is based on a weighted average. Strategy has user defined line length and can be adjusted to suit the trader's preference.
The script is purely for educational purposes and you are advised to backtest before using for trading
MA 200 and Bollinger Bands StrategyNamaku Alfian, aku wong jawa timur, gawe en lek menurutmu cocok, lek engga yo ojo dielek2no, iki mek gae testing tok, aku yo butuh duit su
Golden & Death Cross with Re-Activation [By Oberlunar]🎄 Merry Christmas to All Traders! 🎄
Let me introduce you to a practical and customizable classic tool: the Golden & Death Cross with Re-Activation. This script is designed to help you navigate the markets with precision and adaptability.
Why Is This Script Important?
1. Customizable Moving Averages
You can choose from SMA, EMA, WMA, HMA, or RMA for both moving averages. This flexibility allows you to tailor the strategy to fit different markets and trading styles.
2. Smart Signal Handling
The script generates Golden Cross (LONG) and Death Cross (SHORT) signals while deactivating them automatically when the moving averages start to converge, avoiding unnecessary noise.
3. Reactivation Based on Distance Threshold
With the treshold parameter, signals are reactivated only when the moving averages move apart sufficiently, ensuring that the signals remain meaningful and not just random market noise.
What Are These Moving Averages?
SMA (Simple Moving Average),
EMA (Exponential Moving Average),
WMA (Weighted Moving Average),
HMA (Hull Moving Average),
RMA (Relative Moving Average)
Community Input
We invite you to test this script on various markets (forex, stocks, crypto) and share your insights:
Which moving average combination works best for EUR/USD?
How about BTC/USD?
Does the treshold make a noticeable difference?
Let us know in the comments!
Example Settings
MA 1 Type: HMA, Length: 21
MA 2 Type: HMA, Length: 200
Reactivation Threshold: 0.5
Experiment with it, and let us know your findings.
Wishing you a calm holiday season and a profitable new year ahead! 🎁
🎄 Merry Christmas and Happy Trading! 🎄
Trend Trading SetupTrend Trading Setup is an indicator that is designed to assist with trend trading by indicating when the basic conditions for a trade in either direction are met.
Note: Default values assume the 1-hour chart
The idea is that this will allow a trader to know for the first glance if a market is worthy of closer inspection or not.
Indicator Features:
1. Simple Moving Averages - defining the basic trade conditions
5 - Day Moving Average
20 - Day Moving Average
50 - Day Moving Average
2. Visualisation of The Price Location In Relation To The 5 - Day Moving Average
If price is above the 5-day Moving Average, the space between them is green. If price is below the 5-day Moving Average, the space between them is red.
3. Risk Management Section - calculates an ATR-based stop loss.
4. Indication When The Conditions Are Met
If the conditions for a bullish bias are met, the chart background is green. If the conditions for a bearish bias are met, the chart background is red. If none of the conditions are met, the chart background is left as is.
A user can adjust the length of any of the Moving Averages as well as the length of the ATR and the ATR Multiplier for the stop loss size. Default values assume the 1-hour chart, but surprisingly the settings seem to show logical results also on other time frames.
The Setup:
Bullish - 5-day Moving Average is above the 50-day Moving Average. The slope of both of the Moving Averages is positive and the price has to be above the 5-day Moving Average.
Bearish - Exactly the same as for the bullish bias, but opposite.
I do not recommend to take this Trend Trading Setup indicator as the only reason for a position. However, I believe it can be very useful to show when the overall conditions are in favour of a long position or in favour of a short position.
Ichi+QLine+DLine+TenkShift+RoadCross+5MAs V2.1Previous Version of Full Ichi...
Many of my old friends had requested that I re-upload the full Ichimoku indicator on TradingView, which unfortunately was removed from the platform two years ago due to some of TradingView's strict policies. Now, I’m making this indicator available again with the updated version of Pine Script.
Morning Star and Bullish Harami StrategyExecuting buy orders with only 5% target per order and controlled stop loss
Baguli All In One IndicatorsIdentify the Trend: Use the 200 EMA to determine the overall trend direction. If the price is above the 200 EMA, it indicates an uptrend; if below, it indicates a downtrend.
Golden Crossover Strategy time frame 1 day onlyExcellent golden crossover 200 /50 EMA with 1D as time frame
EMA Trend back test 1The EMA Trend script is designed to visualize and identify trends based on the relationship between three Exponential Moving Averages (EMAs) with user-defined periods: Fast EMA, Medium EMA, and Slow EMA. It uses the relative positioning of these EMAs to indicate the direction of the trend and highlights the trend visually on the chart.
BK Multiple MAIndicator Description:
I am incredibly proud and excited to share my third indicator with the TradingView community! This tool has been instrumental in helping me optimize my positioning and maximize my trades.
Moving Averages (MAs) are among the top three most crucial indicators for trading, and this fully customizable Multi-MA script takes them to the next level. This indicator allows you to fine-tune and personalize every aspect to suit your trading style and strategy. Here's what makes it special:
Full Customization: Adjust the period for each MA independently. Choose the type of MA you want to use for each (EMA, SMA, or RMA).
Color & Line Width: Customize the line color and thickness for clarity on your chart.
Flexibility: Use up to 4 Moving Averages, or choose how many you want to display based on your preference.
Streamlined Interface: Simple and intuitive inputs make it easy to tweak settings on the go.
This tool was designed with precision and adaptability in mind, ensuring it works across all timeframes and trading styles.
A Personal Message:
If you find success with this indicator, I kindly ask that you give back in some way through acts of philanthropy—helping others in the best way you see fit.
Good luck to everyone, and always remember: God gives us everything. May all the glory go to the Almighty!
Simple Technical DashboardSimple Technical Dashboard is a comprehensive Pine Script indicator designed for rapid market analysis on TradingView charts. It presents a color-coded table in the top-right corner of the chart, enabling traders to instantly assess market conditions through multiple technical indicators. The dashboard operates as a chart overlay, providing real-time status updates for the selected trading symbol without interfering with the main price action display.
Key features include
- dynamic monitoring of three exponential moving averages (20, 50, and 200-period EMA)
- RSI with a 14-period setting
- MACD using standard parameters (12, 26, 9)
- Stochastic oscillator with 3-period smoothing.
Each indicator's status is displayed through an intuitive color scheme where
- green represents bullish conditions
- red indicates bearish signals.
The dashboard simplifies complex technical analysis by converting multiple indicators into clear visual signals, making it particularly valuable for quick market assessment and trade decision validation.
Relative StrengthThis strategy employs a custom "strength" function to assess the relative strength of a user-defined source (e.g., closing price, moving average) compared to its historical performance over various timeframes (8, 34, 20, 50, and 200 periods). The strength is calculated as a percentage change from an Exponential Moving Average (EMA) for shorter timeframes and a Simple Moving Average (SMA) for longer timeframes. Weights are then assigned to each timeframe based on a logarithmic scale, and a weighted average strength is computed.
Key Features:
Strength Calculation:
Calculates the relative strength of the source using EMAs and SMAs over various timeframes.
Assigns weights to each timeframe based on a logarithmic scale, emphasizing shorter timeframes.
Calculates a weighted average strength for a comprehensive view.
Visualizations:
Plots the calculated strength as a line, colored green for positive strength and red for negative strength.
Fills the background area below the line with green for positive strength and red for negative strength, enhancing visualization.
Comparative Analysis:
Optionally displays the strength of Bitcoin (BTC), Ethereum (ETH), S&P 500, Nasdaq, and Dow Jones Industrial Average (DJI) for comparison with the main source strength.
Backtesting:
Allows users to specify a start and end time for backtesting the strategy's performance.
Trading Signals:
Generates buy signals when the strength turns positive from negative and vice versa for sell signals.
Entry and exit are conditional on the backtesting time range.
Basic buy and sell signal plots are commented out (can be uncommented for visual representation).
Risk Management:
Closes all open positions and cancels pending orders outside the backtesting time range.
Disclaimer:
Backtesting results do not guarantee future performance. This strategy is for educational purposes only and should be thoroughly tested and refined before risking capital.
Additional Notes:
- The strategy uses a custom "strength" function that can be further customized to explore different timeframes and weighting schemes.
- Consider incorporating additional technical indicators or filters to refine the entry and exit signals.
- Backtesting with different parameters and market conditions is crucial for evaluating the strategy's robustness.
Socrate's Bottom Finder - Free editionENGLISH :
Hi everybody,
This indicator will give you the market bottoms with remarkable accuracy.
/!\ Be aware that the indicator cannot know the current economic situation and that in the event of a major crisis, it can signal a market bottom despite the decline not being over. /!\
How to read it ?
It is composed of two visual sections:
- The first section materialized by the white line is a "treshhold" which gives the current trend of the week. It is used to filter most of the "fake signals"
- The second section, materialized by a green and red band, gives the strength of the price trend. If for example the trend is rather bullish, this bar will turn green, the opposit will produce red. An "opportunity" signal will appear when the optimal conditions are met to define a market bottom. Before an opportunity signal there will always be an "Surrender" signal, wich means the trend has weakened and the bottom is near in time.
Special Recommandation :
- The best results are on 1W, 3D, 1D. The indicator work on lower TF but it's not his purpose and you may drop significantly your W/L rate.
- Avoid stocks/crypto with poor stability in the very long time, a good hint is to look after thoses who mostly are above SMA200 on weekly TF.
- Avoid cyclical stock, as they tend to bounce up and down way to often.
Please do your own diligence. Trading may conduct you to loose capital.
Apply your own trading strategy :)
-----------------------------------------------------------------------------------------------------------------------------
FRANCAIS :
Salut tout le monde,
Cet indicateur vous donnera les creux du marché avec une précision remarquable.
/!\ Sachez que l'indicateur ne peut pas connaître la situation économique actuelle et qu'en cas de crise majeure, il peut signaler un creux de marché même si la baisse n'est pas terminée. /!\
Comment le lire ?
Il est composé de deux sections visuelles :
- La première section matérialisée par la ligne blanche est un « seuil » qui donne la tendance actuelle de la semaine. Il est utilisé pour filtrer la plupart des "faux signaux"
- La deuxième section, matérialisée par une bande verte et rouge, donne la force de la tendance des prix. Si par exemple la tendance est plutôt haussière, cette barre deviendra verte, l'inverse produira du rouge. Un signal "d'opportunité" apparaîtra lorsque les conditions optimales seront réunies pour définir un creux de marché. Avant un signal d'opportunité, il y aura toujours un signal "Abandon", ce qui signifie que la tendance s'est affaiblie et que le creux est proche dans le temps.
Recommandations spéciales :
- Les meilleurs résultats sont sur 1W, 3D, 1D. L'indicateur fonctionne sur des TF plus faibles mais ce n'est pas son but et vous risquez de faire chuter considérablement votre ratio de W/L.
- Évitez les stocks/crypto avec une faible stabilité sur le long terme, un bon indice est de cibler ceux qui sont majoritairement (dans leur historique) au-dessus de leur SMA200 en TF hebdomadaire.
- Prioriser les actifs de type "HyperGrowth", l'indicateur fonctionne moins bien avec les cycliques
Veuillez faire vos propres recherches en parallèle. Le trading pouvant vous conduire à perdre du capital.
Appliquez à cet indicateur votre propre stratégie :)
Quick Response Indicator with Moving Averages//@version=5
indicator("Quick Response Indicator with Moving Averages", overlay=true)
// RSI Ayarları
rsiLength = input.int(14, title="RSI Length")
rsiOverbought = input.int(70, title="RSI Overbought Level")
rsiOversold = input.int(30, title="RSI Oversold Level")
rsiSource = input.source(close, title="RSI Source")
// Hareketli Ortalamalar (SMA ve EMA) Ayarları
smaLength = input.int(50, title="SMA Length")
emaLength = input.int(9, title="EMA Length")
smaSource = input.source(close, title="SMA Source")
emaSource = input.source(close, title="EMA Source")
// RSI Hesaplaması
rsiValue = ta.rsi(rsiSource, rsiLength)
// SMA ve EMA Hesaplamaları
smaValue = ta.sma(smaSource, smaLength)
emaValue = ta.ema(emaSource, emaLength)
// Al ve Sat sinyalleri
longSignal = rsiValue < rsiOversold and close > emaValue
shortSignal = rsiValue > rsiOverbought and close < emaValue
// Long ve Short sinyalleri için uyarılar
alertcondition(longSignal, title="Long Signal", message="RSI < Oversold and Close > EMA. Long Signal!")
alertcondition(shortSignal, title="Short Signal", message="RSI > Overbought and Close < EMA. Short Signal!")
// Sinyalleri grafikte gösterme
plotshape(series=longSignal, location=location.belowbar, color=color.green, style=shape.labelup, title="Long Signal", text="Long")
plotshape(series=shortSignal, location=location.abovebar, color=color.red, style=shape.labeldown, title="Short Signal", text="Short")
// SMA ve EMA'yı grafikte gösterme
plot(smaValue, color=color.blue, title="SMA", linewidth=2)
plot(emaValue, color=color.orange, title="EMA", linewidth=2)
// RSI'yı grafikte gösterme
plot(rsiValue, color=color.blue, title="RSI")
hline(rsiOverbought, "Overbought", color=color.red)
hline(rsiOversold, "Oversold", color=color.green)
Key Features:
RSI (Relative Strength Index):
RSI is used to identify overbought or oversold conditions in the market.
When RSI is above 70, it signals overbought conditions, and when RSI is below 30, it indicates oversold conditions.
These levels can help generate trading signals. For example, an oversold condition (RSI < 30) paired with price above EMA may trigger a Long (Buy) signal. Conversely, an overbought condition (RSI > 70) with price below EMA could trigger a Short (Sell) signal.
Moving Averages:
SMA (Simple Moving Average): A 50-period moving average that represents the simple average of the closing prices over a defined period.
EMA (Exponential Moving Average): A 9-period moving average that gives more weight to recent prices, making it more responsive to price changes.
The indicator uses EMA to determine the trend direction, and SMA is used for a longer-term trend indication.
Buy (Long) and Sell (Short) Signals:
Long Signal (Buy): A long signal is generated when RSI is below 30 (oversold) and the current price is above the EMA, indicating a potential upward movement.
Short Signal (Sell): A short signal is generated when RSI is above 70 (overbought) and the current price is below the EMA, indicating a potential downward movement.
Plotting on the Chart:
The SMA, EMA, and RSI are plotted on the chart to give you a visual indication of trend and market conditions.
Long and Short signals are displayed on the chart as green and red arrows, respectively, to help you spot potential entry and exit points quickly.
Alerts:
Alerts are set for Long and Short signals using the alertcondition function. You can use these alerts to notify you when the indicator generates a trade signal.
Advantages of the Indicator:
Quick Response: By combining RSI with EMA and SMA, this indicator allows you to react quickly to market movements and make rapid trading decisions.
Simplified Strategy: The strategy focuses on using moving averages for trend direction and RSI for identifying overbought/oversold conditions, making it ideal for traders who prefer faster results.
Visual Guidance: The clear visual representation of the moving averages, RSI, and trade signals on the chart makes it easy to follow and act on market trends.
MA 20, 50, 200//@version=5
indicator("MA 20, 50, 200", overlay=true)
// Calculate the 20-period, 50-period, and 100-period Simple Moving Averages
ma20 = ta.sma(close, 20)
ma50 = ta.sma(close, 50)
ma200 = ta.sma(close, 200)
// Plot the moving averages on the chart
plot(ma20, color=color.green, linewidth=2, title="MA 20")
plot(ma50, color=color.blue, linewidth=2, title="MA 50")
plot(ma200, color=color.red, linewidth=2, title="MA 200")
This function plots each of the moving averages on the chart.
The color parameter sets the color for each SMA:
MA 20 is plotted in green
MA 50 is plotted in blue
MA 200 is plotted in red
MA 20, 50, 200//@version=5
indicator("MA 20, 50, 100", overlay=true)
// Calculate the 20-period, 50-period, and 100-period Simple Moving Averages
ma20 = ta.sma(close, 20)
ma50 = ta.sma(close, 50)
ma100 = ta.sma(close, 200)
// Plot the moving averages on the chart
plot(ma20, color=color.red, linewidth=2, title="MA 20")
plot(ma50, color=color.green, linewidth=2, title="MA 50")
plot(ma100, color=color.blue, linewidth=2, title="MA 200")
Christmas EMA with Advent Calendar [SS]Hey everyone!
As Tradingview is looking for Christmas themed indicators, I thought I would throw one out this year!
I understand they don't need to be useful, but if you know me, you know that's just not an option, so I went ahead and did a semi useful Christmas themed indicator!
It will calculate the EMA and put the EMA in a Christmas theme, you can select custom EMA theme:
Or you can select "Random" and it will random generate the Emoji and change each day (the advent aspect of the indicator).
In addition to that, of course the EMA is customizable, you can select whichever length you want, and you can toggle on or off the Christmas Countdown!
Thanks for everyone who followed me this year and for a longtime!
And thank you to the Tradingview and Pinecoder community for an awesome platform!
Hopefully we can all approach the new year with an optimistic outlook and be well prepared for whatever comes, both within the market and within our lives.
Safe trades, safe holidays and thoughts and wishes with you all.