Malaysian SnR [by DanielM]The Malaysian SnR (Support and Resistance) levels are a popular trading concept that identifies specific price levels on charts which are considered significant for trading decisions. Here's a breakdown of the concepts:
A Levels and V Levels: These refer to specific types of SNR levels:
A Levels: These are formed at the highest points of price movements. The indicator highlights these levels with a red line.
V Levels: These are formed at the lowest points of price movements, typically observed as valleys in chart patterns. The indicator highlights these levels with a green line.
Fresh and Unfresh Levels:
Fresh Levels: These are price levels that have not been touched by a wick since their formation. They are considered more significant because they might provide a stronger reaction when the price touches these levels again.
Unfresh Levels: These are levels that have been touched by a wick since their formation. Each time a level is tested, it is considered less significant because it might offer weaker resistance or support. A level that has been tested can become fresh again if it's crossed by a candle body.
Gaps:
A gap occurs when you have two bullish candles or two bearish candles. It is defined as the area between the close of the first candle and the open of the next one. It is marked by drawing a line at the closing price of the first candle, thus representing the level where the gap was initially observed. The indicator highlights these levels with a blue lines for bullish gaps and violet lines for bearish gaps.
Fresh vs. Unfresh Gaps:
Similar to A and V levels, gaps can be classified as fresh or unfresh. A fresh gap is one that hasn't been touched by a wick after it was created. These are often considered more significant because they may hold stronger as potential support or resistance. Unfresh gaps have been touched by a wick, and they may be considered less significant. A gap that has been tested can become fresh again if it's crossed by a candle body.
Inputs:
Number of bars to look back to detect A levels, V levels, and Gaps.
Allows users to toggle the visibility of only fresh A and V levels.
Allows users to decide whether to display gap levels or not.
Allows users to decide whether to display only fresh gaps.
Allows the users to set the maximum number of A levels, V levels and gaps on the chart.
Candlestick analysis
Breakout Josip strategy is focused on analyzing price movements during specific time intervals (from 9:00 AM to 12:00 PM) each day. It tracks the highest and lowest prices in that period and uses them to set targets for potential trades, placing horizontal lines based on these levels. Additionally, you're interested in tracking the success and failure of trades based on whether price breaks certain levels during this time range. The strategy also calculates various metrics like the percentage of successful trades, failed trades, and total trades during a selected time range.
Weekly Change(Green&Red) & Percentage Change(Blue&Yellow)Display bar chart of weekly price action. Use to determine the maximum price change in one week. It would be the possible strike price for a covered call option for weekly income.
Custom Support LineIt is made with the following conditions in mind.
1. At the center of the candle at the moment,
Out of the last 10 candles, the low price (L) is within 3% of each other, drawing one line at the low prices of the candles.
2. Out of the last 10 candles, the market price (O) is within 3% of each other, drawing one line at the low end of each candle.
3.Out of the last 10 candles, the closing price (C) is within 3% of each other, and one line is drawn at the lower prices of the candles.
4. Draw one line when the three lines match the above three conditions.
We wanted to create a clear support line according to the above conditions.
Last Candle Close Above/Below AlertHow it works:
The script calculates whether the close of each candle is above or below the close of the previous candle, same as the initial code.
isLastBar is checked and the last candle to be created is the only one that will receive the condition from this variable.
If a highlight is needed it will use this criteria and apply the correct color for the last candle only, and any other candle will not be colored.
If alerts are enabled they will only work for the last bar too.
How to Use:
Add this script to your TradingView chart.
Use the inputs to set the desired timeframe to analyze, whether you want an alert for candles closing above or closing below and the background colors.
The last candle will highlight yellow when the close is higher or lower than the previous candle.
Alerts will be triggered on the last candle if you enable the alert conditions.
Key Features:
Timeframe Selection: You can choose a different timeframe in the settings.
Candle Highlight: Candles that close above or below the previous candle are highlighted in yellow.
Alerts: Alerts are configurable to trigger for "Close Above" or "Close Below" conditions, based on your selection in the settings.
Candle Emotion Index (CEI)The Candle Emotion Index (CEI) is a comprehensive sentiment analysis indicator that combines three sub-oscillators—Indecision Oscillator, Fear Oscillator, and Greed Oscillator—to provide a single, unified measure of market sentiment. By analyzing bullish, bearish, and indecisive candlestick patterns, the CEI delivers a holistic view of market emotions and helps traders identify key turning points.
How It Works
Indecision Oscillator: Measures market uncertainty using Doji and Spinning Top candlestick patterns. Scores their presence and normalizes the results over a user-defined lookback period.
Fear Oscillator: Measures bearish sentiment using Shooting Star, Hanging Man, and Bearish Engulfing candlestick patterns. Scores their presence and normalizes the results over a user-defined lookback period.
Greed Oscillator: Measures bullish sentiment using Marubozu, Bullish Engulfing, Hammer, and Three White Soldiers candlestick patterns. Scores their presence and normalizes the results over a user-defined lookback period.
Candle Emotion Index Calculation: The CEI is calculated as the average of the Indecision, Fear, and Greed Oscillators: CEI = (Indecision Oscillator + Fear Oscillator + Greed Oscillator) / 3
Plotting: The CEI is plotted as a single line on the chart, representing overall market sentiment.
Reference lines are added to indicate Low Emotion, Neutral, and High Emotion levels.
The Candle Emotion Index provides a unified perspective on market sentiment by blending indecision, fear, and greed into one easy-to-interpret metric. It serves as a powerful tool for traders seeking to gauge market psychology and identify high-probability trading opportunities. For best results, use the CEI in conjunction with other technical indicators to confirm signals.
HTF CandlestickHTF Candlestick
This indicator that visualizes a specific candle from a user-defined timeframe (1D, 1H, etc.) and its associated properties on the chart. Below is a detailed explanation:
1 - Inputs and Initialization:
timeframeInput: Allows the user to select the desired timeframe (e.g., daily).
pos: Adjusts the horizontal position of the drawn candle on the chart.
2 - Custom Data Type (type bar):
The bar type stores data for the open, high, low, and close (OHLC) values, as well as the start time of the candle.
It also includes graphical elements like body, wick, and start lines.
3 - Logic:
A variable b is initialized to represent the custom candle.
The script checks for changes in the selected timeframe and creates a new bar when the timeframe changes.
4 - Methods:
update(): Updates the OHLC values of the bar if a new high or low occurs.
display(): Draws the candle on the chart, including:
The candle body.
The wick (shadow).
Labels showing the open, high, and low values.
Horizontal and vertical dotted lines for visual aid.
5 - Candle Redrawing:
The script clears all graphical elements (lines, labels, boxes) for the current candle on the last bar of the chart (barstate.islast) and redraws them using the display() method.
6 - Table Display:
A small table is displayed at the right-hand side of the chart showing:
The selected timeframe.
The opening value of the candle.
The difference between the close and open prices, highlighted with the appropriate color.
Kod Açıklaması
Bu Pine Script, kullanıcı tarafından seçilen bir zaman dilimine (1D, 1H vb.) ait bir mum çubuğunu ve onun özelliklerini grafik üzerinde görselleştiren özel bir indikatördür. İşte detaylı açıklaması:
1- Girdiler ve Başlangıç:
timeframeInput: Kullanıcının istediği zaman dilimini seçmesine olanak tanır (ör. günlük).
pos: Çizilen mumun grafikte yatay pozisyonunu ayarlamak için kullanılır.
2 - Özel Veri Tipi (type bar):
bar türü, açılış, yüksek, düşük ve kapanış (OHLC) değerlerini ve mumun başlangıç zamanını saklar.
Ayrıca, grafik öğeleri için body, wick ve start gibi alanlar içerir.
3- Mantık:
b değişkeni, seçilen mum çubuğunu temsil etmek için tanımlanmıştır.
Seçilen zaman diliminde bir değişiklik olup olmadığını kontrol eder ve değişiklik olduğunda yeni bir bar oluşturur.
4 - Metotlar:
update(): Daha yüksek bir zirve veya daha düşük bir dip meydana gelirse, mumun OHLC değerlerini günceller.
display(): Grafik üzerinde mum çubuğunu çizer. Bu işlem şunları içerir:
Mum gövdesi.
Fitil (gölge).
Açılış, yüksek ve düşük değerlerini gösteren etiketler.
Görsel yardım için yatay ve dikey kesik çizgiler.
5- Mum Yeniden Çizimi:
Grafik üzerindeki tüm grafiksel elemanları (çizgiler, etiketler, kutular) temizler ve mevcut mumun son çubuğunda (barstate.islast) bunları yeniden çizer.
6 - Tablo Görüntüsü:
Grafik üzerinde sağ tarafta küçük bir tablo gösterilir. Bu tabloda:
Seçilen zaman dilimi.
Mumun açılış değeri.
Kapanış ve açılış fiyatları arasındaki fark, uygun renkte vurgulanarak gösterilir.
Bu kod, kullanıcıya belirli bir zaman dilimindeki mum çubuğunun görsel bir analizini ve temel bilgilerini sağlar.
Monthly DividerThis Trading View indicator visually marks the beginning of each month starting from January 2024. It draws vertical lines on the chart at the start of each month and labels them with the corresponding month abbreviation (e.g., "Jan", "Feb"). Users can customize the color and thickness of the lines through the indicator settings, allowing for personalized chart aesthetics. This tool is ideal for traders and analysts who want to easily identify month transitions and enhance their technical analysis.
Quarterly Divider The "Quarterly Divider" script draws vertical lines at the start of each quarter (January, April, July, October) on the Trading View chart. It also labels each line with the corresponding quarter (Q1, Q2, Q3, Q4) at the bottom of the line, making it easy to visualize the start of each trading quarter. The color and thickness of the lines are customizable
NB. works effectively is used on the weekly timeframe
Order Block plusIndicator Description: “Order Block Plus”
This indicator is designed for traders who aim to identify the strength and position of supply and demand zones on the chart and receive key signals for entry or exit. Below is a detailed explanation of its functionality:
Features and Applications:
1. Identifying Supply and Demand Zones:
• Supply (Resistance) and Demand (Support) zones are visually displayed on the chart.
• Each zone is marked with a specific color (Yellow for supply, Blue for demand) for easy identification.
2. Breakout and Reversal Signals:
• The indicator detects Breakout and Reversal patterns and highlights them with alerts.
• Example: Detecting price breaking above or below key levels.
3. Candlestick Pattern Support:
• Identifies powerful patterns such as Bullish Engulf, Bearish Engulf, Three White Soldiers, and Three Black Crows.
4. Displaying Zone Strength:
• The indicator shows the strength of supply and demand zones using text displayed inside each zone.
5. Alerts:
• Provides alerts for zone breakouts, breakdowns, and new zone formations.
• Example: Alerts for breaking a demand or supply zone.
How to Use:
1. Adding to the Chart:
• The indicator can be applied to any time frame and is suitable for Forex, stocks, or cryptocurrency charts.
2. Identifying Trading Opportunities:
• Demand zones indicate strong support levels where prices are likely to rise.
• Supply zones indicate resistance levels where prices are likely to fall.
3. Examining Zone Strength:
• The strength of each zone is displayed with text inside the zone.
Indicator Settings:
• Zone Colors:
• The default colors for supply and demand zones are yellow and blue, but they can be customized.
• Alerts:
• Configurable alerts for breakouts or reversals.
Advantages:
• Automatic detection of key price levels.
• Accurate and timely alerts for trades.
• Customizable for professional traders.
Note: This indicator is designed for technical analysis and should be used alongside a suitable trading strategy.
BEP BOLLINGER with Entry & TargetBEP BOLLINGER with Entry & Target Indicator
INPUT
ITM CE
ITM PE
ATM CE
ATM PE
This custom Pine Script indicator provides traders with a powerful tool to analyze options trading setups, specifically for Call and Put options (CE & PE). By integrating Bollinger Bands with a set of configurable parameters, it calculates key entry, stop loss, and take profit levels, while factoring in risk and reward for each trade. Ideal for options traders, this indicator supports precise risk management and enhances your ability to plan and execute trades based on calculated entry points and profit targets.
Key Features:
CE & PE Symbol Selection: Allows users to input two pairs of Call and Put option symbols for premium calculation.
Premium Calculation: Automatically calculates and plots the average premium for each pair of options.
Risk & Reward Zones: Visualizes risk zones and reward zones based on user-defined entry price, stop loss, and risk/reward ratio.
Leverage and Stop Loss Calculation: Computes the optimal leverage and adjusts stop loss based on acceptable loss percentage.
Break-Even Point: Identifies the break-even point considering trading fees and leverage.
Take Profit Levels: Calculates and visualizes multiple take profit levels with different risk/reward ratios.
Multi-Timeframe Analysis: Incorporates higher timeframe analysis to determine entry and stop loss levels for better decision-making.
Dynamic Alerts: Provides alerts when the price hits the stop loss, take profit levels, or reaches the break-even point.
Visual Tools: Draws lines and shaded areas for entry, stop loss, take profit, and risk/reward zones to aid in visual decision-making.
Customizable Settings:
Risk Management: Adjust stop loss, leverage, and risk/reward ratios to suit your trading strategy.
Trading Direction: Choose between Long or Short positions based on market outlook.
Fee Calculations: Input your buy and sell fees to accurately calculate break-even and profit zones.
Color Customization: Personalize the color of premium lines, offset levels, and risk/reward zones.
Alerts:
Alerts can be set for Stop Loss, Take Profit, and Break-Even, ensuring you're notified in real-time when important price levels are reached.
This tool is perfect for traders looking to integrate risk management and precise trade setup analysis into their options trading strategy.
Buy/Sell Break and RetestThis script is a Pine Script indicator for TradingView titled **"Buy/Sell Break and Retest"**. Here's a description of its functionality:
### Purpose:
The script identifies potential **buy** and **sell entry levels** based on break-and-retest patterns in the market. It works by analyzing higher timeframe data (e.g., 1-hour) and marking entries on a lower timeframe (e.g., 1-minute).
### Key Features:
1. **Configurable Timeframes**:
- `Analysis Timeframe`: Used for identifying break-and-retest signals (default: 1-hour).
- `Entry Timeframe`: Used for marking and plotting entries (default: 1-minute).
2. **Buy and Sell Signals**:
- A **sell entry** is triggered when a bearish candle (close < open) is identified in the analysis timeframe.
- A **buy entry** is triggered when a bullish candle (close > open) is identified in the analysis timeframe.
3. **Retest Logic**:
- For sell signals: The retest is validated when the price breaks below the identified sell level.
- For buy signals: The retest is validated when the price breaks above the identified buy level.
4. **Visual Indicators**:
- Entry levels are marked with labels:
- **Buy Entry**: Green labels are placed at bullish candle opens.
- **Sell Entry**: Red labels are placed at bearish candle closes.
- Plots the levels for easy reference:
- **Sell Level**: Displayed as red circles on the chart.
- **Buy Level**: Displayed as green circles on the chart.
5. **Dynamic Updates**:
- Levels are cleared when invalidated by the price action.
### Use Case:
This indicator helps traders spot break-and-retest opportunities by:
- Allowing higher timeframe analysis to determine trend direction and key levels.
- Providing actionable buy and sell entry points on lower timeframes for precision.
Let me know if you'd like further clarification or improvements!
BuyTheDips Trade on Trend and Fixed TP/SL
This strategy is designed to trade in the direction of the trend using exponential moving average (EMA) crossovers as signals while employing fixed percentages for take profit (TP) and stop loss (SL) to manage risk and reward. It is suitable for both scalping and swing trading on any timeframe, with its default settings optimized for short-term price movements.
How It Works
EMA Crossovers:
The strategy uses two EMAs: a fast EMA (shorter period) and a slow EMA (longer period).
A buy signal is triggered when the fast EMA crosses above the slow EMA, indicating a potential bullish trend.
A sell signal is triggered when the fast EMA crosses below the slow EMA, signaling a bearish trend.
Trend Filtering:
To improve signal reliability, the strategy only takes trades in the direction of the overall trend:
Long trades are executed only when the fast EMA is above the slow EMA (bullish trend).
Short trades are executed only when the fast EMA is below the slow EMA (bearish trend).
This filtering ensures trades are aligned with the prevailing market direction, reducing false signals.
Risk Management (Fixed TP/SL):
The strategy uses fixed percentages for take profit and stop loss:
Take Profit: A percentage above the entry price for long trades (or below for short trades).
Stop Loss: A percentage below the entry price for long trades (or above for short trades).
These percentages can be customized to balance risk and reward according to your trading style.
For example:
If the take profit is set to 2% and the stop loss to 1%, the strategy operates with a 2:1 risk-reward ratio. BINANCE:BTCUSDT
Bearish Wick Reversal█ STRATEGY OVERVIEW
The "Bearish Wick Reversal Strategy" identifies potential bullish reversals following significant bearish price rejection (long lower wicks). This counter-trend approach enters long positions when bearish candles show exaggerated downside wicks relative to closing prices, then exits on bullish confirmation signals. Includes optional EMA trend filtering for improved reliability.
█ What is a Bearish Wick?
A price rejection pattern where:
Bearish candle (close < open) forms with extended lower wick
Wick represents failed selloff: Low drops significantly below close
Measured as: (Low - Close)/Close × 100 (Negative percentage indicates downward extension)
█ SIGNAL GENERATION
1. LONG ENTRY CONDITION
Bearish candle forms with close < open
Lower wick exceeds user-defined threshold (Default: -1% of close price)
The signal occurs within the specified time window
If enabled, the close price must also be above the 200-period EMA (Exponential Moving Average)
2. EXIT CONDITION
A Sell Signal is generated when the current closing price exceeds the highest high of the previous seven bars (`close > _highest `). This indicates that the price has shown strength, potentially confirming the reversal and prompting the strategy to exit the position.
█ PERFORMANCE OVERVIEW
Ideal Market: Volatile instruments with frequent price rejections
Key Risk: False signals in sustained bearish trends
Optimization Tip: Test various thresholds
Filter Impact: EMA reduces trades but improves win rate and reduces drawdown
Gap Down Reversal Strategy█ STRATEGY OVERVIEW
The "Gap Down Reversal Strategy" capitalizes on price recovery patterns following bearish gap-down openings. This mean-reversion approach enters long positions on confirmed intraday recoveries and exits when prices breach previous session highs. This strategy is NOT optimized.
█ What is a Gap Down Reversal?
A gap down reversal occurs when:
An instrument opens significantly below its prior session's low (price gap)
Selling pressure exhausts itself during the session
Buyers regain control, pushing price back above the opening level
Creates a candlestick with:
• Open < Prior Session Low (true gap)
• Close > Open (bullish reversal candle)
█ SIGNAL GENERATION
1. LONG ENTRY CONDITION
Previous candle closes BELOW its opening price (bearish candle)
Current session opens BELOW prior candle's low (gap down)
Current candle closes ABOVE its opening price (bullish reversal)
Executes market order at session close
2. EXIT CONDITION
A Sell Signal is generated when the current closing price exceeds the highest high of the previous seven bars (`close > _highest `). This indicates that the price has shown strength, potentially confirming the reversal and prompting the strategy to exit the position.
█ PERFORMANCE OVERVIEW
Ideal Market: High volatility instruments with frequent gaps
Key Risk: False reversals in sustained downtrends
Optimization Tip: Test varying gap thresholds (1-3% ranges)
Change Candle Color When 5 EMA Not ConnectedThis custom TradingView indicator changes the color of candlesticks to yellow whenever the 5-period Exponential Moving Average (EMA) is not "connected" to the current candle.
How It Works:
The 5 EMA is calculated based on the closing prices of the last 5 candles.
A candle is considered "not connected" to the EMA if:
The high and low of the current candle are both either above or below the 5 EMA, implying a significant deviation from the EMA.
When this condition is met, the candle color is changed to yellow to highlight this disconnection.
The default behavior of the script is to not display the 5 EMA line, keeping the chart uncluttered while focusing on the candlestick colors.
Usage:
This indicator is useful for scalping or short-term trading strategies, as it helps identify when the price has moved significantly away from the 5 EMA. A yellow candle could signal potential overextension or a possible reversal if the price is far from the EMA. Traders can use this as part of their risk management or entry/exit decision-making process.
Customization:
The indicator doesn't display the 5 EMA line, but you can modify the script to show it if needed by uncommenting the plot(ema5) line.
You can adjust the period of the EMA by modifying the ema5 period in the code, though the default setting is 5 periods.
SSL Channel MTFSSL Channel with MTF support, This eliminates the noise of a basic SSL Channel script which is based on ErwinBeckers SSL Channel. So i have used a Multi Time Frame approach to have a clear confirmation of trend and reduce Noise and False signals unlike basic SSL Channel.
This script can be used to determine.
Support/Resistance
High/Low Breakout
Trend Direction
MA candles for Entry
The high and low sma are plotted as SSL CHANNEL when ever the high and low sma cross each other a direction change is observed.
The direction of SSL channel determines the trend of the price. The length of the channel can be changed as required a low value has a high noise and direction can be determined with low accuracy. Increasing the length of SSL channel has high accuracy trend confirmation.
The MTF SSL Channel uses plot from higher timeframe this helps in using SSL Channel as a Price Action Tool. Price when ever crosses over or below the channel determines a breakout. Price tries to move between the High SMA line and Low SMA Line of the SSL Channel rejection, breakouts can be easily observed on a lower timeframe using SSL Channel Plot from a higher timeframe.
I have used 5min/15min chart with MTF SSL from a 1Hr/4Hr and a length of 5 instead of 10. This helps quick direction changes over a period of 1hr to 4hr. Price is trapped within the High SMA and Low SMA lines of SSL Channel. In addition to SSL High Low and average mid line is plotted to additional reference.
Buy Sell Signals are plotted based on crossover of SMA High and Low.
Candle are Plotted Using a SMA with length of 5. This Candle Plot can be used to make an entry based on direction confirmation of SSL. keep in mind the direction of SSL Plot and the candle must be same. Preferably Entry can made above or below the midline of SSL Channel. The Candle Plot eliminates the Noise of traditional Japanese Candlesticks.
Additionally MACD Crossover and MACD Trend line confirmations can be used to confirm a Buy Sell and Entry signals
Alerts are also plotted accordingly.
ILD inverse liquidity Divergence StrategyDetermine Bias (Bullish):
H4 chart shows an uptrend with higher highs and higher lows.
Identify a swing high where resting liquidity (buy-side) is likely above.
Look for SMT Divergence (Lower Timeframes):
On M15, EUR/USD makes a higher high while GBP/USD fails to, signaling potential manipulation.
Spot an Inverse Fair Value Gap (IFVG):
Price has impulsively moved up, leaving a fair value gap below.
Wait for a Retracement (Entry):
Price retraces into the IFVG near a Fibonacci 61.8% retracement level.
Enter long here with a SL below the gap.
Set Risk-to-Reward:
SL = 10 pips below the entry.
TP = 20 pips above (1:2 R:R), targeting a resting liquidity zone above a recent swing high.
Monitor and Exit:
Price moves into the liquidity zone, hits TP, and completes the trade.
Candle Close Distance AlertThreshold-Based Distance:
You define a threshold percentage (threshold_percent) to specify what "far" means (e.g., 2%).
The script calculates the absolute distance between:
Close and Open
Close and High
Close and Low
If any of these distances exceed the specified threshold, the condition is triggered.
Visual Markers:
Green markers (triangle up) indicate the close is far from the open.
Red markers (triangle down) indicate the close is far from the high.
Blue markers (triangle down) indicate the close is far from the low.
These markers make it easy to spot significant price movements on the chart.
Customizable Alerts:
If enabled, alerts are triggered when any of the conditions are met.
Alerts are designed to notify you in real time if a candle closes far from the open, high, or low.
Closing Prices for Indices AMMOthe "Closing Prices for Indices" indicator displays the daily closing prices of four major stock indices: FTSE 100, DAX 40, Dow Jones Industrial Average, and NASDAQ Composite. The indicator updates the prices based on their respective market closing times:
FTSE 100 and DAX 40: Updates at 4:30 PM UK time.
Dow Jones and NASDAQ Composite: Updates at 9:00 PM UK time.
Key features:
Customizable Labels: Option to display labels showing the closing prices directly on the chart.
Color-Coded Lines: Plots each index's closing price using distinct, customizable colors for easy differentiation.
User-Friendly Settings: Includes options for customizing line and label colors.
This indicator is perfect for traders and analysts looking to monitor and compare key index closing prices visually on their charts.
CHAKRA RISS ENGULFING CANDLESTICK STRATEGYChakra RISS Engulfing Candlestick Strategy
Type: Technical Indicator & Strategy
Platform: TradingView
Script Version: Pine Script v6
Overview:
The Chakra RISS Engulfing Candlestick Strategy combines a momentum-based approach using the Relative Strength Index (RSI) with Engulfing Candlestick Patterns to generate buy and sell signals. The strategy filters trades based on price movement relative to a 50-period Simple Moving Average (SMA), making it a trend-following strategy.
The indicator uses color-coded bars to visually represent market conditions, helping traders easily identify bullish and bearish trends. The strategy is designed to be dynamic, adapting to changing market conditions and filtering out noise using key technical indicators.
How It Works:
RSI-Based Color Conditions:
Green Bars: When the RSI crosses above a specified UpLevel (default: 50), indicating a bullish momentum and signaling potential buy conditions.
Red Bars: When the RSI crosses below a specified DownLevel (default: 50), indicating a bearish momentum and signaling potential sell conditions.
Buy Signal:
Triggered when the following conditions are met:
RSI crosses from below the UpLevel (default: 50) to above it, signaling increasing bullish momentum.
The close price is above the 50-period Simple Moving Average (SMA), confirming an uptrend.
The Buy Signal is plotted below the bar with a green arrow and a "BUY" label.
Sell Signal:
Triggered when the following conditions are met:
RSI crosses from above the DownLevel (default: 50) to below it, signaling increasing bearish momentum.
The close price is below the 50-period Simple Moving Average (SMA), confirming a downtrend.
The Sell Signal is plotted above the bar with a red arrow and a "SELL" label.
Stop Loss and Take Profit:
For long trades (buy signals), the stop loss is placed below the previous bar's low, and the take profit is set at 3% above the entry price.
For short trades (sell signals), the stop loss is placed above the previous bar's high, and the take profit is set at 3% below the entry price.
Dynamic Bar Coloring:
The bar colors change dynamically based on RSI levels:
Green Bars: Indicating a potential uptrend (bullish).
Red Bars: Indicating a potential downtrend (bearish).
These visual cues help traders quickly identify market trends and potential reversals.
Trend Filtering:
The 50-period Simple Moving Average (SMA) is used to filter trades based on the overall market trend:
Buy signals are only considered when the price is above the moving average, indicating an uptrend.
Sell signals are only considered when the price is below the moving average, indicating a downtrend.
Alerting System:
Alerts can be set for both buy and sell signals. These alerts notify traders in real-time when potential trades are generated, allowing them to act promptly.
Alerts can be configured to send notifications through email, SMS, or a webhook for integration with other services like IFTTT or Zapier.
Key Features:
RSI and Moving Average-Based Signals: Combines RSI with a moving average for more accurate trade signals.
Stop Loss and Take Profit: Dynamic risk management with custom stop loss and take profit levels based on previous high and low prices.
Buy and Sell Alerts: Provides real-time alerts when a buy or sell signal is triggered.
Trend Confirmation: Uses the 50-period Simple Moving Average to filter signals and confirm the direction of the trend.
Visual Bar Color Changes: Makes it easy to identify bullish or bearish trends with color-coded bars.
Usage:
This strategy is suitable for traders who prefer a trend-following approach and want to combine momentum indicators (RSI) with price action (Engulfing Candlestick patterns). It is particularly useful in volatile markets where quick identification of trend changes can lead to profitable trades.
Best Used For: Day trading, swing trading, and trend-following strategies.
Timeframes: Works well on various timeframes, from 1-minute charts for scalping to daily charts for swing trading.
Markets: Can be applied to any market with sufficient liquidity (stocks, forex, crypto, etc.).
Settings:
UpLevel: The RSI level above which the market is considered bullish (default: 50).
DownLevel: The RSI level below which the market is considered bearish (default: 50).
SMA Length: The period of the Simple Moving Average used to filter trades (default: 50).
Risk Management: Customizable stop loss and take profit settings based on price action (default: 3% above/below the entry price).
EMA with Bar Count
---
### **Key Features and Functionalities**
#### 1. **Multi-Timeframe Exponential Moving Averages (EMA)**
- The script calculates and plots EMAs for various timeframes (e.g., 1 minute, 5 minutes, 60 minutes, daily, and custom intervals).
- Users can customize the length and resolution of each EMA using inputs.
- Different colors are assigned to each EMA for easy identification on the chart.
#### 2. **Background Coloring**
- Optional background coloring (`bgcolor`) indicates whether the current price is above or below the 1-hour 20 EMA.
- Green indicates the price is above, and red indicates the price is below the EMA.
#### 3. **Bar Count Labeling**
- The script tracks bar counts and displays labels at specific intervals (e.g., every 3 bars).
- Label size and text color can be customized through user inputs.
#### 4. **Inside and Outside Bar Detection**
- Detects and highlights "Inside Bars" and "Outside Bars" on the chart.
- **Inside Bar**: The current bar's high and low are within the previous bar's range.
- **Outside Bar**: The current bar's range exceeds the previous bar's range.
- These patterns are marked with shapes for visual identification.
#### 5. **Bullish/Bearish Candle Streaks**
- Identifies and marks streaks of three consecutive bullish or bearish candles.
- **Bullish Streaks**: Marked with green shapes above the bar.
- **Bearish Streaks**: Marked with red shapes above the bar.
#### 6. **Time-Based Marking**
- The script includes an option to highlight specific time intervals (e.g., 7:30 AM) with a colored vertical line or background shading.
- Configurable time inputs allow flexibility.
#### 7. **Micro Gap Detection**
- Highlights gaps between the opening price of the current bar and the closing price of the previous bar.
- Blue shapes indicate bullish gaps.
- Purple shapes indicate bearish gaps.
#### 8. **TR (Trading Range) Detection**
- Identifies bars with significant overlap based on a user-defined threshold.
- Displays "TR" labels when overlap conditions are met.
#### 9. **Bar Coloring**
- Optionally colors bars based on specific conditions:
- Green: Bullish breakout (high and low higher than the previous bar, closing above the midpoint).
- Red: Bearish breakout (high and low lower than the previous bar, closing below the midpoint).
#### 10. **50% Midpoint Line**
- Displays a horizontal line at the 50% midpoint of the bar's range, customizable for the current or last bar only.
#### 11. **Pattern Detection**
- Recognizes specific candlestick patterns (e.g., IOI, OII, IOO).
- Provides alerts for detected patterns or predefined thresholds.
#### 12. **Alerts**
- Configurable alerts for:
- Specific patterns (e.g., IOI, OII, IOO).
- Bar range exceeding a user-defined threshold.
- Bullish or bearish streaks.
#### 13. **Gap Detector**
- Identifies gaps between bars and marks them with shaded boxes.
- Bullish gaps are shaded green, while bearish gaps are shaded red.
#### 14. **Advanced Customization**
- Extensive user inputs allow traders to tailor the indicator to their trading style.
- Includes support for various levels of detail (e.g., debug mode, label visibility, etc.).
#### 15. **ZigZag and Wedge Patterns**
- Optional zigzag lines to connect swing highs and lows.
- Detects wedge patterns using customizable settings for pivot points and angle differences.
---
### **Use Case Scenarios**
1. **Trend Identification**: Use multi-timeframe EMAs to confirm overall market direction.
2. **Range Trading**: Trade within ranges using detected inside and outside bars as key levels.
3. **Breakout Trading**: Use patterns like IOI and OII to anticipate breakouts.
4. **Scalping**: Exploit bullish and bearish streaks or micro gaps for quick trades.
5. **Pattern-Based Alerts**: Set up alerts for specific market conditions or candlestick patterns.
### **Why This Indicator Is Useful**
- Combines multiple trading tools into a single, customizable script.
- Saves time by automating complex calculations and pattern detections.
- Improves decision-making with clear visual cues and configurable alerts.
Let me know if you'd like any additional explanations or adjustments!
TTrades Fractal ModelFractal Model by TTrades
Crafted with TTrades, the Fractal Model empowers traders with a refined approach to Algorithmic Price Delivery. Specifically designed for those aiming to capitalize on expansive moves, this model anticipates momentum shifts, swing formations, orderflow continuations, as well as helping analysts highlight key areas to anticipate price deliveries.
Description:
The Fractal Model° is rooted in the cyclical nature of price movements, where price alternates between large and small ranges. Expansion occurs when price moves consistently in one direction with momentum. By combining higher Timeframe closures with the confirmation of the change in state of delivery (CISD) on the lower Timeframe, the model reveals moments when expansion is poised to occur.