Arjunology for Stocks IndicatorArjunology for Stocks Indicator is a unique trend-following and exit management system that combines the power of Exponential Moving Averages (EMA) and Average True Range (ATR) to capture market trends and manage trade exits dynamically. It is designed to help traders identify potential buy and sell points based on market trends while incorporating volatility adjustments to avoid false signals and provide more reliable trade entries and exits.
Key Features:
1. Exponential Moving Averages (EMAs):
• Two EMAs (Short EMA and Long EMA) are used to determine trend direction and potential crossover signals.
• Short EMA reacts quickly to price changes, giving an indication of shorter-term trends.
• Long EMA provides a more stable measure of the overall trend direction, helping filter out market noise.
• Bullish Crossovers: When the short EMA crosses above the long EMA, it signals a potential uptrend (buy condition).
• Bearish Crossovers: When the short EMA crosses below the long EMA, it signals a potential downtrend (sell condition).
2. Average True Range (ATR):
• ATR is used to assess market volatility and avoid false signals during low volatility periods.
• A trailing stop loss mechanism based on ATR ensures that the indicator adapts to the current market environment, with higher volatility allowing for wider stops and lower volatility leading to tighter stops.
• A flat ATR threshold is used to avoid signals during quiet periods, where price movement may be too insignificant to trade effectively.
3. Buy and Sell Visual Cues:
• Green Triangle at the bottom of the candle when a bullish crossover (buy) condition is met.
• Red Triangle at the top of the candle when a bearish crossover (sell) condition is met.
• These visual cues help traders quickly identify trade entry points based on the trend signals.
4. Dynamic Exit Management:
• The indicator provides an Blue candle background to highlight exit points, with an “EXIT” label at the bottom of the candle in blue. This visual exit signal ensures clarity when a trade should be exited based on the trend reversal.
Justification for Combining EMAs and ATR in This Script:
The Exponential Moving Averages (EMAs) and Average True Range (ATR) serve complementary purposes in this script, enhancing each other’s functionality to provide a more complete trading system:
1. Trend Identification with EMAs:
• The combination of short and long EMAs is a widely trusted method for determining the trend direction. The crossovers between these EMAs provide clear entry signals for buy or sell trades. However, relying solely on EMAs can lead to false signals during periods of low volatility or market consolidation.
2. ATR for Volatility and Stop Loss:
• To prevent false signals during low-volatility conditions, the script uses ATR as a filter. This ensures that trades are only taken when the market has enough momentum, reducing the risk of being caught in “choppy” conditions where price action may be flat and untradeable.
• Additionally, the ATR-based trailing stop provides dynamic trade management, adjusting stop-loss levels according to the current volatility. This makes the system adaptive and prevents tight stops in volatile conditions or unnecessarily wide stops in calm markets.
3. Why They Work Together:
• The EMAs handle the trend direction, which is the foundation of the trading system, while the ATR adjusts the trade management to account for changing volatility. This means that the trader is always entering trades that are likely to follow a strong trend, while avoiding stagnant markets and using volatility-adaptive exit points.
• Without ATR, EMAs might generate signals during low-volatility periods that are unreliable. On the other hand, ATR alone wouldn’t provide a clear direction for trend-following. Together, these indicators create a balanced approach where trades are not only timely but also carefully managed.
How to Use:
• Buy Entry: Enter when the green triangle appears, indicating a bullish EMA crossover.
• Sell Entry: Enter short when the red triangle appears, indicating a bearish EMA crossover.
• Exit: Follow the orange background and blue “EXIT” label as a visual cue to exit the trade.
The combination of these tools allows traders to identify meaningful trend reversals while also managing risk dynamically, making the Arjunology for Stocks Indicator both versatile and effective for various market conditions.
Stocktrading
Auto Fitting GARCH OscillatorOverview
The Auto Fitting GARCH Oscillator is a sophisticated volatility indicator that dynamically fits GARCH (Generalized Autoregressive Conditional Heteroskedasticity) models to the price data. It optimizes the parameters of the GARCH model to provide a reliable measure of volatility, which is then normalized to fit within a 0-100 range, making it easy to interpret as an oscillator. This indicator helps traders identify periods of high and low volatility, which can be crucial for making informed trading decisions.
Key Features
Dynamic GARCH(p, q) Fitting: Automatically optimizes the GARCH model parameters for the best fit.
Volatility Oscillator: Normalizes the volatility measure to a 0-100 range, indicating overbought and oversold conditions.
Customizable Timeframes: Adapts to various chart timeframes, from intraday to monthly data.
Projected Volatility: Provides options for projecting future volatility based on the optimized GARCH model.
User-friendly Visualization: Displays the oscillator with clear overbought and oversold levels.
Concepts Underlying the Calculations
The indicator leverages the GARCH model, which is widely used in financial time series analysis to model volatility clustering. The GARCH model considers past variances and returns to predict future volatility. This indicator dynamically adjusts the p and q parameters of the GARCH model within a specified range to find the optimal fit, minimizing the sum of squared errors (SSE).
How It Works
Data Preparation: Calculates the logarithmic returns and lagged variances from the price data.
SSE Optimization: Iterates through different p and q values to find the best GARCH parameters that minimize the SSE.
GARCH Calculation: Uses the optimized parameters to calculate the GARCH-based volatility.
Normalization: Normalizes the calculated volatility to a 0-100 range to form an oscillator.
Visualization: Plots the oscillator with overbought (70) and oversold (30) levels for easy interpretation.
How Traders Can Use It
Volatility Analysis: Identify periods of high and low volatility to adjust trading strategies accordingly.
Overbought/Oversold Conditions: Use the oscillator levels to identify potential reversal points in the market.
Risk Management: Incorporate volatility measures into risk management strategies to avoid trades during highly volatile periods.
Projection: Use the projected volatility feature to anticipate future market conditions.
Example Usage Instructions
Add the Indicator: Apply the "Auto Fitting GARCH Oscillator" to your chart from the Pine Script editor or TradingView library.
Customize Parameters: Adjust the maxP and maxQ values to set the range for GARCH model optimization.
Select Data Type: Choose between "Projected Variance in %" or "Projected Deviation in %" based on your analysis preference.
Set Projection Periods: Use the perForward input to specify how many periods forward you want to project the volatility.
Interpret the Oscillator: Observe the oscillator line and the overbought/oversold levels to make informed trading decisions.
Fisher Transform on RSIOverview
The Fisher Transform on RSI indicator combines the Relative Strength Index (RSI) with the Fisher Transform to offer a refined tool for identifying market turning points and trends. By applying the Fisher Transform to the RSI, this indicator converts RSI values into a Gaussian normal distribution, enhancing the precision of detecting overbought and oversold conditions. This method provides a clearer and more accurate identification of potential market reversals than the standard RSI.
Key/Unique Features
Fisher Transform Applied to RSI : Transforms RSI values into a Gaussian normal distribution, improving the detection of overbought and oversold conditions.
Smoothing : Applies additional smoothing to the Fisher Transform, reducing noise and providing clearer signals.
Signal Line : Includes a signal line to identify crossover points, indicating potential buy or sell signals.
Custom Alerts : Built-in alert conditions for bullish and bearish crossovers, keeping traders informed of significant market movements.
Visual Enhancements : Background color changes based on crossover conditions, offering immediate visual cues for potential trading opportunities.
How It Works
RSI Calculation : The indicator calculates the Relative Strength Index (RSI) based on the selected source and period length.
Normalization : The RSI values are normalized to fit within a range of -1 to 1, which is essential for the Fisher Transform.
Fisher Transform : The normalized RSI values undergo the Fisher Transform, converting them into a Gaussian normal distribution.
Smoothing : The transformed values are smoothed using a simple moving average to reduce noise and provide more reliable signals.
Signal Line : A signal line, which is a simple moving average of the smoothed Fisher Transform, is plotted to identify crossover points.
Alerts and Visuals : Custom alert conditions are set for bullish and bearish crossovers, and the background color changes to indicate these conditions.
Usage Instructions
Trend Identification : Use the Fisher Transform on RSI to identify overbought and oversold conditions with enhanced precision, aiding in spotting potential trend reversals.
Trade Signals : Monitor the crossovers between the smoothed Fisher Transform and the signal line. A bullish crossover suggests a potential buying opportunity, while a bearish crossover indicates a potential selling opportunity.
Alerts : Set custom alerts based on the built-in conditions to receive notifications when important crossover events occur, ensuring you never miss a trading opportunity.
Visual Cues : Utilize the background color changes to quickly identify bullish (green) and bearish (red) conditions, providing immediate visual feedback on market sentiment.
Complementary Analysis : Combine this indicator with other technical analysis tools and indicators to enhance your overall trading strategy and make more informed decisions.
PUMP IndicatorsPUMP Indicator Description
★ Supported Markets and Assets
The PUMP indicator is a versatile tool that can be effectively applied to various markets and assets, including:
▶ Korean Stocks: KOSPI, KOSDAQ, etc.
▶ U.S. Stocks: NYSE, NASDAQ, etc.
▶ Cryptocurrencies: Major cryptocurrencies such as Bitcoin (BTC), Ethereum (ETH), etc.
▶ Futures: Major futures contracts like gold, silver, crude oil, etc.
▶ ETFs: SPY, QQQ, etc.
★ Indicator Description
The PUMP indicator is designed to analyze price divergence and volatility.
It is provided with minimal representation on the chart, allowing users to use it in conjunction with other indicators, such as classical RSI, TRIX, CCI, ADX, BWI, Bollinger Bands, etc.
Everything displayed on the chart can be turned on or off in the options, allowing users to customize their setup.
The PUMP indicator is based on the concept of the MACD indicator, which calculates the difference between the leading line and the lagging line to generate signals.
GOOD, UP, and CR signals predict price increases.
DOWN and BAD signals predict price decreases.
WARN emphasizes that the buy position is not certain, regardless of price increases or decreases.
Therefore, the PUMP indicator is good to use with other indicators. It visually displays divergence and volatility signals along with the MACD movements below, and users can receive alerts for movements in their interested stocks using the alarm function.
It can be used as an indicator for viewing buy and sell signals, as well as predicting the price flow.
▶ (Drawback) Unlike typical TRIX, RSI, TRIX, CCI, ADX, BWI indicators, which are implemented in a new lower window, the PUMP indicator displays both signals and the leading and lagging lines simultaneously, so it is not implemented in a new window, meaning the baseline may vary depending on the daily chart appearance.
★ The PUMP indicator consists of the following components:
▶ PUMP Indicator Leading and Lagging Lines
PUMP t: Leading line (yellow)
PUMP p: Lagging line (blue)
The MACD displayed at the bottom of the chart calculates the divergence between the PUMP t leading line and the PUMP p lagging line.
▶ EA Formula
The core calculation of the PUMP indicator is as follows:
EA (Exponential Average): 100 * (eavg1 / eavg2)
Where eavg1 is the short-term EMA, and eavg2 is the long-term EMA.
It calculates the divergence of the index.
▶ The PUMP indicator is a fixed indicator (cannot be arbitrarily modified).
▶ Highlights: The method of calculating the interval or number of uses is an important part of the index calculation and is therefore private.
★ Signal Description
The PUMP indicator provides a total of six major signals:
▶ UP Signal: Occurs when the divergence between the MACD PUMP t leading line and PUMP p lagging line narrows, and the divergence of the exponential moving average widens compared to before.
▶ DOWN Signal: Occurs when the MACD PUMP t leading line crosses above the PUMP p lagging line.
▶ GOOD Signal: Represents an UP signal with added volume.
(The GOOD signal is not necessarily better than the UP signal. If a GOOD signal appears in a stock that has sufficiently fallen in price, it helps understand that a rebound has started. Therefore, the GOOD signal is made to find a rebound in stocks that have continuously declined, rather than finding signals in consistently rising prices.)
▶ BAD Signal: Occurs when the PUMP t leading line crosses above the 0 baseline, indicating a potential sell signal.
▶ WARN Signal: A warning signal occurring at high levels, indicating that buying is not recommended (regardless of buy or sell).
▶ CR Signal: Occurs in all sections where the PUMP t leading line crosses below the PUMP p lagging line.
★ Lower MACD Horizontal Baseline
The PUMP indicator provides three horizontal baselines from the MACD indicator for additional analysis:
▶ Pump H
▶ PUMP M
▶ PUMP L
It visually provides the divergence of the lower MACD indicator for rising and falling changes, with the default set to 0, and users can change the numbers in the options as needed.
★ Moving Averages
The PUMP indicator provides three basic moving averages:
▶ Buzz 7: 7-day moving average
▶ Buzz 26: 26-day moving average
▶ Buzz 120: 120-day moving average
The number of moving averages is fixed, but users can use them in conjunction with the moving averages provided by TradingView as needed.
★ Alert Function
Using the Alert function of TradingView, you can set alerts for various signals generated by the PUMP indicator.
▶ GOOD Signal Alert
▶ UP Signal Alert
▶ CR Signal Alert
▶ DOWN Signal Alert
▶ BAD Signal Alert
▶ WARN Signal Alert
★ Usage
1. The PUMP indicator is not focused on buy and sell signals but calculates the current price movement and divergence and is designed to express it through MACD leading and lagging lines and signals.
2. The PUMP indicator can be used alone or in conjunction with other indicators for technical analysis.
3. You can analyze buy and sell using the signals of the PUMP indicator along with fundamental analysis, such as news, issues, national policies, company profits, and sales increases.
4. The MACD leading and lagging lines at the bottom of the chart move inversely to the price, ensuring that the PUMP indicator does not interfere when used with other indicators.
5. You can receive real-time alerts using the alarm function.
Below, we attach pictures to help users understand.
============================================
PUMP 인디케이터 설명(한글)
★ 지원되는 시장 및 자산
PUMP 표시기는 다음과 같은 다양한 시장 및 자산에 효과적으로 적용할 수 있는 다용도 도구입니다:
▶ 한국주식: KOSPI, KOSDAQ 등.
▶ 미국주식: NYSE, NASDAQ 등.
▶ 암호화폐: 비트코인(BTC), 이더리움(ETH) 등 주요 암호화폐.
▶ 선물 : 금, 은, 원유 등 주요 선물 계약.
▶ 상장지수펀드(ETF) : SPY, QQQ 등.
★ 지표 설명
PUMP 지표는 가격 이격과 변동성을 분석하도록 설계되었습니다.
사용자가 만든 지표 또는 고전 RSI, TRIX, CCI, ADX, BWI, Bollinger Bands 등과 함께 사용할 수 있게 차트에 최소한의 표현으로 제공됩니다.
그리고 차트에 표현되는 모든 것들을 옵션에서 on / off 가능하게 하였기에 사용자가 커스텀 할 수 있게 하였습니다.
PUMP 지표 신호를 생성하기 위해 선행 라인과 후행 라인 간의 차이를 계산하는 MACD 지표의 개념을 기반으로 합니다.
GOOD, UP, CR 신호는 가격 상승을 예측합니다.
DOWN, BAD 신호는 가격 하락을 예측합니다.
WARN은 가격 상승과 하락에 관계없이, 매수 자리는 확실히 아님을 강조한 신호입니다.
그러므로 PUMP 지표는 다른 지표와 함께 사용하기 좋고, 이격과 변동성을 신호와 하단 MACD 움직임을 눈으로 볼 수 있으며, 알람 기능을 활용하여 관심 있는 종목의 움직임을 알람으로 받아 볼 수 있는 지표입니다.
매수와 매도를 보는 지표로 사용할 수 있으며, 가격의 흐름을 예상하는 지표로 사용할 수 있습니다.
▶ (단점) 보통의 TRIX, RSI, TRIX, CCI, ADX, BWI 지표들은 하단의 새로운 창에서 구현됩니다. 하지만 PUMP 지표는 신호와 하단 선행과 후행을 동시에 표현하기 때문에 새로운 창에서 구현되지 않기에 기준 축이 일봉의 모습에 따라 달라질 수 있습니다.
★ PUMP 지표는 다음과 같은 구성요소로 구성됩니다
▶ PUMP 지표 선행과 후행
PUMP t : 선행라인 (노란색)
PUMP p : 후행라인 (파란색)
차트 하단에 나타나는 MACD는 PUMP t선행라인과 PUMP p 후행라인의 이격도를 계산합니다.
▶ EA공식
PUMP 지표의 핵심 계산식은 다음과 같습니다:
EA(지수평균): 100 * (eavg1 / eavg2)
여기서 eavg1은 단기 EMA이고 eavg2는 장기 EMA입니다.
지수의 이격도를 계산합니다.
▶ PUMP 지표는 고정 지표입니다. (임의 수정 불가)
▶ 강조 : 이격의 계산법이나 사용하는 숫자는 지표 계산의 중요한 부분이므로 비공개입니다.
★ 신호 설명
PUMP 표시등은 총 6개의 주요 신호를 제공합니다:
▶ UP 신호: MACD PUMP t 선행과 PUMP p 후행의 이격이 줄어들 때, 지수 이동 평균의 이격도가 이전 보다 넓어지면 발생합니다.
▶ DOWN 신호: MACD PUMP t 선행이 PUMP p 후행을 상향 교차할 때 발생합니다.
▶ GOOD 신호: 거래량이 추가된 UP 신호를 나타냅니다.
(GOOD 신호가 UP 신호보다 좋다기 보다, 충분히 가격 하락한 종목에서 GOOD 신호가 나온다면 반등이 시작되는 것을 이해할 수 있게 만든 지표입니다. 그러므로 GOOD 신호는 가격이 꾸준히 상승하는 곳에서 신호를 찾기보다, 지속 하락하다 반등을 찾는 신호로 만들었습니다.)
▶ BAD 신호: PUMP t 선행이 0 기준선 이상으로 교차할 때 발생하며, 이는 잠재적인 판매 신호를 나타냅니다.
▶ 경고 신호: 높은 수준에서 발생하는 경고 신호로, 매수가 권장되지 않음을 나타냅니다(매수, 매도와 무관함).
▶ CR 신호: PUMP t 선행 라인이 PUMP p 후행 라인 아래로 교차하는 모든 구간에서 발생합니다.
★ 하단 MACD 가로 기준선
PUMP 표시기는 추가 분석을 위해 MACD 지표에서 3가지 가로 기준을 제공합니다:
▶ pump H
▶ PUMP M
▶ PUMP L
하단의 MACD 지표의 이격도를 상승 및 하강의 변화를 시각적으로 기준을 만들 수 있게 제공하며, 기본은 0으로 제공하고, 사용자의 필요에 따라 옵션에서 숫자를 변경할 수 있게 하였습니다.
★ 이동 평균
PUMP 표시기는 세 가지 기본 이동 평균을 제공 합니다:
▶ Buzz 7: 7일 이동 평균
▶ Buzz 26: 26일 이동 평균
▶ Buzz 120 : 120일 이동 평균
이동 평균의 수는 고정되어 있지만, 사용자는 필요에 따라 TradingView에서 제공하는 이동 평균과 함께 사용할 수 있습니다.
★ 알림 기능
TradingView의 Alert 기능을 사용하여 PUMP 지표 생성되는 다양한 신호에 대한 Alert를 설정할 수 있습니다.
▶ GOOD 신호 알림
▶ UP 신호 알림
▶ CR 신호 알림
▶ DOWN 신호 알림
▶ BAD 신호 알림
▶ WARN 신호 알림
★ 사용법
1.PUMP 지표는 매수와 매도에 중점을 둔 지표가 아니며 현재 가격의 움직임과 이격도를 계산하며 MACD 선행과 후행 그리고 신호로 표현하기 위해 만들어진 지표입니다.
2. PUMP 지표는 단일로 사용할 수 있고, 또는 다른 지표와 함께 기술적분석으로 사용할 수 있습니다.
3. 뉴스와 이슈, 국가의 정책, 회사의 이익, 매출의 상승 등 기본적분석과 함께 PUMP 지표의 신호를 이용하여 매수와 매도 분석을 할 수 있습니다.
4. 차트 하단의 MACD 선행과 후행은 가격의 움직임을 반대로 움직이며, 가격과 반대로 움직이게 함으로써 다른 지표와 함께 사용하였을 때, PUMP 지표가 방해가 되지 않게 하였습니다.
5. 알람을 사용하여 실시간으로 알람을 받아 보실 수 있습니다.
아래 사진을 첨부하여 사용자 이해를 돕습니다.
============================================
UP신호는 이격을
▶ The UP signal indicates horizontal divergence.
CR신호는 선행이 후행을 아래로 돌파
▶ The CR signal indicates vertical divergence when the leading line crosses below the lagging line.
WARN 신호를 확인
▶ Check the WARN signal.
BAD와 DOWN 신호
▶ BAD and DOWN signals.
PUMP 지표의 기준 3개
3 criteria for PUMP indicators
따로 그림을 그리지 않은 차트
▶ A chart without separate drawings.
============================================
다른 지표와 + 조합
+ Combination with other indicators
AlgoBuilder [Trend-Following] | FractalystWhat's the strategy's purpose and functionality?
This strategy is designed for both traders and investors looking to rely on and trade based on historical and backtested data using automation. The main goal is to build profitable trend-following strategies that outperform the underlying asset in terms of returns while minimizing drawdown. For example, as for a benchmark, if the S&P 500 (SPX) has achieved an estimated 10% annual return with a maximum drawdown of -57% over the past 20 years, using this strategy with different entry and exit techniques, users can potentially seek ways to achieve a higher Compound Annual Growth Rate (CAGR) while maintaining a lower maximum drawdown.
Although the strategy can be applied to all markets and timeframes, it is most effective on stocks, indices, future markets, cryptocurrencies, and commodities and JPY currency pairs given their trending behaviors.
In trending market conditions, the strategy employs a combination of moving averages and diverse entry models to identify and capitalize on upward market movements. It integrates market structure-based trailing stop-loss mechanisms across different timeframes and provides exit techniques, including percentage-based and risk-reward (RR) based take profit levels.
Additionally, the strategy has also a feature that includes a built-in probability and sentiment function for traders who want to implement probabilities and market sentiment right into their trading strategies.
Performance summary, weekly, and monthly tables enable quick visualization of performance metrics like net profit, maximum drawdown, compound annual growth rate (CAGR), profit factor, average trade, average risk-reward ratio (RR), and more. This aids optimization to meet specific goals and risk tolerance levels effectively.
-----
How does the strategy perform for both investors and traders?
The strategy has two main modes, tailored for different market participants: Traders and Investors.
Trading:
1. Trading (1x):
- Designed for traders looking to capitalize on bullish trending markets.
- Utilizes a percentage risk per trade to manage risk and optimize returns.
- Suitable for active trading with a focus on trend-following and risk management.
- (1x) This mode ensures no stacking of positions, allowing for only one running position or trade at a time.
◓: Mode | %: Risk percentage per trade
2. Trading (2x):
Similar to the 1x mode but allows for two pyramiding entries.
This approach enables traders to increase their position size as the trade moves in their favor, potentially enhancing profits during strong bullish trends.
◓: Mode | %: Risk percentage per trade
3. Investing:
- Geared towards investors who aim to capitalize on bullish trending markets without using leverage while mitigating the asset's maximum drawdown.
- Utilizes 100% of the equity to buy, hold, and manage the asset.
- Focuses on long-term growth and capital appreciation by fully investing in the asset during bullish conditions.
- ◓: Mode | %: Risk not applied (In investing mode, the strategy uses 100% of equity to buy the asset)
-----
What's the purpose of using moving averages in this strategy? What are the underlying calculations?
Using moving averages is a widely-used technique to trade with the trend.
The main purpose of using moving averages in this strategy is to filter out bearish price action and to only take trades when the price is trading ABOVE specified moving averages.
The script uses different types of moving averages with user-adjustable timeframes and periods/lengths, allowing traders to try out different variations to maximize strategy performance and minimize drawdowns.
By applying these calculations, the strategy effectively identifies bullish trends and avoids market conditions that are not conducive to profitable trades.
The MA filter allows traders to choose whether they want a specific moving average above or below another one as their entry condition.
This comparison filter can be turned on (>/<) or off.
For example, you can set the filter so that MA#1 > MA#2, meaning the first moving average must be above the second one before the script looks for entry conditions. This adds an extra layer of trend confirmation, ensuring that trades are only taken in more favorable market conditions.
MA #1: Fast MA | MA #2: Medium MA | MA #3: Slow MA
⍺: MA Period | Σ: MA Timeframe
-----
What entry modes are used in this strategy? What are the underlying calculations?
The strategy by default uses two different techniques for the entry criteria with user-adjustable left and right bars: Breakout and Fractal.
1. Breakout Entries :
- The strategy looks for pivot high points with a default period of 3.
- It stores the most recent high level in a variable.
- When the price crosses above this most recent level, the strategy checks if all conditions are met and the bar is closed before taking the buy entry.
◧: Pivot high left bars period | ◨: Pivot high right bars period
2. Fractal Entries :
- The strategy looks for pivot low points with a default period of 3.
- When a pivot low is detected, the strategy checks if all conditions are met and the bar is closed before taking the buy entry.
◧: Pivot low left bars period | ◨: Pivot low right bars period
By utilizing these entry modes, the strategy aims to capitalize on bullish price movements while ensuring that the necessary conditions are met to validate the entry points.
-----
What type of stop-loss identification method are used in this strategy? What are the underlying calculations?
Initial Stop-Loss:
1. ATR Based:
The Average True Range (ATR) is a method used in technical analysis to measure volatility. It is not used to indicate the direction of price but to measure volatility, especially volatility caused by price gaps or limit moves.
Calculation:
- To calculate the ATR, the True Range (TR) first needs to be identified. The TR takes into account the most current period high/low range as well as the previous period close.
The True Range is the largest of the following:
- Current Period High minus Current Period Low
- Absolute Value of Current Period High minus Previous Period Close
- Absolute Value of Current Period Low minus Previous Period Close
- The ATR is then calculated as the moving average of the TR over a specified period. (The default period is 14).
Example - ATR (14) * 1.5
⍺: ATR period | Σ: ATR Multiplier
2. ADR Based:
The Average Day Range (ADR) is an indicator that measures the volatility of an asset by showing the average movement of the price between the high and the low over the last several days.
Calculation:
- To calculate the ADR for a particular day:
- Calculate the average of the high prices over a specified number of days.
- Calculate the average of the low prices over the same number of days.
- Find the difference between these average values.
- The default period for calculating the ADR is 14 days. A shorter period may introduce more noise, while a longer period may be slower to react to new market movements.
Example - ADR (14) * 1.5
⍺: ADR period | Σ: ADR Multiplier
Application in Strategy:
- The strategy calculates the current bar's ADR/ATR with a user-defined period.
- It then multiplies the ADR/ATR by a user-defined multiplier to determine the initial stop-loss level.
By using these methods, the strategy dynamically adjusts the initial stop-loss based on market volatility, helping to protect against adverse price movements while allowing for enough room for trades to develop.
Trailing Stop-Loss:
One of the key elements of this strategy is its ability to detec buyside and sellside liquidity levels across multiple timeframes to trail the stop-loss once the trade is in running profits.
By utilizing this approach, the strategy allows enough room for price to run.
There are two built-in trailing stop-loss (SL) options you can choose from while in a trade:
1. External Trailing Stop-Loss:
- Uses sell-side liquidity to trail your stop-loss, allowing price to consolidate before continuation. This method is less aggressive and provides more room for price fluctuations.
Example - External - Wick below the trailing SL - 12H trailing timeframe
⍺: Exit type | Σ: Trailing stop-loss timeframe
2. Internal Trailing Stop-Loss:
- Uses the most recent swing low with a period of 2 to trail your stop-loss. This method is more aggressive compared to the external trailing stop-loss, as it tightens the stop-loss closer to the current price action.
Example - Internal - Close below the trailing SL - 6H trailing timeframe
⍺: Exit type | Σ: Trailing stop-loss timeframe
Each market behaves differently across various timeframes, and it is essential to test different parameters and optimizations to find out which trailing stop-loss method gives you the desired results and performance.
-----
What type of break-even and take profit identification methods are used in this strategy? What are the underlying calculations?
For Break-Even:
- You can choose to set a break-even level at which your initial stop-loss moves to the entry price as soon as it hits, and your trailing stop-loss gets activated (if enabled).
- You can select either a percentage (%) or risk-to-reward (RR) based break-even, allowing you to set your break-even level as a percentage amount above the entry price or based on RR.
For TP1 (Take Profit 1):
- You can choose to set a take profit level at which your position gets fully closed or 50% if the TP2 boolean is enabled.
- Similar to break-even, you can select either a percentage (%) or risk-to-reward (RR) based take profit level, allowing you to set your TP1 level as a percentage amount above the entry price or based on RR.
For TP2 (Take Profit 2):
- You can choose to set a take profit level at which your position gets fully closed.
- As with break-even and TP1, you can select either a percentage (%) or risk-to-reward (RR) based take profit level, allowing you to set your TP2 level as a percentage amount above the entry price or based on RR.
The underlying calculations involve determining the price levels at which these actions are triggered. For break-even, it moves the initial stop-loss to the entry price and activate the trailing stop-loss once the break-even level is reached.
For TP1 and TP2, it's specifying the price levels at which the position is partially or fully closed based on the chosen method (percentage or RR) above the entry price.
These calculations are crucial for managing risk and optimizing profitability in the strategy.
⍺: BE/TP type (%/RR) | Σ: how many RR/% above the current price
-----
What's the ADR filter? What does it do? What are the underlying calculations?
The Average Day Range (ADR) measures the volatility of an asset by showing the average movement of the price between the high and the low over the last several days.
The period of the ADR filter used in this strategy is tied to the same period you've used for your initial stop-loss.
Users can define the minimum ADR they want to be met before the script looks for entry conditions.
ADR Bias Filter:
- Compares the current bar ADR with the ADR (Defined by user):
- If the current ADR is higher, it indicates that volatility has increased compared to ADR (DbU).(⬆)
- If the current ADR is lower, it indicates that volatility has decreased compared to ADR (DbU).(⬇)
Calculations:
1. Calculate ADR:
- Average the high prices over the specified period.
- Average the low prices over the same period.
- Find the difference between these average values in %.
2. Current ADR vs. ADR (DbU):
- Calculate the ADR for the current bar.
- Calculate the ADR (DbU).
- Compare the two values to determine if volatility has increased or decreased.
By using the ADR filter, the strategy ensures that trades are only taken in favorable market conditions where volatility meets the user's defined threshold, thus optimizing entry conditions and potentially improving the overall performance of the strategy.
>: Minimum required ADR for entry | %: Current ADR comparison to ADR of 14 days ago.
-----
What's the probability filter? What are the underlying calculations?
The probability filter is designed to enhance trade entries by using buyside liquidity and probability analysis to filter out unfavorable conditions.
This filter helps in identifying optimal entry points where the likelihood of a profitable trade is higher.
Calculations:
1. Understanding Swing highs and Swing Lows
Swing High: A Swing High is formed when there is a high with 2 lower highs to the left and right.
Swing Low: A Swing Low is formed when there is a low with 2 higher lows to the left and right.
2. Understanding the purpose and the underlying calculations behind Buyside, Sellside and Equilibrium levels.
3. Understanding probability calculations
1. Upon the formation of a new range, the script waits for the price to reach and tap into equilibrium or the 50% level. Status: "⏸" - Inactive
2. Once equilibrium is tapped into, the equilibrium status becomes activated and it waits for either liquidity side to be hit. Status: "▶" - Active
3. If the buyside liquidity is hit, the script adds to the count of successful buyside liquidity occurrences. Similarly, if the sellside is tapped, it records successful sellside liquidity occurrences.
5. Finally, the number of successful occurrences for each side is divided by the overall count individually to calculate the range probabilities.
Note: The calculations are performed independently for each directional range. A range is considered bearish if the previous breakout was through a sellside liquidity. Conversely, a range is considered bullish if the most recent breakout was through a buyside liquidity.
Example - BSL > 50%
-----
What's the sentiment Filter? What are the underlying calculations?
Sentiment filter aims to calculate the percentage level of bullish or bearish fluctuations within equally divided price sections, in the latest price range.
Calculations:
This filter calculates the current sentiment by identifying the highest swing high and the lowest swing low, then evenly dividing the distance between them into percentage amounts. If the price is above the 50% mark, it indicates bullishness, whereas if it's below 50%, it suggests bearishness.
Sentiment Bias Identification:
Bullish Bias: The current price is trading above the 50% daily range.
Bearish Bias: The current price is trading below the 50% daily range.
Example - Sentiment Enabled | Bullish degree above 50% | Bullish sentimental bias
>: Minimum required sentiment for entry | %: Current sentimental degree in a (Bullish/Bearish) sentimental bias
-----
What's the range length Filter? What are the underlying calculations?
The range length filter identifies the price distance between buyside and sellside liquidity levels in percentage terms. When enabled, the script only looks for entries when the minimum range length is met. This helps ensure that trades are taken in markets with sufficient price movement.
Calculations:
Range Length (%) = ( ( Buyside Level − Sellside Level ) / Current Price ) ×100
Range Bias Identification:
Bullish Bias: The current range price has broken above the previous external swing high.
Bearish Bias: The current range price has broken below the previous external swing low.
Example - Range length filter is enabled | Range must be above 5% | Price must be in a bearish range
>: Minimum required range length for entry | %: Current range length percentage in a (Bullish/Bearish) range
-----
What's the day filter Filter, what does it do?
The day filter allows users to customize the session time and choose the specific days they want to include in the strategy session. This helps traders tailor their strategies to particular trading sessions or days of the week when they believe the market conditions are more favorable for their trading style.
Customize Session Time:
Users can define the start and end times for the trading session.
This allows the strategy to only consider trades within the specified time window, focusing on periods of higher market activity or preferred trading hours.
Select Days:
Users can select which days of the week to include in the strategy.
This feature is useful for excluding days with historically lower volatility or unfavorable trading conditions (e.g., Mondays or Fridays).
Benefits:
Focus on Optimal Trading Periods:
By customizing session times and days, traders can focus on periods when the market is more likely to present profitable opportunities.
Avoid Unfavorable Conditions:
Excluding specific days or times can help avoid trading during periods of low liquidity or high unpredictability, such as major news events or holidays.
Increased Flexibility: The filter provides increased flexibility, allowing traders to adapt the strategy to their specific needs and preferences.
Example - Day filter | Session Filter
θ: Session time | Exchange time-zone
-----
What tables are available in this script?
Table Type:
- Summary: Provides a general overview, displaying key performance parameters such as Net Profit, Profit Factor, Max Drawdown, Average Trade, Closed Trades, Compound Annual Growth Rate (CAGR), MAR and more.
CAGR: It calculates the 'Compound Annual Growth Rate' first and last taken trades on your chart. The CAGR is a notional, annualized growth rate that assumes all profits are reinvested. It only takes into account the prices of the two end points — not drawdowns, so it does not calculate risk. It can be used as a yardstick to compare the performance of two strategies. Since it annualizes values, it requires a minimum 4H timeframe to display the CAGR value. annualizing returns over smaller periods of times doesn't produce very meaningful figures.
MAR: Measure of return adjusted for risk: CAGR divided by Max Drawdown. Indicates how comfortable the system might be to trade. Higher than 0.5 is ideal, 1.0 and above is very good, and anything above 3.0 should be considered suspicious and you need to make sure the total number of trades are high enough by running a Deep Backtest in strategy tester. (available for TradingView Premium users.)
Avg Trade: The sum of money gained or lost by the average trade generated by a strategy. Calculated by dividing the Net Profit by the overall number of closed trades. An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.
MaxDD: Displays the largest drawdown of losses, i.e., the maximum possible loss that the strategy could have incurred among all of the trades it has made. This value is calculated separately for every bar that the strategy spends with an open position.
Profit Factor: The amount of money a trading strategy made for every unit of money it lost (in the selected currency). This value is calculated by dividing gross profits by gross losses.
Avg RR: This is calculated by dividing the average winning trade by the average losing trade. This field is not a very meaningful value by itself because it does not take into account the ratio of the number of winning vs losing trades, and strategies can have different approaches to profitability. A strategy may trade at every possibility in order to capture many small profits, yet have an average losing trade greater than the average winning trade. The higher this value is, the better, but it should be considered together with the percentage of winning trades and the net profit.
Winrate: The percentage of winning trades generated by a strategy. Calculated by dividing the number of winning trades by the total number of closed trades generated by a strategy. Percent profitable is not a very reliable measure by itself. A strategy could have many small winning trades, making the percent profitable high with a small average winning trade, or a few big winning trades accounting for a low percent profitable and a big average winning trade. Most trend-following successful strategies have a percent profitability of 15-40% but are profitable due to risk management control.
BE Trades: Number of break-even trades, excluding commission/slippage.
Losing Trades: The total number of losing trades generated by the strategy.
Winning Trades: The total number of winning trades generated by the strategy.
Total Trades: Total number of taken traders visible your charts.
Net Profit: The overall profit or loss (in the selected currency) achieved by the trading strategy in the test period. The value is the sum of all values from the Profit column (on the List of Trades tab), taking into account the sign.
- Monthly: Displays performance data on a month-by-month basis, allowing users to analyze performance trends over each month.
- Weekly: Displays performance data on a week-by-week basis, helping users to understand weekly performance variations.
- OFF: Hides the performance table.
Labels:
- OFF: Hides labels in the performance table.
- PnL: Shows the profit and loss of each trade individually, providing detailed insights into the performance of each trade.
- Range: Shows the range length and Average Day Range (ADR), offering additional context about market conditions during each trade.
Profit Color:
- Allows users to set the color for representing profit in the performance table, helping to quickly distinguish profitable periods.
Loss Color:
- Allows users to set the color for representing loss in the performance table, helping to quickly identify loss-making periods.
These customizable tables provide traders with flexible and detailed performance analysis, aiding in better strategy evaluation and optimization.
-----
User-input styles and customizations:
To facilitate studying historical data, all conditions and rules can be applied to your charts. By plotting background colors on your charts, you'll be able to identify what worked and what didn't in certain market conditions.
Please note that all background colors in the style are disabled by default to enhance visualization.
-----
How to Use This Algobuilder to Create a Profitable Edge and System:
Choose Your Strategy mode:
- Decide whether you are creating an investing strategy or a trading strategy.
Select a Market:
- Choose a one-sided market such as stocks, indices, or cryptocurrencies.
Historical Data:
- Ensure the historical data covers at least 10 years of price action for robust backtesting.
Timeframe Selection:
- Choose the timeframe you are comfortable trading with. It is strongly recommended to use a timeframe above 15 minutes to minimize the impact of commissions on your profits.
Set Commission and Slippage:
- Properly set the commission and slippage in the strategy properties according to your broker or prop firm specifications.
Parameter Optimization:
- Use trial and error to test different parameters until you find the performance results you are looking for in the summary table or, preferably, through deep backtesting using the strategy tester.
Trade Count:
- Ensure the number of trades is 100 or more; the higher, the better for statistical significance.
Positive Average Trade:
- Make sure the average trade value is above zero.
(An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.)
Performance Metrics:
- Look for a high profit factor, MAR (Mar Ratio), CAGR (Compound Annual Growth Rate), and net profit with minimum drawdown. Ideally, aim for a drawdown under 20-30%, depending on your risk tolerance.
Refinement and Optimization:
- Try out different markets and timeframes.
- Continue working on refining your edge using the available filters and components to further optimize your strategy.
Automation:
- Once you’re confident in your strategy, you can use the automation section to connect the algorithm to your broker or prop firm.
- Trade a fully automated and backtested trading strategy, allowing for hands-free execution and management.
-----
What makes this strategy original?
1. Incorporating direct integration of probabilities into the strategy.
2. Leveraging market sentiment to construct a profitable approach.
3. Utilizing built-in market structure-based trailing stop-loss mechanisms across various timeframes.
4. Offering both investing and trading strategies, facilitating optimization from different perspectives.
5. Automation for efficient execution.
6. Providing a summary table for instant access to key parameters of the strategy.
-----
How to use automation?
For Traders:
1. Ensure the strategy parameters are properly set based on your optimized parameters.
2. Enter your PineConnector License ID in the designated field.
3. Specify the desired risk level.
4. Provide the Metatrader symbol.
5. Check for chart updates to ensure the automation table appears on the top right corner, displaying your License ID, risk, and symbol.
6. Set up an alert with the strategy selected as Condition and the Message as {{strategy.order.alert_message}}.
7. Activate the Webhook URL in the Notifications section, setting it as the official PineConnector webhook address.
8. Double-check all settings on PineConnector to ensure the connection is successful.
9. Create the alert for entry/exit automation.
For Investors:
1. Ensure the strategy parameters are properly set based on your optimized parameters.
2. Choose "Investing" in the user-input settings.
3. Create an alert with a specified name.
4. Customize the notifications tab to receive alerts via email.
5. Buying/selling alerts will be triggered instantly upon entry or exit order execution.
----
Strategy Properties
This script backtest is done on 4H COINBASE:BTCUSD , using the following backtesting properties:
Balance: $5000
Order Size: 10% of the equity
Risk % per trade: 1%
Commission: 0.04% (Default commission percentage according to TradingView competitions rules)
Slippage: 75 ticks
Pyramiding: 2
-----
Terms and Conditions | Disclaimer
Our charting tools are provided for informational and educational purposes only and should not be construed as financial, investment, or trading advice. They are not intended to forecast market movements or offer specific recommendations. Users should understand that past performance does not guarantee future results and should not base financial decisions solely on historical data.
Built-in components, features, and functionalities of our charting tools are the intellectual property of @Fractalyst Unauthorized use, reproduction, or distribution of these proprietary elements is prohibited.
By continuing to use our charting tools, the user acknowledges and accepts the Terms and Conditions outlined in this legal disclaimer and agrees to respect our intellectual property rights and comply with all applicable laws and regulations.
Forex & Stock Daily WatchList And Screener [M]Hi, this is a watchlist and screener indicator for Forex and Stocks.
This indicator is designed for traders who trade in the forex markets and monitor developments in indices and other currency pairs.
It includes information on 14 indices such as the volatility index, Baltic dry index, etc. You can customize the indices as you wish. The indices table contains the index's price (or points), daily change, stochastic value, and trend direction.
The second table is designed for trading forex and stock currency pairs.
In this table, you will find information such as price, volume, change, stochastic, RSI, trend direction, and MACD result for all traded pairs. You can customize all the currency pairs in this table as you wish, and you can also tailor the oscillator settings to your preferences.
In the settings section, you can use checkboxes to hide the pairs in both tables.
The "Customize" section in the settings allows you to personalize the table appearances according to your preferences.
Scalping The Bull - BullBot for Stock and ForexName : Scalping The Bull - BullBot for Stock and Forex.
Category : Scalping tool for the Stock and Forex market, optimized for trend following and mean reversal operations.
Timeframe : Recommended to be used on timeframe 1m, 5m, 30m, 1h, 1D, depending on the specific technique.
Technical Analysis : The indicator implements the trading techniques of Scalping The Bull. Even if the techniques are exquisitely discretionary, we have written the indicator with our interpretation of the them to identify the patterns automatically. We also codified a the process described below, giving the possibility to trade mechanically. The indicator is designed for a short-term (intraday or scalping) trend-following approach, where the entry is made on the breakout of significant price levels. Entry setups are calculated by price action analysis using 5-10-50-200 EMAs as reference. According to the interaction of price action with the EMAs, patterns are generated, and the indicator finds them independently.
Suggested use :
The process follows:
1. Selection of the instrument to trade on
Given the short duration of the trades, there must be sufficient volatility and liquidity. You can add the different instruments to a TradingView watch list and then make a first skim, considering the daily percentage change. Once an instrument has been selected, the indicator allows you to check at a glance things like the Rate of Change (ROC) and the detection of opening gaps.
2. Identification of the main trend
Once in the instrument, the main trend of the underlying is identified through the 50-200 EMAs: if the fast EMA is greater than the slow one, we have a bullish trend, otherwise a bearish trend on a higher timeframe than the one in which the trade is executed. The rule is to trade in favor of the main trend. For this reason, the indicator prints to chart reference averages. It is also recommended to check the daily timeframe, always using the averages, preferring those instruments where the price follows an average without touching it too often.
3. Identification of breakout levels
Breakout levels favoring the trend are identified near the daily high/minimum, the previous day's high/minimum, or the weekly high/minimum. The indicator prints such levels on the chart with lines.
4. Identification of secondary trends and entry levels
Patterns can be divided into three categories. Trend-based ones have the function of identifying the secondary trend and then confirming the trade. Breakout patterns are used to find entry levels.
a. Trend Continuation Patterns (Price/EMA) : are used to get confirmation that the minor trend is in agreement with the major trend (i.e., Shimano, Dive, Dip, Anti-crossing).
b. Trend Change Patterns (Price/EMA) : are used to get confirmation that a minor trend in the opposite direction of the main trend is ending and therefore are used to get further confirmation of the trade (i.e., Bounce, Viagra, Return to Highs/Minimums).
c. Breakout Patterns : identify the optimal price levels for trade entry (i.e., Third Touch, Bud, Maxi Bud, Color Change).
Details on how the specific patterns are computed can be found below in the description of this indicator.
5. Definition of Stop Loss and Take Profit
Once the entry price is calculated, different types of Stop Loss (e.g., relative minimum of Tot candles, first or second average below price, price levels) and Take Profit (relative maximum of Tot candles, first or second average above price, price levels) can be considered. A risk/reward ratio of at least 1.2 should always be considered, depending on one's risk appetite.
6. Define the position management strategy
Normally, when a mock breakout is executed, the advice is to exit the trade as soon as possible or at least to bring the stop-loss to break even. A trailing stop on relative lows or the nearest average is also possible.
7. Enter the position
Usually, with a stop order, follow the rules defined in the previous steps.
Configuration :
Graphical configuration :
Show ROC filter : turns the background green when the asset has enough volatility to activate patterns.
Show Legend : enables the description on the lines of the trigger points.
Show Table : displays the volatility table where the GAP and ROC (Rate of Change) information is present.
Show Take Profit % - Automatic : shows the percentage scale that automatically adjusts to the volatility of the chart to identify the Take Profit and Stop Loss at a glance.
Label color : adjusts the color of the labels.
Trigger Point Colors : Adjust the colors of the trigger points.
Trigger Points
Today's highs and lows : draw on the chart the closing price of Yesterday, the opening price of the daily candlestick, and the highs and lows of the day (high in purple, low in red, Yesterday's close in green, and open in orange).
Yesterday's highs and lows : draw on the chart the highs and lows of the previous day (high in yellow, low in red). An alert can be activated with a % offset.
Weekly highs and lows : draw the highs and lows of the previous week on the chart (high in white, low in red). An alert can be activated with a % offset.
Price Patterns :
Gap : a label and an alert can be activated.
Pay..!! : a label and an alert can be activated.
Third Touch and Third Touch on EMA : a label and an alert can be activated.
Return to Highs : a label and an alarm can be activated.
Return to Lows : a label and an alarm can be activated.
Long and Short Color Change : a label and an alert can be activated.
EMA Patterns :
Viagra long and short : a label and an alert can be activated for the specific market and EMA situations.
Shimano : a label and an alert can be activated with a configurable candlestick threshold.
Emergence - Dive : a label and an alert can be activated.
Anti-crossing - Anti-crossing short : a label and an alarm can be activated.
Bounce on EMA long and short : a label and an alert can be activated with a configurable tick tolerance.
Bud - Maxi Bud - Bud Short : a label and an alert can be activated on all timeframes.
Alerts :
Activate all alerts : you can activate alerts by clicking on Alerts, then on the condition "BullBot" and then on "Any alert() function.". So that you know, creating alerts on the price-EMA crossing is also possible.
Patterns :
The list of patterns that are automatically recognized by the indicator follows.
Gap : indicates when a Gap Up or Gap Down occurs at the opening of a session, particularly useful in the equity markets.
Pay : signals when the stock has risen by a sufficient percentage to be tradable, adjusts the triggering of many bounce and breakout patterns.
Viagra : signaled for both a long and short setup, indicates an overbought or oversold situation by the appearance of gaps and a series of consecutive candles contained by the fast EMAs (5 -10) depending on the market of reference.
Third touch and third touch EMA : signals a breakout conformation, indicated when three touches occur at the same price level or below one of the slow EMAs (50 - 200).
Shimano : detects lateralization between Ema 50 and Ema 200, indicating that we are in a retracement phase and that a new impulsive move may soon develop.
Emergence - Dive : these are the main patterns for identifying the trend. The indicator signals when the EMA 50 and 200 are approaching to anticipate their crossing to the top or bottom.
Anti-crossing long - Anti-crossing short : occurs when the price, after an important impulse, makes a retracement to the EMA 200, bringing the EMA 50 to approach it without ever touching it, but before the cross, an opposite impulse determines the end of the retracement and the resumption of the trend in place.
Rebound : signals in the first rebound on the EMA 50 and EMA 200 after an impulse that recorded new highs or lows.
Return to the Highs - Return to the Lows : this pattern is closely related to rebounds. It indicates that the price is approaching the highs or lows again after a rebound on a slow EMA.
Change Color : is based on the previous session's closing price. It indicates when the price is approaching either from above or below this level, which determines the Color of the daily candlestick.
Bud - Maxi Bud - Bud Short : Bud occurs when the price breaks above EMA 10, and there are at least two consecutive candles between the high and low of the breakout impulse. Maxi Bud signals near the day's highs when this situation occurs, and Bud Short signals the breakout levels for a short trade.
CE - Market Performance TableThe 𝓜𝓪𝓻𝓴𝓮𝓽 𝓟𝓮𝓻𝓯𝓸𝓻𝓶𝓪𝓷𝓬𝓮 𝓣𝓪𝓫𝓵𝓮 is a sophisticated market tool designed to provide valuable insights into the current market trends and the approximate current position in the Macroeconomic Regime.
Furthermore the 𝓜𝓪𝓻𝓴𝓮𝓽 𝓟𝓮𝓻𝓯𝓸𝓻𝓶𝓪𝓷𝓬𝓮 𝓣𝓪𝓫𝓵𝓮 provides the Correlation Implied Trend for the Asset on the Chart. Lastly it provides information about current "RISK ON" or "RISK OFF" periods.
Methodology:
𝓜𝓪𝓻𝓴𝓮𝓽 𝓟𝓮𝓻𝓯𝓸𝓻𝓶𝓪𝓷𝓬𝓮 𝓣𝓪𝓫𝓵𝓮 tracks the 15 underlying Stock ETF's to identify their performance and puts the combined performances together to visualize 42MACRO's GRID Equity Model.
For this it uses the below ETF's:
Dividends (SPHD)
Low Beta (SPLV)
Quality (QUAL)
Defensives (DEF)
Growth (IWF)
High Beta (SPHB)
Cyclicals (IYT, IWN)
Value (IWD)
Small Caps (IWM)
Mid Caps (IWR)
Mega Cap Growth (MGK)
Size (OEF)
Momentum (MTUM)
Large Caps (IWB)
Overall Settings:
The main time values you want to change are:
Correlation Length
- Defines the time horizon for the Correlation Table
ROC Period
- Defines the time horizon for the Performance Table
Normalization lookback
- Defines the time horizon for the Trend calculation of the ETF's
- For longer term Trends over weeks or months a length of 50 is usually pretty accurate
Visuals:
There is a variety of options to change the visual settings of what is being plotted and the two table positions and additional considerations.
Everything that is relevant in the underlying logic that can help comprehension can be visualized with these options.
Market Correlation:
The Market Correlation Table takes the Correlation of the above ETF's to the Asset on the Chart, it furthermore uses the Normalized KAMA Oscillator by IkkeOmar to analyse the current trend of every single ETF.
It then Implies a Correlation based on the Trend and the Correlation to give a probabilistically adjusted expectation for the future Chart Asset Movement. This is strengthened by taking the average of all Implied Trends.
With this the Correlation Table provides valuable insights about probabilistically likely Movement of the Asset, for Traders and Investors alike, over the defined time duration.
Market Performance:
𝓜𝓪𝓻𝓴𝓮𝓽 𝓟𝓮𝓻𝓯𝓸𝓻𝓶𝓪𝓷𝓬𝓮 𝓣𝓪𝓫𝓵𝓮 is the actual valuable part of this Indicator.
It provides valuable information about the current market environment (whether it's risk on or risk off), the rough GRID models from 42MACRO and the actual market performance.
This allows you to obtain a deeper understanding of how the market works and makes it simple to identify the actual market direction.
Utility:
The 𝓜𝓪𝓻𝓴𝓮𝓽 𝓟𝓮𝓻𝓯𝓸𝓻𝓶𝓪𝓷𝓬𝓮 𝓣𝓪𝓫𝓵𝓮 is divided in 4 Sections which are the GRID regimes:
Economic Growth:
Goldilocks
Reflation
Economic Contraction:
Inflation
Deflation
Top 5 Equity Style Factors:
Are the values green for a specific Column? If so then the market reflects the corresponding GRID behavior.
Bottom 5 Equity Style Factors:
Are the values red for a specific Column? If so then the market reflects the corresponding GRID behavior.
So if we have Goldilocks as current regime we would see green values in the Top 5 Goldilocks Cells and red values in the Bottom 5 Goldilocks Cells.
You will find that Reflation will look similar, as it is also a sign of Economic Growth.
Same is the case for the two Contraction regimes.
kyle algo v1
Integration of multiple technical indicators: The strategy mainly combines two technical indicators - Keltner Channels and Supertrend, to generate trading signals. It also calculates fifteen exponential moving averages (EMAs) for the high price with different periods ranging from 9 to 51.
Unique combination of indicators: The traditional Supertrend typically uses Average True Range (ATR) to calculate its upper and lower bands. In contrast, this script modifies the approach to use Keltner Channels instead.
Flexible sensitivity adjustment: This strategy provides a "sensitivity" input parameter for users to adjust, which controls the multiplier for the range in the Supertrend calculation. This can make the signals more or less sensitive to price changes, allowing users to tailor the strategy to their own risk tolerance and trading style.
EMA Energy Representation: The code offers a visualization of "EMA Energy", which color-codes the EMA lines based on whether the closing price is above or below the EMA line. This can provide an intuitive understanding of market trends.
Clear visual signals: The strategy generates clear "BUY" and "SELL" signals, represented as labels on the chart. This makes it easy to identify potential entry and exit points in the market.
Customizable: The script provides several user inputs, making it possible to fine-tune the strategy according to different market conditions and individual trading preferences.
EMA (Exponential Moving Average) Principle:
The EMA is a type of moving average that assigns more weight to the most recent data.
It responds more quickly to recent price changes and is used to capture short-term price trends.
Principle of Color Change :
In this trading strategy, the color of the EMA line changes based on whether the closing price is above or below the EMA. If the closing price is above the EMA, the EMA line turns green,
indicating an upward price trend. Conversely, if the closing price is below the EMA, the EMA line turns red,
indicating a downward price trend. These color changes help traders to more intuitively identify price trends
In short, our team provides a lot of practical space
That is your development space
Output7The "Output7" indicator is designed to guide traders in identifying potential buy and sell signals. This is achieved through the calculation of a custom indicator named `output7` and its derived moving averages. `output7` is defined as `c_1 - c_20 * (ohlcSq / hlSq)`. Here, `ohlcSq` stands for the square of the average of open, high, low, and close prices, while `hlSq` signifies the square of the average of high and low prices. `c_20` and `c_1` correspond to the closing price 20 periods ago and the current closing price, respectively.
**Interpreting the Indicator:**
**1. Support and Resistance**: This indicator calculates the support and resistance levels for the `output7` over a predefined lookback period. These levels are essential in the identification of potential price reversals in the market. When the `output7` line approaches or crosses these levels, it may suggest significant market shifts.
**2. Moving Averages of `output7`**: The indicator also generates short-term (5 periods by default) and long-term (10 periods by default) simple moving averages (SMAs) of the `output7` value. These SMAs can be helpful in determining market trends. When the short-term SMA lies above the long-term SMA, it indicates an upward trend. Conversely, when it falls below, it suggests a downward trend.
**3. Buy and Sell Signals**: The Output7 indicator generates two types of buy and sell signals based on the crossover of different moving averages. Yellow signals are produced when the simple moving average of close prices (7 periods by default) crosses the exponential moving average of close prices (14 periods by default). The blue signals are generated when the short-term SMA of `output7` crosses the long-term SMA of `output7`.
It is important to note that like all technical analysis tools, the Output7 indicator should not be used in isolation. Instead, it should be combined with other forms of analysis and indicators to validate its signals and minimize the likelihood of false signals. Factors such as the overall market trend, price patterns, volume, and fundamental analysis can provide additional context to the signals provided by the Output7 indicator. The interpretation of these signals should align with a trader's overall trading strategy, risk tolerance, and financial goals.
And finally. If you discover something else regarding this indicator. Please let me know in the comment section.
Rainbow Drift BetaRainbow Drift Beta is an indicator that detects the triggers of long and short positions at any TF.
It's based on two different type of approaches to the EMAs periods:
- Classic EMAs periods: 10 and 50
- Cycle EMAs perdios: 16, 64 and 256
The 256 period EMA (Annual Cycle) detects the trend: if the EMA 64 (Three-Weekly Cycle) is above, it shows an uptrend; while the EMA 64 is below, it means that the price action is in downtrend.
10 and 16 periods EMAs are working together as well as the 50 and the 64. The first couple reacts faster than the second one and as soon as the 10 is above the 16, the band shows the first attempt of the price action to go in the uptrend direction. The same concept is applied to the second couple (50, 64): when EMA 50 > EMA 64 it's a confirmation of the faster EMAs long direction. Viceverca happens for the downtrend but with the same concept.
As the EMA periods taken in consideration are quite often a sensitive level of reaction of the price, the indicator detects when there is trigger of a long or a short set up and plots a label on the chart. It's possibile to set up an alert as well.
Quite important, the indicator is looking for sideways patterns as the breakout of them shows a clear direction of the price.
Moreover, in order to privide the first and the best entry possibile, the indicator has a function that is triggering only one time as the trend reverted: for example, a long entry on the EMA 10-16 happens only one time since they crossover the EMA 64.
As included in the name, this is a beta version and new improvements will be added in the near future like suggested price entry, SL and TP, and the focus of the development is to avoid as much as possibile the false triggers.
Of course the best way to improve the code is to receive the users' feedbacks, so please feel free to post your comments and questions.
Rocket Grid Algorithm - The Quant ScienceThe Rocket Grid Algorithm is a trading strategy that enables traders to engage in both long and short selling strategies. The script allows traders to backtest their strategies with a date range of their choice, in addition to selecting the desired strategy - either SMA Based Crossunder or SMA Based Crossover.
The script is a combination of trend following and short-term mean reversing strategies. Trend following involves identifying the current market trend and riding it for as long as possible until it changes direction. This type of strategy can be used over a medium- to long-term time horizon, typically several months to a few years.
Short-term mean reversing, on the other hand, involves taking advantage of short-term price movements that deviate from the average price. This type of strategy is usually applied over a much shorter time horizon, such as a few days to a few weeks. By rapidly entering and exiting positions, the strategy seeks to capture small, quick gains in volatile market conditions.
Overall, the script blends the best of both worlds by combining the long-term stability of trend following with the quick gains of short-term mean reversing, allowing traders to potentially benefit from both short-term and long-term market trends.
Traders can configure the start and end dates, months, and years, and choose the length of the data they want to work with. Additionally, they can set the percentage grid and the upper and lower destroyers to manage their trades effectively. The script also calculates the Simple Moving Average of the chosen data length and plots it on the chart.
The trigger for entering a trade is defined as a crossunder or crossover of the close price with the Simple Moving Average. Once the trigger is activated, the script calculates the total percentage of the side and creates a grid range. The grid range is then divided into ten equal parts, with each part representing a unique grid level. The script keeps track of each grid level, and once the close price reaches the grid level, it opens a trade in the specified direction.
The equity management strategy in the script involves a dynamic allocation of equity to each trade. The first order placed uses 10% of the available equity, while each subsequent order uses 1% less of the available equity. This results in the allocation of 9% for the second order, 8% for the third order, and so on, until a maximum of 10 open trades. This approach allows for risk management and can help to limit potential losses.
Overall, the Rocket Grid Algorithm is a flexible and powerful trading strategy that can be customized to meet the specific needs of individual traders. Its user-friendly interface and robust backtesting capabilities make it an excellent tool for traders looking to enhance their trading experience.
CONSOLIDATION BAND BREAKOUT [5MIN TF]CONSOLIDTION BREAKOUT STRATEGY for 5 minute Time-Frame , that has the time condition adjustable for Indian Markets.
// ══════════════════════════════════════════════════════════════════════════ //
Unlike the Free Scripts - Risk Management , Position Sizing , Partial Exit etc. are also included .
Message to know more about the strategy.
// ══════════════════════════════════════════════════════════════════════════ //
The Timing can be changed to fit other markets, scroll down to "TIME CONDITION" to know more.
The commission is also included in the strategy .
The basic idea is when ,
1) Price crosses above upper Level ,indicated by Red Line, is a Long condition .
2) Price crosses below lower Level ,indicated by Green Line , is a Short condition .
3) Candle close crosses above ema1 , is a part of the Long condition .
4) Candle close crosses below ema1 , is a part of the Short condition .
5) Allowed hours specifies the trade entry timing.
6) ATR STOP is the stop-loss value on chart , can be adjusted in INPUTS.
7) Target 1 is the 1st target value on chart , can be adjusted in INPUTS.
8) RISK is Maximum Risk per trade for the intraday trade can be changed .
9) Total Capital used can be adjusted under INPUTS.
10) ATR TRAIL is used for trailing after entry, as mentioned in the inputs below.
11) Check trades under the list of trades .
12) Trade only in liquid stocks .
13) Risk only 1-5% of total capital.
14) Inputs can be changed for better back-test results, but also manually check the trades before setting alerts
15) SQUARE OFF TIME - As you change the time frame , also change the square-off time to that candle's closing time.
Eg: For 3min Time-frame , Hour = 2Hrs | Minute = 57min
16) Strategy stops for the day if you have a loss .
*The input values and the results are mentioned under "BACKTEST RESULTS" below*
// ══════════════════════════════ //
// ————————> RISK MANAGEMENT <——————— //
// ══════════════════════════════ //
Risk management is done based on max loss per trade and can be adjusted in the INPUTS.
// ═══════════════════════════ //
// ————————> POSITION SIZE <——————— //
// ═══════════════════════════ //
Quantity of each trade is different based on the loss
// ═════════════════════════ //
// ————————> PROPERTIES <——————— //
// ═════════════════════════ //
COMMISSION , SLIPPAGE ,RECALCULATE is already mentioned .
COMMISSION can be charges , based on the broker charges.
// ═══════════════════════════════//
// ————————> TIME CONDITION <————————— //
// ═══════════════════════════════//
The time can be changed in the INPUT.
The Indian Markets open at 9:15am and closes at 3:30pm.
The 'Allowed hours' under Inputs specifies the time at which Entries should happen .
"Close All" function closes all the trades before 3pm , at the open of the next candle.
To change the time to close all trades , check INPUT.
All open trades get closed at 3pm , because some brokers don't allow you to place fresh intraday orders after 3pm .
// ═══════════════════════════════════════════════ //
// ————————> BACKTEST RESULTS ( 123 CLOSED TRADES )<————————— //
// ═══════════════════════════════════════════════ //
INPUTS can be changed for better Back-Test results.
The strategy applied to NSE:TCS (5 min Time-Frame and with a capital of 1,00,000 ) gives us 77% profitability , as shown below
It was tested for a period a 1 year with a Profit Factor of 2.143 ,net Profit of 10,886 Rs .
The Initial Capital and Risk can be increased for better results.
The graph has a Linear Curve with Consistent Profits.
The INPUTS are as follows,
1) LENGTH ——————————————> 79
2) MUT_STDEV ————————————> 2.3
3) ALLOWED HRS ———————————> 9:25 TO 14:30
4) ATR STOP ——————————————> 2.2
5) RISK ——————————————————> 400
6) ATR TRAIL ———————————————> 2.6
7) TARGET 1 ————————————————> 2.1
8) MAX POSITION VALUE ——————————> 1,00,000
8) MAX DRAWDOWN —————————————> 2,000
8) SQUARE-OFF ————————————————> 14:55
NSE:TCS
Apply it to your charts Now !!
Send us a message to know more about this strategy
Thank You ☺ NSE:TCS
StockBee 4% BreakoutThe Stockbee 4% Breakout script is a study tool for users who wants to do a deep dive on StockBee's 4% Breakout momentum burst method. This script will assist a specific group of traders who trade this method easily find historical momentum bursts. This script finds and colors red any candle body that meets the following criteria:
1. Volume of the candle is greater than the previous candle volume.
2. The percent change of candle's price is greater than 4% from the previous candle close.
3. Current candle close is less than 30% from candle's high.
This script also filters out any candle that gaps up and breaks down with a close above 4% the previous candle (Eliminates gap-ups that fade). This tool is meant to find and filter possible candidates. Not every marked candle is a great momentum burst trade.
This is very helpful for Trading View users trading this specific setup.
Shinohara Intensity Ratio (SIR)Shinohara Intensity Ratio (SIR) - the indicator
This indicator is used to make clear the intensity of the trend. It shows the possible trend of the price. If the price is in an uptrend or in a downtrend, the indicator shows when you can buy or sell or get out. A good example can be seen in the chart with natural gas, a few days earlier it was already seen that a trend reversal was imminent. Shinohara indicator has already indicated it a few days before.
SIR preset
Period: last 26 periods
Strong ratio: green line "GL"
Weak ratio: red line "RL"
What shows you SIR indicator
It has two lines. The strong ratio line is colored in green and the weak ratio line in red.
When the "GL" is above the "RL", this is the indication of price is an uptrend. When the "RL" is above the "GL", it indicates the price in the downtrend.
The increasing of ratio is the sign of trend intensity is increasing. In the high value of the SIR indicator trend reversal may soon.
SIR indicator line is around 100, this indicating the intensity of the price is average.
SIR line is above 120, the intensity of starting a strong trend
SIR line is above 200 or more this indication of the extreme intensity of the trend
Using Strategy
Buy Signal: "GL" is rising above the 120 and the "RL" is below the 100 level
Sell Signal: "RL" is rising above the 120 level and the "GL" is below 100 level
When the "GL" & "RL" (both lines) are rising above 120 or more then you should avoid taking any position
You can take profit or close your position, if the indicator line moving above the 200 level, then you should alert. If the price trend starts reversing, then you can close your position.
Clutch AlgoThe Clutch Algo provides reversal signals and trend signals. The indicator can be used for stocks, crypto and forex. It can also be used for day trading and swing trading.
Reversal signals were done by modifying the Bollinger Bands and MACD and combining them in a unique way to find explosive price actions. These have been modified to provide signals at the bottom or top of a trend to catch price reversals and to improve margin of safety on trades. These signals are labeled as “Long” and “Short”.
We also added automatic support and resistance zones to increase the accuracy of the “Long” and “Short” signals. This was done by using historical price action of highs and lows and periods of consolidation where price reversed.
The trend signals, which are labeled as “Bull” and “Bear” signals use a combination of exponential moving averages. These signals can be used as trend continuations.
We also added an exponential moving average cloud to help traders easily visualize trend. This can be used as a guide to help you stay in a trade to maximize profits. It can also be used as a guide to get out of a trade if price breaks out of the cloud. The third use of the cloud can be used as support resistance in between high/low support and resistance zones.
Tips:
- Only take long/short signals when there is a support or resistance zone formed at or near the long/short signal, preferably within 1-3 bars of the support or resistance zone. Signals too far from "Long" or "Short" signals reduces your margin of safety.
- When in a Long or Short position, use support or resistance zones as a stop loss level as price is likely to go against the position.
- When taking a Long/Short or Bull/Bear signal, wait for candles to be completed to get best entry possible.
- Previous support zones can be used as resistance zones and previous resistance zones can be used as support zones.
- The support and resistance (SR) period can be adjusted. Numbers in the SR settings are bars looking back. For example, a setting of 10, looks back 10 bars.
[UPRIGHT Trading] Trend Direction Force Index (TDFI)The Trend Direction Force Index, TDFI or TDF Index, is a staple in the Forex community, but is excellent on most asset (i.e. stock) trading.
Developed by Pyotr Wojdyo for metastock trading platform originally, but now on several other.
The idea of the TDFI is that there is enough trend directional force to enter the trade.
How it works:
When the signal is above the high threshold, the trader can go long.
When the signal is below the low threshold, the trader can go short.
It's usually used as confirmation along with another indicator.
Features:
Fully customizable
Built-in color changing
Alerts!
If you like this, you will definitely like what else I've published.
Like, follow, support, etc.
Enjoy.
Cheers,
Mike
(UPRIGHT Trading)
HighLow Box Highlight between EarningsHighLow Box Highlight between Earnings
This is an indicator to highlight area between two earning periods and their highest and lowest points.
It also alternates the highlight color in each subsequent block.
Tested to work in 1D charts and 1M charts
Just drop a message, if you want this further developed with more features.
Note: This was requested by user Meatpye on a forum.
Relative Strength Index Leaderwhat will happen for the RSI if the price will increases or decreases by X percent ? This indicator takes your hands.
For instance:
You set Leader1 = 1 and Leader2 = -1 (by default), So this indicator shows you that if the price will increase 1% (Leader1) or decrease 1% (Leader2) How much the RSI will be?
So you have 3 horns, One of them main RSI that shows the amount of RSI right now, and 2 others show what will happen for RSI if the price increase or decrease by X percent.
if you need to contact me or new suggestions for improving send me an email:
sydalifazel@gmail.com
Stock trending strategy This is a long only strategy designed maily for stock markets and futures. In general it works best with 1h, however it can be optimized with other timeframes as well.
Components:
VWAP
MACD histogram
EMA 9
Rules for entry
Long :
For VWAP: close is above the vwap daily
EMA: close is above the moving average
MACD histogram is above 0
Short:
For VWAP: close is belowthe vwap daily
EMA: close is below the moving average
MACD histogram is below 0
Rules for exit
This strategy does not have any risk management inside. Instead it exits whenver it receives an opposite signal form the original one used for entry.
If you have any questions let me know !
The Manager The Manger is a simple and repeatable trade management indicator suite for all instruments and for all timeframes.
The strategy that makes up this trade management tool includes:
1. Average volume calculations with auto lookbacks - Each candle then is identified as being above or below average volume with Dots above or below each candle.
2. Volume Distribution or Accumulation candles - Identifies if the candle has higher or lower volume compared to previous candle
a. If Higher volume and is a Down candle it is a distribution candle and is coloured Red.
b. If Higher volume and is an Up candles it is an accumulation candle and is coloured Green.
3. Adjustable BIAS cloud with four settings for Day Trading and Swing Trading. Red is Bearish BIAS with Price action and Green is a Bullish BIAS with Price Action.
Some of the simple rules to follow when using "The Manager" to help manage your trades Long or Short. (More is covered in our tutorial video)
1. When Short Trading and you get a Green Accumulation Candle with a Cyan Dot Above candle (Higher than Average Volume) printed. This is a sign of a potential reversal against your short trade and an aggressive profit taking exit is necessary.
2. When Long Trading and you get a Red Distribution Candle with a Cyan Dot Above candle (Higher than Average Volume) printed. This is a sign of a potential reversal against your long trade and an aggressive profit taking exit is necessary.
3. Pullbacks against the direction of your trade with Blue Dots Below Candles (Lower than average volume) show low momentum pullbacks and a sign to stay in your trade or revert to BIAS Cloud rules.
4. BIAS Cloud - When Green Changes to Red, this is your conservative exit for Long Trades. - When Red changes to Green, this is your conservative exit for short trade.
5. BIAS Cloud - When day trading and your position has a parabolic move - change settings to day trading aggressive
6. BIAS Cloud - When Swing trading and your position has a parabolic move - change settings to day trading conservative or moderate depending on how much room you want to give for a pullback against the direction of your swing trade.
Remember when day trading or swing trading, there is usually a data or news catalyst that reverses the direction of an instrument and potentially a trade that you are in. "The Manager" soon spots those with either accumulation or distribution candles combining with higher than average volume. And usually with a distinct candle stick formation rejecting highs or lows. The ability for you to visually see this on your chart with our indicator gives you chance to maximise your profits by understanding the behaviour represented by the coloured candles and the dots above or below the candles. The BIAS cloud allows for a more conservative approach to this as discussed above
Stock StrategyStock holding trading strategy based on base breakout. It should be combined with the analysis of the fundamental factors of the stock to choose the stock with the best signal.
Example using 10 contract size with ADP, and commission per order is 0.1% with actual capital of 10000$, you can adjust other contract size for other stocks to be consistent with reality.
Crypto Fox Alert of Ann Strategy No RepaintHello traders
This is (( sirolf's ANN Indicator)) i updated it to (( No Repaint Version )) and it still have very good results
The new in strategy : -
1 - The Indicatoris no repaint now in any time frame
2- Now Indicatorhave two time frames which make you control strategy in entry and exit positions and you can change it as you want .
3- I recommended so much working in 5 min time frame and 15 min time frame to get the best results
but in the same time the Indicator is working in all time frames this just my advice for traders
4- I recommend so much using take profit and stop loss to avoid huge movements in markets
Notes.
--This Indicator Never Ever Repaint so it based on no repaint parameters.
--When using this alert you must notice this points :
1 - when you but the alert in the chart you will get this message :
( this indicator may be repaint ) and this for using time frame but this normal and dont worry of that
the indicator will never repaint .
2 - ( BUY) this the choice for enter long position .
3 - ( SELL) this the second choice you can use it to enter short position or exit long position .
4 - ( per bar close ) you must always use this option in alert conditions page .