Reflected ema Difference (RED) This script, titled "Reflected EMA Difference (RED)," is based on the logic of evaluating the percentage of convergence and divergence between two moving averages, specifically the Hull Moving Averages (HMA), to make price-related decisions. The Hull Moving Average, created by Alan Hull, is used as the foundation of this strategy, offering a faster and more accurate way to analyze market trends. In this script, the concept is employed to measure and reflect price variations.
Script Functionality Overview:
Hull Moving Averages (HMA): The script utilizes two HMAs, one short-term and one long-term. The main idea is to compute the Delta Difference between these two moving averages, which represents how much they are converging or diverging from each other. This difference is key to identifying potential market trend changes.
Reflected HMA Value: Using the Delta Difference between the HMAs, the value of the short-term HMA is reflected, creating a visual reference point that helps traders see the relationship between price and HMAs on the chart.
Percentage Change Index: The second key parameter is the percentage change index. This determines when a trend is reversing, allowing buy or sell orders to be established based on significant changes in the relationship between the HMAs and the price.
Delta Multiplier: The script comes with a default Delta multiplier of 2 for calculating the difference between HMAs, allowing traders to adjust the sensitivity of the analysis based on the time frame being analyzed.
Trend Reversal Signals: When the price crosses the thresholds defined by the percentage change index, buy or sell signals are triggered, based on the detection of a potential trend reversal.
Visual Cues with Boxes: Boxes are drawn on the chart when the HullMA crosses the reflected HMA value, providing a visual aid to identify critical moments where risk should be evaluated.
Alerts for Receiving Signals:
This script allows you to set up buy and sell alerts via TradingView's alert system. These alerts are triggered when trend changes are detected based on the conditions coded in the script. Traders can receive instant notifications, allowing them to make decisions without needing to constantly monitor the chart.
Additional Considerations:
The percentage change parameter is adjustable and should be configured based on the time frame you are trading on. For longer time frames, it's advisable to use a larger percentage change to avoid false signals.
The use of Hull Moving Averages (HMA) provides a faster and more reactive approach to trend evaluation compared to other moving averages, making it a powerful tool for traders seeking quick reversal signals.
This approach combines the power of Hull Moving Averages with an alert system to improve the trader’s response to trend changes.
Spanish
Este script, titulado "Reflected EMA Difference (RED)", está fundamentado en la lógica de evaluar el porcentaje de acercamiento y distancia entre dos medias móviles, específicamente las medias móviles de Hull (HMA), para tomar decisiones sobre el valor del precio. El creador de la media móvil de Hull, Alan Hull, diseñó este indicador para ofrecer una forma más rápida y precisa de analizar tendencias de mercado, y en este script se utiliza su concepto como base para medir y reflejar las variaciones de precio.
Descripción del funcionamiento:
Medias Móviles de Hull (HMA): Se utilizan dos HMAs, una de corto plazo y otra de largo plazo. La idea principal es calcular la diferencia Delta entre estas dos medias móviles, que representa cuánto se están alejando o acercando entre sí. Esta diferencia es clave para identificar cambios potenciales en la tendencia del mercado.
Valor Reflejado de la HMA: Con la diferencia Delta calculada entre las HMAs, se refleja el valor de la HMA corta, creando un punto de referencia visual que ayuda a los traders a observar la relación entre el precio y las HMAs en el gráfico.
Índice de Cambio de Porcentaje: El segundo parámetro clave del script es el índice de cambio porcentual. Este define el momento en que una tendencia está revirtiendo, permitiendo establecer órdenes de compra o venta en función de un cambio significativo en la relación entre las HMAs y el precio.
Multiplicador Delta: El script tiene un multiplicador predeterminado de 2 para el cálculo de la diferencia Delta, lo que permite ajustar la sensibilidad del análisis según la temporalidad del gráfico.
Señales de Reversión de Tendencia: Cuando el precio cruza los límites definidos por el índice de cambio porcentual, se emiten señales para comprar o vender, basadas en la detección de una posible reversión de tendencia.
Visualización con Cajas: Se dibujan cajas en el gráfico cuando el indicador HullMA cruza el valor reflejado de la HMA, ayudando a identificar visualmente los momentos críticos en los que se debe evaluar el riesgo de las operaciones.
Alertas para Recibir Señales:
Este script permite configurar alertas de compra y venta desde el apartado de alertas de TradingView. Estas alertas se activan cuando se detectan cambios de tendencia en función de las condiciones establecidas en el código. El trader puede recibir notificaciones instantáneas, lo que facilita la toma de decisiones sin necesidad de estar constantemente observando el gráfico.
Consideraciones adicionales:
El porcentaje de cambio es un parámetro ajustable y debe configurarse según la temporalidad que se esté operando. En temporalidades más largas, es recomendable usar un porcentaje de cambio mayor para evitar señales falsas.
La utilización de las medias móviles de Hull (HMA) proporciona un enfoque más rápido y reactivo para evaluar tendencias en comparación con otras medias móviles, lo que lo convierte en una herramienta poderosa para traders que buscan señales rápidas de reversión.
Este enfoque combina la potencia de las medias móviles de Hull con un sistema de alertas que mejora la reactividad a cambios de tendencia.
Скользящее среднее Хала (HMA)
Double CCI Confirmed Hull Moving Average Reversal StrategyOverview
The Double CCI Confirmed Hull Moving Average Strategy utilizes hull moving average (HMA) in conjunction with two commodity channel index (CCI) indicators: the slow and fast to increase the probability of entering when the short and mid-term uptrend confirmed. The main idea is to wait until the price breaks the HMA while both CCI are showing that the uptrend has likely been already started. Moreover, strategy uses exponential moving average (EMA) to trail the price when it reaches the specific level. The strategy opens only long trades.
Unique Features
Dynamic stop-loss system: Instead of fixed stop-loss level strategy utilizes average true range (ATR) multiplied by user given number subtracted from the position entry price as a dynamic stop loss level.
Configurable Trading Periods: Users can tailor the strategy to specific market windows, adapting to different market conditions.
Double trade setup confirmation: Strategy utilizes two different period CCI indicators to confirm the breakouts of HMA.
Trailing take profit level: After reaching the trailing profit activation level scrip activate the trailing of long trade using EMA. More information in methodology.
Methodology
The strategy opens long trade when the following price met the conditions:
Short-term period CCI indicator shall be above 0.
Long-term period CCI indicator shall be above 0.
Price shall cross the HMA and candle close above it with the same candle
When long trade is executed, strategy set the stop-loss level at the price ATR multiplied by user-given value below the entry price. This level is recalculated on every next candle close, adjusting to the current market volatility.
At the same time strategy set up the trailing stop validation level. When the price crosses the level equals entry price plus ATR multiplied by user-given value script starts to trail the price with EMA. If price closes below EMA long trade is closed. When the trailing starts, script prints the label “Trailing Activated”.
Strategy settings
In the inputs window user can setup the following strategy settings:
ATR Stop Loss (by default = 1.75)
ATR Trailing Profit Activation Level (by default = 2.25)
CCI Fast Length (by default = 25, used for calculation short term period CCI
CCI Slow Length (by default = 50, used for calculation long term period CCI)
Hull MA Length (by default = 34, period of HMA, which shall be broken to open trade)
Trailing EMA Length (by default = 20)
User can choose the optimal parameters during backtesting on certain price chart.
Justification of Methodology
Before understanding why this particular combination of indicator has been chosen let's briefly explain what is CCI and HMA.
The Commodity Channel Index (CCI) is a momentum-based technical indicator used in trading to measure a security's price relative to its average price over a given period. Developed by Donald Lambert in 1980, the CCI is primarily used to identify cyclical trends in a security, helping traders to spot potential buying or selling opportunities.
The CCI formula is:
CCI = (Typical Price − SMA) / (0.015 × Mean Deviation)
Typical Price (TP): This is calculated as the average of the high, low, and closing prices for the period.
Simple Moving Average (SMA): This is the average of the Typical Prices over a specific number of periods.
Mean Deviation: This is the average of the absolute differences between the Typical Price and the SMA.
The result is a value that typically fluctuates between +100 and -100, though it is not bounded and can go higher or lower depending on the price movement.
The Hull Moving Average (HMA) is a type of moving average that was developed by Alan Hull to improve upon the traditional moving averages by reducing lag while maintaining smoothness. The goal of the HMA is to create an indicator that is both quick to respond to price changes and less prone to whipsaws (false signals).
How the Hull Moving Average is Calculated?
The Hull Moving Average is calculated using the following steps:
Weighted Moving Average (WMA): The HMA starts by calculating the Weighted Moving Average (WMA) of the price data over a period square root of n (sqrt(n))
Speed Adjustment: A WMA is then calculated for half of the period n/2, and this is multiplied by 2 to give more weight to recent prices.
Lag Reduction: The WMA of the full period n is subtracted from the doubled n/2 WMA.
Final Smoothing: To smooth the result and reduce noise, a WMA is calculated for the square root of the period n.
The formula can be represented as:
HMA(n) = WMA(WMA(n/2) × 2 − WMA(n), sqrt(n))
The Weighted Moving Average (WMA) is a type of moving average that gives more weight to recent data points, making it more responsive to recent price changes than a Simple Moving Average (SMA). In a WMA, each data point within the selected period is multiplied by a weight, with the most recent data receiving the highest weight. The sum of these weighted values is then divided by the sum of the weights to produce the WMA.
This strategy leverages HMA of user given period as a critical level which shall be broken to say that probability of trend change to the upside increased. HMA reacts faster than EMA or SMA to the price change, that’s why it increases chances to enter new trade earlier. Long-term period CCI helps to have an approximation of mid-term trend. If it’s above 0 the probability of uptrend increases. Short-period CCI allows to have an approximation of short-term trend reversal from down to uptrend. This approach increases chances to have a long trade setup in the direction of mid-term trend when the short-term trend starts to reverse.
ATR is used to adjust the strategy risk management to the current market volatility. If volatility is low, we don’t need the large stop loss to understand the there is a high probability that we made a mistake opening the trade. User can setup the settings ATR Stop Loss and ATR Trailing Profit Activation Level to realize his own risk to reward preferences, but the unique feature of a strategy is that after reaching trailing profit activation level strategy is trying to follow the trend until it is likely to be finished instead of using fixed risk management settings. It allows sometimes to be involved in the large movements. It’s also important to make a note, that script uses HMA to enter the trade, but for trailing it leverages EMA. It’s used because EMA has no such fast reaction to price move which increases probability not to be stopped out from any significant uptrend move.
Backtest Results
Operating window: Date range of backtests is 2022.07.01 - 2024.08.01. It is chosen to let the strategy to close all opened positions.
Commission and Slippage: Includes a standard Binance commission of 0.1% and accounts for possible slippage over 5 ticks.
Initial capital: 10000 USDT
Percent of capital used in every trade: 100%
Maximum Single Position Loss: -4.67%
Maximum Single Profit: +19.66%
Net Profit: +14897.94 USDT (+148.98%)
Total Trades: 104 (36.54% win rate)
Profit Factor: 2.312
Maximum Accumulated Loss: 1302.66 USDT (-9.58%)
Average Profit per Trade: 143.25 USDT (+0.96%)
Average Trade Duration: 34 hours
These results are obtained with realistic parameters representing trading conditions observed at major exchanges such as Binance and with realistic trading portfolio usage parameters.
How to Use
Add the script to favorites for easy access.
Apply to the desired timeframe and chart (optimal performance observed on 2h BTC/USDT).
Configure settings using the dropdown choice list in the built-in menu.
Set up alerts to automate strategy positions through web hook with the text: {{strategy.order.alert_message}}
Disclaimer:
Educational and informational tool reflecting Skyrex commitment to informed trading. Past performance does not guarantee future results. Test strategies in a simulated environment before live implementation
HMA Crossover 1H with RSI, Stochastic RSI, and Trailing StopThe strategy script provided is a trading algorithm designed to help traders make informed buy and sell decisions based on certain technical indicators. Here’s a breakdown of what each part of the script does and how the strategy works:
Key Components:
Hull Moving Averages (HMA):
HMA 5: This is a Hull Moving Average calculated over 5 periods. HMAs are used to smooth out price data and identify trends more quickly than traditional moving averages.
HMA 20: This is another HMA but calculated over 20 periods, providing a broader view of the trend.
Relative Strength Index (RSI):
RSI 14: This is a momentum oscillator that measures the speed and change of price movements over a 14-period timeframe. It helps identify overbought or oversold conditions in the market.
Stochastic RSI:
%K: This is the main line of the Stochastic RSI, which combines the RSI and the Stochastic Oscillator to provide a more sensitive measure of overbought and oversold conditions. It is smoothed with a 3-period simple moving average.
Trading Signals:
Buy Signal:
Generated when the 5-period HMA crosses above the 20-period HMA, indicating a potential upward trend.
Additionally, the RSI must be below 45, suggesting that the market is not overbought.
The Stochastic RSI %K must also be below 39, confirming the oversold condition.
Sell Signal:
Generated when the 5-period HMA crosses below the 20-period HMA, indicating a potential downward trend.
The RSI must be above 60, suggesting that the market is not oversold.
The Stochastic RSI %K must also be above 63, confirming the overbought condition.
Trailing Stop Loss:
This feature helps protect profits by automatically selling the position if the price moves against the trade by 5%.
For sell positions, an additional trailing stop of 100 points is included.
Advanced Trend Strategy [BITsPIP]The BITsPIP team is super excited to share our latest trading gem with you all. We're all about diving deep and ensuring our strategies can stand the test of time. So, we invite you to join us in exploring the awesome potential of this new strategy and really put it through its pace with some deep backtesting. This isn't just another strategy; it boasts a profit factor hovering around 1.5 across over 1000 trades, which is quite an achievement. Consider integrating it with your trading bots to further enhance your trading efficiency and profit generation. Curious? Ask for trial access or drop by our website for more details.
I. Deep Backtesting
We're all in on transparency and solid results, which is why we didn't stop at 100... or even 500 trades. We went over 1000, making sure this strategy is as robust as they come. No flimsy forecasts or sneaky repainting here. Just good, solid strategy that's ready for the real deal. Curious about the details? Check out our detailed backtesting screenshot for the BINANCE:BTCUSDT in a 5-minute timeframe. It's all about giving you the clear picture.
#No Overfitting
#No Repainting
Backtesting Screenshot
II. Algorithmic Trading
Thinking of trading as a manual game? Think again! Manual trading is a bit like rolling the dice - fun, but kind of risky if you're aiming for consistent wins. Instead, why not lean into the future with algorithmic trading? It's all about trusting the market's rhythm over the long term. By integrating your strategy with a trading bot, you can enjoy peace of mind, rest easy, and keep those emotional trades at bay.
III) Applications
Dive into the Advanced Trend Strategy, your versatile tool for navigating the market's waters. This strategy shines in under an hour timeframes, offering adaptability across stocks, commodities, forex, and cryptocurrencies. Initially fine-tuned for low-volatility cryptos like BINANCE:BTCUSDT , its default settings are a solid starting point.
But here's where your expertise comes into play. Each market beats to its own drum, necessitating nuanced adjustments to stop loss and take profit settings. This customization is key to maximizing the strategy's effectiveness in your chosen arena.
IV) Strategy's Logic
The Advanced Trend Strategy is a powerhouse, blending the precision of Hull Suite, RSI, and our unique trend detector technique. At its core, it’s designed for savvy risk management, aiming to lock in substantial profits while steering clear of minor market ripples. It utilizes stop-loss and take-profit thresholds to form a profit channel, providing a safety net for each trade. This is a trend-following strategy at heart, where these profit channels play a critical role in maximizing returns by securing positions within these "warranty channels."
1. Trend-Following
The market's complexity, influenced by countless factors, makes small movements seem almost chaotic. Yet, the principle of #Trend-Following shines in less volatile markets in long term. The strategy excels by pinpointing the ideal moments to enter the market, coupled with refined risk management to secure profits. It’s tailored for you, the individual trader, enabling you to ride the waves of market trends upwards or downwards.
2. Risk Management
A key facet of the strategy is its emphasis on pragmatic risk management. Traders are empowered to establish practical stop-loss and take-profit levels, tailoring these crucial parameters to the specific market they are engaging in. This customization is instrumental in optimizing long-term profitability, ensuring that the strategy adapts fluidly to the unique characteristics and volatility patterns of different trading environments.
V) Strategy's Input Settings and Default Values
1. Alerts
The strategy comes equipped with a flexible alert system designed to keep you informed and ready to act. Within the settings, you’ll find options to configure order/exit and comment/alert messages to your preference. This feature is particularly useful for staying on top of the strategy’s activities without constant manual oversight.
2. Hull Suite
i. Hull Suite Length: Designed for capturing long-term trends, the Hull Suite Length is configured at 1000. Functioning comparably to moving averages, the Hull Suite features upper and lower bands. Currently, it is set to 1000.
ii. Length Multiplier: It's advisable to maintain a minimal value for the Length Multiplier, prioritizing the optimization of the Hull Suite Length. Presently, it is set to 1.
3. RSI Indicator
i. The RSI is a widely recognized tool in trading. Adapt the oversold and overbought thresholds to better match the specifics of your market for optimal results.
4. StopLoss and TakeProfit
i. StopLoss and TakeProfit Settings: Two distinct approaches are available. Semi-Automatic StopLoss/TakeProfit Setting and Manual StopLoss/TakeProfit Setting. The Semi-Automatic mode streamlines the process by allowing you to input values for a 5-minute timeframe, subsequently auto-adjusting these values across various timeframes, both lower and higher. Conversely, the Manual mode offers full control, enabling you to meticulously define TakeProfit values for each individual timeframe.
ii. TakeProfit Threshold # and TakeProfit Value #: Imagine this mechanism as an ascending staircase. Each step represents a range, with the lower boundary (TakeProfit Value) designed to close the trade upon being reached, and the upper boundary (TakeProfit Threshold) upon being hit, propelling the trade to the next level, and forming a new range. This stair-stepping approach enhances risk management and increases profitability. The pre-set configurations are tailored for $BINANCE:BTCUSDT. It's advisable to devote time to tailoring these settings to your specific market, aiming to achieve optimal results based on backtesting.
iii. StopLoss Value: In line with its name, this value marks the limit of loss you're prepared to accept should the market trend go against your expectations. It's crucial to note that once your asset reaches the first TakeProfit range, the initial StopLoss value becomes obsolete, supplanted by the first TakeProfit Value. The default StopLoss value is pegged at 1.6(%), a figure worth considering in your trading strategy.
VI) Entry Conditions
The primary signal for entry is generated by our custom trend detection mechanism and hull suite values (ascending/descending). This is supported by additional indicators acting as confirmation.
VII) Exit Conditions
The strategy stipulates exit conditions primarily governed by stop loss and take profit parameters. On infrequent occasions, if the trend lacks confirmation post-entry, the strategy mandates an exit upon the issuance of a reverse signal (whether confirmed or unconfirmed) by the strategy itself.
BITsPIP
PRICE CHANNEL MEAN REVERSIONThis script is a Fully Automated trading script meant to be used with "Oanda" broker and the plug-ins for algorithmic trading automation.( FOREX ONLY)
This script is meant to capture "MEAN REVERSION " for intraday charts (1hour) preferably and will hold for days / weeks .trading on forex markets.
(The combination of indicators includes a high and low price channel along with a fast moving average)
This script is original in the description of Alan Hulls moving average combined with the high and low closing of price action.
The concept of this mean reversion strategy is to try and capture price exhaustive moves . The moving average is fast and most times remains in the channel. when the moving average overshoots the channel the average price of the instrument is thought to be rising or falling faster then average, indicating a possibility that the instrument may revert (pull back) this strategy aims to capture that pull back.
This strategy uses a higher risk than reward profile to jump in front of market moves (4 risk to 1 reward)
in the likelihood the instrument will revert back (example) 25 pips before it continues 100 pips in the current direction.
This strategy should only be used in markets that you believe are mean reverting at the time of trading otherwise you will be jumping Infront of a possible trend and the price can continue in the trending direction for an unknown specified amount of time.
This script uses a (user defined period) fast moving average ( green/red color) and (user defined period) price channel (White/Blue) chosen in the indicator settings menu.
The default parameters are 55 with a (minimum of 1 and maximum of 10000) for the moving average and 50 with a (minimum of 1 and maximum of 10000) for the price channel , the default parameters = roughly 2 days of price action on the (1 hour) chart.
"The default parameters should be kept unless you fully understand the complete strategy"
the upper band (white line) is the highest close of the specified period and the lower band (blue line) is the lowest close of the same period.
When the fast moving average over shoots the price channel (exits) then crosses back into the price channel (enters) it will trigger a long or short trade.
The long signal is given when the the moving average crosses below the low band then crosses back above the low band . The trade long trade will be entered and the trade will exit if the stop loss or profit targets are hit or if the short signal is given the trade will close then reverse.
The short trade will be entered if the fast moving average crosses above the upper band (white line) then crosses back down through the upper band (white line) The trade short trade will be entered and the trade will exit if the stop loss or profit targets are hit or if the long signal is given the trade will close then reverse.
When the trade is entered a red , a blue and green horizontal dotted line will appear on the chart.
the blue line is the strategy entry price , the red line is the stop loss price , and the green line is the take profit price . the colors will invert if the trade is long or short.
(Setting alerts should be done in the indicator settings menu, and the parameters you chose will determine the stop loss/target and the amount of "units = (position size)" you wish to trade for the (forex only) markets. using "alert() function calls only" is the only alert that should be used with this strategy.
(note : when "alert() function calls only" is set two messages will be sent, one closing any open position in the opposite direction and one placing the new order regardless if you are currently in a trade or not)
Trade targets , stoploss and trade position size are a user defined variables entered in the indicator settings menu. (target pips minimum 0 and a maximum of 1000)(stop pips minimum of 0 and maximum of 1000)
Back test date range is included in the script for back testing different data periods.
the back ground will be colored a transparent navy blue if the period you are looking trading is with in the date range( note: to place live trades the end date will need to be in the future)
this is also adjustable in the settings menu
The avoid spread filter is a user defined time in which the spread is typically higher than average, applying this filter avoids trades in the specified time. When this filter is applied there will be a transparent red back ground color in the specified time.
Back test default setting are equivocal to OANDA:NZDUSD
at the time of this publication placing trades with the "Oanda" broker are as follows , NZD units = 3250 equal 2000 USD position size . "Oanda" current leverage is 33.3 to 1 for this particular pair and commission is paid in spread (1.7) pips = 0.55 USD per trade , Margin required for the trade is 60.50 USD , Position sizing = 6.5% of a 1000 USD account. OANDA:NZDUSD
Premium Smart Exit HMA [ByteBoost]The Premium Smart Exit HMA strategy is designed for fast-paced trend detection and is well-suited for small trades in highly volatile markets. It utilizes the Hull Moving Average (HMA) as a signal to execute trades and offers customizable inputs for price calculation, period settings, and stop loss/take profit levels. The strategy aims to reduce lag associated with traditional moving averages, allowing it to catch trends quickly.
Development Notes
This Strategy was developed with the PineScript language, version 5. The aim of the strategy is to provide a trading system that catches fast trend reversals and uses a modified version of the Hull Moving Average. The HMA adeptly adapts to swift variations in price movements while offering better smoothing and utilizes a user selected moving averages, mitigating the smoothing effect and is controlled with a custom weight design.
Features
Customizable trading periods.
Customizable stop loss and take profit levels.
Adjustable date range for backtesting.
Allows setting of initial capital, commission type and value.
Provides visual aids for better understanding of the market trends.
Customize the visuals of the strategy.
Strategy Description
The Smart Exit HMA strategy offers the flexibility to use various types of moving averages, allowing customization of inputs for price calculation, period settings, and stop loss/take profit levels. The strategy relies on the Hull Moving Average (HMA) as a signal to execute trades. However, you have control over the signal frequency by selecting your preferred period value, which determines the number of candles used in the average calculation. This allows you to adapt the strategy to market tendencies and increase its effectiveness during clear trends.
The Smart Exit HMA strategy is designed to minimize lag associated with traditional moving averages, enabling it to respond more quickly to recent price movements based on your chosen period. It's worth noting that the strategy plots two lines on the graph: the average line and the square root line. Buy and sell signals are generated when both lines intersect, indicating favorable trading opportunities.
Inputs/Settings
Capital - If using any leverage multiply the amount of money to invest by the leverage, else input the amount to be invested in every trade.
Start date - The date from which the strategy should begin its analysis. Leave unchanged to start from the earliest available date based on your account's plan.
End date - The date until which the strategy should conduct its analysis. Leave unchanged to continue until the current date.
Period - The lookback period for the moving average calculation, a longer period will translate into fewer trades that last longer.
Stop loss - Allows the use of a stop loss for all trades.
Take profit - Activates the use of a take profit for all trades.
Stop loss value - The distance from the entry price at which the strategy should exit to prevent further losses.
Take profit value - The distance from the entry price at which the strategy should exit to secure profits.
Take profit % - The percentage of the capital to take as profit.
Stop loss % - The percentage of the capital to set as the maximum loss.
Candles exit - The minimum number of candles before the strategy is allowed to close a trade.
Candles change - The minimum number of candles before the strategy is allowed to change the current trend.
Moving average type - Determines the preprocessing method applied prior to utilizing the HMA.
Custom weight - Enables the utilization of a personalized weighting system for the HMA. If chosen, ensure that the sum of all weights equals 1.
Open weight - Determines the weight assigned to the candle's open value.
Close weight - Specifies the weight assigned to the candle's close value.
High weight - Sets the weight attributed to the candle's high value.
Low weight - Determines the weight assigned to the candle's low value.
Highlighter - Light coloring between the trend and average price of each bar.
Signal labels - View the labels indicating a new long or short position.
Exit labels - Displays the labels indicating exit points.
Color long - Sets the color scheme for a new long position.
Color short - Sets the color scheme for a new short position.
Color exit - Decides the color scheme for the exit tag and cross shown.
Indicator Visuals
The strategy plots the two trendlines on the chart and changes its color based on its direction. It also plots shapes on the chart to denote potential buy (Long) and sell (Short) points where the signals of short and long will appear, as well as crosses for the exit points.
Strategy Alerts
The strategy does not include built-in alerts. However, alerts can be added using the TradingView interface based on the strategy's buy, sell and exit conditions. This way you will be able to receive notifications on your computer or phone when a new signal goes out.
Details
Repainting: It is important to mention that the strategy can mark an uptrend signal during a candle and disappear at the end of it, so please just put long or short when the buy/sell conditions are followed and marked by the strategy at the end of each candle.
Conclusion
The Premium Smart Exit HMA is a versatile strategy that combines the benefits of the Hull Moving Average with adjustable parameters to suit individual trading styles. It offers a combination of speed and smoothness, which can be beneficial in volatile markets.
Disclaimer
This strategy is provided as-is, with no guarantee of profits or responsibility for losses. Trading involves risk, and you should only trade with money you can afford to lose. Always conduct your own research and consider your financial situation before engaging in trading.
Strategy Myth-Busting #9 - HullSuite+LSMA - [MYN]This is part of a new series we are calling "Strategy Myth-Busting" where we take open public manual trading strategies and automate them. The goal is to not only validate the authenticity of the claims but to provide an automated version for traders who wish to trade autonomously.
Our 9th one is an automated version of the "I Tested The Best 1 Minute Scalping Strategy That Will Blow Your Mind 100 Times" strategy from "Profit Now" who claims to have achieved 36.7% profit scalping XRPUSDT on the 1 minute timeframe in only 15 days. As you can see from the backtest results below, I was unable to substantiate anything remotely close to that that claim on any timeframe or symbol. Myth 10000% busted.
This strategy uses a combination of 2 open-source public indicators: Hull Suite by InSilico and Least Squares Moving Average (LSMA)
The Hull Moving Average (HMA) is a faster version of the traditional moving average and is designed to reduce lag and improve the responsiveness of the average to price changes. In this strategy the HMA is used as a trend-following indicator, When the HMA is rising it is indicative of an upwards trend and when its falling its indicative of a downtrend.
The Least Squares Moving Average (LSMA) used in this strategy is similar to the HMA in that it is designed to reduce lag and improve the responsiveness of the average to price changes. In this strategy the LSMA is used to also not only identify trends but also confirm signals, it also is used to identify possible changes in the trend and market conditions.
When we use these together, the Hull Suite and LSMA indicators provide a complimentary confirmation of trend direction and trend swings. The Hull Suite helps to identify and confirm trends, while the LSMA aids to confirm signals and identify potential changes in market conditions.
The way this strategy is designed is when the Hull Suite HMA is trending up and the LSMA crosses above the HMA, we enter a long condition. When the Hull Suite is trending down and the LSMA crosses below the HMA we take a short position. Because of the low latency of these two indicators this strategy can be used on lower time frames down to 1 minute. On high volatility crypto on the lowest time frames, a 1:4 Risk Ratio should be used. A lower less risk ratio should be used on less volatile archetypes of securities.
If you know of or have a strategy you want to see myth-busted or just have an idea for one, please feel free to message me
Strategy Myth-Busting #4 - LSMA+HULL Crossover - [MYN]This is part of a new series we are calling "Strategy Myth-Busting" where we take open public manual trading strategies and automate them. The goal is to not only validate the authenticity of the claims but to provide an automated version for traders who wish to trade autonomously.
Our fourth one we are automating is one of the strategies from "I Found The Best 1 Minute Scalping Strategy That Actually Works! ( Beginner Friendly )" from "Trade Domination" who claims to have made 366% profit on the 1 min chart of Solona despite having a 31% win rate in just a few weeks. As you can see from the backtest results below, I was unable to substantiate anything close to that that claim on the same symbol ( SOLUSD ), timeframe (1m) with identical instrument settings that "Trade Domination" was demonstrating with. Strategy Busted.
If you know of or have a strategy you want to see myth-busted or just have an idea for one, please feel free to message me.
This strategy uses a combination of 2 open-source public indicators:
LSMA
Hull Suite by InSilico
Trading Rules
1 min candles
Stop Loss on recent swing High/Low
1:5 Risk Ratio
Enter Long
LSMA cross above Red Hull Suite line
Price has to be above Hull Suite Line
Enter Short
LSMA crosses under green Hull Suite Line
Price has to be below Hull Suite Line
Hull Kaufman SuperTrend Cloud (HKST Cloud)TLDR: This is a long only trend following system that uses highest and lowest values of three trend following indicators to form a "cloud". Enter when the candle high crosses above the highest band. Close if the low or close crosses below the lowest band.
3 indicators
1. Kaufman Adaptive moving Average - set at 20
2. Hull Moving Average (of the Kaufman Adaptive moving average) - set at 20
3. SuperTrend - I believe this is set at 5 periods and 3*atr but this can be changed
Cloud
the upper band is the highest of the 3 indicators
the lower band is the lowest of the 3 indicators
Entry and Exit:
Enter when the high crosses above the upper band of the cloud.
(This means you will only get a long signal if the high was previously below the upper band of the cloud and then crosses over.)
Exit when the low crosses below the lower band of the cloud .
(This means that this rule will only close if the low was previously above the upper band and then crosses under)
The "Exit" may not trigger if the low (the wick) never gets above the band. In this case the long order will close if the closing price is below the cloud.
Logic
Kaufamn is the best moving average i have found at responding to changes in volatility. This means it moves up or down quickly during expansive moves but becoming very flat during relative choppiness. However, getting flat causes the the Kaufman AMA to trigger a lot of false signals when volatility is transitioning from high to low. This is why the Hull moving average (with its rounded turns) keeps a lot of the false continuations contained because usually prices need to decisively move higher in order to over come the Hull moving average which continues to increase/decrease during the candles after an expansive move.
The super trend places a stagnant floor and ceiling which acts as a great stoploss or trigger as price action attempts to trend in a certain direction. The super trend allows for the user to adjust the likely hood of this cloud indicator changing from bullish to bearish based on the volatility of the asset that is being analyzed.
individually all of these are great. Together the trader can use this cloud to create a trend following or anlysis system that captures the bulk of moves.
Not my best explanation but this indicator is actually pretty simple.
Hope this helps. Happy Trades
-Snarky Puppy
Strategy Myth-Busting #20 - HalfTrend+HullButterfly - [MYN]#20 on the Myth-Busting bench, we are automating the " I Found Super Easy 1 Minute Scalping System And Backtest It 100 Times " strategy from " Jessy Trading " who claims 30.58% net profit over 100 trades in a couple of weeks with a 51% win rate and profit factor of 1.56 on EURUSD .
This one surprised us quite a bit. Despite the title of this strategy indicating this is on the 1 min timeframe, the author demonstrates the backtesting manually on the 5 minute timeframe. Given the simplicity of this strategy only incorporating a couple of indicators, it's robustness being able to be profitable in both low and high timeframes and on multiple symbols was quite refreshing.
The 3 settings which we need to pay most attention to here is the Hull Butterfly length, HalfTrend amplitude and the Max Number Of Bars Between Hull and HalfTrend Trigger. Depending on the timeframe and symbol, these settings greatly impact the performance outcomes of the strategy. I've listed a couple of these below.
And as always, If you know of or have a strategy you want to see myth-busted or just have an idea for one, please feel free to message me.
This strategy uses a combination of 3 open-source public indicators:
Hull Butterfly Oscillator by LuxAlgo
HalfTrend by Everget
Trading Rules
5 min candles but higher / lower candles work too.
Stop loss at swing high/low
Take Profit 1.5x the risk
Long
Hull Butterfly gives us green column, Wait for HalfTrend to present an up arrow and enter trade.
Short
Hull Butterfly gives us a red column , Wait for HalfTrend to present a down arrow and enter trade.
Alternative Trading Settings for different time frames
1 Minute Timeframe
Move the Hull Butterfly length from the default 11 to 9
Move the HalfTrend Amplitude from the default 2 to 1
Enabling ADX Filter with a 25 threshold
2 Hour Timeframe
Move the HalfTrend Amplitude from the default 2 to 1
Laddered Take Profits from 14.5% to 19% with an 8% SL
Strategy Myth-Busting #1 - UT Bot+STC+Hull [MYN]This is part of a new series we are calling "Strategy Myth-Busting" where we take open public manual trading strategies and automate them. The goal is to not only validate the authenticity of the claims but to provide an automated version for traders who wish to trade autonomously.
Our first one is an automated version of the " The ULTIMATE Scalping Trading Strategy for 2022 " strategy from " My Trading Journey " who claims to have achieved not only profits but a 98.3% win rate. As you can see from the backtest results below, I was unable to substantiate anything close to that that claim on the same symbol (NVDA), timeframe (5m) with identical instrument settings that " My Trading Journey " was demonstrating with. Strategy Busted.
If you know of or have a strategy you want to see myth-busted or just have an idea for one, please feel free to message me.
This strategy uses a combination of 3 open-source public indicators:
UT Bot Alerts by QuantNomad
STC Indicator - A Better MACD By shayankm
Basic Hull Ma Pack tinkered by InSilico
Trading Rules:
5 min candles
Long
New Buy Signal from UT Bot Alerts Strategy
STC is green and below 25 and rising
Hull Suite is green
Short
New Sell Signal from UT Bot Alerts Strategy
STC is red and above 75 and falling
Hull Suite is red
EHMA Range Index Basket StrategyThis script is a modified version of my EHMA Range Strategy.
EHMA Range Strategy
In addition to the EHMA, this script works with a range around the EHMA (which can be modified), in an attempt to be robust against fake signals. Many times a bar will close below a moving average, only to reverse again the next bar, which eats away at your profits. Especially on shorter timeframes, but also on choppy longer timeframes this can make a strategy unattractive to use.
With the range around the EHMA, the strategy only enters a long/exit-short position if a bar crosses above the upper range. Vice versa, it only enters a short/exit-long position if a bar crosses below the lower range. This avoids positions if bars behave choppy within the EHMA range & only enters a position if the market is confident in it's direction. Having said that, fakeouts are still possible, but a lot less frequent. Having backtested this strategy vs the regular EHMA strategy (and having experimented with various settings), this version seems to be a lot more robust & profitable!
EHMA Range Index Basket Strategy
The EHMA Range Index Basket Strategy aims to make the EHMA Range Strategy even more robust, by taking nearly 40 of the most traded crypto trading pairs and applying the EHMA Range Strategy to them. For each pair it assigns a 0 (Sell signal) or 1 (Buy signal) and adds them up. If the number of Buy signals outweigh the number of Sell signals, the index strategy triggers its Buy signal (and vice versa). The results are even more profitable & robust than with the EHMA Range Strategy on its own. Next to that, it performs a lot better on most crypto pairs, due to it's robustness. Because of that, this strategy is a lot less prone to overfitting and will likely produce better results during live trading conditions!
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
Hull Suite + Stoch RSI Strategy v1.1 This strategy uses Hull Suite with Stoch RSI
Uses Hull Suite as trend and only trades with the direction of the trend.
Entry conditions:
Hull Suite as a trend
Stoch RSI overbought for short entries & oversold for long entries
Current parameters works best on BINANCE:BNBBUSDPERP pair.
EHMA Range StrategyThis script is a modified version of @borserman's script for the Exponential Hull Moving Average
All credit for the EHMA goes to him :)
In addition to the EHMA, this script works with a range around the EHMA (which can be modified), in an attempt to be robust against fake signals. Many times a bar will close below a moving average, only to reverse again the next bar, which eats away at your profits. Especially on shorter timeframes, but also on choppy longer timeframes this can make a strategy unattractive to use.
With the range around the EHMA, the strategy only enters a long/exit-short position if a bar crosses above the upper range. Vice versa, it only enters a short/exit-long position if a bar crosses below the lower range. This avoids positions if bars behave choppy within the EHMA range & only enters a position if the market is confident in it's direction. Having said that, fakeouts are still possible, but a lot less frequent. Having backtested this strategy vs the regular EHMA strategy (and having experimented with various settings), this version seems to be a lot more robust & profitable!
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
MilleMachineHello traders,
I hereby present to you the second stage of my journey to finding a reliable, profitable trading strategy.
The "Millemachine" is based on the "Millebot", my previous published strategy. This means the backbone of the strategy is still the same: a trend following system. Instead of using a fixed TP and SL, a trailing stoploss is now used. To limit the losses when the trend weakens, the trailing stoploss automatically gets smaller, as it is based on the ATR.
A new utility is you can now easily switch between indicators on which the decision making is based. This allows the user to discover which indicators work best for entry, long/short switching and stoploss configuration.
The strategy has been proven to be very profitable in trending markets, but can suffer losses during ranging market. To make the system more robust, the strategy cannot solely rely on a trending system. Other systems must be added.
I believe that a good trading bot must consist of more than 4 different strategies, based on different systems. This is what I am currently working on.
My goal for publishing this strategy is to help other traders build their own. In my journey I found it difficult to find a good strategy that employs a decent risk management, which is truly essential for having good, consistent results. Also, a realistic commission needs to be defined to have a realistic performance prediction. This weighs on the profitability and therefore is often set at 0 by authors of other strategies, which I find misleading.
If you have found this strategy informative or useful, please leave a comment.
Greetings Michael
Kahlman HullMA / WT Cross StrategyA strategy created using Hull Moving Average and WT Cross .
Hull Moving Average turns green and WT Cross crossover this is a long. Otherwise short.
Stop Loss and Take Profit settings are available. You can set it to the level you want or turn it off.
According to my measurements, it shows the best performance in the 4-hour period. But you can find the best settings that are correct from the Strategy settings.
Jerry J5 Dashboard & Buy Sell Strategy
----- Strategy
The strategy allows you to select from multiple moving averages and uses the concave function and the price being above or below a user defined EMA to provide buy and sell signals. You can select long trades, short trades, or both.
Concavity describes the direction of the curve and how it bends. And, just like a direction the concavity of curves can change and we call these changing points (technically they are inflection points). These changing points are used in conjunction with the stock price relationship to user defined EMAs and provide buy and sell signals when the trend is changing.
Moving Averages available in this strategy are the Exponential Moving Average (EMA), Simple Moving Average (SMA), Weighted Moving Average (WMA), Hull Moving Average (HMA), and Arnaud Legoux Moving Average (ALMA). Best results are typically with HMA and ALMA.
The indicator can be used for every type of market: indices, stocks, cryptocurrencies, currencies and others.
----- 27 Data Point Dashboard
Short Term Trend
Total Trades
Profit Factor
Win Rate %
Net Profit $, % & ROI
Buy & Hold Profit
Max Win $ & %
Max Loss $ & %
Avg Trade $, ROI%, & Bars
Avg Win $, ROI%, & Bars
Avg Loss $, ROI%, & Bars
Max Drawdown $ & %
Open Trade P&L $ & ROI%
For the dashboard you are able to set the target profit factor, win rate, net profit target ROI, winning trade target ROI, Strategy Start Date, and the Buy and Hold Start Date. The inputs are used to color dashboard labels making it easier to identify winning and losing trades based on your criteria.
Option Traders will likely appreciate the ROI% and number of bars being readily available. For example if the Average Winning Trade has a 5% ROI over 5 bars this can help you decide when to enter a trade and how long to stay in the trade.
Some of the label data is available in the TradingView Strategy Tester. However, I wanted a custom dashboard that was always visible on my chart and the J5 dashboard displays a total of 27 data points plus buy and sell signals .
Note: We calculate the ROI for Net Profit, Avg Trade, Avg Win, Avg Loss, and Open Trade based on the capital used for those trade(s). TradingView uses a different method and calculates the return percentage based on initial capital.
Indicators are not a magic pill and should be used to support trading decisions, not to make them for you. Past performance is not a guarantee of future returns. The results of individual stocks with any strategy do not constitute proof they will repeat in the future.
I hope you enjoy the J5.
DISCLAIMER: The information contained in our scripts/indicators/ideas does not constitute financial advice or a solicitation to buy or sell any securities of any type. Trading and investing in the stock market and cryptocurrencies involves substantial risk of loss and is not suitable for every investor. I’m NOT a financial adviser. All trading strategies are used at your own risk.
Please Use the link below for more information.
Hull MA TimeFrame CrossOverHello traders,
Although this strategy is configured on BTCUSDT , with a changing of settings, it can be used on any trading instrument.
Here it is seen, on the 2 hour chart. With Trading Fees included in result (adjust to suit your exchange fees).
The candle crossover is set to Daily timeframe.
That means that the Candle crossover is going to see if todays price is higher than yesterdays price.
If user sets this to 4 hour timeframe, the candle crossover would be when price is higher than the the price 4 hours ago...
The rest is simple, a moving average to detect direction, and an ATR StopLoss (if activated).
There is StopLoss and Take Profit settings which work by percentage.
The periods of the moving average and the ATR can be adjusted, as can the TP % and SL %.
The price is taken from the CLOSE or the OPEN or OHLC4 etc... which can be changed in the settings. OPEN is recommended to avoid repainting.
The moving average also has selectable types (ALMA,SMA,EMA,WMA,HMA)
So if the Price is above the Moving average, and the moving average is above the alternate timeframe value, then a buy is activated
if the Price is below the Moving average, and the moving average is below the alternate timeframe value, then a sell is activated
if OPEN is selected as Price source, then the alternate timeframe value would be the OPEN of the alternate timeframes candle.
the values are all plotted on chart so user can see what is happening when what crosses over what, and then what changes when settings are adjusted.
Have FuN!
if this strategy brings you the epik win......
.... dont forget about me
seaside420 ❤️
UT Bot v5This is an update by request, on someone elses strategy! well more of an edit, but also update from pine v4 to pine v5.
//CREDITS to HPotter for the orginal code. The guy trying to sell this as his own is a scammer lol.
//Edited and converted to @version=5 by SeaSide420 for Paperina
The UT Bot v5 is Movinging average (the MA) vs ATR (the ATR is in the form intended for use as trailing stop loss (ATR_TSL))
Entry logic:
buy = the MA > ATR_TSL and Price > ATR_TSL
sell = the MA < ATR_TSL and Price < ATR_TSL
The Moving average type can be changed in the settings:
options = "SMA", "EMA", "WMA", "HMA"]
the edits i made were:
convert to v5
Add TP and SL
Add Buy only or Sell only option
Add MA type option
Add price source option
Draw MA and ATR_TSL on-chart
Zero-Lag HMA Backtest v1.0 [loxx]This backtest compares profitability differences between a regular Hull Moving Average ( HMA ) and a Zero-Lag HMA .
Things to know:
- Profit is set to 1 ATR
- Stop-loss is set to 1.5 ATR.
- This is by design to test the minimum the profit scenario (1 ATR up) and the worst case loss scenario (1.5 ATR down) for momentum trading. Actual results vary when additional TPs are added
How to use:
- Adjust settings and dates to view different market structures and position scenarios
- See results in the "Strategy Tester" pane
Conclusions and what's next
- Modifying HMA does very little to improve backtest results
- Future iterations will include options to backtest various moving averages with additional modifiers to improve profits and avoide losses
Comment below or send a PM with questions, comments, observations, or concerns.
HMA_ATR StrategyATR with HMA experimental minimalist bot for ETHBTC .
A strategy for use by Automated Algorithm systems.
Different from normal ATR as it uses HMA for smoothing.
Example settings result shown here on chart include commission 0.5%
HULLTSIBOTDo you like TSI indicator?
Do you like HMA indicator?
The all new, HULLTSIBOT indicator!
About:
TSI indicator was on a space mission to mine other planets and then the crew stumbled upon a bunch of HMA indicator eggs. In the darkness of the slime room they found, There was a suddenly a bunch of failing and swearing and machinegun fire muzzle flashes, then all fell silent.
from the back shadow mist stepped forward a TSI indicator, but its eyes were bloodshot and it did not look the same...
The rescue ship found the TSI indicator motionless but still with a heartbeat....
a few days went past, the TSI indicator layed in the medic bay,
A medic noticed a bulge in the abdomen, that started to move!
The alien lifeform burst through the stomach of the TSI indicator and flew at the medic, covering the face and overpowering the new victim with ease...
Quickly it spread throughout the entire rescue ships crew, with many new alien lifeforms searching every corner for a new host.
The rescue ship flew on, able to land with autopilot as programmed for in emergencies, Thus the HULLTSIBOT was introduced to the humans world...
planet earth
wtfBUYorSELLffsMultiple timeframe Hull moving averages. 1 Hull period, 3 timeframes.
With Info Panel
This strategy is for any pair but the settings are tuned for DOGEUSDT
It is 3 Hull moving averages crossovers.
The first HMA is taken from the timeframe of the chart.
The second and third HMA's have a setting for TIMEFRAME.
For example the user can have the chart on 15m, 2nd HMA on 60m(1H), 3rd HMA on 240m(1H)
A info panel is on chart with the signal from each timeframe.
The binance (where DOGEUSDT can be traded) commission fee of 0.1% is added to the results.
Adjust the commission fee to suit your broker and pair.
Tuned for trading cryptocurrency Elon Musk has constantly been backing – dogecoin.