Fractal Breakout Trend Following StrategyOverview
The Fractal Breakout Trend Following Strategy is a trend-following system which utilizes the Willams Fractals and Alligator to execute the long trades on the fractal's breakouts which have a high probability to be the new uptrend phase beginning. This system also uses the normalized Average True Range indicator to filter trades after a large moves, because it's more likely to see the trend continuation after a consolidation period. Strategy can execute only long trades.
Unique Features
Trend and volatility filtering system: Strategy uses Williams Alligator to filter the counter-trend fractals breakouts and normalized Average True Range to avoid the trades after large moves, when volatility is high
Configurable Trading Periods: Users can tailor the strategy to specific market windows, adapting to different market conditions.
Flexible Risk Management: Users can choose the stop-loss percent (by default = 3%) for trades, but strategy also has the dynamic stop-loss level using down fractals.
Methodology
The strategy places stop order at the last valid fractal breakout level. Validity of this fractal is defined by the Williams Alligator indicator. If at the moment of time when price breaking the last fractal price is higher than Alligator's teeth line (8 period SMA shifted 5 bars in the future) this is a valid breakout. Moreover strategy has the additional volatility filtering system using normalized ATR. It calculates the average normalized ATR for last user-defined number of bars and if this value lower than the user-defined threshold value the long trade is executed.
When trade is opened, script places the stop loss at the price higher of two levels: user defined stop-loss from the position entry price or down fractal validation level. The down fractal is valid with the rule, opposite as the up fractal validation. Price shall break to the downside the last down fractal below the Willians Alligator's teeth line.
Strategy has no fixed take profit. Exit level changes with the down fractal validation level. If price is in strong uptrend trade is going to be active until last down fractal is not valid. Strategy closes trade when price hits the down fractal validation level.
Risk Management
The strategy employs a combined approach to risk management:
It allows positions to ride the trend as long as the price continues to move favorably, aiming to capture significant price movements. It features a user-defined stop-loss parameter to mitigate risks based on individual risk tolerance. By default, this stop-loss is set to a 3% drop from the entry point, but it can be adjusted according to the trader's preferences.
Justification of Methodology
This strategy leverages Williams Fractals to open long trade when price has broken the key resistance level to the upside. This resistance level is the last up fractal and is shall be broken above the Williams Alligator's teeth line to be qualified as the valid breakout according to this strategy. The Alligator filtering increases the probability to avoid the false breakouts against the current trend.
Moreover strategy has an additional filter using Average True Range(ATR) indicator. If average value of ATR for the last user-defined number of bars is lower than user-defined threshold strategy can open the long trade according to open trade condition above. The logic here is following: we want to open trades after period of price consolidation inside the range because before and after a big move price is more likely to be in sideways, but we need a trend move to have a profit.
Another one important feature is how the exit condition is defined. On the one hand, strategy has the user-defined stop-loss (3% below the entry price by default). It's made to give users the opportunity to restrict their losses according to their risk-tolerance. On the other hand, strategy utilizes the dynamic exit level which is defined by down fractal activation. If we assume the breaking up fractal is the beginning of the uptrend, breaking down fractal can be the start of downtrend phase. We don't want to be in long trade if there is a high probability of reversal to the downside. This approach helps to not keep open trade if trend is not developing and hold it if price continues going up.
Backtest Results
Operating window: Date range of backtests is 2023.01.01 - 2024.05.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: 30%
Maximum Single Position Loss: -3.19%
Maximum Single Profit: +24.97%
Net Profit: +3036.90 USDT (+30.37%)
Total Trades: 83 (28.92% win rate)
Profit Factor: 1.953
Maximum Accumulated Loss: 963.98 USDT (-8.29%)
Average Profit per Trade: 36.59 USDT (+1.12%)
Average Trade Duration: 72 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 4h and higher time frames and the 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
Cari dalam skrip untuk "stop loss"
IsAlgo - Support & Resistance Strategyโบ Overview:
The Support & Resistance Strategy is designed to identify critical support and resistance levels and execute trades when the price crosses these levels. Utilizing a combination of a moving average, ATR indicator, and the highest and lowest prices, this strategy aims to accurately pinpoint entry and exit points for trades based on market movements.
โบ Description:
The Support & Resistance Strategy leverages the ATR (Average True Range) and a moving average to identify key support and resistance levels. The strategy calculates these levels by measuring the distance between the current market price and the moving average. This distance is continuously compared with each new candle to provide an estimate of the support and resistance levels.
The ATR is utilized to determine the width of these levels, ensuring they adjust to market volatility. To validate these levels, the strategy counts how often a candleโs low or high touches the estimated support or resistance and then bounces back. A higher frequency of such touches indicates a stronger, more reliable level.
Once the levels are confirmed, the strategy waits for a candle to close above the resistance level or below the support level. A candle closing above the resistance triggers a long entry, while a candle closing below the support triggers a short entry.
The strategy incorporates multiple stop-loss options to manage risk effectively. These options include setting stop-loss levels based on fixed pips, ATR calculations, or the highest/lowest prices of previous candles. Up to three take-profit levels can be set using fixed pips, ATR, or risk-to-reward ratios. A trailing stop feature adjusts the stop loss as the trade moves into profit, and a break-even feature moves the stop loss to the entry price once a certain profit level is reached.
Additionally, the strategy can close trades if the price crosses the opposite support or resistance level or if a candle moves significantly against the trade direction.
โ Long Entry Example:
โ Short Entry Example:
โบ Features & Settings:
โ๏ธ Levels: Configure the length, width, and ATR period for support and resistance levels.
โ๏ธ Moving Average: Use an Exponential Moving Average (EMA) to confirm trend direction. This can be enabled or disabled.
โ๏ธ Entry Candle: Define the minimum and maximum body size and the body-to-candle size ratio for entry candles.
โ๏ธ Trading Session: Specify the trading hours during which the strategy operates.
โ๏ธ Trading Days: Select which days of the week the strategy is active.
โ๏ธ Backtesting: Set a backtesting period with start and end dates. This feature can be deactivated.
โ๏ธ Trades: Customize trade direction (long, short, or both), position sizing (fixed or percentage-based), maximum open trades, and daily trade limits.
โ๏ธ Trades Exit: Choose from various exit methods, including profit/loss limits, trade duration, or crossing the opposite support/resistance level.
โ๏ธ Stop Loss: Set stop-loss levels using fixed pips, ATR-based calculations, or the highest/lowest price within a specified number of previous candles.
โ๏ธ Break Even: Adjust the stop loss to break-even once certain profit conditions are met.
โ๏ธ Trailing Stop: Automatically adjust the stop loss as the trade moves into profit.
โ๏ธ Take Profit: Define up to three take-profit levels using fixed pips, ATR, or risk-to-reward ratios based on the stop loss.
โ๏ธ Alerts: Receive alerts for significant actions such as trade openings and closings, with support for dynamic values.
โ๏ธ Dashboard: A visual display on the chart providing detailed information about ongoing and past trades.
โบ Backtesting Details:
Timeframe: 1-hour US30 chart
Initial Balance: $10,000
Order Size: 5 Units
Commission: $0.5 per contract
Slippage: 5 ticks
Stop Loss: Based on the opposite support/resistance level or break-even adjustments
Momentum Alligator 4h Bitcoin StrategyOverview
The Momentum Alligator 4h Bitcoin Strategy is a trend-following trading system that operates on dual time frames. It utilizes the 1D Williams Alligator indicator to identify the prevailing major price trend and seeks trading opportunities on the 4-hour (4h) time frame when the momentum is turning up. The strategy is designed to close trades if the trend fails to develop or holding position if price continues increasing without any significant correction. Note that this strategy is specifically tailored for the 4-hour time frame.
Unique Features
2-layers market noise filtering system: Trades are only initiated in the direction of the 1D trend, determined by the Williams Alligator indicator. This higher time frame confirmation filters out minor trade signals, focusing on more substantial opportunities. At the same time, strategy has additional filter on 4h time frame with Awesome Oscillator which is showing the current price momentum.
Flexible Risk Management: The strategy exclusively opens long positions, resulting in fewer trades during bear markets. It incorporates a dynamic stop-loss mechanism, which can either follow the jaw line of the 4h Alligator or a user-defined fixed stop-loss. This flexibility helps manage risk and avoid non-trending markets.
Methodology
The strategy initiates a long position when the d-line of Stochastic RSI crosses up it's k-line. It means that there is a high probability that price momentum reversed from down to up. To avoid overtrading in potentially choppy markets, it skips the next two trades following a winning trade, anticipating sideways movement after a significant price surge.
This strategy has two layers trades filtering system: 4h and 1D time frames. The first one is awesome oscillator. It shall be increasing and value has to be higher than it's 5-period SMA. This is an additional confirmation that long trade is opened in the direction of the current momentum. As it was mentioned above, all entry signals are validated against the 1D Williams Alligator indicator. A trade is only opened if the price is above all three lines of the 1D Alligator, ensuring alignment with the major trend.
A trade is closed if the price hits the 4h jaw line of the Alligator or reaches the user-defined stop-loss level.
Risk Management
The strategy employs a combined approach to risk management:
It allows positions to ride the trend as long as the price continues to move favorably, aiming to capture significant price movements. It features a user-defined stop-loss parameter to mitigate risks based on individual risk tolerance. By default, this stop-loss is set to a 2% drop from the entry point, but it can be adjusted according to the trader's preferences.
Justification of Methodology
This strategy leverages Stochastic RSI on 4h time frame to open long trade when momentum started reversing to the upside. On the one hand, Stochastic RSI is one of the most sensitive indicator, which allows to react fast on the potential trend reversal. On the other hand, this indicator can be too sensitive and provide a lot of false trend changing signals. To eliminate this weakness we use two-layers trades filtering system.
The first layer is the 4h Awesome oscillator. This is less sensitive momentum indicator. Usually it starts increasing when price has already passed significant distance from the actual reversal point. The strategy opens long trade only is Awesome oscillator is increasing and above it's 5-period SMA. This approach increases the probability to filter the false signals during the choppy market or if the reversal is false.
The second layer filter is the Williams Alligator indicator on 1D time frame. The 1D Alligator serves as a filter for identifying the primary trend and increases probability to avoid the trades with low potential because trading against major trend usually is more risky. It's much better to catch the trend continuation than local bounce.
Last but not least feature of this strategy is close trades condition. It uses the flexible approach. First of all, user can set up the fixed stop-loss according to his own risk-tolerance, by default this value is 2% of price movement. It restricts the potential loss at the moment when trade has just been opened. Moreover strategy utilizes the 4h Williams Alligator's jaw line to exit the trade. If price fell below it trade is closed. This approach helps to not keep open trade if trend is not developing and hold it if price continues going up.
Backtest Results:
Operating window: Date range of backtests is 2021.01.01 - 2024.05.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: 50%
Maximum Single Position Loss: -3.04%
Maximum Single Profit: +29.67%
Net Profit: +6228.01 USDT (+62.28%)
Total Trades: 118 (24.58% win rate)
Profit Factor: 1.71
Maximum Accumulated Loss: 1527.69 USDT (-11.52%)
Average Profit per Trade: 52.78 USDT (+0.89%)
Average Trade Duration: 60 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 4h timeframe desired chart (optimal performance observed on the 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
Range Average Retest Model [LuxAlgo]The Range Average Retest Model tool highlights setups from the range average retest entry model, a model using the retest of the average between two opposite swing points as an entry.
This tool uses long-term volatility coupled with user-defined multipliers to filter out swing areas and set take profit and stop loss levels for all trades.
Key features include:
Draw up to 165 swing areas and their associated trades
Filter out swing areas using Pivot Length , Selection Mode and Threshold parameters
Filter out trades with Maximum Distance and Minimum Distance parameters
Enable or disable swing areas and select default colors
Enable or disable overlapping trades and change the default colors for Take Profit and Stop Loss zones
๐ถ USAGE
The "Range Average Retest Model" is an entry model that enters a position when the price retests the average made between two swing points. Users can determine the period of the detected swing points from the "Pivot Length" setting.
The conditions for long or short trades, regardless of whether the swing area is bullish or bearish, are as follows:
Long positions: the current bar close is below the swing area average and the last bar close was above it.
Short positions: the current bar close is above the swing area average price and the last bar close was below it.
Each trade is displayed on the chart with a line connecting it to its swing area highlighting the range average, a green area for the take profit, and a red area for the stop loss.
Both the Take Profit and Stop Loss levels are calculated by applying your own multiplier in the settings panel to the long-term volatility measure, in this case, the average true range over the last 200 bars.
Trades will remain open until they reach either the Stop Loss or Take Profit price levels.
๐น Filtering Swing Areas
The daily chart of the Nasdaq-100 futures (NQ) with pivot length 2 and bullish selection mode: it only detects bullish swing areas, but they are smaller and more numerous.
Traders can manipulate the behavior of the swing areas from the settings panel.
The Selection mode will filter areas by bias: it will detect bullish areas, bearish areas, or both.
The Threshold parameter is applied to the long-term volatility to filter out areas where the average prices are too close together; the higher the value, the greater the difference between the average prices must be.
๐น Trades
3-minute chart of the Nasdaq-100 futures (NQ) with pivot length 5, bearish selection mode maximum distance 4, and stop loss 2: many trades detected with very asymmetric risk/reward.
The behavior of the trades is also manipulated from the settings panel.
The maximum and minimum distance parameters specify the number of bars a trade must be away from a swing area.
The Take Profit and Stop Loss parameters are applied to the long-term volatility to obtain their respective price levels.
๐น Overlapping Trades
Same chart as before, but with overlapping trades: messy, right?
By default the tool does not show overlapping trades, this allows for a cleaner chart.
In the settings panel traders can enable overlapping mode, in which case the tool will show all available trades.
Traders must be aware that the chart can be very crowded.
๐ถ SETTINGS
๐น Swings
Pivot Length: How many bars are used to confirm a swing point. The larger this parameter is, the larger and fewer swing areas will be detected.
Selection Mode: Swing area detection mode, detect only bullish swings, only bearish swings, or both.
Threshold: Swing area comparator. This threshold is multiplied by a measure of volatility (average true range over the last 200 bars), for a new swing area to be detected it must have an average level that is sufficiently distant from the average level of any untouched swing area, this parameter controls that distance.
๐น Trades
Maximum distance: Maximum distance allowed between a swing area and a trade.
Minimum distance: Minimum distance allowed between a swing area and a trade.
Take profit: The size of the take profit - this threshold is multiplied by a measure of volatility (the average true range over the last 200 bars).
Stop loss: The size of the stop-loss: this threshold is multiplied by a measure of volatility (the average true range over the last 200 bars).
MACD of Relative Strenght StrategyMACD Relative Strenght Strategy :
INTRODUCTION :
This strategy is based on two well-known indicators: MACD and Relative Strenght (RS). By coupling them, we obtain powerful buy signals. In fact, the special feature of this strategy is that it creates an indicator from an indicator. Thus, we construct a MACD whose source is the value of the RS. The strategy only takes buy signals, ignoring SHORT signals as they are mostly losers. There's also a money management method enabling us to reinvest part of the profits or reduce the size of orders in the event of substantial losses.
RELATIVE STRENGHT :
RS is an indicator that measures the anomaly between momentum and the assumption of market efficiency. It is used by professionals and is one of the most robust indicators. The idea is to own assets that do better than average, based on their past performance. We calculate RS using this formula :
RS = close/highest_high(RS_Length)
Where highest_high(RS_Length) = highest value of the high over a user-defined time period (which is the RS_Length).
We can thus situate the current price in relation to its highest price over this user-defined period.
MACD (Moving Average Convergence - Divergence) :
This is one of the best-known indicators, measuring the distance between two exponential moving averages : one fast and one slower. A wide distance indicates fast momentum and vice versa. We'll plot the value of this distance and call this line macdline. The MACD uses a third moving average with a lower period than the first two. This last moving average will give a signal when it crosses the macdline. It is therefore constructed using the values of the macdline as its source.
It's important to note that the first two MAs are constructed using RS values as their source. So we've just built an indicator of an indicator. This kind of method is very powerful because it is rarely used and brings value to the strategy.
PARAMETERS :
RS Length : Relative Strength length i.e. the number of candles back to find the highest high and compare the current price with this high. Default is 300.
MACD Fast Length : Relative Strength fast EMA length used to plot the MACD. Default is 14.
MACD Slow Length : Relative Strength slow EMA length used to plot the MACD. Default is 26.
MACD Signal Smoothing : Macdline SMA length used to plot the MACD. Default is 10.
Max risk per trade (in %) : The maximum loss a trade can incur (in percentage of the trade value). Default is 8%.
Fixed Ratio : This is the amount of gain or loss at which the order quantity is changed. Default is 400, meaning that for each $400 gain or loss, the order size is increased or decreased by a user-selected amount.
Increasing Order Amount : This is the amount to be added to or subtracted from orders when the fixed ratio is reached. The default is $200, which means that for every $400 gain, $200 is reinvested in the strategy. On the other hand, for every $400 loss, the order size is reduced by $200.
Initial capital : $1000
Fees : Interactive Broker fees apply to this strategy. They are set at 0.18% of the trade value.
Slippage : 3 ticks or $0.03 per trade. Corresponds to the latency time between the moment the signal is received and the moment the order is executed by the broker.
Important : A bot has been used to test the different parameters and determine which ones maximize return while limiting drawdown. This strategy is the most optimal on BITSTAMP:ETHUSD in 8h timeframe with the parameters set by default.
ENTER RULES :
The entry rules are very simple : we open a long position when the MACD value turns positive. You are therefore LONG when the MACD is green.
EXIT RULES :
We exit a position (whether losing or winning) when the MACD becomes negative, i.e. turns red.
RISK MANAGEMENT :
This strategy can incur losses, so it's important to manage our risks well. If the position is losing and has incurred a loss of -8%, our stop loss is activated to limit losses.
MONEY MANAGEMENT :
The fixed ratio method was used to manage our gains and losses. For each gain of an amount equal to the value of the fixed ratio, we increase the order size by a value defined by the user in the "Increasing order amount" parameter. Similarly, each time we lose an amount equal to the value of the fixed ratio, we decrease the order size by the same user-defined value. This strategy increases both performance and drawdown.
Enjoy the strategy and don't forget to take the trade :)
MFR RangeHello Traders!
You requested it for many months, we are finally making our proprietary Range available to all.
First of all, how should a trader consider a Range in general:
In trading, a "range" refers to a specific price interval or zone within which an asset's price moves or consolidates for a period of time. Ranges are characterized by relatively horizontal or sideways price movements, where the price oscillates between a defined upper and lower boundary. Traders often use ranges to identify potential trading opportunities, manage risk, and make trading decisions.
Here's how ranges are used in trading:
1. Range Identification:
Traders identify ranges by observing price charts and looking for periods where the price appears to be moving horizontally with clear upper and lower boundaries.
Common range patterns include rectangles, channels, and horizontal consolidations.
2. Range Trading Strategies:
Range trading strategies aim to profit from price movements within the established range. Traders typically use two main approaches within a range:
Buying near the range's lower boundary: Traders buy when the price approaches the lower end of the range, anticipating a bounce or reversal towards the upper boundary. This is often referred to as "buying support."
Selling near the range's upper boundary: Traders sell when the price approaches the upper end of the range, anticipating a pullback or reversal towards the lower boundary. This is known as "selling resistance."
3. Risk Management:
Stop-loss orders are crucial when trading ranges. Traders set stop-loss orders just outside the range's boundaries to limit potential losses if the price breaks out of the range unpredictably.
4. Range Breakouts:
Ranges do not last indefinitely, and eventually, the price may break out of the range, leading to a significant price movement.
Traders often look for breakout patterns and use breakout trading strategies to capitalize on the potential for a strong price movement after the range is broken.
5. Volatility Consideration:
Some traders may assess the volatility within the range. If the price oscillates within the range with high volatility, they may consider trading shorter timeframes for smaller, quicker profits.
Lower volatility may prompt longer-term traders to take positions within the range, expecting a slower, more controlled price movement.
6. Time Frame Analysis:
Traders may analyze the time frame in which the range has developed, in our case MFR range are based solely on the Daily timeframe.
7. Confirmation Indicators:
Traders often use technical indicators like Relative Strength Index (RSI), Moving Averages, or Bollinger Bands to confirm range trading signals and assess overbought or oversold conditions.
8. Range Boundaries as Support and Resistance:
Once a range is identified, its upper and lower boundaries can serve as key support and resistance levels even after the range is broken. Traders pay attention to these levels for future trading decisions.
9. Range Expansion:
Some traders look for signs of range expansion, where the price starts to break out or trend strongly. This can signal the end of a range-bound market and a transition to a trending market.
It's important to note that while range trading can be profitable, it requires careful analysis and risk management. Traders must be prepared for the possibility of a breakout that can result in significant losses if they are on the wrong side of the trade. Additionally, market conditions can change, and ranges can evolve into trends or other patterns, so traders need to adapt their strategies accordingly.
What is specific to MFR range?
This script calculates and plots a trading range on a daily timeframe based on historical price data. Based on Benoit Mandelbrot and Edgar E. Peters publications on Range, we run a set of calculations over a defined period. The script will define those to generate the "Range High" and "Range Low". These values are used to define the upper and lower bounds of the trading range.
In short, how could I use this script?
A trader could use the Range to find overbought or oversold points to enter a position. The Lower Range being the price to buy an asset and the Upper Range being the place to sell an asset. This is recommended to be implemented only when our other indication called Trend matches the strategy: buy when the trend is bullish or short when the trend is bearish.
It's important to note that while Range is a useful tool, it should not be relied upon solely for making trading decisions. It's recommended to use it in conjunction with other technical analysis tools and consider other factors such as market conditions, risk management, and fundamental analysis. Remember that the Range indicator is just one tool among many, and it's important to consider other factors such as volume, momentum, volatility, and overall market conditions when making trading decisions. Additionally, using stop-loss orders and proper risk management techniques is crucial to mitigate potential losses.
We hope that you will find these explanations useful, please contact us by private message for access.
Enjoy!
DISCLAIMER: No sharing, copying, reselling, modifying, or any other forms of use are authorised. This script is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. Myfractalrange is not responsible for any losses you may incur. Please invest wisely.
Myfractalrange TrendHello Traders!
This is our main addition to MFR TradingView account: Myfractalrange Trend.
Many Trend signals exist out there, each trader has at some point created its own.
At Myfractalrange, we have developed a proprietary formula based on Price, Volume and Volatility.
Before going into how subscribers can use the Trend script, let't have a look at the different data point provided one by one:
- Bullish Trend: If the price of the asset is above this value, the asset is considered to be Bullish Trend. Default colour is green
- Bearish Trend : If the price of the asset is below this value, the asset is considered to be Bearish Trend. Default colour is red
- Neutral Trend: If the price of the asset is between the value of the Bullish Trend and the value of the Bearish Trend, the asset is considered to be Neutral Trend. Default colour is yellow
How does the script work?
The provided script is proprietary, so while the specific calculations and data sources cannot be disclosed, here is a broad explanation on how it works:
- It will retrieve the relevant data from the asset, could be volume, close, high, low, etc.
- The script will then check the length for the trend calculation of this specific asset and compute the Trend line
- From the value of this Trend line, we will then generate the "bullish" and "bearish" values
- The script will then plot the Bullish and Bearish values on the chart, the area between both being set as the Neutral area
How to use trend when trading?
When trading, understanding and utilising trends can be valuable for making informed trading decisions. Here are some key ways to use trends in trading:
- Trend Identification: Identifying the presence and direction of a trend is crucial
- Trend Following: One common trading strategy is trend following, which involves trading in the direction of the prevailing trend. In an uptrend, traders may look for opportunities to buy or go long, while in a downtrend, they may seek opportunities to sell or go short. Trend following strategies assume that trends are more likely to continue than reverse, and traders aim to capitalise on sustained price movements
- Trend Reversals: Identifying potential trend reversals is another approach. Traders may look for signs that a trend is losing momentum or showing signs of exhaustion. Traders may then consider taking contrarian positions or closing existing trades.
- Timing Entries and Exits: Trends can help with timing entry and exit points. Traders often aim to enter trades at favourable points within a trend, such as during pullbacks in an uptrend or rallies in a downtrend. This allows them to potentially capture favourable risk-to-reward ratios
- Risk Management: Incorporating trend analysis into risk management is crucial. Traders can set stop-loss orders or trailing stops based on the trend, aiming to protect profits or limit losses if the trend reverses. Position sizing can also be adjusted based on the strength or duration of a trend, with larger positions taken in strong, well-established trends
- Multiple Time Frame Analysis: Examining trends across different time frames can provide a broader perspective. Traders can look for alignment in trends across shorter-term and longer-term charts to gain confidence in their trading decisions. For example, a Trend on a daily chart may align with a Trend on a hourly chart, reinforcing the potential trading opportunity
The Myfractalrange Trend signal can be used for all the possibilities listed above
Here is an example of a Bullish Trend pattern: BTFD set up
Here is an example of a Bearish Trend pattern: STFR set up
Why use Trend in combination with other indicators, such as Hurst and probable Range?
Using Trend in combination with Hurst exponent and probable Range can provide traders with a more comprehensive view of market dynamics and potential trading opportunities. Here's how the three concepts can complement each other:
- Trend Analysis: Trend analysis helps identify the prevailing direction of the market. It provides insights into whether the market is in an uptrend (Bullish), downtrend (Bearish), or sideways consolidation (Neutral). Trend analysis helps traders align their positions with the dominant market direction, increasing the likelihood of successful trades
- Hurst exponent: Hurst exponent is a measure of the persistence or mean reversion characteristics of a time series. It provides insights into the strength and sustainability of price movements. Hurst momentum analysis helps traders understand whether the market is exhibiting trending behaviour or mean-reverting behaviour. It can help identify potential reversals or continuation patterns in the price action.
- Probable Range: The Range refers to the expected price range within which an asset is likely to fluctuate, in our case the MFR Ranges (normal and longer-term). It helps traders set realistic profit targets and stop-loss levels. By combining the probable range with the trend and the Hurst Exponent, traders can better gauge the potential extent of price movements and make more informed decisions regarding entry and exit points.
How to use these tools together?
- Confirmation and Confluence: Combining Trend with Hurst & Range can provide confirmation and confluence signals. For instance, when the trend analysis indicates an uptrend, Hurst confirms strong positive momentum and Range confirms the upside potential, it provides a stronger signal for potential bullish trades
- Timing Entries and Exits: The combination of trend analysis, Hurst and Range can assist in timing entry and exit points. For example, when trend analysis indicates an uptrend, traders can look for bullish signals from Hurst value and low of the MFR Range to identify potential entry points during pullbacks or periods of consolidation. Conversely, in a downtrend, bearish signals from Hurst at the top of the MFR Range can guide traders in identifying potential short-selling opportunities during corrective rallies
- Risk Management: The integration of trend analysis with Hurst and Range can also aid in risk management. Traders can adjust their stop-loss levels and profit targets based on the strength of the trend, its strength and its Range. Tighter stop-loss levels can be set when both trend analysis, Hurst value and Range are aligned, indicating a higher probability of trend continuation. Conversely, wider stop-loss levels may be used when conflicting signals or weakening trends are observed
By combining Trend analysis, Hurst exponent and MFR probable Range, traders can gain a more comprehensive understanding of the market's behaviour and make more informed trading decisions.
It's important to note that while Trend is a useful tool, it should not be relied upon solely for making trading decisions. It's recommended to use it in conjunction with other technical analysis tools and consider other factors such as market conditions, risk management, and fundamental analysis. Remember that the momentum indicator is just one tool among many, and it's important to consider other factors such as volume, momentum, volatility, and overall market conditions when making trading decisions. Additionally, using stop-loss orders and proper risk management techniques is crucial to mitigate potential losses.
We hope that you will find these explanations useful, please contact us by private message for access.
Enjoy!
DISCLAIMER: No sharing, copying, reselling, modifying, or any other forms of use are authorised. This script is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. Myfractalrange is not responsible for any losses you may incur. Please invest wisely.
Portfolio Backtester Engineโโ OVERVIEW
Portfolio Backtester Engine (PBTE). This tool will allow you to backtest strategies across multiple securities at once. Allowing you to easier understand if your strategy is robust. If you are familiar with the PineCoders backtesting engine , then you will find this indicator pleasant to work with as it is an adaptation based on that work. Much of the functionality has been kept the same, or enhanced, with some minor adjustments I made on the account of creating a more subjectively intuitive tool.
โโ HISTORY
The original purpose of the backtesting engine (`BTE`) was to bridge the gap between strategies and studies . Previously, strategies did not contain the ability to send alerts, but were necessary for backtesting. Studies on the other hand were necessary for sending alerts, but could not provide backtesting results . Often, traders would have to manage two separate Pine scripts to take advantage of each feature, this was less than ideal.
The `BTE` published by PineCoders offered a solution to this issue by generating backtesting results under the context of a study(). This allowed traders to backtest their strategy and simultaneously generate alerts for automated trading, thus eliminating the need for a separate strategy() script (though, even converting the engine to a strategy was made simple by the PineCoders!).
Fast forward a couple years and PineScript evolved beyond these issues and alerts were introduced into strategies. The BTE was not quite as necessary anymore, but is still extremely useful as it contains extra features and data not found under the strategy() context. Below is an excerpt of features contained by the BTE:
"""
More than `40` built-in strategies,
Customizable components,
Coupling with your own external indicator,
Simple conversion from Study to Strategy modes,
Post-Exit analysis to search for alternate trade outcomes,
Use of the Data Window to show detailed bar by bar trade information and global statistics, including some not provided by TV backtesting,
Plotting of reminders and generation of alerts on in-trade events.
"""
Before I go any further, I want to be clear that the BTE is STILL a good tool and it is STILL very useful. The Portfolio Backtesting Engine I am introducing is only a tangental advancement and not to be confused as a replacement, this tool would not have been possible without the `BTE`.
โโ THE PROBLEM
Most strategies built in Pine are limited by one thing. Data. Backtesting should be a rigorous process and researchers should examine the performance of their strategy across all market regimes; that includes, bullish and bearish markets, ranging markets, low volatility and high volatility. Depending on your TV subscription The Pine Engine is limited to 5k-20k historical bars available for backtesting, which can often leave the strategy results wanting. As a general rule of thumb, strategies should be tested across a quantity of historical bars which will allow for at least 100 trades. In many cases, the lack of historical bars available for backtesting and frequency of the strategy signals produces less than 100 trades, rendering your strategy results inconclusive.
โโ THE SOLUTION
In order to be confident that we have a robust strategy we must test it across all market regimes and we must have over 100 trades. To do this effectively, researchers can use the Portfolio Backtesting Engine (PBTE).
By testing a strategy across a carefully selected portfolio of securities, researchers can now gather 5k-20k historical bars per security! Currently, the PTBE allows up to 5 securities, which amounts to 25k-100k historical bars.
โโ HOW TO USE
1 โ Add the indicator to your chart.
โโข Confirm inputs. These will be the most important initial values which you can change later by clicking the gear icon โ and opening up the settings of the indicator.
2 โ Select a portfolio.
โโข You will want to spend some time carefully selecting a portfolio of securities.
โโโโข Each security should be uncorrelated.
โโโโข The entire portfolio should contain a mix of different market regimes.
โโโ You should understand that strategies generally take advantage of one particular type of market regime. (trending, ranging, low/high volatility)
โโโFor example, the default RSI strategy is typically advantageous during ranging markets, whereas a typical moving average crossover strategy is advantageous in trending markets.
โโโIf you were to use the standard RSI strategy during a trending market, you might be selling when you should be buying.
โโโSimilarily, if you use an SMA crossover during a ranging market, you will find that the MA's may produce many false signals.
โโโEven if you build a strategy that is designed to be used only in a trending market, it is still best to select a portfolio of all market regimes
โโโas you will be able to test how your strategy will perform when the market does something unexpected.
3 โ Test a built-in strategy or add your own.
โโโโข Navigate to gear icon โ (settings) of strategy.
โโโโข Choose your options.
โโโโโโโข Select a Main Entry Strat and Alternate Entry Strat .
โโโโโโโโโโข If you want to add your own strategy, you will need to modify the source code and follow the built-in example.
โโโโโโโโโโข You will only need to generate (buy 1 / sell -1/ neutral 0) signals.
โโโโโโโข Select a Filter , by default these are all off.
โโโโโโโข Select an Entry Stop - This will be your stop loss placed at the trade entry.
โโโโโโโข Select Pyamiding - This will allow you to stack positions. By default this is off.
โโโโโโโข Select Hard Exits - You can also think of these as Take Profits.
โโโโข Let the strategy run and take note of the display tables results.
โโโโโโโข Portfolio - Shows each security.
โโโโโโโโโโข The strategy runs on each asset in your portfolio.
โโโโโโโโโโข The initial capital is equally distributed across each security.
โโโโโโโโโโSo if you have 5 securities and a starting capital of 100,000$ then each security will run the strategy starting with 20,000$
โโโโโโโโโ The total row will aggregate the results on a bar by bar basis showing the total results of your initial capital.
โโโโโโโข Net Profit (NP) - Shows profitability.
โโโโโโโข Number of Trades (#T) - Shows # of trades taken during backtesting period.
โโโโโโโโโโข Typically will want to see this number greater than 100 on the "Total" row.
โโโโโโโข Average Trade Length (ATL) - Shows average # of days in a trade.
โโโโโโโข Maximum Drawdown (MD ) - Max peak-to-valley equity drawdown during backtesting period.
โโโโโโโโโโข This number defines the minimum amount of capital required to trade the system.
โโโโโโโโโโข Typically, this shouldnโt be lower than 34% and we will want to allow for at least 50% beyond this number.
โโโโโโโข Maximum Loss (ML) - Shows largest loss experienced on a per-trade basis.
โโโโโโโโโโข Normally, donโt want to exceed more than 1-2 % of equity.
โโโโโโโข Maximum Drawdown Duration (MDD) - The longest duration of a drawdown in equity prior to a new equity peak.
โโโโโโโโโโข This number is important to help us psychologically understand how long we can expect to wait for a new peak in account equity.
โโโโโโโข Maximum Consecutive Losses (MCL) - The max consecutive losses endured throughout the backtesting period.
โโโโโโโโโโข Another important metric for trader psychology, this will help you understand how many losses you should be prepared to handle.
โโโโโโโข Profit to Maximum Drawdown (P:MD) - A ratio for the average profit to the maximum drawdown.
โโโโโโโโโโข The higher the ratio is, the better. Large profits and small losses contribute to a good PMD.
โโโโโโโโโโข This metric allows us to examine the profit with respect to risk.
โโโโโโโข Profit Loss Ratio (P:L) - Average profit over the average loss.
โโโโโโโโโโข Typically this number should be higher in trend following systems.
โโโโโโโโโโข Mean reversion systems show lower values, but compensate with a better win %.
โโโโโโโข Percent Winners (% W) - The percentage of winning trades.
โโโโโโโโโโข Trend systems will usually have lower win percentages, since statistically the market is only trending roughly 30% of the time.
โโโโโโโโโโข Mean reversion systems typically should have a high % W.
โโโโโโโข Time Percentage (Time %) - The amount of time that the system has an open position.
โโโโโโโโโโข The more time you are in the market, the more you are exposed to market risk, not to mention you could be using that money for something else right?
โโโโโโโข Return on Investment (ROI) - Your Net Profit over your initial investment, represented as a percentage.
โโโโโโโโโโข You want this number to be positive and high.
โโโโโโโข Open Profit (OP) - If the strategy has any open positions, the floating value will be represented here.
โโโโโโโข Trading Days (TD) - An important metric showing how many days the strategy was active.
โโโโโโโโโโข This is good to know and will be valuable in understanding how long you will need to run this strategy in order to achieve results.
โโ FEATURES
These are additional features that extend the original `BTE` features.
- Portfolio backtesting.
- Color coded performance results.
- Circuit Breakers that will stop trading.
- Position reversals on exit. (Simulating the function of always in the market. Similar to strategy.entry functionality)
- Whipsaw Filter
- Moving Average Filter
- Minimum Change Filter
- % Gain Equity Exit
- Popular strategies, (MACD, MA cross, supertrend)
Below are features that were excluded from the original `BTE`
- 2 stage in-trade stops with kick-in rules (This was a subjective decision to remove. I found it to be complex and thwarted my use of the `BTE` for some time.)
- Simple conversion from Study to Strategy modes. (Not possible with multiple securities)
- Coupling with your own external indicator (Not really practical to use with multiple securities, but could be used if signals were generated based on some indicator which was not based on the current chart)
- Use of the Data Window to show detailed bar by bar trade information and global statistics.
- Post Exit Analysis.
- Plotting of reminders and generation of alerts on in-trade events.
- Alerts (These may be added in the future by request when I find the time.)
โโ THANKS
The whole PineCoders team for all their shared knowledge and original publication of the BTE and Richard Weismann for his ideas on building robust strategies.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
[ADOL_]Trend BreakENG)
Trend Break trend break+
It automatically draws a trend line and generates signals based on elaborate standards.
It is a secretary who plays an excellent role as an auxiliary tool in the sale and sale.
Trend lines are an important tool in determining the direction of trading.
These indicators are automatic trend line construction and trading signal generation indicators.
The background informs the trend section. The key function is the notation of signals.
principle)
It reflects the concept of HH and LL.
What is HH? Abbreviation of Higher High, which means to increase the high point.
What is LL? It stands for Lower Low, which means to lower the low point.
The trend line is created by the basic construction method that connects the highs and the highs, and the lows and the lows.
The basic signal is prepared by generating a signal from the 3 previous candles of the breakthrough of the trend line.
Basic signal; L for long, S for short
When the flow continues in one direction by reflecting the candle flow in ascending and descending order
Create a filtered signal.
Filtering signal; Filtering signals are marked with โ
.
The background is the output through direction matching filtering of the double weighted moving average.
Green Background: Uptrend Progress
Red background: downtrend progress
Gray background: neutral zone (rebound, retracement, crossing)
Principle example)
This is an example of a signal with no filtering applied.
This is an example of a filtered signal.
option)
Line color, line shape, whether or not to include a tail when drawing a trend, line thickness
You can choose options such as.
Time frame)
Applicable to all time frames.
Scalping: 1 minute bar, 3 minute bar
Single hit: 3 minutes, 15 minutes, 1 hour
Swing: 1 hour salary, 4 hour salary, daily salary
Applicable market)
Applicable to all markets.
Examples of market application)
NASDAQ
Korean stocks (ex: Samsung Electronics)
alert)
You can use the alert function.
-Background alert for trend direction
-Alert to break through downtrend line and alert to break through uptrend line
-Filtering applied alert to break through the downtrend line
-Filtering applied alert to break through the uptrend line
Trading method)
1. The trend line refers to the concept of support/resistance touch. Through the concept of touch
You can set a standard once more to see if the signal output is adequate.
One touch of support/resistance line: On the first touch, see long at the support line and short at the resistance line.
Touch the support/resistance line 2: Check the position once more in the step of building (consolidating) the support/resistance line. Long at the support level and short at the resistance level.
3 touches of the ground/resistance line: This is the section with high possibility in both directions.
Support/resistance line 4 (or higher) touch: Use as a breakthrough reference line. When breaking through, hit short at the support line and long at the resistance line.
If the support/resistance line breaks through to the closing price, support becomes resistance and resistance becomes support."
Trading method)
1. The trend line refers to the concept of support/resistance touch. Through the concept of touch
You can set a standard once more to see if the signal output is adequate.
One touch of support/resistance line: On the first touch, see long at the support line and short at the resistance line.
Touch the support/resistance line 2: Check the position once more in the step of building (consolidating) the support/resistance line. Long at the support level and short at the resistance level.
3 touches of the ground/resistance line: This is the section with high possibility in both directions.
Support/resistance line 4 (or higher) touch: Use as a breakthrough reference line. When breaking through, hit short at the support line and long at the resistance line.
If the support/resistance line breaks through to the closing price, support becomes resistance and resistance becomes support."
2. Entry Criteria/Stop Loss Criteria
-Entry criteria; Follow the signal.
-Stop loss criteria;
Using Fixed Stop Loss: Set the 1% fixed stop loss interval from signal generation (% is set individually).
Use of Candle Stop: When the low or high point of the signal generating rod collapses, set the stop loss.
Use of flow stop loss: Set the stop loss by considering the flow of the wave.
3. Note
All trading decisions you make are your sole responsibility.
If the indicators were helpful, please support us. Help in developing the following metrics.
4. How to use
Tap Add Indicator to Favorites. Click on the indicator at the top of the chart screen and look at the left tab
Indicators have been added. Press to use. Anyone can use it.
KOR)
Trend Break ์ถ์ธ๋ํ+
์ถ์ธ์ ์ ์๋์ผ๋ก ์๋ํด์ฃผ๋ฉฐ, ์ ๊ตํ๋ ๊ธฐ์ค์ผ๋ก ์๊ทธ๋์
๋ฐ์์์ผ ๋งค๋งค์ ๋ณด์กฐ๋๊ตฌ๋ก์จ ํ๋ฅญํ ์ญํ ์ ์ํํด๋ด๋ ๋น์์
๋๋ค.
์ถ์ธ์ ์ ๋งค๋งค์ ๋ฐฉํฅ์ฑ์ ๊ฒฐ์ ํ๋๋ฐ ์ค์ํ ๋๊ตฌ์
๋๋ค.
ํด๋น ์งํ๋ ์๋ ์ถ์ธ์ ์๋์ ๋งค๋งค ์๊ทธ๋ ๋ฐ์ ์งํ์
๋๋ค.
๋ฐฐ๊ฒฝ์ ์ถ์ธ๊ตฌ๊ฐ์ ์๋ ค์ค๋๋ค. ํต์ฌ๊ธฐ๋ฅ์ ์๊ทธ๋์ ํ๊ธฐ์
๋๋ค.
์๋ฆฌ)
HH์ LL์ ๊ฐ๋
์ ๋ฐ์ํฉ๋๋ค.
HH๋ ? Higher High์ ์ฝ์๋ก ๊ณ ์ ์ ๋์ธ๋ค๋ ์๋ฏธ์
๋๋ค.
LL๋? Lower Low์ ์ฝ์๋ก ์ ์ ์ ๋ฎ์ถ๋ค๋ ์๋ฏธ์
๋๋ค.
์ถ์ธ์ ์ ๊ณ ์ ๊ณผ ๊ณ ์ , ์ ์ ๊ณผ ์ ์ ์ ์๋ ๊ธฐ๋ณธ ์๋ ๋ฐฉ๋ฒ์ผ๋ก ๋ง๋ค์ด์ง๋๋ค.
์ถ์ธ์ ๋ํ์ 3๊ฐ ์ด์ ์บ๋ค๋ถํฐ ์ ํธ๋ฐ์์ผ๋ก ์ค๋น๋ฅผ ๊ธฐ๋ณธ ์๊ทธ๋์ ๋ง๋ญ๋๋ค.
๊ธฐ๋ณธ ์๊ทธ๋ ; ๋กฑ์ ๊ฒฝ์ฐ L ํ๊ธฐ, ์์ ๊ฒฝ์ฐ Sํ๊ธฐ
์ค๋ฆ์ฐจ์๊ณผ ๋ด๋ฆผ์ฐจ์์ ์บ๋ค ํ๋ฆ์ ๋ฐ์ํ์ฌ, ํ ๋ฐฉํฅ์ผ๋ก ํ๋ฆ์ด ์ง์๋ ๋
ํํฐ๋ง๋ ์๊ทธ๋์ ๋ง๋ญ๋๋ค.
ํํฐ๋ง ์๊ทธ๋ ; ํํฐ๋ง ์๊ทธ๋์ โ
ํ๊ธฐ๊ฐ ๋ถ์ต๋๋ค.
๋ฐฐ๊ฒฝ์ ์ด์ค ๊ฐ์ค์ด๋ ํ๊ท ์ ๋ฐฉํฅ์ผ์น ํํฐ๋ง์ ํตํ ์ถ๋ ฅ์
๋๋ค.
์ด๋ก์ ๋ฐฐ๊ฒฝ : ์์น์ถ์ธ ์งํ
๋นจ๊ฐ์ ๋ฐฐ๊ฒฝ : ํ๋ฝ์ถ์ธ ์งํ
ํ์ ๋ฐฐ๊ฒฝ : ์ค๋ฆฝ๊ตฌ์ญ(๋ฐ๋ฑ, ๋๋๋ฆผ, ๊ต์ฐจ)
์๋ฆฌ ์์)
ํํฐ๋ง์ด ์ ์ฉ๋์ง ์์ ์๊ทธ๋์ ์์์
๋๋ค.
ํํฐ๋ง์ด ์ ์ฉ๋ ์๊ทธ๋์ ์์์
๋๋ค.
์ต์
)
์ ์์, ์ ๋ชจ์, ์ถ์ธ์ ์๋์ ๊ผฌ๋ฆฌํฌํจ์ฌ๋ถ, ์ ๊ตต๊ธฐ
๋ฑ์ ์ต์
์ ์ ํํ ์ ์์ต๋๋ค.
ํ์ํ๋ ์)
๋ชจ๋ ์๊ฐํ๋ ์์ ์ ์ฉ ๊ฐ๋ฅํฉ๋๋ค.
์ค์บํ : 1๋ถ๋ด, 3๋ถ๋ด
๋จํ : 3๋ถ๋ด, 15๋ถ๋ด, 1์๊ฐ๋ด
์ค์ : 1์๊ฐ๋ด, 4์๊ฐ๋ด, ์ผ๋ด
์ ์ฉ์์ฅ)
๋ชจ๋ ์์ฅ์ ์ ์ฉ ๊ฐ๋ฅํฉ๋๋ค.
์์ฅ ์ ์ฉ์ ์์)
๋์ค๋ฅ
ํ๊ตญ์ฃผ์(์ : ์ผ์ฑ์ ์)
์๋)
์ผ๋ฌํธ ๊ธฐ๋ฅ์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
- ์ถ์ธ๋ฐฉํฅ์ฑ์ ๋ํ ๋ฐฐ๊ฒฝ์ ์ผ๋ฌํธ
- ํ๋ฝ์ถ์ธ์ ๋ํ ์ผ๋ฌํธ, ์์น์ถ์ธ์ ๋ํ ์ผ๋ฌํธ
- ํํฐ๋ง์ ์ ์ฉํ ํ๋ฝ์ถ์ธ์ ๋ํ ์ผ๋ฌํธ
- ํํฐ๋ง์ ์ ์ฉํ ์์น์ถ์ธ์ ๋ํ ์ผ๋ฌํธ
๋งค๋งค๋ฐฉ๋ฒ)
1. ์ถ์ธ์ ์ ์ง์ง/์ ํญ์ ํฐ์น ๊ฐ๋
์ ์ฐธ๊ณ ํฉ๋๋ค. ํฐ์น์ ๊ฐ๋
์ ํตํด
์๊ทธ๋ ์ถ๋ ฅ์ด ์ ์ ํ์ง ํ๋ฒ ๋ ๊ธฐ์ค์ ์ก์ ์ ์์ต๋๋ค.
์ง์ง/์ ํญ์ 1ํฐ์น : ์ฒซ๋ฒ์งธ ํฐ์น์๋ ์ง์ง์ ์์ ๋กฑ์, ์ ํญ์ ์์ ์์ ๋ด
๋๋ค.
์ง์ง/์ ํญ์ 2ํฐ์น : ์ง์ง/์ ํญ์ ๊ตฌ์ถ(๋ค์ง๊ธฐ)์ ๋จ๊ณ๋ก ํ๋ฒ ๋ ์๋ฆฌ๋ฅผ ํ์ธํฉ๋๋ค. ์ง์ง์ ์์ ๋กฑ์, ์ ํญ์ ์์ ์์ ๋ด
๋๋ค.
์ง/์ ํญ์ ์ 3ํฐ์น : ์๋ฐฉํฅ์ ๊ฐ๋ฅ์ฑ์ด ๋์ ๊ตฌ๊ฐ์
๋๋ค.
์ง์ง/์ ํญ์ 4(์ด์)ํฐ์น : ๋ํ๊ธฐ์ค์ ์ผ๋ก ์ฌ์ฉํฉ๋๋ค. ๋ํํ ๋, ์ง์ง์ ์์ ์์, ์ ํญ์ ์์ ๋กฑ์ ์นฉ๋๋ค.
์ง์ง/์ ํญ์ ์ด ์ข
๊ฐ๋ก ๋ซ๋ฆฌ๋ฉด ์ง์ง๋ ์ ํญ์ด ๋๊ณ , ์ ํญ์ ์ง์ง๊ฐ ๋ฉ๋๋ค."
2. ์ง์
๊ธฐ์ค/์์ ๊ธฐ์ค
- ์ง์
๊ธฐ์ค; ์๊ทธ๋์ ๋ฐ๋ฆ
๋๋ค.
- ์์ ๊ธฐ์ค;
๊ณ ์ ์์ ๊ฐ ์ด์ฉ : ์๊ทธ๋ ๋ฐ์์ผ๋ก๋ถํฐ 1% ๊ณ ์ ์์ ๊ฐ ๊ตฌ๊ฐ์ ์ค์ ํฉ๋๋ค.(%๋ ๊ฐ๋ณ๋ก ์ค์ )
์บ๋ค์์ ๊ฐ ์ด์ฉ : ์๊ทธ๋ ๋ฐ์๋ด์ ์ ์ ์ด๋ ๊ณ ์ ์ด ๋ฌด๋์ง๋ฉด ์์ ์ ์ค์ ํฉ๋๋ค.
ํ๋ฆ์์ ๊ฐ ์ด์ฉ : ํ๋์ ํ๋ฆ์ ๊ณ ๋ คํ์ฌ ์์ ์ ์ค์ ํฉ๋๋ค.
3. ์ฐธ๊ณ
แแ
ฑแแ
กแแ
ก แแ
ขแ
แ
ตแแ
ณแซ แแ
ฉแแ
ณแซ แแ
ฅแ
แ
ข แแ
งแฏแแ
ฅแผแแ
ณแซ แแ
ฅแซแแ
ฅแจแแ
ณแ
แ
ฉ แแ
ฑแแ
กแแ
ด แแ
ขแจแแ
ตแทแแ
ตแธแแ
ตแแ
ก.
์งํ๊ฐ ๋์์ด ๋์๋ค๋ฉด ์์ ๋ถํ๋๋ฆฝ๋๋ค. ๋ค์ ์งํ ๊ฐ๋ฐ์ ๋์์ด ๋ฉ๋๋ค.
4. แแ
กแแ
ญแผแแ
กแผแแ
ฅแธ
์ฆ๊ฒจ์ฐพ๊ธฐ์ ์ธ๋์ผ์ดํฐ ๋ฃ๊ธฐ๋ฅผ ๋๋ฆ
๋๋ค. ์ฐจํธํ๋ฉด ์๋จ์ ์งํ๋ฅผ ๋๋ฌ์ ์ผ์ชฝํญ์ ๋ณด๋ฉด
์งํ๊ฐ ์ถ๊ฐ๋์ด ์์ต๋๋ค. ๋๋ฌ์ ์ฌ์ฉํฉ๋๋ค. ๋๊ตฌ๋ ์ฌ์ฉํ ์ ์์ต๋๋ค.
Bollinger Bands Strategy with Intraday Intensity IndexFor Educational Purposes. Results can differ on different markets and can fail at any time. Profit is not guaranteed.
This only works in a few markets and in certain situations. Changing the settings can give better or worse results for other markets.
This is a mean reversion strategy based on Bollinger Bands and the Intraday Intensity Index (a volume indicator). John Bollinger mentions that the Intraday Intensity Index can be used with Bollinger Bands and is one of the top indicators he recommends in his book. It seems he prefers it over the other volume indicators that he compares to for some reason. III looks a lot like Chaikin Money Flow but without the denominator in that calculation. On the default settings of the BBs, the III helps give off better entry signals. John Bollinger however is vague on how to use the BBs and it's hard to say if one should enter when it is below/above the bands or when the price crosses them. I find that with many indicators and strategies it's best to wait for a confirmation of some sort, in this case by waiting for some crossover of a band. Like most mean reversion strategies, the exit is very loose if using BBs alone. Usually the plan to exit is when the price finally reverts back to the mean or in this case the middle band. This can potentially lead to huge drawdowns and/or losses. Mean reversion strategies can have high win/loss ratios but can still end up unprofitable because of the huge losses that can occur. These drawdowns/losses that mean reversion strategies suffer from can potentially eat away at a large chunk of all that was previously made or perhaps up to all of it in the worst cases, can occur weeks or perhaps up to months after being profitable trading such a strategy, and will take a while and several trades to make it all back or keep a profitable track record. It is important to have a stop loss, trailing stop, or some sort of stop plan with these types of strategies. For this one, in addition to exiting the trade when price reverts to the middle band, I included a time-based stop plan that exits with a gain or with a loss to avoid potentially large losses, and to exit after only a few periods after taking the trade if in profit instead of waiting for the price to revert back to the mean.
AltS Swing [Backtester]
PLEASE READ THIS DESCRIPTION TO SAVE TIME AND UNDERSTAND WHAT THIS INDICATOR DOES
This is the backtesting version for this script
In this back tested version I have shown it to be used on regular candles with realistic calculations in regards to positions sizes, slippage, fees and more
Kind Regards
This is a official version of AltSignals Long/Short Reverse Indicator
Description:
This indicator uses various indicators in combination with each other, some of the key ones to mention is Hulls, EMA , MA. Along with that it uses EMA crossovers to get the precise entries and exits.
The recommended time frames with this indictor are shorter ones, for example 5m,10m,15m work well, along with that I have found that some of the more unique time frames also work well such as 20m,45m,2hr and so on.
This indicator is not super advanced but it's still very powerful, with only 130 lines of code.
This indicator works on every chart, time, and candle type but you must play with the settings to find what is best, the same setting will not work on every pair etc.
With AltSignals Swing Indicator it trades one way, that means it gives 3 pieces of information. BUY/TakeProfit/StopLoss.
Unlike most indicators which Buy and Sell both ways this one focuses on one direction of trading so please take into account when using this.
I have added in a reverse strategy which basically shows the opposite values of of the buy, so if you select the box in the settings and un-tick it, then it will show opposite directions so sells only.
This feature is very useful especially in general bear markets when buying is difficult.
I have also added in the option for no stop losses to be used, if you set the stop loss value = 100 then it will show no stop losses.
I suggest a stop loss somewhere in the region of 1-2-3%, please note that you can use decimal stop losses too so for example 0.1 or 0.5.
This indicator is NOT a once size fits all, every chart is different, time frame and candles also, so i would suggest spending some time going through and playing with the channel length settings, which will change the EMA numbers.
Using this along with the back script to find the ideal settings is the best way to use this script, once you have done that make sure to save those values somewhere.
Its important to remember that the Regular script and the back testing script values should be the same for them to match up on the chart, so the channel lengths, stop losses and so on values should be the same.
Side note
This is not financial advice.
We will continue making updates as time goes on.
If you would like to try this script for free please visit our website or message us on Tradingview live chat.
AltS Swing [Backtester]
PLEASE READ THIS DESCRIPTION TO SAVE TIME AND UNDERSTAND WHAT THIS INDICATOR DOES
This is the backtesting version for this script
In this back tested version I have shown it to be used on regular candles with realistic calculations in regards to positions sizes, slippage, fees and more
Kind Regards
This is a official version of AltSignals Long/Short Reverse Indicator
Description:
This indicator uses various indicators in combination with each other, some of the key ones to mention is Hulls, EMA , MA. Along with that it uses EMA crossovers to get the precise entries and exits.
The recommended time frames with this indictor are shorter ones, for example 5m,10m,15m work well, along with that I have found that some of the more unique time frames also work well such as 20m,45m,2hr and so on.
This indicator is not super advanced but it's still very powerful, with only 130 lines of code.
This indicator works on every chart, time, and candle type but you must play with the settings to find what is best, the same setting will not work on every pair etc.
With AltSignals Swing Indicator it trades one way, that means it gives 3 pieces of information. BUY/TakeProfit/StopLoss.
Unlike most indicators which Buy and Sell both ways this one focuses on one direction of trading so please take into account when using this.
I have added in a reverse strategy which basically shows the opposite values of of the buy, so if you select the box in the settings and un-tick it, then it will show opposite directions so sells only.
This feature is very useful especially in general bear markets when buying is difficult.
I have also added in the option for no stop losses to be used, if you set the stop loss value = 100 then it will show no stop losses.
I suggest a stop loss somewhere in the region of 1-2-3%, please note that you can use decimal stop losses too so for example 0.1 or 0.5.
This indicator is NOT a once size fits all, every chart is different, time frame and candles also, so i would suggest spending some time going through and playing with the channel length settings, which will change the EMA numbers.
Using this along with the back script to find the ideal settings is the best way to use this script, once you have done that make sure to save those values somewhere.
Its important to remember that the Regular script and the back testing script values should be the same for them to match up on the chart, so the channel lengths, stop losses and so on values should be the same.
Side note
This is not financial advice.
We will continue making updates as time goes on.
If you would like to try this script for free please visit our website or message us on Tradingview live chat.
AltS Swing (INV)
PLEASE READ THIS DESCRIPTION TO SAVE TIME AND UNDERSTAND WHAT THIS INDICATOR DOES
This is a official version of AltSignals Long/Short Reverse Indicator
Description:
This indicator uses various indicators in combination with each other, some of the key ones to mention is Hulls, EMA , MA. Along with that it uses EMA crossovers to get the precise entries and exits.
The recommended time frames with this indictor are shorter ones, for example 5m,10m,15m work well, along with that I have found that some of the more unique time frames also work well such as 20m,45m,2hr and so on.
This indicator is not super advanced but it's still very powerful, with only 130 lines of code.
This indicator works on every chart, time, and candle type but you must play with the settings to find what is best, the same setting will not work on every pair etc.
With AltSignals Swing Indicator it trades one way, that means it gives 3 pieces of information. BUY/TakeProfit/StopLoss.
Unlike most indicators which Buy and Sell both ways this one focuses on one direction of trading so please take into account when using this.
I have added in a reverse strategy which basically shows the opposite values of of the buy, so if you select the box in the settings and un-tick it, then it will show opposite directions so sells only.
This feature is very useful especially in general bear markets when buying is difficult.
I have also added in the option for no stop losses to be used, if you set the stop loss value = 100 then it will show no stop losses.
I suggest a stop loss somewhere in the region of 1-2-3%, please note that you can use decimal stop losses too so for example 0.1 or 0.5.
This indicator is NOT a once size fits all, every chart is different, time frame and candles also, so i would suggest spending some time going through and playing with the channel length settings, which will change the EMA numbers.
Using this along with the back script to find the ideal settings is the best way to use this script, once you have done that make sure to save those values somewhere.
Its important to remember that the Regular script and the back testing script values should be the same for them to match up on the chart, so the channel lengths, stop losses and so on values should be the same.
Side note
This is not financial advice.
We will continue making updates as time goes on.
If you would like to try this script for free please visit our website or message us on Tradingview live chat.
AltS Swing
PLEASE READ THIS DESCRIPTION TO SAVE TIME AND UNDERSTAND WHAT THIS INDICATOR DOES
This is a official version of AltSignals Long/Short Reverse Indicator
Description:
This indicator uses various indicators in combination with each other, some of the key ones to mention is Hulls, EMA, MA. Along with that it uses EMA crossovers to get the precise entries and exits.
The recommended time frames with this indictor are shorter ones, for example 5m,10m,15m work well, along with that I have found that some of the more unique time frames also work well such as 20m,45m,2hr and so on.
This indicator is not super advanced but it's still very powerful, with only 130 lines of code.
With AltSignals Swing Indicator it trades one way, that means it gives 3 pieces of information. BUY/TakeProfit/StopLoss.
Unlike most indicators which Buy and Sell both ways this one focuses on one direction of trading so please take into account when using this.
I have added in a reverse strategy which basically shows the opposite values of of the buy, so if you select the box in the settings and un-tick it, then it will show opposite directions so sells only.
This feature is very useful especially in general bear markets when buying is difficult.
I have also added in the option for no stop losses to be used, if you set the stop loss value = 100 then it will show no stop losses.
I suggest a stop loss somewhere in the region of 1-2-3%, please note that you can use decimal stop losses too so for example 0.1 or 0.5.
This indicator is NOT a once size fits all, every chart is different, time frame and candles also, so i would suggest spending some time going through and playing with the channel length settings, which will change the EMA numbers.
Using this along with the back script to find the ideal settings is the best way to use this script, once you have done that make sure to save those values somewhere.
Its important to remember that the Regular script and the back testing script values should be the same for them to match up on the chart, so the channel lengths, stop losses and so on values should be the same.
Side note
This is not financial advice.
We will continue making updates as time goes on.
If you would like to try this script for free please visit our website or message us on Tradingview live chat.
Full Range Trading Strategy with DCA - Crypto, Forex, Stocks
Introduction
This is a Pine 4 range trading strategy. It has a twin study with several alerts. The design intent is to produce a commercial grade signal generator that can be adapted to any symbol and interval. Ideally, the script is reliable enough to be the basis of an automated trading system web-hooked to a server with API access to crypto, forex and stock brokerages. The strategy can be run in three different modes: long, short and bidirectional.
As a range trading strategy, the behavior of the script is to buy on weakness and sell on strength. As such trade orders are placed in a counter direction to price pressure. What you will see on the chart is a short position on peaks and a long position on valleys. Just to be clear, the range as well as trends are merely illusions as the chart only receives prices. However, this script attempts to calculate pivot points from the price stream. Rising pivots are shorts and falling pivots are longs. I refer to pivots as a vertex in this script which adds structural components to the chart formation. When trading in โPing Pongโ mode long and short positions are intermingled continuously as long as there exists a detectable vertex. Unfortunately, this can work against your backtest profitability on long duration trends where prices continue in a single direction without pullback. I have designed various features in the script to compensate for this event. A well configured script should perform in a range bound market and minimize losses in a trend. I also have a trend following version of this script for those not interested in trading the range. Please be aware these are two types of traders. You should know who you are.
This script employs a DCA feature which enables users to experiment with loss recovery techniques. This is an advanced feature which can increase the order size on new trades in response to stopped out or winning streak trades. The script keeps track of debt incurred from losing trades. When the debt is recovered the order size returns to the base amount specified in the TV properties tab. The inputs for this feature include a limiter to prevent your account from depleting capital during runaway markets. This implementation of DCA does not use pyramid levels. Only the order size on subsequent new trades are affected. Pyramids on the other hand increase the size of open positions. If you are interested in seeing pyramids in action please see the trend version of this script which features both DCA and pyramids. While DCA is a popular feature in crypto trading, it can make you a โbagโ holder if your not careful. In other markets, especially margin trading, youโll need a well funded account and much trading experience to manage this feature safely.
Consecutive loss limit can be set to report a breach of the threshold value. Every stop hit beyond this limit will be reported on a version 4 label above the bar where the stop is hit. Use the location of the labels along with the summary report tally to improve the adaptability of system. Donโt simply fit the chart. A good trading system should adapt to ever changing market conditions. On the study version the consecutive loss limit can be used to halt live trading on the broker side (managed manually).
Design
This script uses twelve indicators on a single time frame. The original trading algorithms are a port from a much larger program on another trading platform. Iโve converted some of the statistical functions to use standard indicators available on TradingView. The setups make heavy use of the Hull Moving Average in conjunction with EMAs that form the Bill Williams Alligator as described in his book โNew Trading Dimensionsโ Chapter 3. Lag between the Hull and the EMAs form the basis of the entry and exit points. The vertices are calculated using one of five featured indicators. Each indicator is actually a composite of calculations which produce a distinct mean. This mathematical distinction enables the script to be useful on various instruments which belong to entirely different markets. In other words, at least one of these indicators should be able generate pivots on an arbitrarily selected instrument. Try each one to find the best fit.
The entire script is around 1800 lines of Pine code which is the maximum incidental size given the TradingView limits: local scopes, run-time duration and compile time. Iโve been working on this script for nearly two years and have tested it on various instruments stocks, forex and crypto. It performs well on higher liquidity markets that have at least a year of historical data. Although the script can be implemented on any interval, it has been optimized for small time frames down to 5 minutes. The 10 minute BTC/USD produces around 500 trades in 2 ยฝ months. The 1 hour BTC/USD produces around 1300 trades in 1 ยฝ years. Originally, this script contained both range trading and trend following logic but had to be broken into separate scripts due to the aforementioned limitations.
Inputs to the script use cone centric measurements in effort to avoid exposing adjustments to the various internal indicators. The goal was to keep the inputs relevant to the actual trade entry and exit locations as opposed to a series of MA input values and the like. As a result the strategy exposes over 50 inputs grouped into long or short sections. Inputs are available for the usual minimum profit and stop-loss as well as safeguards, trade frequency, DCA, modes, presets, reports and lots of calibrations. The inputs are numerous, Iโm aware. Unfortunately, at this time, TradingView does not offer any other method to get data in the script. The usual initialization files such as cnf, cfg, ini, json and xml files are currently unsupported.
Example configurations for various instruments along with a detailed PDF user manual is available.
Indicator Repainting And Anomalies
Indicator repainting is an industry wide problem which mainly occurs when you mix backtest data with real-time data. It doesn't matter which platform you use some form of this condition will manifest itself on your chart over time. The critical aspect being whether live trades on your brokerโs account continue to match your TradingView study.
Tackling this repainting issue has been a major project goal of this script. Based on my experience with Pine, most of the problems stem from TradingViewโs implementation of multiple interval access. Whereas most platform provide a separate bar series for each interval requested, the Pine language interleaves higher time frames with the primary chart interval. The problem is exacerbated by allowing a look-ahead parameter to the Security function. The goal of my repaint prevention is simply to ensure that my signal trading bias remains consistent between the strategy, study and broker. That being said this is what Iโve done address this issue in this script:
1. This script uses only 1 time frame. The chart interval.
2. Every entry and exit condition is evaluated on closed bars only.
3. No security functions are called to avoid a look-ahead possibility.
4. Every contributing factor specified in the TradingView wiki regarding this issue has been addressed.
5. Iโve run a 10 minute chart live for a week and compared it to the same chart periodically reloaded. The two charts were highly correlated with no instances of completely opposite real-time signals.
The study does indeed bring up the TV warning dialog. The only reason for this is because the script uses an EMA indicator which according to TradingView is due to โpeculiarities of the algorithmโ.
One issue that comes up when comparing the strategy with the study is that the strategy trades show on the chart one bar later than the study. This problem is due to the fact that โstrategy.entry()โ and โstrategy_exit()โ do not execute on the same bar called. The study, on the other hand, has no such limitation since there are no position routines.
Please be aware that the data source matters. Cryptocurrency has no central tick repository so each exchange supplies TradingView its feed. Even though it is the same symbol the quality of the data and subsequently the bars that are supplied to the chart varies with the exchange. This script will absolutely produce different results on different data feeds of the same symbol. Be sure to backtest this script on the same data you intend to receive alerts for. Any example settings I share with you will always have the exchange name used to generate the test results.
Usage
The following steps provide a very brief set of instructions that will get you started but will most certainly not produce the best backtest. A trading system that you are willing to risk your hard earned capital will require a well crafted configuration that involves time, expertise and clearly defined goals. As previously mentioned, I have several example configs that I use for my own trading that I can share with you along with a PDF which describes each input in detail. To get hands on experience in setting up your own symbol from scratch please follow the steps below.
The input dialog box contains over 50 inputs separated into five sections. Each section is identified as such with a makeshift separator input. There are three main areas that must to be configured: long side, short side and settings that apply to both. The rest of the inputs apply to DCA, reporting and calibrations. The following steps address these three main areas only. You will need to get your backtest in the black before moving on to the more advanced features.
Step 1. Setup the Base currency and order size in the properties tab.
Step 2. Select the calculation presets in the Instrument Type field.
Step 3. Select โNo Tradeโ in the Trading Mode field.
Step 4. Select the Histogram indicator from Section 2. You will be experimenting with different ones so it doesnโt matter which one you try first.
Step 5. Turn on Show Markers in Section 2.
Step 6. Go to the chart and checkout where the markers show up. Blue is up and red is down. Long trades show up along the red markers and short trades on the blue.
Step 7. Make adjustments to โBase To Vertexโ and โVertex To Baseโ net change and roc in Section 3. Use these fields to move the markers to where you want trades to be.
Step 8. Try a different indicator from Section 2 and repeat Step 7 until you find the best match for this instrument on this interval. This step is complete when the Vertex settings and indicator combination produce the most favorable results.
Step 9. Go to Section 3 and enable โApply Red Base To Base Marginโ.
Step 10. Go to Section 4 and enable โApply Blue Base To Base Marginโ.
Step 11. Go to Section 2 and adjust โMinimum Base To Base Blueโ and โMinimum Base To Base Redโ. Observe the chart and note where the markers move relative to each other. Markers further apart will produce less trades but will reduce cutoffs in โPing Pongโ mode.
Step 12. Return to Section 3 and 4 and turn off โBase To Base Marginโ which was enabled in steps 9 and 10.
Step 13. Turn off Show Markers in Section 2.
Step 14. Put in your Minimum Profit and Stop Loss in the first section. This is in pips or currency basis points (chart right side scale). Percentage is not currently supported. This is a fixed value minimum profit and stop loss. Also note that the profit is taken as a conditional exit on a market order not a fixed limit. The actual profit taken will almost always be greater than the amount specified. The stop loss, on the other hand, is indeed a hard number which is executed by the TradingView broker simulator when the threshold is breached. On the study version, the stop is executed at the close of the bar.
Step 15. Return to step 3 and select a Trading Mode (Long, Short, BiDir, Ping Pong). If you are planning to trade bidirectionally its best to configure long first then short. Combine them with โBiDirโ or โPing Pongโ after setting up both sides of the trade individually. The difference between โBiDirโ and โPing Pongโ is that โPing Pongโ uses position reversal and can cut off opposing trades less than the specified minimum profit. As a result โPing Pongโ mode produces the greatest number of trades.
Step 16. Take a look at the chart. Trades should be showing along the markers plotted earlier.
Step 17. Make adjustments to the Vertex fields in Section 2 until the TradingView performance report is showing a profit. This includes the โMinimum Base To Baseโ fields. If a profit cannot be achieved move on to Step 18.
Step 18. Improve the backtest profitability by adjusting the โLong Entry Net Changeโ and โLong Entry ROCโ in Section 3.
Step 19. Improve the backtest profitability by adjusting the โShort Entry Net Changeโ and โShort Entry ROCโ in Section 4.
Step 20. Improve the backtest profitability by adjusting the โSparse Long Deltaโ in Section 3.
Step 21. Improve the backtest profitability by adjusting the โChase Long Deltaโ in Section 3.
Step 22. Improve the backtest profitability by adjusting the โLong Adherence Deltaโ in Section 3. This field requires the โAdhere to Rising Trendโ checkbox to be enabled.
Step 23. Try each checkbox in Section 3 and see if it improves the backtest profitability. The โCaution Lackluster Longsโ checkbox only works when โLong Caution Modeโ is enabled.
Step 24. Improve the backtest profitability by adjusting the โSparse Short Deltaโ in Section 4.
Step 25. Improve the backtest profitability by adjusting the โChase Short Deltaโ in Section 4.
Step 26. Improve the backtest profitability by adjusting the โShort Adherence Deltaโ in Section 4. This field requires the โAdhere to Falling Trendโ checkbox to be enabled.
Step 27. Try each checkbox in Section 4 and see if it improves the backtest profitability. The โCaution Lackluster Shortsโ checkbox only works when โShort Caution Modeโ is enabled.
Step 28. Enable the reporting conditions in Section 5. Look for long runs of consecutive losses or high debt sequences. These are indications that your trading system cannot withstand sudden changes in market sentiment.
Step 29. Examine the chart and see that trades are being placed in accordance with your desired trading goals. This is an important step. If your desired model requires multiple trades per day then you should be seeing hundreds of trades on the chart. Alternatively, you may be looking to trade fewer steep peaks and deep valleys in which case you should see trades at major turning points. Donโt simply settle for what the backtest serves you. Work your configuration until the system aligns with your desired model. Try changing indicators and even intervals if you cannot reach your simulation goals. Generally speaking, the histogram and Candle indicators produce the most trades. The Macro indicator captures the tallest peaks and valleys.
Step 30. Apply the backtest settings to the study version and perform forward testing.
This script is open for beta testing. After successful beta test it will become a commercial application available by subscription only. Iโve invested quite a lot of time and effort into making this the best possible signal generator for all of the instruments I intend to trade. I certainly welcome any suggestions for improvements. Thank you all in advance.
JackBot Scalper v6Jackbot Scalper v6 Update
In Version 6, Jackbot has improved performance on higher time frames with close to 85% success rate on 1-hour times frames and 70% success rate on 15-minute time frames.
Who
I am Jack Donaghy, a crypto trader and wealthโ strategist at an international asset management firm. I have traded billions in assets for clients and have grown โโa portfolio of personal assets by nearly 2200% within the last 1.5 years from trading. I originally invested in cryptocurrencies in Novemberโโ of 2016 and have been catching waves ever since. This bot is for those interested in scalping methods.
What
Jackbot Pro Scalper is a scalping study for Bitcoin that operates on small timeframes. It has a 60-70% success rate and operates with the goal of maximizing โgains while minimizing losses. This bot works well with leveraged strategies as it pursues both long and short positions.โ While I primarily use the bot on BitMex, I have seen good success on Bitfinex with various USDT pairs including VEN and ETH.
When
With v6, the best results have come from 13, 15, and 17-minute charts with incredible success found on the 1-hour charts.
How
The bot works by 1. Defining its entry point. 2. Defining a take profit 3. Defining a stop loss. The magic of the bot is that it will not close a trade at the take profit, if volume and price are increasing, it will hold the exit until another indicator determines a reversal of the trend. More than that would ruin the logic so you will just have to see for yourself.
To Trade
Large Spikes = Entries (Green = Long, Red = Short)
Small Spikes = Take Profit (Green = Long Exit, Red = Short Exit)
Medium Spikes = Stop Loss (Purple = Long SL, Yellow = Short SL)
Previous Results
Backtestedโ, Jackbot v6 shows that with 1 Bitcoin (unleveraged) you can make about 12K in a 1.5 month period. My personal experience was trading a test amount of Bitcoin on a particularly good run at 25x leverage using 25% of a test portfolio It went from 0.015 Bitcoin to 0.091 within 10 days. See ibb.co (This test was from V5.4 which V6 has improved upon.)
Disclaimer: This strategy is by no means perfect and not every trade will be a winner. It is a tool in your belt, not a perfect 100% trader. Previously, results show with a 25x leveraged position, the losses are ~20% before it will cut off the trade, however, the gains can be 40%+ (As the bot continues to run in certain conditions, it will often pick up major moves and hold them for longer.) It can have bad runs and a slew of poor entries, especially in tight volatile ranges.
PLEASE NOTE: This strategy can struggle with chop following major moves, if you are manually entering, consider other market conditions before entry if the price is in a tight range.
Cost
Jackbot will be offered for 0.1 Bitcoin and will be limited to the first 100 people who apply.
JackBot Scalper V5.4 Who
I am Jack Donaghy, a crypto trader and wealthโ strategist at an international asset management firm. I have traded billions in assets for clients and have grown โโa portfolio of personal assets by nearly 2200% within the last 1.5 years from trading. I originally invested in cryptocurrencies in Novemberโโ of 2016 and been catching waves ever since. This bot is for those interested in scalping methods.
What
Jackbot Pro Scalper is scalping study for bitcoin that operates on small timeframes. It has a 60-70% success rate and operates with the goal of maximizing โgains while minimizing losses. This bot works well with leveraged strategies as pursues both long and short positions.โ While I primarily use it on BitMex, I have seen good success on Bitfinex.
When
5-30 minute charts, longer time frames can work but have not been successful enough to warrantโ publishing. Best results have come from 13 and 17-minute timeframes.
How
The bot works by 1. Defining its entry point. 2. Defining a take profit 3. Defining a stop loss. The magic of the bot is that it will not close a trade at the take profit, if volume and price are increasing, it will hold the exit until another indicator determines a reversal of the trend. More than that would ruin the logic so you will just have to see for yourself.
To Trade
Large Spikes = Entries (Green = Long, Red = Short)
Small Spikes = Take Profit (Green = Long Exit, Red = Short Exit)
Medium Spikes = Stop Loss (Purple = Long SL, Yellow = Short SL)
Previous Results
Backtestedโ, this bot shows that with 1 Bitcoin (unleveraged) you can make about 10K in a 1.5 month period. My personal experience was trading a test amount of bitcoin on a particularly good run at 25x leverage using 25% of a test portfolio It went from 0.015 bitcoin to 0.091 within 10 days. See ibb.co
Disclaimer: This strategy is by no means perfect and not every trade will be a winner. Previously results show with a 25x leveraged position, the losses are ~20% before it will cut off the trade, however, the gains can be 40%+ (As the bot continues to run in certain conditions, it will often pick up major moves and hold them for longer.) It can have bad runs and a slew of poor entries, especially in tight volatile ranges.
PLEASE NOTE: This strategy can struggle with chop following major moves, if you are manually entering, consider other market conditions before entry if the price is in a tight range.
Reversal WaveThis is the type of quantitative system that can get you hated on investment forums, now that the Random Walk Theory is back in fashion. The strategy has simple price action rules, zero over-optimization, and is validated by a historical record of nearly a century on both Gold and the S&P 500 index.
Recommended Markets
SPX (Weekly, Monthly)
SPY (Monthly)
Tesla (Weekly)
XAUUSD (Weekly, Monthly)
NVDA (Weekly, Monthly)
Meta (Weekly, Monthly)
GOOG (Weekly, Monthly)
MSFT (Weekly, Monthly)
AAPL (Weekly, Monthly)
System Rules and Parameters
Total capital: $10,000
We will use 10% of the total capital per trade
Commissions will be 0.1% per trade
Condition 1: Previous Bearish Candle (isPrevBearish) (the closing price was lower than the opening price).
Condition 2: Midpoint of the Body The script calculates the exact midpoint of the body of that previous bearish candle.
โข Formula: (Previous Open + Previous Close) / 2.
Condition 3: 50% Recovery (longCondition) The current candle must be bullish (green) and, most importantly, its closing price must be above the midpoint calculated in the previous step.
Once these parameters are met, the system executes a long entry and calculates the exit parameters:
Stop Loss (SL): Placed at the low of the candle that generated the entry signal.
Take Profit (TP): Calculated by projecting the risk distance upward.
โข Calculation: Entry Price + (Risk * 1).
Risk:Reward Ratio of 1:1.
About the Profit Factor
In my experience, TradingView calculates profits and losses based on the percentage of movement, which can cause returns to not match expectations. This doesnโt significantly affect trending systems, but it can impact systems with a high win rate and a well-defined risk-reward ratio. It only takes one large entry candle that triggers the SL to translate into a major drop in performance.
For example, you might see a system with a 60% win rate and a 1:1 risk-reward ratio generating losses, even though commissions are under control relative to the number of trades.
My recommendation is to manually calculate the performance of systems with a well-defined risk-reward ratio, assuming you will trade using a fixed amount per trade and limit losses to a fixed percentage.
Remember that, even if candles are larger or smaller in size, we can maintain a fixed loss percentage by using leverage (in cases of low volatility) or reducing the capital at risk (when volatility is high).
Implementing leverage or capital reduction based on volatility is something I havenโt been able to incorporate into the code, but it would undoubtedly improve the systemโs performance dramatically, as it would fix a consistent loss percentage per trade, preventing losses from fluctuating with volatility swings.
For example, we can maintain a fixed loss percentage when volatility is low by using the following formula:
Leverage = % of SL youโre willing to risk / % volatility from entry point to exit or SL
And if volatility is high and exceeds the fixed percentage we want to expose per trade (if SL is hit), we could reduce the position size.
For example, imagine we only want to risk 15% per SL on Tesla, where volatility is high and would cause a 23.57% loss. In this case, we subtract 23.57% from 15% (the loss percentage weโre willing to accept per trade), then subtract the result from our usual position size.
23.57% - 15% = 8.57%
Suppose I use $200 per trade.
To calculate 8.57% of $200, simply multiply 200 by 8.57/100. This simple calculation shows that 8.57% equals about $17.14 of the $200. Then subtract that value from $200:
$200 - $17.14 = $182.86
In summary, if we reduced the position size to $182.86 (from the usual $200, where weโre willing to lose 15%), no matter whether Tesla moves up or down 23.57%, we would still only gain or lose 15% of the $200, thus respecting our risk management.
Final Notes
The code is extremely simple, and every step of its development is detailed within it.
If you liked this strategy, which complements very well with others Iโve already published, stay tuned. Best regards.
Dan Zanger Master Trading System [Premium]
Dan Zanger Master Trading System
Overview
This indicator implements the legendary trading methodology of Dan Zanger, who famously turned $10,775 into over $42 million using pattern recognition and volume analysis. The system combines professional-grade pattern detection, volume analysis, and risk management into a comprehensive trading solution.
----------------------------------------------------------------------------------
Core Features
1. Zanger Volume Ratio (ZVR)
The cornerstone of Zanger's methodologyโvolume confirms everything.
- Dynamic volume classification: Extreme (โฅ2x), High (โฅ1.65x), Moderate (โฅ1.25x), Low
- Bar coloring by volume intensity for instant visual feedback
- Volume dry-up detection: Identifies when volume contracts to <50% of averageโZanger's key signal that precedes explosive breakouts
2. Pattern Detection Engine
Automatically detects Zanger's favorite chart patterns:
๐ฉ Bull Flag - 15%+ pole with orderly 20-50% retracement, downward-sloping flag, declining volume
โ Cup & Handle - U-shaped recovery (12-35% depth), handle in upper half, no undercut of cup low
โณ Ascending Triangle - Flat resistance with higher lows, converging range, multiple resistance touches
โฝ Descending Triangle - Flat support with lower highs (bearish warning)
โ Symmetrical Triangle - Converging trendlines with contracting volume
โฌ Flat Base - Tight consolidation (<15% range), price near highs, volume drying up
โ Channel - Up/Down/Horizontal channels with parallel bounds
3. Trend Analysis
Four Moving Averages: 10/20/50/200-period (selectable: SMA, EMA, WMA, VWMA)
Trend Score (0-100): Quantifies trend strength based on MA positioning and direction
Golden Cross/Death Cross detection with visual markers
4. Zanger-Style Breakout Detection
Breakouts require ALL of these conditions:
- โ
Price exceeds resistance with conviction
- โ
Volume confirms (โฅ1.5x average)
- โ
Strong close (upper 25% of bar range)
- โ
Above rising 50-day MA
- โ
Preceded by volume dry-up (ideal)
5. "Never Chase" Protection
Zanger's #1 rule implemented: Warns you when price is >5% above breakout level. This prevents costly chasing entries.
6. Risk Management System
Built-in position management following Zanger's rules:
Stop Loss: Default 7% (Zanger uses 5-7%)
Profit Target 1: 15% (take partial profits)
Profit Target 2: 30% (let winners run)
Trailing Stop: Activates after PT1, trails at 10% from highs
Visual stop loss and profit target lines on chart
------------------------------------------------------------------------------------
Dashboard
Real-time information panel showing:
Current ZVR value and classification
Volume dry-up status
Trend score and bias
MA positioning
Active pattern detection
Current signal status
Position P&L and stop levels
---------------------------------------------------------------------------------
Alert System
15+ configurable alerts including:
Pattern breakouts (Bull Flag, Cup & Handle, Triangles, Flat Base)
Extreme volume detection
Volume dry-up alerts
Stop loss/trailing stop triggers
Profit target notifications
Chasing warnings
--------------------------------------------------------------------------------
Settings
Fully customizable parameters:
ZVR thresholds and lookback
MA types and lengths
Pattern detection toggles
Breakout sensitivity
Stop loss and profit target percentages
Visual styling and colors
---------------------------------------------------------------------------------
Zanger's Key Principles Implemented
Volume is King โ Every breakout requires volume confirmation
Never Chase โ Built-in warning when >5% above breakout
Cut Losses Quickly โ 5-7% stop losses
Let Winners Run โ Trailing stops after first target
Trade with the Trend โ Only buy above rising 50-day MA
Volume Dry-Up โ Best breakouts follow volume contraction
Strong Closes โ Look for closes in upper 25% of bar
----------------------------------------------------------------------------------
Best Practices
Use on daily charts for swing trading (Zanger's primary timeframe)
Works on stocks with adequate volume (avoid illiquid names)
Combine with market analysis (Zanger trades strong markets)
Wait for pullbacks when chasing warning appears
Honor your stops โ capital preservation is priority
-----------------------------------------------------------------------------------
Disclaimer
This indicator is for educational purposes. Past performance does not guarantee future results. Always do your own research and use proper risk management.
Impulse Reactor RSI-SMA Trend Indicator [ApexLegion]Impulse Reactor RSI-SMA Trend Indicator
Introduction and Theoretical Background
Design Rationale
Standard indicators frequently generate binary 'BUY' or 'SELL' signals without accounting for the broader market context. This often results in erratic "Flip-Flop" behavior, where signals are triggered indiscriminately regardless of the prevailing volatility regime.
Impulse Reactor was engineered to address this limitation by unifying two critical requirements: Quantitative Rigor and Execution Flexibility.
The Solution
Composite Analytical Framework This script is not a simple visual overlay of existing indicators. It is an algorithmic synthesis designed to function as a unified decision-making engine. The primary objective was to implement rigorous quantitative analysis (Volatility Normalization, Structural Filtering) directly within an alert-enabled framework. This architecture is designed to process signals through strict, multi-factor validation protocols before generating real-time notifications, allowing users to focus on structurally validated setups without manual monitoring.
How It Works
This is not a simple visual mashup. It utilizes a cross-validation algorithm where the Trend Structure acts as a gatekeeper for Momentum signals:
Logic over Lag: Unlike simple moving average crossovers, this script uses a 15-layer Gradient Ribbon to detect "Laminar Flow." If the ribbon is knotted (Compression), the system mathematically suppresses all signals.
Volatility Normalization: The core calculation adapts to ATR (Average True Range). This means the indicator automatically expands in volatile markets and contracts in quiet ones, maintaining accuracy without constant manual tweaking.
Adaptive Signal Thresholding: It incorporates an 'Anti-Greed' algorithm (Dynamic Thresholding) that automatically adjusts entry criteria based on trend duration. This logic aims to mitigate the risk of entering positions during periods of statistical trend exhaustion.
Why Use It?
Market State Decoding: The gradient Ribbon visualizes the underlying trend phase in real-time.
โฆ Cyan/Blue Flow: Strong Bullish Trend (Laminar Flow).
โฆ Magenta/Pink Flow: Strong Bearish Trend.
โฆ Compressed/Knotted: When the ribbon lines are tightly squeezed or overlapping, it signals Consolidation. The system filters signals here to avoid chop.
Noise Reduction: The goal is not to catch every pivot, but to isolate high-confidence setups. The logic explicitly filters out minor fluctuations to help maintain position alignment with the broader trend.
โ๏ธ Chapter 1: System Architecture
Introduction: Composite Analytical Framework
System Overview
Impulse Reactor serves as a comprehensive technical analysis engine designed to synthesize three distinct market dimensionsโMomentum, Volatility, and Trend Structureโinto a unified decision-making framework. Unlike traditional methods that analyze these metrics in isolation, this system functions as a central processing unit that integrates disparate data streams to construct a coherent model of market behavior.
Operational Objective
The primary objective is to transition from single-dimensional signal generation to a multi-factor assessment model. By fusing data from the Impulse Core (Volatility), Gradient Oscillator (Momentum), and Structural Baseline (Trend), the system aims to filter out stochastic noise and identify high-probability trade setups grounded in quantitative confluence.
Market Microstructure Analysis: Limitations of Conventional Models
Extensive backtesting and quantitative analysis have identified three critical inefficiencies in standard oscillator-based strategies:
โข Bounded Oscillator Limitations (The "Oscillation Trap"): Traditional indicators such as RSI or Stochastics are mathematically constrained between fixed values (0 to 100). In strong trending environments, these metrics often saturate in "overbought" or "oversold" zones. Consequently, traders relying on static thresholds frequently exit structurally valid positions prematurely or initiate counter-trend trades against prevailing momentum, resulting in suboptimal performance.
โข Quantitative Blindness to Quality: Standard moving averages and trend indicators often fail to distinguish the qualitative nature of price movement. They treat low-volume drift and high-velocity expansion identically. This inability to account for "Volatility Quality" leads to delayed responsiveness during critical market events.
โข Fractal Dissonance (Timeframe Disconnect): Financial markets exhibit fractal characteristics where trends on lower timeframes may contradict higher timeframe structures. Manual integration of multi-timeframe analysis increases cognitive load and susceptibility to human error, often resulting in conflicting biases at the point of execution.
Core Design Principles
To mitigate the aforementioned systemic inefficiencies, Impulse Reactor employs a modular architecture governed by three foundational principles:
Principle A:
Volatility Precursor Analysis Market mechanics demonstrate that volatility expansion often functions as a leading indicator for directional price movement. The system is engineered to detect "Volatility Deviation" โ specifically, the divergence between short-term and long-term volatility baselinesโprior to its manifestation in price action. This allows for entry timing aligned with the expansion phase of market volatility.
Principle B:
Momentum Density Visualization The system replaces singular momentum lines with a "Momentum Density" model utilizing a 15-layer Simple Moving Average (SMA) Ribbon.
โข Concept: This visualization represents the aggregate strength and consistency of the trend.
โข Application: A fully aligned and expanded ribbon indicates a robust trend structure ("Laminar Flow") capable of withstanding minor counter-trend noise, whereas a compressed ribbon signals consolidation or structural weakness.
Principle C:
Adaptive Confluence Protocols Signal validity is strictly governed by a multi-dimensional confluence logic. The system suppresses signal generation unless there is synchronized confirmation across all three analytical vectors:
1. Volatility: Confirmed expansion via the Impulse Core.
2. Momentum: Directional alignment via the Hybrid Oscillator.
3. Structure: Trend validation via the Baseline. This strict filtering mechanism significantly reduces false positives in non-trending (choppy) environments while maintaining sensitivity to genuine breakouts.
๐ Chapter 2: Core Modules & Algorithmic Logic
Module A: Impulse Core (Normalized Volatility Deviation)
Operational Logic The Impulse Core functions as a volatility-normalized momentum gauge rather than a standard oscillator. It is designed to identify "Volatility Contraction" (Squeeze) and "Volatility Expansion" phases by quantifying the divergence between short-term and long-term volatility states.
Volatility Z-Score Normalization
The formula implements a custom normalization algorithm. Unlike standard oscillators that rely on absolute price changes, this logic calculates the Z-Score of the Volatility Spread.
โฆ Numerator: (atr_f - atr_s) captures the raw momentum of volatility expansion.
โฆ Denominator: (std_f + 1e-6) standardizes this value against historical variance.
โฆ Result: This allows the indicator scales consistently across assets (e.g., Bitcoin vs. Euro) without manual recalibration.
f_impulse() =>
atr_f = ta.atr(fastLen) // Fast Volatility Baseline
atr_s = ta.atr(slowLen) // Slow Volatility Baseline
std_f = ta.stdev(atr_f, devLen) // Volatility Standard Deviation
(atr_f - atr_s) / (std_f + 1e-6) // Normalized Differential Calculation
Algorithmic Framework
โข Differential Calculation: The system computes the spread between a Fast Volatility Baseline (ATR-10) and a Slow Volatility Baseline (ATR-30).
โข Normalization Protocol: To standardize consistency across diverse asset classes (e.g., Forex vs. Crypto), the raw differential is divided by the standard deviation of the volatility itself over a 30-period lookback.
โข Signal Generation:
โฆ Contraction (Squeeze): When the Fast ATR compresses below the Slow ATR, it registers a potential volatility buildup phase.
โฆ Expansion (Release): A rapid divergence of the Fast ATR above the Slow ATR signals a confirmed volatility expansion, validating the strength of the move.
Module B: Gradient Oscillator (RSI-SMA Hybrid)
Design Rationale To mitigate the "noise" and "false reversal" signals common in single-line oscillators (like standard RSI), this module utilizes a 15-Layer Gradient Ribbon to visualize momentum density and persistence.
Technical Architecture
โข Ribbon Array: The system generates 15 sequential Simple Moving Averages (SMA) applied to a volatility-adjusted RSI source. The length of each layer increases incrementally.
โข State Analysis:
Momentum Alignment (Laminar Flow): When all 15 layers are expanded and parallel, it indicates a robust trend where buying/selling pressure is distributed evenly across multiple timeframes. This state helps filter out premature "overbought/oversold" signals.
โข Consolidation (Compression): When the distance between the fastest layer (Layer 1) and the slowest layer (Layer 15) approaches zero or the layers intersect, the system identifies a "Non-Tradable Zone," preventing entries during choppy market conditions.
// Laminar Flow Validation
f_validate_trend() =>
// Calculate spread between Ribbon layers
ribbon_spread = ta.stdev(ribbon_array, 15)
// Only allow signals if Ribbon is expanded (Laminar Flow)
is_flowing = ribbon_spread > min_expansion_threshold
// If compressed (Knotted), force signal to false
is_flowing ? signal : na
Module C: Adaptive Signal Filtering (Behavioral Bias Mitigation)
This subsystem, operating as an algorithmic "Anti-Greed" Mechanism, addresses the statistical tendency for signal degradation following prolonged trends.
Dynamic Threshold Adjustment
โข Win Streak Detection: The algorithm internally tracks the outcome of closed trade cycles.
โข Sensitivity Multiplier: Upon detecting consecutive successful signals in the same direction, a Penalty_Factor is applied to the entry logic.
โข Operational Impact: This effectively raises the Required_Slope threshold for subsequent signals. For example, after three consecutive bullish signals, the system requires a 30% steeper trend angle to validate a fourth entry. This enforces stricter discipline during extended trends to reduce the probability of entering at the point of trend exhaustion.
Anti-Greed Logic: Dynamic Threshold Calculation
f_adjust_threshold(base_slope, win_streak) =>
// Adds a 10% penalty to the difficulty for every consecutive win
penalty_factor = 0.10
risk_scaler = 1 + (win_streak * penalty_factor)
// Returns the new, harder-to-reach threshold
base_slope * risk_scaler
Module D: Trend Baseline (Triple-Smoothed Structure)
The Trend Baseline serves as the structural filter for all signals. It employs a Triple-Smoothed Hybrid Algorithm designed to balance lag reduction with noise filtration.
Smoothing Stages
1. Volatility Banding: Utilizes a SuperTrend-based calculation to establish the upper and lower boundaries of price action.
2. Weighted Filter: Applies a Weighted Moving Average (WMA) to prioritize recent price data.
3. Exponential Smoothing: A final Exponential Moving Average (EMA) pass is applied to create a seamless baseline curve.
Functionality
This "Heavy" baseline resists minor intraday volatility spikes while remaining responsive to sustained structural shifts. A signal is only considered valid if the price action maintains structural integrity relative to this baseline
๐ฆ Chapter 3: Risk Management & Exit Protocols
Quantitative Risk Management (TP/SL & Trailing)
Foundational Architecture: Volatility-Adjusted Geometry Unlike strategies relying on static nominal values, Impulse Reactor establishes dynamic risk boundaries derived from quantitative volatility metrics. This design aligns trade invalidation levels mathematically with the current market regime.
โข ATR-Based Dynamic Bracketing:
The protocol calculates Stop-Loss and Take-Profit levels by applying Fibonacci coefficients (Default: 0.786 for SL / 1.618 for TP) to the Average True Range (ATR).
โฆ High Volatility Environments: The risk bands automatically expand to accommodate wider variance, preventing premature exits caused by standard market noise.
โฆ Low Volatility Environments: The bands contract to tighten risk parameters, thereby dynamically adjusting the Risk-to-Reward (R:R) geometry.
โข Close-Validation Protocol ("Soft Stop"):
Institutional algorithms frequently execute liquidity sweepsโdriving prices briefly below key support levels to accumulate inventory.
โฆ Mechanism: When the "Soft Stop" feature is enabled, the system filters out intraday volatility spikes. The stop-loss is conditional; execution is triggered only if the candle closes beyond the invalidation threshold.
โฆ Strategic Advantage: This logic distinguishes between momentary price wicks and genuine structural breakdowns, preserving positions during transient volatility.
โข Step-Function Trailing Mechanism:
To protect unrealized PnL while allowing for normal price breathing, a two-phase trailing methodology is employed:
โฆ Phase 1 (Activation): The trailing function remains dormant until the price advances by a pre-defined percentage threshold.
โฆ Phase 2 (Dynamic Floor): Once armed, the stop level creates a moving floor, adjusting relative to price action while maintaining a volatility-based (ATR) buffer to systematically protect unrealized PnL.
โข Algorithmic Exit Protocols (Dynamic Liquidity Analysis)
โฆ Rationale: Inefficiencies of Static Targets Static "Take Profit" levels often result in suboptimal exits. They compel traders to close positions based on arbitrary figures rather than evolving market structure, potentially capping upside during significant trends or retaining positions while the underlying trend structure deteriorates.
โฆ Solution: Structural Integrity Assessment The system utilizes a Dynamic Liquidity Engine to continuously audit the validity of the position. Instead of targeting a specific price point, the algorithm evaluates whether the trend remains statistically robust.
Multi-Factor Exit Logic (The Tri-Vector System)
The Smart Exit protocol executes only when specific algorithmic invalidation criteria are met:
โข 1. Momentum Exhaustion (Confluence Decay): The system monitors a 168-hour rolling average of the Confluence Score. A significant deviation below this historical baseline indicates momentum exhaustion, signaling that the driving force behind the trend has dissipated prior to a price reversal. This enables preemptive exits before a potential drawdown.
โข 2. Statistical Over-Extension (Mean Reversion): Utilizing the core volatility logic, the system identifies instances where price deviates beyond 2.0 standard deviations from the mean. While the trend may be technically bullish, this statistical anomaly suggests a high probability of mean reversion (elastic snap-back), triggering a defensive exit to capitalize on peak valuation.
โข 3. Oscillator Rejection (Immediate Pivot): To manage sudden V-shaped volatility, the system monitors RSI pivots. If a sharp "Pivot High" or divergence is detected, the protocol triggers an immediate "Peak Exit," bypassing standard trend filters to secure liquidity during high-velocity reversals.
๐จ Chapter 4: Visualization Guide
Gradient Oscillator Ribbon
The 15-layer SMA ribbon visualized via plot(r1...r15) represents the "Momentum Density" of the market.
โข Visuals:
โฆ Cyan/Blue Ribbon: Indicates Bullish Momentum.
โฆ Pink/Magenta Ribbon: Indicates Bearish Momentum.
โข Interpretation:
โฆ Laminar Flow: When the ribbon expands widely and flows in parallel, it signifies a robust trend where momentum is distributed evenly across timeframes. This is the ideal state for trend-following.
โฆ Compression (Consolidation): If the ribbon becomes narrow, twisted, or knotted, it indicates a "Non-Tradable Zone" where the market lacks a unified direction. Traders are advised to wait for clarity.
โฆ Over-Extension: If the top layer crosses the Overbought (85) or Oversold (15) lines, it visually warns of potential market overheating.
Trend Baseline
The thick, color-changing line plotted via plot(baseline) represents the Structural Backbone of the market.
โข Visuals: Changes color based on the trend direction (Blue for Bullish, Pink for Bearish).
โข Interpretation:
Structural Filter: Long positions are statistically favored only when price action sustains above this baseline, while short positions are favored below it.
Dynamic Support/Resistance: The baseline acts as a dynamic support level during uptrends and resistance during downtrends.
Entry Signals & Labels
Text labels ("Long Entry", "Short Entry") appear when the system detects high-probability setups grounded in quantitative confluence.
โข Visuals: Labeled signals appear above/below specific candles.
โข Interpretation:
These signals represent moments where Volatility (Expansion), Momentum (Alignment), and Structure (Trend) are synchronized.
Smart Exit: Labels such as "Smart Exit" or "Peak Exit" appear when the system detects momentum exhaustion or structural decay, prompting a defensive exit to preserve capital.
Dynamic TP/SL Boxes
The semi-transparent colored zones drawn via fill() represent the risk management geometry.
โข Visuals: Colored boxes extending from the entry point to the Take Profit (TP) and Stop Loss (SL) levels.
โข Function:
Volatility-Adjusted Geometry: Unlike static price targets, these boxes expand during high volatility (to prevent wicks from stopping you out) and contract during low volatility (to optimize Risk-to-Reward ratios).
SAR + MACD Glow
Small glowing shapes appearing above or below candles.
โข Visuals: Triangle or circle glows near the price bars.
โข Interpretation:
This visual indicates a secondary confirmation where Parabolic SAR and MACD align with the main trend direction. It serves as an additional confluence factor to increase confidence in the trade setup.
Support/Resistance Table
A small table located at the bottom-right of the chart.
โข Function: Automatically identifies and displays recent Pivot Highs (Resistance) and Pivot Lows (Support).
โข Interpretation: These levels can be used as potential targets for Take Profit or invalidation points for manual Stop Loss adjustments.
๐ฅ๏ธ Chapter 5: Dashboard & Operational Guide
Integrated Analytics Panel (Dashboard Overview)
To facilitate rapid decision-making without manual calculation, the system aggregates critical market dimensions into a unified "Heads-Up Display" (HUD). This panel monitors real-time metrics across multiple timeframes and analytical vectors.
A. Intermediate Structure (12H Trend)
โข Function: Anchors the intraday analysis to the broader market structure using a 12-hour rolling window.
โข Interpretation:
โฆ Bullish (> +0.5%): Indicates a positive structural bias. Long setups align with the macro flow.
โฆ Bearish (< -0.5%): Indicates structural weakness. Short setups are statistically favored.
โฆ Neutral: Represents a ranging environment where the Confluence Score becomes the primary weighting factor.
B. Composite Confluence Score (Signal Confidence)
โข Definition: A probability metric derived from the synchronization of Volatility (Impulse Core), Momentum (Ribbon), and Trend (Baseline).
โข Grading Scale:
Strong Buy/Sell (> 7.0 / < 3.0): Indicates full alignment across all three vectors. Represents a "Prime Setup" eligible for standard position sizing.
Buy/Sell (5.0โ7.0 / 3.0โ5.0): Indicates a valid trend but with moderate volatility confirmation.
Neutral: Signals conflicting data (e.g., Bullish Momentum vs. Bearish Structure). Trading is not recommended ("No-Trade Zone").
C. Statistical Deviation Status (Mean Reversion)
โข Logic: Utilizes Bollinger Band deviation principles to quantify how far price has stretched from the statistical mean (20 SMA).
โข Alert States:
Over-Extended (> 2.0 SD): Warning that price is statistically likely to revert to the mean (Elastic Snap-back), even if the trend remains technically valid. New entries are discouraged in this zone.
Normal: Price is within standard distribution limits, suitable for trend-following entries.
D. Volatility Regime Classification
โข Metric: Compares current ATR against a 100-period historical baseline to categorize the market state.
โข Regimes:
Low Volatility (Lvl < 1.0): Market Compression. Often precedes volatility expansion events.
Mid Volatility (Lvl 1.0 - 1.5): Standard operating environment.
High Volatility (Lvl > 1.5): Elevated market stress. Risk parameters should be adjusted (e.g., reduced position size) to account for increased variance.
E. Performance Telemetry
โข Function: Displays the historical reliability of the Trend Baseline for the current asset and timeframe.
โข Operational Threshold: If the displayed Win Rate falls below 40%, it suggests the current market behavior is incoherent (choppy) and does not respect trend logic. In such cases, switching assets or timeframes is recommended.
Operational Protocols & Signal Decoding
Visual Interpretation Standards
โข Laminar Flow (Trade Confirmation): A valid trend is visually confirmed when the 15-layer SMA Ribbon is fully expanded and parallel. This indicates distributed momentum across timeframes.
โข Consolidation (No-Trade): If the ribbon appears twisted, knotted, or compressed, the market lacks a unified directional vector.
โข Baseline Interaction: The Triple-Smoothed Baseline acts as a dynamic support/resistance filter. Long positions remain valid only while price sustains above this structure.
System Calibration (Settings)
โข Adaptive Signal Filtering (Prev. Anti-Greed): Enabled by default. This logic automatically raises the required trend slope threshold following consecutive wins to mitigate behavioral bias.
โข Impulse Sensitivity: Controls the reactivity of the Volatility Core. Higher settings capture faster moves but may introduce more noise.
โ๏ธ Chapter 6: System Configuration & Alert Guide
This section provides a complete breakdown of every adjustable setting within Impulse Reactor to assist you in tailoring the engine to your specific needs.
๐ LANGUAGE SETTINGS (Localization)
โฆ Select Language (Default: English):
Function: Instantly translates all chart labels, dashboard texts into your preferred language.
Supported: English, Korean, Chinese, Spanish
โก IMPULSE CORE SETTINGS (Volatility Engine)
โฆ Deviation Lookback (Default: 30): The period used to calculate the standard deviation of volatility.
Role: Sets the baseline for normalizing momentum. Higher values make the core smoother but slower to react.
โฆ Fast Pulse Length (Default: 10): The short-term ATR period.
Role: Detects rapid volatility expansion.
โฆ Slow Pulse Length (Default: 30): The long-term ATR baseline.
Role: Establishes the background volatility level. The core signal is derived from the divergence between Fast and Slow pulses.
๐ฏ TP/SL SETTINGS (Risk Management)
โฆ SL/TP Fibonacci (Default: 0.786 / 1.618): Selects the Fibonacci ratio used for risk calculation.
โฆ SL/TP Multiplier (Default: 1.5 / 2): Applies a multiplier to the ATR-based bands.
Role: Expands or contracts the Take Profit and Stop Loss boxes. Increase these values for higher volatility assets (like Altcoins) to avoid premature stop-outs.
โฆ ATR Length (Default: 14): The lookback period for calculating the Average True Range used in risk geometry.
โฆ Use Soft Stop (Close Basis):
Role: If enabled, Stop Loss alerts only trigger if a candle closes beyond the invalidation level. This prevents being stopped out by wick manipulations.
๐ RIBBON SETTINGS (Momentum Visualization)
โฆ Show SMA Ribbon: Toggles the visibility of the 15-layer gradient ribbon.
โฆ Ribbon Line Count (Default: 15): The number of SMA lines in the ribbon array.
โฆ Ribbon Start Length (Default: 2) & Step (Default: 1): Defines the spread of the ribbon.
Role: Controls the "thickness" of the momentum density visualization. A wider step creates a broader ribbon, useful for higher timeframes.
๐ DISPLAY OPTIONS
โฆ Show Entry Lines / TP/SL Box / Position Labels / S/R Levels / Dashboard: Toggles individual visual elements on the chart to reduce clutter.
โฆ Show SAR+MACD Glow: Enables the secondary confirmation shapes (triangles/circles) above/below candles.
๐ TREND BASELINE (Structural Filter)
โฆ Supertrend Factor (Default: 12) & ATR Period (Default: 90): Controls the sensitivity of the underlying Supertrend algorithm used for the baseline calculation.
โฆ WMA Length (40) & EMA Length (14): The smoothing periods for the Triple-Smoothed Baseline.
โฆ Min Trend Duration (Default: 10): The minimum number of bars the trend must be established before a signal is considered valid.
๐ง SMART EXIT (Dynamic Liquidity)
โฆ Use Smart Exit: Enables the momentum exhaustion logic.
โฆ Exit Threshold Score (Default: 3): The sensitivity level for triggering a Smart Exit. Lower values trigger earlier exits.
โฆ Average Period (168) & Min Hold Bars (5): Defines the rolling window for momentum decay analysis and the minimum duration a trade must be held before Smart Exit logic activates.
๐ก๏ธ TRAILING STOP (Step)
โฆ Use Trailing Stop: Activates the step-function trailing mechanism.
โฆ Step 1 Activation % (0.5) & Offset % (0.5): The price must move 0.5% in your favor to arm the first trail level, which sets a stop 0.5% behind price.
โฆ Step 2 Activation % (1) & Offset % (0.2): Once price moves 1%, the trail tightens to 0.2%, securing the position.
๐ SAR & MACD SETTINGS (Secondary Confirmation)
โฆ SAR Start/Increment/Max: Standard Parabolic SAR parameters.
โฆ SAR Score Scaling (ATR): Adjusts how much weight the SAR signal has in the overall confluence score.
โฆ MACD Fast/Slow/Signal: Standard MACD parameters used for the "Glow" signals.
๐ ANTI-GREED LOGIC (Behavioral Bias)
โฆ Strict Entry after Win: Enables the negative feedback loop.
โฆ Strict Multiplier (Default: 1.1): Increases the entry difficulty by 10% after each win.
Role: Prevents overtrading and entering at the top of an extended trend.
๐ HTF FILTER (Multi-Timeframe)
โฆ Use Auto-Adaptive HTF Filter: Automatically selects a higher timeframe (e.g., 1H -> 4H) to filter signals.
โฆ Bypass HTF on Steep Trigger: Allows an entry even against the HTF trend if the local momentum slope is exceptionally steep (catch powerful reversals).
๐ RSI PEAK & CHOPPINESS
โฆ RSI Peak Exit (Instant): Triggers an immediate exit if a sharp RSI pivot (V-shape) is detected.
โฆ Choppiness Filter: Suppresses signals if the Choppiness Index is above the threshold (Default: 60), indicating a flat market.
๐ SLOPE TRIGGER LOGIC
โฆ Force Entry on Steep Slope: Overrides other filters if the price angle is extremely vertical (high velocity).
โฆ Slope Sensitivity (1.5): The angle required to trigger this override.
โ FLAT MARKET FILTER (ADX & ATR)
โฆ Use ADX Filter: Blocks signals if ADX is below the threshold (Default: 20), indicating no trend.
โฆ Use ATR Flat Filter: Blocks signals if volatility drops below a critical level (dead market).
๐ Alert Configuration Guide
Impulse Reactor is designed with a comprehensive suite of alert conditions, allowing you to automate your trading or receive real-time notifications for specific market events.
How to Set Up:
Click the "Alert" (Clock) icon in the TradingView toolbar.
Select "Impulse Reactor " from the Condition dropdown.
Choose one of the specific trigger conditions below:
๐ Entry Signals (Trend Initiation)
Long Entry:
Trigger: Fires when a confirmed Bullish Setup is detected (Momentum + Volatility + Structure align).
Usage: Use this to enter new Long positions.
Short Entry:
Trigger: Fires when a confirmed Bearish Setup is detected.
Usage: Use this to enter new Short positions.
๐ฏ Profit Taking (Target Levels)
Long TP:
Trigger: Fires when price hits the calculated Take Profit level for a Long trade.
Usage: Automate partial or full profit taking.
Short TP:
Trigger: Fires when price hits the calculated Take Profit level for a Short trade.
Usage: Automate partial or full profit taking.
๐ก๏ธ Defensive Exits (Risk Management)
Smart Exit:
Trigger: Fires when the system detects momentum decay or statistical exhaustion (even if the trend hasn't fully reversed).
Usage: Recommended for tightening stops or closing positions early to preserve gains.
Overbought / Oversold:
Trigger: Fires when the ribbon extends into extreme zones.
Usage: Warning signal to prepare for a potential reversal or pullback.
๐ก Secondary Confirmation (Confluence)
SAR+MACD Bullish:
Trigger: Fires when Parabolic SAR and MACD align bullishly with the main trend.
Usage: Ideal for Pyramiding (adding to an existing winning position).
SAR+MACD Bearish:
Trigger: Fires when Parabolic SAR and MACD align bearishly.
Usage: Ideal for adding to short positions.
โ ๏ธ Chapter 7: Conclusion & Risk Disclosure
Methodological Synthesis
Impulse Reactor represents a shift from reactive price tracking to proactive energy analysis. By decomposing market activity into its atomic components โ Volatility, Momentum, and Structure โ and reconstructing them into a coherent decision model, the system aims to provide a quantitative framework for market engagement. It is designed not to predict the future, but to identify high-probability conditions where kinetic energy and trend structure align.
Disclaimer & Risk Warnings
โฆ Educational Purpose Only
This indicator, including all associated code, documentation, and visual outputs, is provided strictly for educational and informational purposes. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments.
โฆ No Guarantee of Performance
Past performance is not indicative of future results. All metrics displayed on the dashboard (including "Win Rate" and "P&L") are theoretical calculations based on historical data. These figures do not account for real-world trading factors such as slippage, liquidity gaps, spread costs, or broker commissions.
โฆ High-Risk Warning
Trading cryptocurrencies, futures, and leveraged financial products involves a substantial risk of loss. The use of leverage can amplify both gains and losses. Users acknowledge that they are solely responsible for their trading decisions and should conduct independent due diligence before executing any trades.
โฆ Software Limitations
The software is provided "as is" without warranty. Users should be aware that market data feeds on analysis platforms may experience latency or outages, which can affect signal generation accuracy.
TrategyMulti-Indicator Trading System - Detailed Description
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
OVERVIEW
This indicator combines four proven technical analysis tools (EMA, RSI, MACD, ATR) with a specific logic that filters out low-probability setups. Unlike simple indicator mashups, this system requires all conditions to align simultaneously before generating a signal, significantly reducing false entries.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CORE COMPONENTS & LOGIC
1. Trend Detection - Triple EMA Filter
The system uses three Exponential Moving Averages (5, 10, 20 periods) to establish trend direction and strength:
For LONG signals:
โข EMA(5) must be above EMA(10)
โข EMA(10) must be above EMA(20)
โข Price must be trading above all three EMAs
This creates a "stacked EMA" configuration that confirms a strong uptrend.
For SHORT signals:
โข EMA(5) must be below EMA(10)
โข EMA(10) must be below EMA(20)
โข Price must be trading below all three EMAs
This inverse configuration confirms a strong downtrend.
2. Momentum Confirmation - RSI Filter
The RSI (14-period) acts as a momentum filter to avoid entering during exhausted moves:
For LONG signals:
โข RSI must be above 40 (avoiding oversold extremes)
โข RSI must be rising (current RSI > previous RSI)
For SHORT signals:
โข RSI must be below 60 (avoiding overbought extremes)
โข RSI must be falling (current RSI < previous RSI)
This prevents entries at extreme overbought/oversold levels while confirming momentum direction.
3. Entry Trigger - MACD Crossover
The MACD (12, 26, 9) provides the precise entry timing:
LONG trigger: MACD line crosses above Signal line
SHORT trigger: MACD line crosses below Signal line
The signal only fires when this crossover occurs while all other conditions are already met.
4. Risk Management - ATR-Based TP/SL
Take Profit and Stop Loss levels are calculated dynamically using the 14-period ATR (Average True Range), adjusted for timeframe:
5-Minute Charts:
โข Take Profit: 1.0 ร ATR
โข Stop Loss: 0.5 ร ATR
4-Hour Charts and above:
โข Take Profit: 2.0 ร ATR
โข Stop Loss: 1.0 ร ATR
This adaptive approach accounts for different volatility levels across timeframes.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
SIGNAL GENERATION LOGIC
A signal is only generated when ALL four conditions are simultaneously true:
LONG Signal Requirements:
1. โ Triple EMA alignment (bullish stack)
2. โ Price above all EMAs
3. โ RSI > 40 and rising
4. โ MACD bullish crossover
SHORT Signal Requirements:
1. โ Triple EMA alignment (bearish stack)
2. โ Price below all EMAs
3. โ RSI < 60 and falling
4. โ MACD bearish crossover
This multi-layered filtering approach is what differentiates this system from basic indicator combinations.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
WHY THIS COMBINATION WORKS
Trend + Momentum + Timing:
โข EMAs establish the overall trend context
โข RSI confirms momentum is present (not exhausted)
โข MACD provides precise entry timing
โข ATR adapts risk management to current volatility
Key Innovation: The system waits for all filters to align rather than acting on individual signals, which significantly reduces whipsaws and false breakouts common in single-indicator strategies.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
OPTIMIZED TIMEFRAMES
While the indicator works on all timeframes, it has been specifically optimized and backtested on:
โข 5-minute charts (for scalping/day trading)
โข 4-hour charts (for swing trading)
The ATR multipliers automatically adjust based on the selected timeframe.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
VISUAL FEATURES
โข Green arrows below bars: Long signal
โข Red arrows above bars: Short signal
โข Green line: Take Profit level
โข Red line: Stop Loss level
โข Alert capability: Configurable alerts for paid TradingView subscriptions
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
HOW TO USE
1. Add the indicator to your chart
2. Wait for a colored arrow to appear
3. Enter the trade in the direction of the arrow
4. Set your Take Profit at the green line
5. Set your Stop Loss at the red line
6. (Optional) Set up alerts to receive notifications
Note: Not every arrow will show TP/SL lines. Lines only appear when the ATR-based calculation determines there is sufficient volatility to justify the trade setup.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
WHAT MAKES THIS INVITE-ONLY WORTHY
Unlike free indicators that simply plot standard EMAs, RSI, or MACD separately, this system:
1. Integrates all four indicators with specific thresholds designed to work together
2. Uses adaptive risk management that adjusts to timeframe and volatility
The value lies not in the individual components (which are public domain) but in the specific combination logic, thresholds, and ATR-based risk system that took months of testing to optimize.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ACCESS INFORMATION
This is an invite-only indicator. To request access:
โข Visit our website
We offer both monthly subscriptions and lifetime access.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
RISK DISCLAIMER
This indicator is a technical analysis tool and does not constitute financial advice. All trading involves substantial risk of loss. Past performance does not guarantee future results. The indicator provides signals based on historical price patterns, but cannot predict future market movements. Always use proper risk management and never risk more than you can afford to lose.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Questions? Feel free to message us on TradingView, or to email us.
Hanzo Strategy - Volume & Smart Money๐ HANZO STRATEGY - Complete Description
## ๐ฏ Strategy Overview
The **Hanzo Strategy** is an advanced institutional trading system that combines Volume Profile analysis, Smart Money Concepts, and Price Action patterns to identify high-probability trade setups. This strategy is specifically designed for trading Gold (XAUUSD), NAS100, and US30 on the 15-minute timeframe.
---
## ๐ง Core Trading Philosophy
The Hanzo Strategy operates on the principle that **institutional money leaves footprints** in the market through:
- Volume accumulation at key price levels
- Liquidity sweeps and stop hunts
- Order block formations
- Strategic wick rejections at support/resistance
By identifying these institutional behaviors and combining them with precise volume analysis, the strategy aims to trade **with** the smart money, not against it.
---
## ๐ Key Components
### 1๏ธโฃ **Fixed Range Volume Profile (FRVP)**
- **What it does:** Analyzes the last 2 days of price action and calculates where the most volume traded
- **Point of Control (POC):** The price level with the highest trading volume - acts as a magnet for price
- **How we use it:** Price tends to revert to POC. When price is far from POC and starts moving toward it, we prepare for entries
- **Visual:** Yellow cross line on the chart marking the POC
### 2๏ธโฃ **Wick Cluster Detection**
- **What it does:** Automatically identifies price levels where multiple candle wicks have rejected (2-6+ wicks)
- **Why it matters:** Multiple rejections at the same level indicate strong institutional support/resistance
- **Upper wick clusters:** Resistance zones where price was rejected downward
- **Lower wick clusters:** Support zones where price was rejected upward
- **Visual:** Dashed lines (red for resistance, green for support)
### 3๏ธโฃ **Session Volatility Boxes**
- **London Session (8:00-16:00 UTC+3):** Captures European market volatility range
- **New York Session (13:30-20:00 UTC+3):** Captures US market volatility range
- **How we use it:** These ranges often act as support/resistance for the rest of the day
- **Visual:** Blue box for London, Orange box for New York
### 4๏ธโฃ **Smart Money Zones**
**Order Blocks:**
- Strong institutional areas where banks and hedge funds placed large orders
- **Bullish Order Block:** Area where smart money bought heavily before a strong upward move
- **Bearish Order Block:** Area where smart money sold heavily before a strong downward move
- **Visual:** Green/Red filled boxes with "Bull OB" or "Bear OB" labels
**Liquidity Sweeps:**
- Price breaks above recent high or below recent low, then quickly reverses
- This is a "stop hunt" - institutions triggering retail stops before moving in the real direction
- **Bullish Sweep:** Price dips below support, grabs stops, then reverses up
- **Bearish Sweep:** Price pops above resistance, grabs stops, then reverses down
- **Visual:** Triangle markers (green up = bullish, red down = bearish)
### 5๏ธโฃ **Engulfing Pattern Recognition**
- **Bullish Engulfing:** Large green candle fully engulfs the previous red candle - shows strong buying pressure
- **Bearish Engulfing:** Large red candle fully engulfs the previous green candle - shows strong selling pressure
- **How we use it:** Confirmation signal when combined with other factors
- **Visual:** Small circles below/above candles
### 6๏ธโฃ **Trend Bias Indicator**
- Dynamically calculates market bias based on price position relative to POC
- **Bullish:** Price > 0.2% above POC
- **Neutral:** Price within 0.2% of POC
- **Bearish:** Price > 0.2% below POC
- **Visual:** Label at top of chart showing current bias
---
## ๐ Entry Signal Logic
The strategy generates **LONG** and **SHORT** signals based on confluence of multiple factors:
### ๐ข LONG ENTRY CONDITIONS:
1. **POC Break:** Price crosses above POC from below + Trend Bias is Bullish
**OR**
2. **Support Bounce:** Price touches a lower wick cluster + Bullish Engulfing pattern forms
3. **Additional Filter:** Trend Bias must NOT be Bearish
### ๐ด SHORT ENTRY CONDITIONS:
1. **POC Break:** Price crosses below POC from above + Trend Bias is Bearish
**OR**
2. **Resistance Rejection:** Price touches an upper wick cluster + Bearish Engulfing pattern forms
3. **Additional Filter:** Trend Bias must NOT be Bullish
---
## ๐ฏ Risk Management
### Stop Loss:
- **Calculation:** 2 ร ATR(14) from entry price
- **Logic:** Uses Average True Range to adapt to current market volatility
- **Example:** If ATR = 10 points, stop loss is 20 points away
### Take Profit:
- **Calculation:** 3 ร ATR(14) from entry price
- **Risk:Reward Ratio:** 1:1.5 (risking 2 ATR to make 3 ATR)
- **Example:** If ATR = 10 points, take profit is 30 points away
### Position Sizing:
- **Default:** 2% of account equity per trade
- **Adjustable:** Can be modified in strategy settings
---
## โ๏ธ Strategy Settings & Customization
### Volume Profile Settings:
- **Lookback Days:** How many days to analyze (default: 2)
- **Profile Rows:** Resolution of volume calculation (default: 24)
- **POC Distance Threshold:** Minimum distance from POC for "far from POC" status (default: 0.3%)
### Wick Cluster Settings:
- **Min Wicks for Cluster:** How many wicks needed to form a cluster (default: 3)
- **Lookback Bars:** How far back to search for wicks (default: 50)
- **Tolerance %:** How close wicks must be to cluster together (default: 0.15%)
### Session Settings:
- **London Session:** 08:00-16:00 (adjustable)
- **New York Session:** 13:30-20:00 (adjustable)
- **UTC Offset:** Timezone adjustment (default: +3)
### Smart Money Settings:
- **Order Block Lookback:** How far back to search for order blocks (default: 20)
- **Toggle On/Off:** Can enable/disable order blocks and liquidity sweeps independently
---
## ๐ Performance Metrics Display
The strategy includes a real-time **Information Table** (top-right corner) showing:
| Metric | Description |
|--------|-------------|
| **Trend Bias** | Current market direction (Bullish/Neutral/Bearish) |
| **POC Price** | Current Point of Control price level |
| **Distance from POC** | How far current price is from POC (%) |
| **ATR (14)** | Current volatility measurement |
| **High Wick Clusters** | Number of resistance clusters detected |
| **Low Wick Clusters** | Number of support clusters detected |
| **Current Signal** | Active signal (LONG/SHORT/None) |
---
## ๐จ Alert System
The strategy can send alerts for:
1. **LONG Signal Triggered** - When all conditions met for long entry
2. **SHORT Signal Triggered** - When all conditions met for short entry
3. **Price Touching Support Cluster** - Warning that price at key support
4. **Price Touching Resistance Cluster** - Warning that price at key resistance
**Alert Frequency:** Once per bar (prevents spam)
---
## ๐
Best Trading Timeframes & Instruments
### โ
Recommended Timeframes:
- **Primary Entry:** 15-minute chart
- **Trend Confirmation:** 30-minute or 1-hour chart
- **Higher Timeframe Filter:** 4-hour for major trend direction
### โ
Recommended Instruments:
1. **Gold (XAUUSD)** - High volatility, respects key levels well
2. **NAS100 (US Tech 100)** - Strong trends, good liquidity
3. **US30 (Dow Jones)** - Reliable institutional participation
4. **EUR/USD, GBP/USD** - Can work on major forex pairs with adjustments
### โฐ Best Trading Sessions:
- **London Open (08:00-12:00 UTC+3)** - High volatility, clear directional moves
- **New York Open (13:30-17:00 UTC+3)** - Strongest moves, highest volume
- **Overlap (13:30-16:00 UTC+3)** - Best liquidity and movement
### โ ๏ธ Avoid Trading:
- Asian session (low volatility)
- Major news events (first 15 minutes after high-impact news)
- Sundays and holidays (low liquidity)
---
## ๐ก Pro Trading Tips
### 1. **Multiple Timeframe Confirmation**
- Check 1-hour chart for overall trend before taking 15-minute signals
- Only take LONG signals if 1-hour is bullish
- Only take SHORT signals if 1-hour is bearish
### 2. **POC Strategy**
- Best entries occur when price returns to POC after being far away
- Wait for POC touch + confirmation pattern (engulfing, order block)
- POC acts as support in uptrends, resistance in downtrends
### 3. **Wick Cluster Strategy**
- Strongest signals occur when wick clusters align with POC
- Look for 4+ wicks at the same level for highest probability
- Recent clusters (formed in last 2 days) are stronger than old ones
### 4. **Order Block Strategy**
- Fresh order blocks (just formed) are more powerful
- Wait for price to return to order block zone before entering
- Best when order block + wick cluster occur at same level
### 5. **London/NY Box Strategy**
- If price breaks above session high โ look for LONG pullback entries
- If price breaks below session low โ look for SHORT pullback entries
- Price often returns to session mid-point before continuing
### 6. **Risk Management Rules**
- **Never risk more than 2% per trade**
- **Don't trade more than 3 positions simultaneously**
- **If 2 losses in a row, reduce size to 1% or stop for the day**
- **Move stop to breakeven after 1:1 profit reached**
### 7. **High-Probability Setups**
Look for **CONFLUENCE** - the more factors aligned, the better:
โ
**BEST LONG SETUP:**
- Price at lower wick cluster (support)
- Price at/near POC
- Bullish order block present
- Bullish engulfing pattern forms
- Trend Bias = Bullish
- 1-hour chart = uptrend
โ
**BEST SHORT SETUP:**
- Price at upper wick cluster (resistance)
- Price at/near POC
- Bearish order block present
- Bearish engulfing pattern forms
- Trend Bias = Bearish
- 1-hour chart = downtrend
---
## ๐ Performance Expectations
### Typical Win Rate:
- **Conservative Trading (high confluence only):** 55-65% win rate
- **Moderate Trading (good setups):** 45-55% win rate
- **Aggressive Trading (all signals):** 35-45% win rate
### Typical Risk:Reward:
- **Average R:R:** 1:1.5 (with 2 ATR stop and 3 ATR target)
- **Breakeven adjusted:** Often improves to 1:2+ when stop moved to BE
### Monthly Trade Frequency (15M chart):
- **Gold:** 60-100 signals per month
- **NAS100:** 50-80 signals per month
- **US30:** 40-70 signals per month
---
## ๐ Strategy Philosophy Summary
The Hanzo Strategy is built on three core principles:
1. **Follow the Volume** - Trade where institutions are active
2. **Respect the Levels** - Key support/resistance zones matter
3. **Confirm with Price Action** - Wait for confirmation before entering
This is NOT a holy grail - it requires:
- โ
Discipline to wait for proper setups
- โ
Patience to let trades play out
- โ
Risk management to protect capital
- โ
Emotional control to handle losses
---
## ๐ ๏ธ How to Use This Strategy
### Step 1: Initial Setup
1. Add strategy to 15-minute chart
2. Check that all components are visible (POC, clusters, boxes, etc.)
3. Adjust colors if needed for your chart theme
### Step 2: Daily Routine
1. **Pre-Market (before 8:00 AM):**
- Check POC location
- Note wick clusters from previous days
- Mark London/NY session boxes from yesterday
2. **London Session (8:00-16:00):**
- Watch for POC interactions
- Monitor for order blocks forming
- Wait for confluence setups
3. **NY Session (13:30-20:00):**
- Highest activity period
- Best signal quality
- More aggressive entries allowed
### Step 3: Trade Execution
1. Wait for signal label (LONG or SHORT) to appear
2. Check confluence factors (minimum 3)
3. Enter immediately or on next candle
4. Set stop loss at 2 ร ATR from entry
5. Set take profit at 3 ร ATR from entry
6. Move stop to breakeven at +1.5 ATR profit
### Step 4: Trade Management
- **Don't move stop closer** (let trade breathe)
- **Can trail stop** after 2:1 profit reached
- **Can take partial profits** at 1.5:1 and let rest run
- **Journal every trade** for future improvement
---
## โ ๏ธ Important Disclaimers
1. **Past performance does not guarantee future results**
2. **This strategy involves risk** - only trade with money you can afford to lose
3. **Backtest thoroughly** on your specific instruments before live trading
4. **Start small** - test with minimum position sizes first
5. **Market conditions change** - what works today may not work tomorrow
6. **Use proper risk management** - this is the #1 key to long-term success
---
## ๐ฏ Quick Reference Checklist
Before taking any trade, ask yourself:
- โ
Is there a clear LONG or SHORT signal?
- โ
Are we in London or NY session?
- โ
Is price at/near POC or wick cluster?
- โ
Is trend bias aligned with my direction?
- โ
Is there an order block or engulfing pattern?
- โ
Is my risk:reward at least 1:1.5?
- โ
Am I risking no more than 2% of my account?
**If 5+ are YES โ Take the trade!**
**If 3 or fewer YES โ Skip and wait for better setup!**
---
## ๐ Final Words
The Hanzo Strategy is a professional-grade trading system that combines institutional analysis with precise technical execution. Success comes not from taking every signal, but from taking only the **highest probability setups** with proper risk management.
**Trade smart. Trade safe. Trade like an institution.**
๐ **Good luck and profitable trading!** ๐
Market Cycle Master The Market Cycle Master (MCM) by ยฉ DarkPoolCrypto is a sophisticated trading system designed to bridge the gap between standard retail trend indicators and institutional-grade risk management. Unlike traditional indicators that simply provide entry signals based on a single timeframe, this system employs a "Confluence Engine" that requires multi-timeframe (MTF) alignment before generating a signal.
Crucially, this script integrates a live Risk Management Calculator directly into the chart overlay. This feature allows traders to stop guessing position sizes and instead execute trades based on a fixed percentage of account equity at risk, calculating the exact lot size relative to the dynamic stop-loss level.
Core Concept and Logic
This system operates on three distinct layers of logic to filter out noise and identifying high-probability trend continuations:
1. The Trend Architecture (Layer 1) At its core, the script utilizes an adaptive ATR-based SuperTrend calculation. This allows the system to adjust to market volatility dynamically. When volatility expands, the trend bands widen to prevent premature stop-outs. When volatility contracts, the bands tighten to capture early reversals.
2. Institutional Context / Multi-Timeframe Filter (Layer 2) This is the primary filter of the Pro system. The script monitors a higher timeframe (default: 4-Hour) in the background.
Bullish Context: If the Higher Timeframe (HTF) is in an uptrend, the script will only permit LONG signals on your current chart.
Bearish Context: If the HTF is in a downtrend, the script will only permit SHORT signals.
Grayscale Filters: If the current chart's trend opposes the Higher Timeframe trend (e.g., a 5-minute uptrend during a 4-hour downtrend), the candles will be painted GRAY. This indicates a low-probability "Counter-Trend" environment, and no signals will be generated.
3. Money Flow Filtering (Layer 3) To prevent buying tops or selling bottoms, the system utilizes the Money Flow Index (MFI). Long signals are filtered if volume-weighted momentum is already overbought, and Short signals are filtered if oversold.
The Risk Management HUD
The Heads-Up Display (HUD) is the distinguishing feature of this tool. It transforms the indicator from a visual aid into a trading terminal.
Trend Direction: Displays the current verified trend.
MTF Status: Shows the state of the Higher Timeframe trend.
Volatility: Displays the current ATR value.
Stop Loss: Displays the exact price level of the trend line.
Risk Calculator:
Risk ($): Shows the total dollar amount you will lose if the stop loss is hit (based on your settings).
Units: Calculates exactly how much Crypto, Stock, or FX lots to purchase to match your risk parameters.
Guide: How to Use
Configuration
Trend Architecture: Adjust the "Volatility Factor" (Default: 3.0). Higher values reduce noise but delay entries. Lower values are faster but riskier.
Institutional Context: Select the "Higher Timeframe."
If trading 1m to 15m charts: Set HTF to 4 Hours (240).
If trading 1H to 4H charts: Set HTF to Daily (1D).
Risk Calculator:
Account Size: Enter your total trading capital.
Risk Per Trade: Enter the percentage of your account you are willing to lose on a single trade (e.g., 1.0%).
Trading Strategy
The Signal: Wait for a "Sniper Long" or "Sniper Short" label. This appears only when price action, volatility, and the higher timeframe consensus all align.
The Execution: Look at the HUD under "Units." Open a position for that specific amount.
The Stop Loss: Place your hard Stop Loss at the price shown in the HUD ("Stop Loss" row). This corresponds to the trend line.
The Exit: Close the position if the candle color turns Gray (loss of momentum/consensus) or if an opposing signal appears.
Disclaimer
This script and the information provided herein are for educational and entertainment purposes only. They do not constitute financial advice, investment advice, trading advice, or any other advice. Trading in financial markets involves a high degree of risk and may result in the loss of your entire capital.
The "Risk Calculator" included in this script provides theoretical values based on mathematical formulas relative to the price data provided by TradingView. It does not account for slippage, spread, exchange fees, or liquidity gaps. Always verify calculations manually before executing live trades. Past performance of any trading system is not indicative of future results. The author assumes no responsibility for any losses incurred while using this script.






















