INVITE-ONLY SCRIPT
Aggiornato

Buy and sell signal by JPTrades

3 172
Descripcion:
The 10/20 MA Strategy is the best I know. It's easy, it's elegant, it's effective.

It's particularly effective in markets that trend on the daily. You may lose some money when markets are choppy, but your loss will be more than compensated when you're aboard during the big moves at the beginning of a trend or after retraces. There's that, and you nearly eliminate the risk of losing your profit in the long run.

The results are good throughout most assets, and at their best when an asset is making new all-time highs.

Caracteristicas:
It uses two simple moving averages: the 10 MA (Buy), and the 20 MA (Sell). Now here's the great thing. This script does not change your regular candles into heikin-ashi ones, which would have been annoying; instead, it subtly prints either a Buy or a Sell around your normal candles, indicating a heikin-ashi change from red to green, or from green to red, respectively. This way, you get both regular and heikin ashi "candles" on your chart.

How to Use:
Go LONG in case of ALL of the below:

A tab appeared with buy under the last daily candle (meaning the heikin-ashi is now "green").
The blue MA-line is above the red MA-line.
Price has recently breached the blue MA-line upwards, and is now above.

Cover when one or more of the above is no longer the case. This is very important. You want to keep your profit.

Go SHORT in case of ALL of the below:

A red tab with Sell above the last daily candle (meaning the heikin-ashi is now "red").
The red MA-line is above the blue MA-line.
Price has recently breached the blue MA-line downwards, and is now below.

Again, cover when one or more of the above is no longer the case. This is what gives you your edge.

How to get access to the script:
Send us a message if you would like to try!!
Note di rilascio
The size of the buy and sell was modified.
Note di rilascio
I have only changed the title to differentiate them better!!!
Note di rilascio
Heikin-Ashi (HA) Indicator:

We use the Heikin-Ashi candles to smooth out market noise and get a clearer view of the trend. HA candles help identify changes in price direction more clearly, making it easier to spot trend reversals.

Moving Averages (MA):

HA-MA Volatility Filter Strategy 📈💡
This indicator combines the power of Heikin-Ashi (HA) candles, Simple Moving Averages (SMA), and a Volatility Filter based on ATR to generate more accurate and profitable buy and sell signals. It has been updated and improved to take full advantage of the latest features in Pine Script v5, making it more efficient and user-friendly.

Key Updates & Improvements 🚀
Migration to Pine Script v5 🖥️
The indicator has been fully updated to the latest version of Pine Script (v5), ensuring greater compatibility, performance, and access to the newest features.

Corrected Heikin-Ashi Calculation 🔧
The ha_open calculation has been corrected to avoid declaration errors, ensuring values are updated correctly on each bar. Now, var is used to initialize ha_open, and := for recursive updates.

Volatility Filter (ATR) 🔍
A volatility filter based on Average True Range (ATR) has been added.

Buy/Sell signals are only generated if the current bar's range exceeds a multiple of the ATR, helping to avoid trades in sideways or low-volatility markets.
Confirmation with Moving Averages 📊
Buy/Sell signals require the price to be above or below the 10 and 20-period moving averages, adding an extra layer of trend confirmation.

Improved Visualization 🎨
Buy/Sell signals are displayed with clear BUY/SELL labels on the chart.
Moving averages are plotted with distinctive colors for easy identification.
The chart background changes color (green/red) based on the current trend.
Customizable Alerts 🔔
Alerts for buy and sell signals have been added, enabling traders to act quickly when signals are triggered.

How to Use the Indicator 🔑
Buy Signals 💚
A buy signal is generated when:

Heikin-Ashi turns green (HA close > HA open).
Price is above the 10 and 20-period moving averages.
The current bar’s range exceeds the volatility filter (optional).
Sell Signals ❤️
A sell signal is generated when:

Heikin-Ashi turns red (HA close <= HA open).
Price is below the 10 or 20-period moving averages.
The current bar’s range exceeds the volatility filter (optional).
Customization ⚙️
Adjust the moving averages’ parameters (MA 10 Length, MA 20 Length).
Set the volatility filter parameters (ATR Length, ATR Multiplier).
Enable or disable the volatility filter according to your preferences.
Advantages of the Indicator ✅
Higher Accuracy: Combining Heikin-Ashi, moving averages, and the volatility filter reduces false signals.
Adaptability: Works across different markets and timeframes.
Ease of Use: Visual signals and alerts make it easy to integrate into your trading strategy.
Adjustable Parameters ⚡
MA 10 Length: Length of the 10-period moving average.
MA 20 Length: Length of the 20-period moving average.
ATR Length: Length of the ATR for the volatility filter.
ATR Multiplier: Multiplier of the ATR to adjust the volatility filter.
Use Volatility Filter: Toggle the volatility filter on/off.
Recommendations 💭
Optimization: Test different parameter values across various markets and timeframes to find the optimal configuration for your strategy.
Risk Management: Combine this indicator with a dynamic stop loss based on ATR or a percentage of your entry price.
Backtesting: Evaluate the indicator's performance on historical data before using it in live trading.
Start using the HA-MA Volatility Filter Strategy today and take your trading to the next level! 🚀📊
Note di rilascio
Enhancements Added:
1. RSI Filter:
Added an RSI (Relative Strength Index) calculation with customizable length, overbought, and oversold levels.
Buy signals are filtered to occur only when RSI is above the oversold level but below the overbought level, avoiding overextended markets.
Sell signals are filtered to occur only when RSI is below the overbought level but above the oversold level.
2. Trend Filter:
Introduced a trend confirmation using the direction of the moving averages (MA10 and MA20).
Buy signals require both MAs to be in an uptrend (current value > previous value).
Sell signals require both MAs to be in a downtrend.
This filter is optional and controlled by the use_trend_filter input.
3. Stop-Loss Levels:
Added dynamic stop-loss levels based on ATR.
For buy signals, the stop-loss is plotted below the low of the candle by stop_loss_atr * ATR.
For sell signals, the stop-loss is plotted above the high of the candle.
These levels are visualized with red crosses on the chart.
4. Improved Input Validation:
Added minimum values to inputs (e.g., minval=1 for lengths) to prevent invalid settings.
Adjusted step sizes for smoother customization (e.g., step=0.1 for ATR multiplier).

How It Improves Functionality:
Better Trade Filtering: The RSI and trend filters reduce false signals by ensuring trades align with momentum and trend direction.
Risk Management: Stop-loss levels provide a visual guide for setting exits, enhancing risk control.
Flexibility: New inputs allow users to toggle features (e.g., trend filter) or adjust parameters to suit different markets or timeframes.

1. Volume Filter:
Added a volume condition using a Simple Moving Average (SMA) of volume (volume_ma) with a customizable length (volume_ma_len).
A multiplier (volume_multiplier) defines the threshold (e.g., 1.5x the volume MA). Signals only trigger if the current volume exceeds this threshold (volume > volume_threshold).
Controlled by a toggle (use_volume_filter), so you can enable/disable it as needed.
2. Volume Visualization:
Added an optional plot of the volume MA (volume_ma) in gray, hidden by default (display=display.none). You can enable it in the indicator settings to see how volume aligns with signals.

How It Improves Functionality:
Confirmation of Strength: The volume filter ensures that buy and sell signals occur during periods of heightened activity, reducing the likelihood of false signals in low-volume conditions.
Customizability: You can adjust the volume MA length and multiplier to suit different assets (e.g., stocks with varying liquidity) or timeframes.
Visual Aid: Plotting the volume MA (if enabled) helps you visually confirm the volume condition alongside price action.

Usage Tips:
For stocks with high average volume, increase the volume_multiplier (e.g., 2.0 or higher) to filter out noise.
For lower timeframes, consider reducing volume_ma_len (e.g., 10) to make the filter more responsive.
Test the indicator on your preferred market to fine-tune the volume settings.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.