Bull vs Bear Power by DGTElder-Ray Bear and Bull Power
Dr. Alexander Elder cleverly named his first indicator Elder-Ray because of its function, which is designed to see through the market like an X-ray machine. Developed in 1989, the Elder-Ray indicator can be applied to the chart of any security and helps traders determine the strength of competing groups of bulls and bears by gazing under the surface of the markets for data that may not immediately be ascertainable from a superficial glance at prices
The Elder-Ray indicator is comprised by three elements – Bear Power, Bull Power and a 13-period Exponential Moving Average.
As the high price of any candle shows the maximum power of buyers and the low price of any candle shows the maximum power of sellers, Elder uses the 13-period EMA in order to present the average consensus of price value. Bull power shows whether buyers are capable of pushing prices above the average consensus of value. Bear power shows whether sellers are capable of pushing prices below the average consensus of value. Mathematically, Bull power is the result of subtracting the 13-period EMA from the high price of the day, and Bear power is the result of subtracting the 13-period EMA from the low price of the day.
What does this study implements
Attempts to customize interpretation of Alexander Elder's Elder-Ray Indicator (Bull and Bear Power) by
• adding additional insights to support/confirm Elder’s strategy with different indicators related with the Elder’s concept
• providing different options of visualization of the indicator
• providing smoothing capability
Other Indicators to support/confirm Elder-Ray Indicator:
Colored Directional Movement Index (CDMI) , a custom interpretation of J. Welles Wilder’s Directional Movement Index (DMI) , where :
DMI is a collection of three separate indicators ( ADX , +DI , -DI ) combined into one and measures the trend’s strength as well as its direction
CDMI is a custom interpretation of DMI which presents ( ADX , +DI , -DI ) with a color scale - representing the trend’s strength, color density - representing momentum/slope of the trend’s strength, and triangle up/down shapes - representing the trend’s direction. CDMI provides all the information in a single line with colored triangle shapes plotted on the top. DMI can provide quality information and even trading signals but it is not an easy indicator to master, whereus CDMI simplifies its usage.
Alexander Elder considers the slope of the EMA, which gives insight into the recent trend whether is up or down, and CDMI adds additional insight of verifying/confirming the trend as well as its strength
Note : educational content of how to read CDMI can be found in ideas section named as “Colored Directional Movement Index”
different usages of CDMI can be observed with studies “Candlestick Patterns in Context by DGT", “Ichimoku Colored SuperTrend + Colored DMI by DGT”, “Colored Directional Movement and Bollinger Band's Cloud by DGT”, and “Technical Analyst by DGT”
Price Convergence/Divergence , if we pay attention to mathematical formulations of bull power, bear power and price convergence/divergence (also can be expressed as price distance to its ma) we would clearly observe that price convergence/divergence is in fact the result of how the market performed based on the fact that we assume 13-period EMA is consensus of price value. Then, we may assume that the price convergence/divergence crosses of bull power, or bear power, or sum of bull and bear power could be considered as potential trading signals
Additionally, price convergence/divergence visualizes the belief that prices high above the moving average or low below it are likely to be remedied in the future by a reverse price movement
Alternatively, Least Squares Moving Average of Price Convergence/Divergence (also known as Linear Regression Curve) can be plotted instead of Price Convergence/Divergence which can be considered as a smoothed version of Price Convergence/Divergence
Note : different usages of Price Convergence/Divergence can be observed with studies “Trading Psychology - Fear & Greed Index by DGT”, “Price Distance to its MA by DGT”, “P-MACD by DGT”, where “Price Distance to its MA by DGT” can also be considered as educational content which includes an article of a research carried on the topic
Options of Visualization
Bull and Bear Power plotted as two separate
• histograms
• lines
• bands
Sum of Bull and Bear Power plotted as single
• histogram
• line
• band
Others
Price Convergence/Divergence displayed as Line
CDMI is displayed as single colored line of triangle shapes, where triangle shapes displays direction of the trend (triangle up represents bull and triangle down represent bear), colors of CDMI displays the strength of the trend (green – strong bullish, red – strong bearish, gray – no trend, yellow – week trend)
In general with this study, color densities also have a meaning and aims to displays if the value of the indicator is falling or growing, darker colors displays more intense move comparing to light one
Note : band's upper and lower levels are calculated by using standard deviation build-in function with multiply factor of 0.236 Fibonacci’s ratio (just a number for our case, no any meaning)
Smoothing
No smoothing is applied by default but the capability is added in case Price Convergence/Divergence Line is assumed to be used as a signal line it will be worth smoothing the bear, bull or sum of bear and bull power indicators
Interpreting Elder-Ray Indicator, according to Dr. Alexander Elder
Bull Power should remain positive in normal circumstances, while Bear Power should remain negative in normal circumstances. In case the Bull Power indicator enters into negative territory, this implies that sellers have overcome buyers and control the market. In case the Bear Power indicator enters into positive territory, this indicates that buyers have overcome sellers and control the market. A trader should not go long at times when the Bear Power indicator is positive and he/she should not go short at times when the Bull Power indicator is negative.
13-period EMAs slope can be used in order to identify the direction of the major trend. According to Elder, the most reliable buy signals are generated, when there is a bullish divergence between the Bear Power indicator and the price (Bear Power forms higher lows, while the market forms lower lows). The most reliable sell signals are generated, when there is a bearish divergence between the Bull Power indicator and the price (Bull Power forms lower highs, while the market forms higher highs).
There are four basic conditions, required to go long or short, with the use of the Elder-Ray method alone.
In order to go long:
1. The market is in a bull trend, as indicated by the 13-period EMA
2. Bear Power is in negative territory, but increasing
3. The most recent Bull Power top is higher than its prior top
4. Bear Power is going up from a bullish divergence
The last two conditions are optional that fine-tune the buying decision
In order to go short:
1. The market is in a bear trend, as indicated by the 13-period EMA
2. Bull Power is in positive territory, but falling
3. The most recent Bear Power bottom is lower than its prior bottom
4. Bull Power is falling from a bearish divergence
The last two conditions are optional, they provide a stronger signal for shorting but they are not absolutely essential
If a trader is willing to add to his/her position, he/she needs to:
1. add to his/her long position, when the Bear Power falls below zero and then climbs back into positive territory
2. add to his/her short position, when the Bull Power increases above zero and then drops back into negative territory.
note : terminology of the definitions used herein are as per TV dictionary
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
Disclaimer : The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
Cari dalam skrip untuk "bear"
Candlestick Patterns by Dipak V2I am really excited to publish my work, I know its at the beginning but there is a lot to come in the future. I am writing a script to identify the candlestick patterns. In this version, I have added Hammer and Hanging Man Pattern in the first version, I know its less but its a beginning, I will keep adding the new information in my script in upcoming versions.
This script is for only learning purpose and not for treading realtime. In this script, it only identifies the pattern and does not check for its confirmation or does not provide any stop-loss, Also it does not check the prior trend before the pattern. These things really matter in the live trade. But in future, I am planning to add these things.
If you like my work, please like or comment your ideas I will try to include those in upcoming versions.
Hanging Man:
Hanging man is a bearish reversal candlestick pattern that signals about the uptrend or advancing phase are over and bulls have lost their control. Color of the candle is not important.
Identity:
1) Comes after a significant up rally or uptrend or advancing phase.
2) Small real body at the top.
3) Long lower shadow at least twice the real body.
4) Very small or no upper shadow.
Confirmation:
Immediate next candle’s close should be below the hanging man’s real body.
StopLoss:
There is a potential resistance level above the top of the hanging man. Stoploss should be above the resistance area or at the high of the hanging man.
Hammer:
Hammer is a bullish reversal candlestick pattern that signals about the downtrend or declining phase are over and bears have lost their control. Color of the candle is not important.
Identity:
1) Comes after significant down rally or downtrend or declining phase.
2) Small real body at the top.
3) Long lower shadow at least twice the real body.
4) Very small or no upper shadow.
Confirmation:
Immediate next candle’s close should be above the hammer’s low.
StopLoss:
There is a potential support level below the low of the hammer. Stoploss should be below the support area or at the low of the hammer.
Note: The candle is the same for Hanging Man and Hammer , Difference is where they appear in the uptrend or in the downtrend that makes the real difference.
GA - Trend WavesIntroduction
GA - Trend Waves (GA Waves) is a Trend Productivity Tool.
Its main purpose is to follow the trend for its entire duration, marking trend variations.
Besides, it highlights Buying and Selling Waves, and Wave Segments.
GA Waves plots the beginning of Buying and Selling Waves, including Wave Segments. It can favor the Main Trend or the Buying-Selling Wave.
This means that the Algorithm can highlight Waves Segments favoring the trend continuation. In the same way, it can highlight Wave Segments riding any wave for its entire duration.
The core of the tool is a set of mathematical functions that discretize the market behavior. These functions define the trend progression and its variations. They discretize buying-selling waves and their wave segments, for short-term and long-term tracking.
As well, the Algorithm includes the strengthens and weakness in the Bullish-Bearish Momentum.
By default, GA Trend Waves shows a colored envelope. It is around a particular curve that discretizes the main trend.
This curve is the Underlying Trend. It is not slow and it follows the trend changes with a high accuracy. The curve is green when the trend is bullish. Instead, the red color marks the curve when the trend is bearish.
The envelope around the underlying trend curve is a control tool. It has 2 important uses:
1 - It defines volatility boundaries on the Underlying Trend. The Algorithm uses these boundaries to reduce the uncertainty.
2 - It shows green and red areas highlighting Buying and Selling Waves in the trend.
Together with the Underlying Trend there is the Overlying Trend. By default, it is not visible on the chart. But it colors the price line.
The Overlying Trend is a short-term curve. It is very fast. The Algorithm uses this curve to define Wave Segments.
The Overlying Trend follows the segmentation of a buying-selling wave with high accuracy.
This accuracy is possible because each curve formula includes weighted moving averages. Each formula uses a recursive application of weighted moving averages.
Overlying and Underlying Trend takes advantages from the calculation of weighted moving averages. The advantage is the high precision even with a very short period.
Then, Overlaying and Underlying Trends are fast curves. They fit at the best their respective trend variations.
The Overlying Trend and the Underlying Trend with its envelope are Stochastic Series.
GA Trend Waves itself does not trigger an entry or an exit. But its indications highlight beginning, continuation, and ending of Buying-Selling Waves. This happens considering also the Trend Momentum and the Price Extension.
Buying-Selling Wave IN Points are the discretization of the trend variations. They show how Accumulation-Distribution Points sustain a Bullish or a Bearish Trend. These particular points mark the beginning of the new wave. In the same way, they show also the ending of the previous wave.
Buying-Selling Wave Segments are discretization of the wave variations. They show strength and weakness of the wave, changing the price line color by green or red. Besides, the Algorithm highlights Wave Segments that favor the continuation of the wave.
The user can choose to plot indications of Buying-Selling Wave Segments in 2 ways:
1 - Following the Trend Momentum.
2 - Following the Buying-Selling Wave.
For a fast trading, the user can get advantage from the opportunities that the wave can offer. But for the purpose to follow the trend, the user can ride waves, according to the trend direction.
The Overlying Trend discretize the Wave Segments, from the beginning to the end of the Wave. Instead, the Underlying Trend discretize the Bullish-Bearish Trend and its momentum.
GA Trend Waves on the Chart Pane - Main Features
GA Trend Waves in its Pane
-
Important Note
The GA Trend Waves purpose is to understand the nature of trend activity. If there is no trend, it would not be useful.
But GA Waves is an adaptive tool. It can work following Buying Waves and Selling Waves in the development of a Trading Area. Then, if the trading area is large enough, in relation to the contest, it can show relevant wave segments.
In any case, Traders should not attempt to make it work in conditions to which it does not work at the best. In this condition, the experience of the trader is the most valuable tool.
I restrict access to the tool. Use the links in my signature field to gain access to the script. Feel free to send me a PM for any question.
-
Buying-Selling Wave IN Point
GA Waves Algorithm uses a stochastic process to determinate Buying-Selling Wave IN Points. This function has a fast reaction to the trend waves. This is possible because it considers acceleration and deceleration in cyclical time patterns.
The stochastic series returns the beginning of each new wave. But the beginning of a wave is also the ending of the previous wave. Then, following a buying-selling wave, usable for trading, it shows when to exit the market.
Instead, enter the market depends on the wave conditions. Then, the Buying-Selling Wave IN Point is not enough to decide to enter the market. More parameters are necessary.
Bullish-Bearish Wave Segments
The beginning of a Wave Segment highlights the continuation of the wave. The Overlying Trend discretizes the Wave Segmentation. The Algorithm plots the wave segments on the price line. This happens coloring the curve with green or red.
GA Waves highlights the beginning of a Wave Segment according to specific conditions. The visible result is the plotting of relevant points in the chart to show the continuation of the wave. If the Price Extension is too big, the Algorithm skips to plot the wave segments that carries high risk.
Overlying and Underlying Trend Changes and Confirmation
GA Waves highlights changes of the trend using Line, Line Break, Step Line, Circles, and Crosses. The use of Line, Line Break, Step Line, and so on, marks the turning points. In particular, the Underlying Trend confirms the change of the Trend. This changing becomes useful to decide the type of investment to do and pyramiding.
Overlying and Underlying Trend with Envelope
Step Line highlighting Directions and Changes in Underlying and Overlying Trends
-
Note: I restrict access to the tool. Use the links in my signature field to gain access to the script. Feel free to send me a PM for any question.
Thank you
Girolamo Aloe
Founder of Profiting Me Finance Analytics
-
Disclaimer
Nobody in Girolamo Aloe websites and trading view profile is a Financial Advisor. Nothing therein is intended to be constructed as Financial Advice. The content on his websites is for information and educational purposes only.
Trading carries high risk. You should not invest money that you cannot afford to lose. Past performance is not an indication of future results.
Volume Plus (Volume+)View Total Volume, Bull Volume, and/or Bear Volume. View Volume Effectiveness to reveal how Volume has effected the price. View the Moving Average of any of the above metrics, selecting one or more types of moving averages(SMA, EMA, RMA, SWMA, VWMA, WMA, or ALMA). Create nearly infinite crossovers by activating the Secondary Moving Average and choosing a longer or shorter Length. Use the highlighter to quickly filter out noise and focus the events you're searching for, by choosing one or more highlight-scenarios from the Highlighting Menu. Use the Average Amplifier to fine tune your Highlighting results.
Use as an ordinary Volume Indicator
Show the Bullish volume within Total Volume
Show the Bearish volume within Total Volume
Show the Bullish and Bearish volume simultaneously within Total Volume
Create crossovers like this one, Bullish Volume Average with Bearish Volume Average
Show the gas mileage of volume, the Volume Effectiveness
Create crossovers like this, Volume Effectiveness 14 with Volume Effectiveness 60
Use Amplifiers to show things that are usually out of scale with one another, like Volume Effectiveness with Volume
Use the Highlighter to show anything, like here, when Bearish Volume was above average AND Volume Effectiveness was under average
From left to right, the Indicator Values are as follows:
1) Total True Volume (red, green, or gray when viewed alongside Bulls/Bears)
2) Volume Winner - Bulls v/s Bears (red or green)
3) Volume Loser - Bulls v/s Bears (red or green)
4) Volume Effectiveness (blue)
5) Design Spacer - Ignore This (green)
6) Design Spacer - Ignore This (red)
7) Total True Volume Primary Moving Average (dark gray)
8) Total True Volume Secondary Moving Average (dark gray)
9) Inferred Bullish Volume Primary Moving Average (dark green)
10) Inferred Bullish Volume Secondary Moving Average (dark green)
11) Inferred Bearish Volume Primary Moving Average (dark red)
12) Inferred Bearish Volume Secondary Moving Average (dark red)
13) Volume Effectiveness Primary Moving Average (blue)
14) Volume Effectiveness Secondary Moving Average (blue)
Click the sprocket and you'll find the following settings (which are explained below):
Total True Volume - This is your everyday, ordinary volume indicator, a total sum of the volume from each candle.
Inferred Bullish Volume - This subtracts Bearish Volume out of the Total True Volume. But without the bull-volume data from the exchange, we can only forensically infer the bullish volume by evaluating OHLC data to guess what ratio of upward v/s downward movement happened within the candle.
Inferred Bearish Volume - This subtracts Bullish Volume out of the Total True Volume. But without the bear-volume data from the exchange, we can only forensically infer the bearish volume by evaluating OHLC data to guess what ratio of downward v/s upward movement happened within the candle.
Volume Effectiveness - This shows how much price movement occurred for each unit of Volume, by dividing the Price Change of each candle by the Total True Volume of each candle. If this volume were gas-mileage, then Volume would be the gas and Price would be the mileage.
• Inferred Effectiveness - Rather than using the Price Change divided by the Total True Volume, this method of determining Volume Effectiveness uses the Total Price-Mileage divided by the Total True Volume. The Total Price-Mileage is determined by figuring the high minus low, the wick times two, and the tail times two, and ad
WA-%Chg with BackgroundDescription
The WA-%Chg with Background indicator measures the percentage change in a selected price source over a user-defined period. It allows traders to visually and quickly assess bullish and bearish momentum through dynamic color coding and background shading.
Percentage Change Calculation – Uses ta.roc to determine the rate of change over the chosen length.
Customizable Alerts – Set upper (HiAlert) and lower (LoAlert) thresholds to get notified when momentum crosses bullish or bearish trigger levels.
Dynamic Line Coloring – Blue when above the bullish threshold, red when below the bearish threshold, and gray when in neutral territory.
Background Highlighting – Light blue shading for bullish zones, light red shading for bearish zones.
User Customization – Modify calculation length, colors, and alert thresholds to suit your trading style.
This tool is useful for identifying breakout conditions, momentum shifts, and potential reversals at a glance. Traders can combine it with other indicators for confirmation.
Disclaimer
This indicator is provided for educational purposes only and should not be considered financial advice. Past performance of any indicator or strategy is not indicative of future results. Trading in financial markets involves significant risk, including the risk of losing capital. Always perform your own analysis and consult with a qualified financial advisor before making any investment decisions. The author assumes no liability for any losses incurred from the use of this tool.
FVG-Bully BearsFVG-Bully Bears Indicator
The FVG-Bully Bears indicator is a powerful tool designed to identify Fair Value Gaps (FVGs) on your TradingView charts. FVGs are price gaps that occur when the market moves sharply, leaving areas where little to no trading activity took place. These gaps often act as key support or resistance zones, making them valuable for traders looking to spot potential reversal or continuation points.
This indicator highlights Bullish FVGs (potential support zones) and Bearish FVGs (potential resistance zones) with customizable boxes and labels, helping you visualize these critical price levels with ease.
Features
Bullish and Bearish FVGs: Detects gaps where price has left untested areas, marking bullish (green) and bearish (red) FVGs.
Customizable Display: Choose to show or hide bullish/bearish FVGs, adjust colors, and control box visibility.
FVG Labels: Optional labels on each FVG box to clearly identify bullish or bearish gaps, with adjustable text size.
Delete Filled FVGs: Automatically removes FVGs once price revisits and fills the gap, keeping your chart clean.
Box Extension: Extend FVG boxes into the future (up to 100 bars) to track unfilled gaps over time.
Performance Optimization: Limits the number of displayed FVG boxes (default: 50) to ensure smooth chart performance.
How It Works
Bullish FVG: Identified when the high of a candle two bars ago is lower than the low of the current candle, indicating a sharp upward move.
Bearish FVG: Identified when the low of a candle two bars ago is higher than the high of the current candle, indicating a sharp downward move.
FVGs are drawn as colored boxes (green for bullish, red for bearish) and can include labels for easy identification.
If enabled, filled FVGs (where price revisits the gap) are deleted to reduce chart clutter.
Settings
FVG Settings
Show Bullish FVGs: Enable/disable bullish FVG boxes (default: enabled).
Show Bearish FVGs: Enable/disable bearish FVG boxes (default: enabled).
Bullish FVG Color: Customize the color and transparency of bullish FVG boxes (default: light green).
Bearish FVG Color: Customize the color and transparency of bearish FVG boxes (default: light red).
Max FVG Boxes: Set the maximum number of FVG boxes displayed (default: 50, range: 1–500).
Extend FVG Boxes (Bars): Extend FVG boxes into the future by a specified number of bars (default: 8, range: 0–100).
Show FVG Labels: Enable/disable text labels on FVG boxes (default: enabled).
Label Size: Choose the size of FVG labels (options: Tiny, Small, Normal, Large, Huge; default: Small).
Delete Filled FVGs: Automatically remove FVGs when price fills the gap (default: enabled).
How to Use
Add the FVG-Bully Bears indicator to your TradingView chart.
Customize the settings to match your trading style (e.g., adjust colors, toggle labels, or change box extensions).
Watch for green (bullish) and red (bearish) FVG boxes:
Bullish FVGs: Potential support zones where price may bounce or consolidate.
Bearish FVGs: Potential resistance zones where price may reverse or stall.
Use FVGs in combination with other indicators (e.g., support/resistance, trendlines) for better trade decisions.
If “Delete Filled FVGs” is enabled, filled gaps will disappear, keeping your chart focused on active FVGs.
Ideal For
Swing Traders: Identify key price zones for entries or exits.
Day Traders: Spot intraday support/resistance levels created by rapid price moves.
Price Action Traders: Use FVGs to confirm market structure and potential reversal points.
Notes
For best performance, keep “Max FVG Boxes” at a reasonable value (e.g., 50) to avoid chart lag.
FVGs are most effective on lower timeframes (e.g., 5m, 15m, 1H) but can be used on any timeframe.
Combine with other tools like volume or trend indicators for a complete trading strategy.
Enjoy trading with FVG-Bully Bears and take advantage of Fair Valu
Bullish Bearish Signal with EMA Color + LabelsThis script generates clear BUY and SELL signals based on a combination of trend direction, momentum, and confirmation from multiple indicators. It is intended to help traders identify strong bullish or bearish conditions using commonly trusted tools: EMA 200, MACD, and RSI.
🔍 How it works:
The strategy combines three key elements:
EMA 200 Trend Filter
Identifies the long-term trend:
Price above EMA200 → Bullish trend bias
Price below EMA200 → Bearish trend bias
The EMA line is color-coded:
🔵 Blue for bullish
🔴 Red for bearish
⚪ Gray for neutral/unclear
MACD Crossover
Detects shifts in market momentum:
Bullish: MACD line crosses above signal line
Bearish: MACD line crosses below signal line
RSI Confirmation
Adds an extra layer of confirmation:
Bullish: RSI is above its signal line
Bearish: RSI is below its signal line
✅ Signal Logic:
BUY Signal appears when:
Price > EMA200
MACD crosses up
RSI > its signal line
SELL Signal appears when:
Price < EMA200
MACD crosses down
RSI < its signal line
Labels will appear on the chart to highlight these events.
🔔 Alerts:
The script includes alerts for both Buy and Sell conditions, so you can be notified in real-time when they occur.
📈 How to Use:
Best used in trending markets.
Recommended for higher timeframes (1H and above).
May be combined with other tools such as support/resistance or candlestick analysis.
⚠️ Disclaimer: This script is intended for educational purposes only and does not constitute financial advice or a trading recommendation.
Hippo Battlefield - Bulls VS Bears 20 bars## Hippo Battlefield – Bulls VS Bears (20 Bars)
**What it is**
A multi-dimensional momentum-and-sentiment oscillator that combines classic Bull/Bear Power with ATR- or peak-normalization, then layers on RSI and MACD-derived metrics into:
1. **A colored bar series** showing net Bull+Bear Power strength over the last 20 bars,
2. **A dynamic table** of each of those 20 BBP values (grouped into four 5-bar “quartals”), with symbols, per-bar change, and rolling averages, and
3. **A composite “Weighted BBP” histogram** blending normalized RSI, MACD, and BBP into a single view.
---
### Key Inputs
- **Length (EMA)** – look-back for the underlying EMA (default 60)
- **Normalization Length** – look-back window for peak-normalization (default 60)
- **Use ATR for Norm.** – toggle ATR-based normalization vs. highest-abs(BBP)
- **Show Tables** – toggle the bottom-right 21×11 grid of raw and average BBP values
---
### What You See
#### 1. Colored Bars (Overlay = false)
- Bars are colored by normalized BBP intensity:
- Extreme Bull (≥+10): deep blue
- Strong Bull (+5 to +10): green/yellow
- Weak Bull (+0 to +5): dark green
- Weak Bear (–0 to –5): dark red
- Strong Bear (–5 to –10): pink/red
- Extreme Bear (<–10): magenta
#### 2. Bottom-Right Table (20 Bars of Data)
- Divided into four columns (0–4, 5–9, 10–14, 15–19 bars ago) and one “average” row.
- Each cell shows:
1. Bar index (1–20),
2. Normalized BBP value (to four decimals),
3. Direction symbol (↑/↓/=),
4. Bar-to-bar change (± value),
5. A separator “|”.
- At the very bottom, each column’s 5-bar average is displayed as “Avg: X.XXXX” with a dot marker.
#### 3. Top-Center Mini-Table
- When ≥20 bars have elapsed, shows the date at 20 bars ago and the average BBP across the full 20-bar window.
#### 4. Normalized RSI Line
- Rescales the classic 14-period RSI into a –20…+20 band to align with BBP.
#### 5. MACD Lines (Hidden) & Composite Histogram
- MACD and signal lines are calculated but not plotted by default.
- A “Weighted BBP” histogram combines:
- 20% normalized RSI,
- 20% average of (MACD + signal + normalized BBP),
- 60% normalized BBP
- Plotted as columns, color-coded by strength using the same palette as the main bars.
#### 6. Middle Reference Line
- A horizontal zero line to anchor over/under-zero readings.
---
### How to Use It
- **Trend confirmation**: Strong blue/green bars alongside a rising histogram suggest bull conviction; strong reds/magentas signal bear dominance.
- **Divergence spotting**: Watch for price making new highs/lows while BBP or the histogram fails to follow.
- **Quartal analysis**: The 5-bar group averages can reveal whether recent momentum is accelerating or waning.
- **Cross-indicator weighting**: Because RSI, MACD, and raw BBP all feed into the final histogram, you get a smoothed, blended view of momentum shifts.
---
**Tip:** Tweak the EMA and normalization length to suit your preferred timeframe (e.g. shorter for intraday scalps, longer for swing trades). Enable/disable the table if you prefer a cleaner pane.
Bullish and Bearish Breakout Alert for Gold Futures PullbackBelow is a Pine Script (version 6) for TradingView that includes both bullish and bearish breakout conditions for my intraday trading strategy on micro gold futures (MGC). The strategy focuses on scalping two-legged pullbacks to the 20 EMA or key levels with breakout confirmation, tailored for the Apex Trader Funding $300K challenge. The script accounts for the Daily Sentiment Index (DSI) at 87 (overbought, favoring pullbacks). It generates alerts for placing stop-limit orders for 175 MGC contracts, ensuring compliance with Apex’s rules ($7,500 trailing threshold, $20,000 profit target, 4:59 PM ET close).
Script Requirements
Version: Pine Script v6 (latest for TradingView, April 2025).
Purpose:
Bullish: Alert when price breaks above a rejection candle’s high after a two-legged pullback to the 20 EMA in a bullish trend (price above 20 EMA, VWAP, higher highs/lows).
Bearish: Alert when price breaks below a rejection candle’s low after a two-legged pullback to the 20 EMA in a bearish trend (price below 20 EMA, VWAP, lower highs/lows).
Context: 5-minute MGC chart, U.S. session (8:30 AM–12:00 PM ET), avoiding overbought breakouts above $3,450 (DSI 87).
Output: Alerts for stop-limit orders (e.g., “Buy: Stop=$3,377, Limit=$3,377.10” or “Sell: Stop=$3,447, Limit=$3,446.90”), quantity 175 MGC.
Apex Compliance: 175-contract limit, stop-losses, one-directional news trading, close by 4:59 PM ET.
How to Use the Script in TradingView
1. Add Script:
Open TradingView (tradingview.com).
Go to “Pine Editor” (bottom panel).
Copy the script from the content.
Click “Add to Chart” to apply to your MGC 5-minute chart .
2. Configure Chart:
Symbol: MGC (Micro Gold Futures, CME, via Tradovate/Apex data feed).
Timeframe: 5-minute (entries), 15-minute (trend confirmation, manually check).
Indicators: Script plots 20 EMA and VWAP; add RSI (14) and volume manually if needed .
3. Set Alerts:
Click the “Alert” icon (bell).
Add two alerts:
Bullish Breakout: Condition = “Bullish Breakout Alert for Gold Futures Pullback,” trigger = “Once Per Bar Close.”
Bearish Breakout: Condition = “Bearish Breakout Alert for Gold Futures Pullback,” trigger = “Once Per Bar Close.”
Customize messages (default provided) and set notifications (e.g., TradingView app, SMS).
Example: Bullish alert at $3,377 prompts “Stop=$3,377, Limit=$3,377.10, Quantity=175 MGC” .
4. Execute Orders:
Bullish:
Alert triggers (e.g., stop $3,377, limit $3,377.10).
In TradingView’s “Order Panel,” select “Stop-Limit,” set:
Stop Price: $3,377.
Limit Price: $3,377.10.
Quantity: 175 MGC.
Direction: Buy.
Confirm via Tradovate.
Add bracket order (OCO):
Stop-loss: Sell 175 at $3,376.20 (8 ticks, $1,400 risk).
Take-profit: Sell 87 at $3,378 (1:1), 88 at $3,379 (2:1) .
Bearish:
Alert triggers (e.g., stop $3,447, limit $3,446.90).
Select “Stop-Limit,” set:
Stop Price: $3,447.
Limit Price: $3,446.90.
Quantity: 175 MGC.
Direction: Sell.
Confirm via Tradovate.
Add bracket order:
Stop-loss: Buy 175 at $3,447.80 (8 ticks, $1,400 risk).
Take-profit: Buy 87 at $3,446 (1:1), 88 at $3,445 (2:1) .
5. Monitor:
Green triangles (bullish) or red triangles (bearish) confirm signals.
Avoid bullish entries above $3,450 (DSI 87, overbought) or bearish entries below $3,296 (support) .
Close trades by 4:59 PM ET (set 4:50 PM alert) .
Johnny's Volatility-Driven Trend Identifier w/ Reversal SignalsJohnny's Volatility-Driven Trend Identifier w/ Reversal Signals is designed to identify high-probability trend shifts and reversals by incorporating volatility, momentum, and impulse-based filtering. It is specifically built for traders who want to capture strong trend movements while minimizing false signals caused by low volatility noise.
By leveraging Rate of Change (ROC), Relative Strength Index (RSI), and Average True Range (ATR)-based volatility detection, the indicator dynamically adapts to market conditions. It highlights breakout trends, reversals, and early signs of momentum shifts using strategically placed labels and color-coded trend visualization.
Inspiration taken from Top G indicator .
What This Indicator Does
The Volatility-Driven Trend Identifier works by:
Measuring Market Extremes & Momentum:
Uses ROC normalization with standard deviation to identify impulse moves in price action.
Implements RSI filtering to determine overbought/oversold conditions that validate trend strength.
Utilizes ATR-based volatility tracking to ensure signals only appear when meaningful market movements are occurring.
Identifying Key Trend Events:
Power Peak (🔥): Marks a confirmed strong downtrend, ideal for shorting opportunities.
Surge (🚀): Indicates a confirmed strong uptrend, signaling a potential long entry.
Soft Surge (↗): Highlights a mild bullish reentry or early uptrend formation.
Soft Peak (↘): Shows a mild bearish reentry or early downtrend formation.
Providing Adaptive Filtering for Reliable Signals:
Filters out weak trends with a volatility check, ensuring signals appear only in strong market conditions.
Implements multi-level confirmation by combining trend strength metrics, preventing false breakouts.
Uses gradient-based visualization to color-code market sentiment for quick interpretation.
What This Indicator Signals
Breakouts & Impulse Moves: 🚀🔥
The Surge (🚀) and Power Peak (🔥) labels indicate confirmed momentum breakouts, where the trend has been validated by a combination of ROC impulse, RSI confirmation, and ATR volatility filtering.
These signals suggest that the market is entering a strong trend, and traders can align their entries accordingly.
Early Trend Formation & Reentries: ↗ ↘
The Soft Surge (↗) and Soft Peak (↘) labels indicate areas where a trend might be forming, but is not yet fully confirmed.
These signals help traders anticipate potential entries before the trend gains full strength.
Volatility-Adaptive Trend Filtering: 📊
Since the indicator only activates in volatile conditions, it avoids the pitfalls of low-range choppy markets where false signals frequently occur.
ATR-driven adaptive windowing allows the indicator to dynamically adjust its sensitivity based on real-time volatility conditions.
How to Use This Indicator
1. Identifying High-Probability Entries
Bullish Entries (Long Trades)
Look for 🚀 Surge signals in an uptrend.
Confirm with RSI (should be above 50 for momentum).
Ensure volatility is increasing to validate the breakout.
Use ↗ Soft Surge signals for early entries before the trend fully confirms.
Bearish Entries (Short Trades)
Look for 🔥 Power Peak signals in a downtrend.
RSI should be below 50, indicating downward momentum.
Volatility should be rising, ensuring market momentum is strong.
Use ↘ Soft Peak signals for early entries before a full bearish confirmation.
2. Avoiding False Signals
Ignore signals when the market is ranging (low ATR).
Check RSI and ROC alignment to ensure trend confirmation.
Use additional confluences (e.g., price action, support/resistance levels, moving averages) for enhanced accuracy.
3. Trend Confirmation & Filtering
The stronger the trend, the higher the likelihood that Surge (🚀) and Power Peak (🔥) signals will continue in their direction.
Soft Surge (↗) and Soft Peak (↘) act as early warning signals before major breakouts occur.
What Makes This a Machine Learning-Inspired Moving Average?
While this indicator is not a direct implementation of machine learning (as Pine Script lacks AI/ML capabilities), it mimics machine learning principles by adapting dynamically to market conditions using the following techniques:
Adaptive Trend Selection:
It does not rely on fixed moving averages but instead adapts dynamically based on volatility expansion and momentum detection.
ATR-based filtering adjusts the indicator’s sensitivity to real-time conditions.
Multi-Factor Confirmation (Feature Engineering Equivalent in ML):
Combines ROC, RSI, and ATR in a structured way, similar to how ML models use multiple inputs to filter and classify data.
Implements conditional trend recognition, ensuring that only valid signals pass through the filter.
Noise Reduction with Data Smoothing:
The algorithm avoids false signals by incorporating trend intensity thresholds, much like how ML models remove outliers to refine predictions.
Adaptive filtering ensures that low-volatility environments do not produce misleading signals.
Why Use This Indicator?
✔ Reduces False Signals: Multi-factor validation ensures only high-confidence signals are triggered.
✔ Works in All Market Conditions: Volatility-adaptive nature allows the indicator to perform well in both trending and ranging markets.
✔ Great for Swing & Intraday Trading: It helps spot momentum shifts early and allows traders to catch major market moves before they fully develop.
✔ Visually Intuitive: Color-coded trends and clear signal markers make it easy to interpret.
Flag Screener [QuantVue]Flag Screener is a screening tool that identify bull and bear flags in up to 40 different symbols.
The indicator takes a comma separated list of symbols and then scans the symbols in real time to detect bull or bear flags.
What are flags
Flags are continuation patterns that occur within the general trend of the security. A bull flag represents a temporary pause or consolidation before price resumes it's upward movement, while a bear flag occurs before price continues its downward movement.
Both flag patterns consist of two components:
The Pole
The Flag
The pole is the initial strong upward surge or decline that precedes the flag. The pole is usually a fast move accompanied by heavy volume signaling significant buying or selling pressure.
The flag is then formed as price consolidates after the initial surge or decline from the pole. For a bull flag price will drift slightly downward to sideways, a bear flag will drift upward to sideways. The best flags often see volume dry up during this phase of the pattern.
Indicator Settings
Both components are fully customizable in the indicator so the user can adjust for any time frame or volatility. Select the minimum and maximum accepted limits from the % gain loss required for the pole, the maximum acceptable flag depth or rally and the minimum and maximum number of bars for each component.
Bullish/Bearish Reversal Bars Indicator [Skyrexio]Introduction
Bullish/Bearish Reversal Bars Indicator leverages the combination of candlestick reversal bar pattern and the Williams Alligator indicator to help traders in understanding where there is a high probability of market reversal or correction. Indicator works for both bearish and bullish cases. It visualizes the bearish and bullish reversal bars with red and green dots and also plots the Alligator's lips to make it more convenient for traders to understand if price is above or below lips line (more information in "Methodology and it's justification" paragraph).
Features
Market Facilitation Index(MFI) filter: with the specified parameter in settings user can choose to filter bullish and bearish reversal bars which passed the MFI condition.
Awesome Oscillator(AO) filter: with the specified parameter in settings user can choose to filter bullish and bearish reversal bars which passed the AO condition.
Alerts: user can set up the alert and have notifications when bullish/bearish reversal bar has been printed.
Methodology and it's justification
In the script’s methodology, we apply the concepts of bullish and bearish reversal bars introduced by Bill Williams in his book Trading Chaos. So, what exactly is a bullish or bearish reversal bar? At its core, it’s a candlestick pattern. A bullish reversal bar is a bar that closes in its upper half, while a bearish reversal bar closes in its lower half.
Why is this type of bar significant? Let’s look at the bullish reversal bar as an example. When the price is trending upward, forming higher highs with each candle, and we suddenly see a bullish bar that makes a new high but ultimately closes in its lower half, it signals a shift in control. Bears have taken control toward the end of that candle's period, pushing the price back down. This can be interpreted as a sign of trend weakness and a potential reversal (or at least a correction).
An additional key point is that a reversal bar often indicates a possible end to the trend. Therefore, for a reversal bar to be valid, several preceding candles should show lower highs (for bullish bars) or higher lows (for bearish bars), reinforcing the likelihood of a trend change.
The second step on methodology is the location of the bar related to Williams Alligator. The Williams Alligator Indicator, developed by Bill Williams, is a technical analysis tool that helps traders identify trends and potential turning points in the market. It consists of three lines, often called the jaw, teeth, and lips of the alligator, each representing different moving averages:
Jaw (Blue Line): A slower moving average, typically a 13-period smoothed moving average shifted 8 bars into the future.
Teeth (Red Line): A medium moving average, typically an 8-period smoothed moving average shifted 5 bars into the future.
Lips (Green Line): A faster moving average, usually a 5-period smoothed moving average shifted 3 bars into the future.
When the three lines are spread out and moving in the same direction, it suggests a strong trend (the "alligator" is "awake and feeding"). When they intertwine, the indicator suggests that the market is moving sideways, or in a range, signaling a lack of clear trend (the "alligator" is "sleeping"). Traders use the Alligator Indicator to enter trades in trending markets and avoid trades in choppy, non-trending markets.
If bullish reversal bar's high is not below and bearish reversal bar's low is not above all three Alligator's lines (jaw, lips, teeth) they cannot be interpreted as these types of bars. It can be explained as following: if we are waiting for the bullish reversal bar it shall be reversal from downtrend. If price is not below all three lines it can't be interpret as the downtrend according to this method. The opposite is true for the bearish reversal bar.
All described above are obligatory conditions for reversal bar, now let's discuss two not obligatory conditions. The first one is Market Facilitation Index (MFI) restriction. Let's briefly look what is MFI. The Market Facilitation Index (MFI) is a technical indicator that measures the price movement per unit of volume, helping traders gauge the efficiency of price movement in relation to trading volume. Here's how you can calculate it:
MFI = (High−Low)/Volume
MFI can be used in combination with volume, so we can divide 4 states. Bill Williams introduced these to help traders interpret the interaction between volume and price movement. Here’s a quick summary:
Green Window (Increased MFI & Increased Volume): Indicates strong momentum with both price and volume increasing. Often a sign of trend continuation, as both buying and selling interest are rising.
Fake Window (Increased MFI & Decreased Volume): Shows that price is moving but with lower volume, suggesting weak support for the trend. This can signal a potential end of the current trend.
Squat Window (Decreased MFI & Increased Volume): Shows high volume but little price movement, indicating a tug-of-war between buyers and sellers. This often precedes a breakout as the pressure builds.
Fade Window (Decreased MFI & Decreased Volume): Indicates a lack of interest from both buyers and sellers, leading to lower momentum. This typically happens in range-bound markets and may signal consolidation before a new move.
For our purposes we are interested in squat bars. This is the sign that volume cannot move the price easily. This type of bar increases the probability of trend reversal. In this indicator we added to enable the MFI filter of reversal bars. If potential reversal bar or two preceding bars have squat state this bar can be interpret as a reversal one.
The second additional filter is Awesome Oscillator. The Awesome Oscillator (AO), developed by Bill Williams, is a momentum indicator that measures market momentum by comparing recent price action to a longer historical context. It helps traders identify potential trend reversals and the strength of trends. Formula:
AO = SMA5(Median Price) − SMA34(Median Price)
where:
Median Price = (High + Low) / 2
SMA5 = 5-period Simple Moving Average of the Median Price
SMA 34 = 34-period Simple Moving Average of the Median Price
If AO is decreasing momentum is bearish, if increasing - bullish. According to Bill Williams approach reversal bars are the potential trades against the trend. As a result we added second filter for bullish reversal bars AO shall be decreasing, for bearish increasing.
How to use indicator
Apply it to desired chart and time frame. It works on every time frame.
Setup the filters with the "Enable MFI" and "Enable AO" checkboxes in the settings. By default they are turned on.
Analyze the price action. Indicator plotted the white line, this is the lips of an Alligator. It will help you to understand how price is moving in comparison to lips line. Indicator will print the green dot and text "BULL" below it current bar is bullish reversal. It will print the red dot and text "BEAR" above it if current bar is interpreted by algorithm as a bearish reversal.
Set up the alerts if it's needed. Indicator has two custom alerts called "Bullish reversal bar has been printed" and "Bearish reversal bar has been printed"
Disclaimer:
Educational and informational tool reflecting Skyrex commitment to informed trading. Past performance does not guarantee future results. Test indicators before live implementation.
Candlestick Structure [LuxAlgo]The Candlestick Structure indicator detects major market trends and displays various candlestick patterns aligning with the detected trend, filtering out potentially unwanted patterns as a result. Multiple trend detection methods are included and can be selected by the users.
A dashboard showing the alignment percentage of each individual pattern is also provided.
🔶 USAGE
By distinguishing major and minor trend detection, we can still detect patterns based on minor trends, yet filter out the patterns that do not align with the major trend.
By detecting candlestick patterns that align with a major trend, we can effectively detect the ending points of retracements, potentially providing various entry points of interest within a trend.
Users are able to track the alignment of each candlestick pattern in the dashboard to reveal which patterns typically align with the trend and which may not.
Note: Alignment % only checks if the pattern's direction is the same as the current trend direction. These are only raw readings and not any type of confidence score.
🔶 DETAILS
In this indicator, we are identifying and tracking 16 different Candlestick Patterns.
🔹 Bullish Patterns
Hammer: Identified by a small upper wick (or no upper wick) with a small body, and an elongated lower wick whose length is 2X greater than the candle body’s width.
Inverted Hammer: Identified by a small lower wick (or no lower wick) with a small body, and an elongated upper wick whose length is 2X greater than the candle body’s width.
Bullish Engulfing: A 2 bar pattern identified by a large bullish candle body fully encapsulating (opening lower and closing higher) the previous small (bearish) candle body.
Rising 3: A 5 bar pattern identified by an initial full-bodied bullish candle, followed by 3 bearish candles that trade within the high and low of the initial candle, followed by another full-bodied bullish candle closing above the high of the initial candle.
3 White Soldiers: Identified by 3 full-bodied bullish candles, each opening within the body and closing below the high, of the previous candle.
Morning Star: A 3 bar pattern identified by a full-bodied bearish candle, followed by a small-bodied bearish candle, followed by a full-bodied bullish candle that closes above the halfway point of the first candle.
Bullish Harami: A 2 bar pattern, identified by an initial bearish candle, followed by a small bullish candle whose range is entirely contained within the body of the initial candle.
Tweezer Bottom: A 2 bar pattern identified by an initial bearish candle, followed by a bullish candle, both having equal lows.
🔹 Bearish Patterns
Hanging Man: Identified by a small upper wick (or no upper wick) with a small body, and an elongated lower wick whose length is 2X greater than the candle body’s width.
Shooting Star: Identified by a small lower wick (or no lower wick) with a small body, and an elongated upper wick whose length is 2X greater than the candle body’s width.
Bearish Engulfing: A 2 bar pattern identified by a large bearish candle body fully encapsulating (opening higher and closing lower) the previous small (bullish) candle body.
Falling 3: A 5 bar pattern identified by an initial full-bodied bearish candle, followed by 3 bullish candles that trade within the high and low of the initial candle, followed by another full-bodied bearish candle closing below the low of the initial candle.
3 Black Crows: Identified by 3 full-bodied bearish candles, each open within the body and closing below the low, of the previous candle.
Evening Star: A 3 bar pattern identified by a full-bodied bullish candle, followed by a small-bodied bullish candle, followed by a full-bodied bearish candle that closes below the halfway point of the first candle.
Bearish Harami: A 2 bar pattern, identified by an initial bullish candle, followed by a small bearish candle whose range is entirely contained within the body of the initial candle.
Tweezer Top: A 2 bar pattern identified by an initial bullish candle, followed by a bearish candle, both having equal highs.
🔹 Trend Types
Major trend is displayed at all times, the display will change depending on the trend method selected.
The minor trend can also be visualized; to avoid confusion, the minor trend can optionally be displayed through the candle colors.
Supertrend: Displays Upper and Lower SuperTrend, When we break above the upper, it is considered an Uptrend. When we break below the lower, it is considered a Downtrend.
EMAs: Displays Fast and Slow EMAs, When Fast>Slow, it is considered an Uptrend. When Fast
Engulfing Pattern Alerts By PropFirm AlgoWe have now decided to make this indicator to support the trading community! If you find yourself struggling to identify bullish engulfing and bearish engulfing candles, this one is for you.
Release Notes:
Initial release with robust detection of bullish and bearish engulfing patterns.
Added trend and volume filters for enhanced pattern accuracy.
Custom alerts for real-time notifications of potential trading opportunities.
Appendix 1 - Example Case of Use For Educational Study.
Appendix 2 - Technical description which focuses on explaining the functionality of the script, how the code works, and how it can be used by traders, providing further immediate insight value.
Appendix 1:
This indicator will provide you with Two types Bullish and Bearish Engulfing Alerts.
The Regular Bullish and Bearish Engulfing Candle's Shown As
Bullish Engulfing ︽
Bearish Engulfing ︾
And the Filtered Bullish and Bearish Engulfing Candle Shown As
Filtered Bullish Engulfing ⇡
Filtered Bearish Engulfing ⇣
You can also change the Alert Symbol to any text, symbol or emoji of choice in the Setting Style Panel . This allows you to customize the alert symbol style to your liking, Example....
Using the power of artificial intelligence, we coded this indicator based on technical descriptions to perfect this simple problem.
Use this tool together with different strategies as a confirmation to your trading bias.
Use Supply and Demand Zones together with the Engulfing Pattern Alerts
First, Verify if the bullish engulfing candle is at the end of a dying trend.
Secondly, Check if it’s at a major 1-hour, 4-hour, or daily support and resistance zone.
Then wait for the retest, then enter a position.
DON’T USE THE ENGULFING ALERT AS A POINT OF ENTRY, OR WHILE MARKETS ARE CONSOLIDATING nor in the middle of an active trend.
Now for the second most used method:
Use The Fibonacci together with the Engulfing Pattern Alerts
First, Identify an impulse candle that creates a new trend in the market.
Then Draw out your Fibonacci tool from the start of the candle to the end of the impulse leg where rejection is shown.
Wait for the price to retrace to the 61.8 retracement and use the engulfing candle as a second confirmation.
And lastly, wait for the price to retest the fib level showing signs of rejection, then enter.
Appendix 2:
Technical Description:
The "Engulfing Pattern Alerts By PropFirm Algo" script is a sophisticated tool designed to identify and alert traders of potential bullish and bearish engulfing patterns in the market, enhanced by trend and volume filters for improved accuracy. This script helps traders spot potential trend reversals by analyzing candlestick patterns in conjunction with volume data and moving averages.
Key Features:
Bullish Engulfing Pattern Detection: Identifies when a smaller bearish candle is followed by a larger bullish candle, indicating potential upward price movement.
Bearish Engulfing Pattern Detection: Identifies when a smaller bullish candle is followed by a larger bearish candle, indicating potential downward price movement.
Volume Filter: Enhances pattern reliability by ensuring the identified pattern is accompanied by a significant volume increase.
Trend Filter: Utilizes Simple Moving Averages (SMA) to filter patterns based on the prevailing market trend, reducing false signals on the "Filtered Engulfing Alerts" Setting.
Custom Alerts: Configurable alerts for both bullish and bearish engulfing patterns, allowing traders to stay informed in real-time.
How It Works:
Bullish Engulfing Pattern:
Detected when the body of the current candle completely engulfs the body of the previous candle.
Confirmed if the current candle closes higher than it opens, and the previous candle closes lower than it opens.
Volume on the current candle must be greater than the previous candle.
Bearish Engulfing Pattern:
Detected when the body of the current candle completely engulfs the body of the previous candle.
Confirmed if the current candle closes lower than it opens, and the previous candle closes higher than it opens.
Volume on the current candle must be greater than the previous candle.
Trend Filter:
Uses moving averages to determine the market trend.
Bullish patterns are only considered in downtrends.
Bearish patterns are only considered in uptrends.
Alerts:
Alerts can be set up for both bullish and bearish patterns, ensuring you are notified when significant market movements are detected.
How to Use:
Add the script to your chart.
Configure the alert settings according to your trading preferences.
Monitor your chart for plotted symbols indicating potential bullish (︽) and bearish (︾) engulfing patterns.
Utilize the alert conditions to get notified when these patterns occur.
Bulls VS Bears Momentum IndicatorBulls VS Bears Momentum Indicator
Description:
The Bulls VS Bears Momentum Indicator is a unique TradingView script designed to help traders identify potential momentum shifts in the market. This proprietary indicator uses a fixed Average True Range and a multiplier of to calculate dynamic stop levels that signal bullish or bearish momentum.
Here’s how it operates:
1. Average True Range-Based Stops: The script establishes long and short stop levels based on the half-way point of the high and low (hl2) of the current bar, adjusted by the Average True Range value. The long stop is set below hl2, while the short stop is set above. These levels adapt to market volatility, using the Average True Range to scale the distance from hl2, ensuring that the stops react sensitively to changes in price movement.
2. Directional Assessment: A directional value (dir) is determined by the relationship of the closing price to the previous stop levels. If the price closes above the previous short stop level, a bullish turn is indicated, setting the direction to 1. Conversely, if the price closes below the previous long stop level, a bearish turn is indicated, setting the direction to -1.
3. Momentum Shifts: The script flags bullish momentum when the direction changes from -1 to 1, suggesting a shift in market sentiment from bearish to bullish. Similarly, bearish momentum is flagged when the direction changes from 1 to -1, indicating a potential shift from bullish to bearish sentiment.
4. Visual Cues and Alerts: For ease of use, the indicator plots shapes on the chart: an upward triangle below the bar for bullish momentum and a downward triangle above the bar for bearish momentum. These are color-coded green for bullish and red for bearish signals. Additionally, alert conditions are set for both bullish and bearish momentum to notify traders of potential shifts.
This indicator is intended for traders who want to capture significant shifts in momentum, potentially allowing for timely adjustments to their positions. The concept of using Average True Range-adjusted hl2 as a basis for stop levels introduces an original approach to momentum detection, diverging from traditional moving average or oscillator-based methods.
Remember that no indicator can predict market movements with absolute certainty. As with any trading tool, it's important to use the Bulls VS Bears Momentum Indicator in conjunction with a robust trading strategy and risk management protocols.
Usage Guidelines:
Ideal for mid to long-term trade setups.
Best used in trending markets to detect potential reversals.
Can be combined with other forms of analysis to confirm signals.
This script is a product of extensive market research and personal trading experience, and I am proud to offer it to the TradingView community. For any further queries or clarification on how to integrate this tool into your trading strategy, feel free to reach out.
Disclaimer:
The "Bulls VS Bears Momentum Indicator" is provided for informational purposes only and does not constitute trading advice. As a trader, you assume full responsibility for your trading decisions and the risks associated with financial markets. Past performance is not indicative of future results. Use this tool at your own risk.
Weighted Bulls-Bears Variety Smoothed [Loxx]Weighted Bulls-Bears Variety Smoothed highlights potential buy and sell moments in the market. Users can customize the data source and select their preferred type of moving average for calculations. The resulting visualization is a column-style plot that changes color based on bullish or bearish market conditions. Additionally, the script can color chart bars and provide visual markers to indicate buying ("Long") or selling ("Short") opportunities. Alerts can also be set for these trading signals.
█ Inputs:
Users can choose the source for calculations (e.g., closing price).
They can set periods for calculations and smoothing.
They can select the type of moving average they prefer for smoothing: EMA, FEMA, LWMA, SMA, or SMMA.
█ Weighted Bulls-Bears Calculation:
It determines the highest and lowest prices over a user-defined period.
Then, it calculates the 'bull' and 'bear' values based on these highest and lowest prices. These values are weighted based on their distance from the current price.
█ Extras
Alerts
Signals
Broadview Dominance SuiteIntroducing the revolutionary Broadview Dominance Suite, a culmination of scientific precision and astute mathematical finance, designed to provide traders with unparalleled insights into market dynamics and the balance of power. This suite leverages a comprehensive set of seven distinct moving averages, including the Simple Moving Average (SMA), Exponential Moving Average (EMA), Hull Moving Average (HMA), Weighted Moving Average (WMA), Volume Weighted Moving Average (VWMA), Triple Exponential Moving Average (TEMA), and Least Squares Moving Average (LSMA). Through the combination of these moving averages, the Broadview Dominance Suite offers traders an authoritative perspective on the control exerted by market participants over a given period.
At the heart of the Broadview Dominance Suite lies the concept of the balance of power, a pivotal determinant of market dynamics. The balance of power refers to the tug-of-war between buyers (bulls) and sellers (bears) within the market. By analyzing the relationship between the market participants, the suite allows traders to identify and comprehend who holds control over a specific timeframe.
The seven different types of moving averages employed in the Broadview Dominance Suite contribute to an in-depth assessment of market dominance. Each moving average possesses unique characteristics that facilitate a comprehensive evaluation of the balance of power. Let's delve into the moving averages included in this suite and their respective properties:
Simple Moving Average (SMA): The SMA, known for its simplicity, calculates the average price over a specified period. When applied to the balance of power, the SMA provides a smoothed line that highlights overall price trends. Its straightforward nature allows for a clear interpretation of the dominant market forces.
Exponential Moving Average (EMA): The EMA assigns more weight to recent prices, making it highly responsive to short-term price movements. By incorporating the EMA into the balance of power analysis, traders can identify potential trend reversals and shifts in market control with increased accuracy.
Hull Moving Average (HMA): The HMA employs weighted moving averages and a square root function to reduce lag and noise. This results in a smoother line that closely aligns with current price action. When assessing the balance of power, the HMA enables traders to discern precise trend indications, minimizing false signals and providing a clearer understanding of market dominance.
Weighted Moving Average (WMA): The WMA assigns varying weights to different price points within the selected period, placing greater emphasis on recent data. This feature allows the WMA to be more sensitive to recent price changes. When utilized in the analysis of the balance of power, the WMA excels at detecting short-term shifts in market control and identifying periods of heightened buying or selling pressure.
Volume Weighted Moving Average (VWMA): The VWMA incorporates trading volume into its calculation, highlighting the importance of volume in determining market dynamics. By integrating volume data, the VWMA offers a more comprehensive understanding of price levels where significant buying or selling activity occurs. In the context of the balance of power, the VWMA provides valuable insights into the intensity of market control exerted by the bulls or bears.
Triple Exponential Moving Average (TEMA): The TEMA employs multiple exponential smoothing techniques to reduce lag and enhance responsiveness. It excels at capturing short-term price movements and potential trend reversals. By incorporating the TEMA into the analysis of the balance of power, traders can gain a deeper understanding of swift shifts in market control, allowing for timely decision-making.
Least Squares Moving Average (LSMA): The LSMA minimizes the sum of squared differences between the moving average and the actual price, resulting in a curve that closely fits the price data. When applied to the balance of power, the LSMA provides a smooth line that effectively captures significant price trends. Its ability to filter out noise ensures a clearer representation of dominant market forces.
By combining these seven moving averages within the Broadview Dominance Suite, traders gain an authoritative assessment of market control. The interplay between these moving averages presents a nuanced and multi-faceted perspective on the balance of power. When a line falls below the center line, it signifies the market is under the control of the bears, indicating a dominance of selling pressure. Conversely, when the lines rise above the center line, it suggests the market is controlled by the bulls, with buying pressure prevailing.
TARVIS Labs - Bitcoin Macro Bottom/Top SignalsSCRIPT DESCRIPTION
This is a script specifically written to help provide indicators from a macro view. This script is best run on the 1 day interval on Bitstamp's $BTCUSD chart. It helps indicate when to accumulate bitcoin, and when its in a bull run when there are local tops, strong top warnings, and a signal to exit a bull run. This is described further below.
If you don't have interest in trading on the way to the top I suggest turning off the following indicators in the settings of the indicator:
- Opportunity To Buy Back In Indicator
- Local Top Near Bull Run Top Indicator
ACCUMULATION ZONE INDICATOR - LIGHT GREEN
Description
When we look at the history of Bitcoin every bottom has crossed below the 100 week EMA. Once it does its accompanied by hash ribbon cross with miner capitulation. After that is the prime time to accumulate as theres a clearer signal the bottom is in. Specifically, a signal to look for is the 14 day MACD/signal cross and the 14 day MACD continuing to stay above the signal until the price returns above the 100 week EMA. This is prime accumulation territory.
Strategy for Usage
A good strategy to use when accumulating the bottom is dollar-cost averaging over a 30 day period. The accumulation zone can last longer than 30 days but 30 days is a good range of time to DCA.
STRONG BUY IN ACCUMULATION ZONE INDICATOR - DARK GREEN
Description
We can add to the bottoming signal by looking for post-downtrend reversals inside the bottoming signal. We do this by using a 9/19 daily cross.
Strategy for Usage
These post-downtrend reversals can potentially provide better targeted days for accumulation than the broader bottoming signal and can be used to add more on that day than on an average day for the dollar cost average strategy. Say for example, use 1/3 of funds on these days rather than 1/30th.
OPPORTUNITY TO BUY BACK IN INDICATOR - BLUE
Description
When the 1d 18 EMA > 1d 63 EMA and the 12/52 1d crosses. These together provide good buy opportunities to buy bitcoin.
Strategy for Usage
If you happen to find yourself out of the market from your own TA or a trade, this signal can provide a buy opportunity to reenter the market if you're out of it.
BULL RUN LOCAL TOP INDICATOR - ORANGE
Description
We will similarly use the 100 week EMA to determine trend reversal into a bull run. When we see the 100 week EMA uptrending, we can begin to look for local tops using the 9/19 daily MACD/signal bearish cross along with the 12 EMA having a negative slope, which could be the beginning signal for a local top.
Strategy for Usage
This is a rather light indicator, but can be used in tandem with your own technical analysis to determine if you want to reenter after you exit from its signal.
LOCAL TOP NEAR BULL RUN TOP INDICATOR - RED
Description
When the 100 week EMA is in an uptrend we can look for significant loss of momentum in order to determine if a local top is in near a bull run top. Similar to the Bull Run Local Top Indicator, this strategy uses a MACD/signal cross but instead uses the 30/65 day EMAs.
Strategy for Usage
Ideally the right strategy to use here is to exit the market when this indicator starts. When the indicator ends if the "End of Bull Run Indicator" is not showing on the chart you can buy back into the market.
TOP IS LIKELY IN INDICATOR
Description
When the 100 week EMA is in a very strong uptrend and the 9/19 weekly MACD/signal bearish cross occurs, and the 63 EMA begins to downtrend.
Strategy for Usage
This signal typically accompanies the "Local Top Near Bull Run Top Indicator" therefore if you're following the strategy you would likely already be out of the market, but if you're not and this signal fires its a strong signal the top is in and we're likely going to start seeing a strong retrace. This is typically right before we see the "End of Bull Run Indicator". There is only one occurrence where it wasn't followed by a large drop & the "End of Bull Run Indicator" and that was in the 2017 bull run where there were many strong retracements post local top. The likelihood we see that again is low, but if it were to happen you can buy back into the market when the "Top is Likely In Indicator" and the "Local Top Near Bull Run Top Indicator" are not firing.
TOP IS LIKELY IN INDICATOR
Description
When the 100 week EMA is in a strong uptrend and the 9/19 weekly MACD/signal bearish cross occurs, and the 63 EMA begins to downtrend.
Strategy for Usage
This signal typically accompanies the "Local Top Near Bull Run Top Indicator" therefore if you're following the strategy you would likely already be out of the market, but if you're not and this signal fires its a strong signal the top is in and we're likely going to start seeing a strong retrace. This is typically right before we see the "End of Bull Run Indicator". There is only one occurrence where it wasn't followed by a large drop & the "End of Bull Run Indicator" and that was in the 2017 bull run where there were many strong retracements post local top. The likelihood we see that again is low, but if it were to happen you can buy back into the market when the "Top is Likely In Indicator" and the "Local Top Near Bull Run Top Indicator" are not firing.
END OF BULL RUN INDICATOR
Description
When the 100 week EMA is in an uptrend and the 1d 18 EMA crosses the 1d 63 EMA.
Strategy for Usage
When the 100 week EMA is a strong uptrend and the 18/63 cross occurs the top is very likely in. It has occurred in every bull run top leading to the bear market.
Short Selling EMA Cross (By Coinrule)BINANCE:AVAXUSDT
This short selling script works best in periods of downtrends and general bearish market conditions, with the ultimate goal to sell as the the price decreases further and buy back before a rebound.
This script can work well on coins you are planning to hodl for long-term and works especially well whilst using an automated bot that can execute your trades for you. It allows you to hedge your investment by allocating a % of your coins to trade with, whilst not risking your entire holding. This mitigates unrealised losses from hodling as it provides additional cash from the profits made. You can then choose to to hodl this cash, or use it to reinvest when the market reaches attractive buying levels.
Entry
The exponential moving average ( EMA ) 20 and EMA 50 have been used for the variables determining the entry to the short. EMAs can operate better than simple moving averages due to the additional weighting placed on the most recent data points, whereas simple moving averages weight all the data the same. This means that price is tracked more closely and the most recent volatile moves can be captured and exploited more efficiently using EMAs.
Our backtesting data revealed that the most profitable timeframe was the 30-minute timeframe, this also enabled a good frequency of trades and high profitability.
A fast (shorter term) exponential moving average , in this strategy the EMA 20, crossing under a slow (longer term) moving average, in this example the EMA 50, signals the price of an asset has started to trend to the downside, as the most recent data signals price is declining compared to earlier data. The entry acts on this principle and executes when the EMA 20 crosses under the EMA 50.
Enter Short: EMA 20 crosses under EMA 50.
Exit
This script utilises a take profit and stop loss for the exit. The take profit is set at -8% and the stop loss is set at +16% from the entry price. This would normally be a poor trade due to the risk:reward equalling 0.5. However, when looking at the backtesting data, the high profitability of the strategy (93.33%) leads to increased confidence and showcases the high probability of success according to historical data.
The take profit (-8%) and the stop loss (+16%) of the strategy are widely placed to ensure the move is captured without being stopped out due to relief rallies. The stop loss also plays a role of mitigating losses and minimising risk of being stuck in a short position once there has been a fundamental trend reversal and the market has become bullish .
Exit Short: -8% price decrease from entry price.
OR
Exit Short: +16% price increase from entry price.
Tip: Research what coins have consistent and large token unlocks / highly inflationary tokenomics, and target these during bear markets to short as they will most likely have substantial selling pressure that outweighs demand - leading to declining prices.
The strategy assumes each order is using 30% of the available coins to make the results more realistic and to simulate you only ran this strategy on 30% of your holdings. A trading fee of 0.1% is also taken into account and is aligned to the base fee applied on Binance.
The backtesting data was recorded from December 1st 2021, just as the market was beginning its downtrend. We therefore recommend analysing the market conditions prior to utilising this strategy as it operates best on weak coins during downtrends and bearish conditions.
Artharjan - RSI and RSI-Moving Avg Crossover SignalsHi,
I have created "Artharjan - Index Heavy Weight Components RSI and RSI-Moving Avg Crossover Bullish/Bearish/Neutral Signal" (Short Name - ARSICROSSOVER) indicator for Traders whereby they can see the RSI and RSI Moving Average Values for Indices and Index heavyweight Components at the same time in a Dashboard.
The analysis is based on 2 different timeframes. Basically when Higher timeframe RSI is Bullish and Lower timeframe is Bearish then you enter the LONG trade when Lower Timeframe RSI shows "Bullish Reversal Signal" &
when Higher timeframe RSI is Bearish and Lower timeframe is Bullish then you enter the SHORT trade when Lower Timeframe RSI shows "Bearish Reversal Signal"
The two timeframes which I have selected by Default are Weekly (Higher timeframe) and 30 min Lower (Trade Entry) Timeframe
Also I have used to source to calculate the RSI as 5 period WMA of hlc3, if you want use raw RSI to generate crossover signals then change the source to "close" and input soothing to '1' instead of '5'
The system generates very accurate Buy and Sell Signals and when the script is range bound in its respective timeframe it shows Neutral signal
The overbought and oversold levels for Higher and Lower timeframes are set to be 60/40 and 70/30 respectively, however Traders may change these levels as per their preferences.
For intraday trades I would recommend using Higher time frame as "Daily" and Lower (Trade Entry) Timeframe as "15 min"
For Swing trades I would recommend using Higher time frame as "Weekly" and Lower (Trade Entry) Timeframe as "75 min"
For Positional trades I would recommend using Higher time frame as "Monthly" and Lower (Trade Entry) Timeframe as "Daily"
Also you can select maximum 10 Scripts at any given point in time.
My recommendation would be to use Sector Index as Script 1 and then Heavy weight components of that Sector in Script 2 to 10
This will help you to identify which Stock is responsible to pull index Up or Down and then you may decide to take either a Long Trade or Short Trade accordingly.
The Background Color and Bullish/Bearish/Neutral stages are decided based on following logic
1] If Higher timeframe RSI > Overbought Level - Stock is in a Bull Run
2] If Higher timeframe RSI > If Higher timeframe EMA of RSI = Positively Bullish
3] If Higher timeframe RSI < Oversold Level - Stock is in a Bear Run
4] If Higher timeframe RSI < If Higher timeframe EMA of RSI = Positively Bearish
5] Bulls will be said to have control if Condition 1 & 2 are true
6] Bears will be said to have control if Condition 3 & 4 are true
7] The Stock/Index will be said to be in a Neutral zone if its RSI is less than Overbought Level but greater than Oversold Level
The same rules are applicable for a Lower (Trade Entry) Timeframe
Hope you guys like this indicator and are able to make decent money by using it.
Regards
Rahul Desai
@Artharjan
[UPRIGHT] Bulls-V-Bears Tug-of-War SquidGame [Premium] (cc)Hello Traders,
Today I'm updating the Bull V. Bears with a Premium version. (Note: the other version is shown below the Premium on the chart above)
……"The game is Tug of War, the side that pulls the rope from the middle to their side wins. Let the game begin."……
How it works:
This indicator is not a typical one.
1) It shows visually when Bull volume or Bear volume is ‘pulling the rope to their side’.
2) It uses several different formulas to get an accurate read on the level of volume , but still keeps peaks and troughs within 100 for easy reading.
3) Update: It was originally meant to be used strictly with other indicators, but it can now be used as a standalone indicator.
__________________________________
Legend:
1) The top line signals give the major signals –
a. Red cross = Bearish volume strength and continuation.
b. Green cross = Bullish volume strength and continuation.
i. + Green Dot inside enhances signal.
ii. + Red Dot inside weakens signal.
c. Blue circle = Can indicate the beginning of a reversal to the upside or downside.
d. Pink circle = Can indicate the beginning of a reversal to the downside.
2) The Bottom signals are triggered when one circle-rope crosses over the other, these signals give confirmation to the top line signals – Red bearish / Green bullish .
3) As shown on the chart, the Reversal setup usually consists of a blue circle, followed by a red or green cross, then confirmation from the bottom signal.
4) Without the signals: green obviously is Bullish especially above the threshold set --Red bearish . The regular rope gives trend indication.
I've added tooltips to make it easy to understand, feel free to leave a comment if you still have a question!
__________________________________
Features:
-Tooltips (hover over - Info) for understanding.
-Works well on all timeframes; even 5min, I made a tooltip for recommended lengths.
-Customizable Signals; with the ability to turn on and off.
-Reversal signals: Pink and Blue circles can indicate reversals coming.
-Works well as a leading standalone indicator.
-Adjustable top signal row.
-Background Highlights.
-Alerts
-Rules added (hover over).
__________________________________
Premium :
-Better signal algo (will likely be updated again soon)
-Reversal Signal added (Large Circle)
-Improved Scaling and Organization - Now easier to see large moves/signals on Multiple timeframes.
Chart should look like:
Cheers,
Mike
(UPRIGHT Trading)
FxAST Bull Bear Power 62 [ALLDYN]I thought I would create something based on what I use in my trading style around Volume Price Analysis and Fibonacci trading.
This tool combines the work of Dr. Alexander Elder (The Elder Ray Index) and the original work done by Rob Booker (The Power of 62).
Basics of the Elder Ray Index: The Elder Ray Index uses indicators to measure buying and selling pressure within a given instrument. The default is what Dr. Alexander used in his trading the 26-period EMA. Technical traders use this information to help determine the direction of a trend. If there is strong bullish pressure, then traders would consider long positions. If there is strong bearish pressure, then traders would consider short positions.
This Tool: My tool gives the bullish and bearish volume as a histogram. The stronger the movement, the longer the histogram bars will be and vice versa as volume pressure weakens. This information allows us to spot divergence with what is happening between the tool and the price action chart. Spotting divergence allows us to wait until we see convergence (things matching the tool and the price action chart) and give us the added confluence we need to consider entering a trade.
Basics of Power Of 62: This system uses 3 Fibonacci EMAs (5-13-62). The 5 is the closest to price action, the 13 is based on the work that Dr. Alexander did measuring bull and bear pressure, and the 62 is based on the .618 or phi of the Fibonacci sequence. Technical traders can use these to gauge trend strength and momentum. For example, 5-13 trending towards the 62 indicates that the market is bullish with a strong bullish confirmation of the 13 crossing above the 62. Conversely, the opposite is valid for a bearish movement and strong confirmation.
This Tool: My tool shows when the 5 crosses the 13 by a visual blue dot. All this indicates is that associated price action is above/below the 13 EMA which if you remember the basics of the Elder Ray index if associated price action is above the 13 indicates the Bulls are in control and if associated price action is below the 13 indicates the Bears are in control. Where these are in relationship to the 62 (above/below) is a strong confirmation of the trend itself. Consider the slope of the lines and the clock analogy. If the lines are between the 1-2 then this is a strong bullish trend. If the lines are between the 4-5 then this is a strong bearish trend. If the lines are flat/horizontal, this indicates price equilibrium and indecision in the market.
Putting it All Together: Combining these concepts allows technical traders to trade with the trend, allowing both systems to give symbiotic confirmations for buying and selling ideas, for example. If we see that the histogram bars are sloping in one direction (above/below 0 line) and we get a cross of the 5-13 trending towards the 62, we can then wait until both cross above/below the 62 AND the histogram is showing bullish/bearish histogram bars above/below the 0 line. Everything above 0 line = Strong Bullish Confirmation, and everything below 0 line = Strong Bearish Confirmation.
I like to use this with the MACD (Chris Moody's) or the RSI/Stochastic/ADX. On the chart above you can see that Tradingviews default VOT (Volume Over Time) indicator is applied to the chart with the MA option checked.
5 = green line
13 = red line
62 = purple line
MJ Important Candlestick Patterns + Smart TrendThis script detects 6 important candlestick patterns defined by the author and puts chart labels on your chart for your attention. It also includes a smart trend checking algorithm to detect trends.
The six candlestick patterns covered are:
Bullish Engulfing
Bearish Engulfing
Piercing Line
Dark Cloud Cover
Bullish Harami
Bearish Harami
*** Smart feature of this indicator is that it can detect uptrends or downtrends before alerting you regarding the bullish or bearish reversal candlestick pattern. This is achieved by comparing the typical price (high+low+close divided by 3) of today's candle versus three days ago.