DAX Sectors OverviewIt's a table with a realtime read of DAX sectors, their changes in the day, weight for the whole DAX index.
Weights are fixed values defined in the script - recommended to refresh them periodically.
Indicadores y estrategias
ES on MNQES on MNQ — ES percent-move overlay on the MNQ price scale
Overview
This indicator projects the ES’s intraday percent change since session open onto the MNQ price scale. At the session start (18:00 global chart time), it stores the ES open and the MNQ open, tracks ES’s percentage move from that anchor, and applies the same percent move to the MNQ open. The result is a single line that behaves like ES but is plotted in MNQ points—useful for spotting convergence/divergence, failed breaks, and mean-reversion setups between ES and MNQ.
How it works
1. Detects session open (18:00 on your chart).
2. Saves ES_open and MNQ_open.
3. Computes pct = (ES_close - ES_open) / ES_open.
4. Plots MNQ_open * (1 + pct) as the ES-on-MNQ line.
A label on the last bar shows the current ES value for quick reference.
Inputs
• ES Symbol: default ES1! (change if you use a different continuous).
• Line Color: color of the overlaid ES-on-MNQ line.
Works best on intraday timeframes and when your chart’s session aligns with ES.
Why it’s useful
• Highlights divergences (MNQ decoupling from ES baseline).
• Aids confirmation on pullbacks/breakouts when MNQ’s move disagrees with the ES-based projection.
• Helps risk control by flagging stretches likely to revert toward the ES-anchored path.
Notes & limitations
• This is a percent-rebasing overlay, not a hedge ratio, fair value, or spread model.
• Session/timezone settings matter; if your feed doesn’t print exactly at 18:00 on a higher timeframe, use a smaller TF or adjust session settings.
• Minor differences between ES (full) and MNQ (micro) and data latency can create small offsets.
Disclaimer
For educational use only. Not financial advice. Use proper risk management.
WIF: Big Candle -> Harami (15m) — BINANCEI want to use this strategy: first there is a large candle with a body at 2%, after it there is a temple, I go from the temple in the direction of the candle color.
4/8/15 EMA + Classic & Camarilla PivotsEssentially this is what you can get on TOS but everything included in one chart.
ADX Trend Strength Filter + TRAMA [DotGain]Summary
Are you tired of trading trend signals, only to get stopped out in volatile, sideways chop?
The ADX Trend Strength Filter (ADX TSF) is designed to solve this exact problem. It is a comprehensive trend-following system that only generates signals when a trend not only has the right direction and momentum, but also sufficient strength.
This indicator filters out weak or indecisive market phases (the "chop") and will only color the bars Green or Red when all conditions for a strong, confirmed trend are met.
⚙️ Core Components and Logic
The ADX TSF relies on a triple-filter logic to generate a clear trade signal:
Trend Filter (TRAMA): A TRAMA (Trending Adaptive Moving Average) is used as the main trendline. This adaptive average automatically adjusts to market volatility, acting as a dynamic support/resistance level.
Price > TRAMA = Bullish
Price < TRAMA = Bearish
Momentum Filter (RSI Crossover): Momentum is measured by a crossover of two moving averages of the RSI (a fast EMA and a slow SMA). This confirms whether the momentum is pointing in the same direction as the trend.
Strength Filter (ADX): This is the most important filter. A signal is only considered valid if the ADX (Average Directional Index) is above a defined threshold (Default: 30). This ensures the trend has sufficient strength.
🚦 How to Read the Indicator
The indicator has three states, displayed directly as bar colors on your chart:
🟩 GREEN BARS (Strong Uptrend) All three conditions are met:
Price is above the TRAMA.
RSI momentum is bullish (Fast MA > Slow MA).
ADX is above 30 (Strong trend is present).
🟥 RED BARS (Strong Downtrend) All three conditions are met:
Price is below the TRAMA.
RSI momentum is bearish (Fast MA < Slow MA).
ADX is above 30 (Strong trend is present).
🟧 ORANGE BARS (Neutral / Caution) This state appears if any of the following conditions are true:
Weak Trend: The ADX is below 30. The market is in consolidation or a sideways phase. (This is the primary filter!)
Indecision: The price is caught in the "Neutral Zone" between the TRAMA and the 200 SMA.
Visual Elements
Bar Colors: (Green/Red/Orange) Show the current trend status.
TRAMA (Orange Line): Your primary adaptive trendline.
200 SMA (White Line): Serves as a reference for the long-term trend.
Orange Background (Fill): Fills the area between the TRAMA and SMA to visually highlight the "Neutral Zone."
Key Benefit
The goal of the ADX TSF is to keep traders out of weak, unpredictable markets and help them participate only in strong, momentum-confirmed trends.
Have fun :)
Disclaimer
This "Buy The F*cking Dip" (BTFD) indicator is provided for informational and educational purposes only. It does not, and should not be construed as, financial, investment, or trading advice.
The signals generated by this tool (both "Buy" and "Sell") are the result of a specific set of algorithmic conditions. They are not a direct recommendation to buy or sell any asset. All trading and investing in financial markets involves substantial risk of loss. You can lose all of your invested capital.
Past performance is not indicative of future results. The signals generated may produce false or losing trades. The creator (© DotGain) assumes no liability for any financial losses or damages you may incur as a result of using this indicator.
You are solely responsible for your own trading and investment decisions. Always conduct your own research (DYOR) and consider your personal risk tolerance before making any trades.
Time Range HighlighterThis indicator highlights up to two custom time ranges on your chart with fully adjustable settings:
🔧 Features:
Define two separate time sessions
Set custom start and end times (in any time zone)
Choose unique highlight colors and opacity for each session
Toggle each range on or off independently
Timezone input allows syncing sessions to any global market hours (e.g., UTC, Asia/Tehran, New York)
🕒 Example Use Cases:
Highlight market opening hours (e.g. NYSE: 0930–1600)
Track your personal trading hours or peak volatility sessions
Visualize specific algorithm time filters
📌 Usage:
Enter your desired timezone string (e.g., "Asia/Tehran" or "Etc/UTC")
Customize session times like "0930-1200" and "1500-1700"
Adjust colors and visibility to fit your strategy
Ideal for traders who rely on time-based setups or session overlays.
OTHERS Power-Law Support 2025OTHERS Power-Law Calculation by Robert.
I took the BTC-Power-Law & Decay-Top and applied it to the OTHERS index.
This indicator is very experimental/in an early state.
Disclaimer: This is my own calculation and no investing advice! Use at your own risk.
Market Sessions — VerticalA clean visual guide to global market sessions.
This indicator plots vertical lines at the opening and closing times of the four major forex sessions:
London, New York, Tokyo, and Sydney.
Fully customizable — toggle each session on/off, choose separate colors for open/close, and enable/disable labels.
Supports both Local (auto-DST) and GMT (fixed) modes — switch between realistic market-clock times or the standardized UTC schedule used by most trading resources.
Helps you visually identify session overlaps (e.g., London–New York) where volatility typically increases.
Ideal for forex, indices, and commodities traders who trade around session opens.
Default session times (GMT mode):
Sydney 21:00 – 06:00 GMT
Tokyo 00:00 – 09:00 GMT
London 08:00 – 17:00 GMT
New York 13:00 – 22:00 GMT
Tip: Set Anchor times by → Local (auto-DST) if you want the lines to follow each region’s real-world daylight-saving adjustments automatically.
Clean, lightweight, and built for traders who want precise, minimal clutter — just the key time windows that move the market.
BTC Bull/Bear marketThis indicator plots the 350-period Simple Moving Average (SMA) calculated on the Daily ("D") timeframe.
he color of the SMA line is determined by the closing price of the 2-Week ("2W") timeframe.
1. It fetches the 350-day SMA value (`sma350_daily`).
2. It checks where the *last closed* 2-Week candle finished relative to this SMA line.
3. If the 2W candle closed *above* the 350 SMA, the line is colored GREEN.
4. If the 2W candle closed *below* the 350 SMA, the line is colored RED.
This helps to visualize the long-term trend (350 SMA) confirmed by a higher (2W) timeframe bias, using non-repainting logic (`close `) for the color signal.
ORB LACORB breakout strategy based on the opening range and Fibonacci-style extensions.
Builds the ORB (5/15/30m or custom).
Uses ORB High/Low, mid 0.5 (stop), 1.1185 trigger and 1.5 target.
First break of 1.1185 above = LONG (SL mid, TP 1.5).
First break of 1.1185 below = SHORT (SL mid, TP 1.5).
Only one trade per day, intraday timeframes recommended.
For research & backtesting purposes only. Not financial advice.
Multi-EMA Strategy (Low Source)this strategy use the ema low for its functionality 8 9 110 355 and 480
oppliger trendfollow📈 Strategy Overview: SMA25 vs SMA200 – Gap Momentum Trend Strategy
This strategy is a trend-following system designed to capture strong, accelerating uptrends while exiting early when momentum begins to fade.
It uses the relationship between two moving averages — the 25-period SMA and the 200-period SMA — and monitors the gap (distance) between them as a measure of trend strength.
🟢 Entry Conditions (Go Long)
A long position is opened only when all of the following conditions are true:
Uptrend confirmation:
The 25-period SMA is above the 200-period SMA
→ confirms a clear upward trend.
Price momentum:
The closing price is above the SMA25 line,
→ showing that the market currently trades with bullish momentum.
Trend acceleration:
The gap between SMA25 and SMA200 has been increasing for the last 5 consecutive bars.
→ mathematically:
gap_t > gap_(t-1) > gap_(t-2) > gap_(t-3) > gap_(t-4)
→ indicates that the short-term trend is pulling away from the long-term trend and accelerating upward.
✅ When all three conditions are met, the strategy enters a long trade at the close of the current candle.
🔴 Exit Conditions (Close Long)
The position is closed when the uptrend starts to lose strength:
Trend deceleration:
The gap between SMA25 and SMA200 has been shrinking for 3 consecutive bars.
→ mathematically:
gap_t < gap_(t-1) < gap_(t-2)
→ signals that the short-term moving average is converging toward the long-term average, showing weakening momentum.
🚪 When this condition is met, the strategy closes the position at market price.
⚙️ Summary of Logic
Phase Condition Meaning
Entry SMA25 > SMA200 Long-term trend is up
Entry Close > SMA25 Short-term momentum is bullish
Entry Gap rising 5 bars Trend is accelerating
Exit Gap falling 3 bars Trend is weakening
💡 Interpretation
This strategy aims to:
Enter only when a strong, accelerating uptrend is confirmed.
Stay in the trade as long as momentum remains intact.
Exit early when the market starts losing strength, before the trend fully reverses.
It works best in trending markets and helps avoid false entries during sideways or weak phases.
BUY/SELL/R/BBuy/Sell/R/B by SeanKidd
Purpose: A clean, anchored signal system combining StochRSI crossovers, CVI top/bottom detection, and a MACD direction line that moves with price.
⚙️ How It Works
BUY / SELL – Generated from a higher-timeframe StochRSI crossover.
BUY (Green) → %K crosses above %D
SELL (Red) → %K crosses below %D
R (Reverse) – Yellow “R” appears above the candle when the CVI model detects a local top or exhaustion point.
B (Bottom) – Blue “B” appears below the candle when CVI detects a local bottom.
MACD Direction Line –
Green = MACD above Signal → bullish momentum
Red = MACD below Signal → bearish momentum
The line rides just above the candles, offset by ATR so it always tracks price.
🧭 How to Use It
Add the indicator:
Search for Buy/Sell/R/B by SeanKidd under Community Scripts.
Click ★ to favorite it.
Apply it to your chart.
Open ⚙️ Settings → Inputs
Calculation Timeframe (StochRSI) → pick how fast or slow you want signals (default Weekly).
MACD Line Offset (ATR ×) → raise or lower the MACD line if it overlaps candles.
Adjust Top/Bottom thresholds to control how often R/B appear.
Toggle Highlight bars or Color candles for visual clarity.
Go to Settings → Scales and ensure it’s set to
✅ “Scale with Price Chart” or
✅ same scale side as the candles.
This keeps everything perfectly attached to the chart.
Optional: Add alerts
Create → Alert → Condition → Buy/Sell/R/B by SeanKidd
Choose: SRSI BUY, SRSI SELL, Top (R), or Bottom (B).
📈 Reading the Chart
Marker Meaning Color Position
BUY StochRSI %K cross above %D Lime Below bar
SELL StochRSI %K cross below %D Red Above bar
R CVI-detected top / reversal Yellow Above bar
B CVI-detected bottom Blue Below bar
Line MACD momentum direction Green/Red Above highs
💡 Tips
Works on any symbol or timeframe.
Slower charts (Daily–Weekly) give cleaner swing signals.
Faster charts (15m–1h) show short-term reversals.
Combine the MACD line direction with BUY/SELL for stronger confirmation.
Stockbee 8% 4% 9M + MA CrossoversThis is another version of my Stockbee 9% 4% 9M script, now enhanced with moving average crossovers to highlight trend shifts more effectively.
The crossovers are displayed in the same visual style as the 9 million volume indicator from the original script but use different shapes and forms for better distinction.
All crossover visuals can be customized to your liking—you can adjust their appearance to fit your charting style or preference.
Dance With Wolves VN PublicDance With Wolves VN
Indicator kết hợp EMA 9/21 để vào lệnh nhanh, thêm EMA 20/50/200 để xem trend lớn.
Tự tạo Entry, SL, TP1, TP2, TP3 theo ATR.
Vẽ luôn 3 mức kháng cự (R1–R3) và 3 mức hỗ trợ (S1–S3) từ pivot gần nhất.
Dùng tốt cho khung 1m–15m với crypto, stock, futures.
Dance With Wolves VN — Smart EMA Strategy
This indicator combines EMA 20/50/200 trend tracking, automatic Buy/Sell signals, Take Profit & Stop Loss levels, and Support/Resistance zones.
It helps traders identify clean entries, manage risk with visual TP/SL targets, and follow market trends with clarity.
Created by Dance With Wolves VN — a community project for traders who value discipline, teamwork, and precision.
SR-ZnV2There are many support and resistance scripts out there. I was unable to find one that met all of my needs so I have expanded on the closest ones that I was able to discover. The ability to show persistent S/R levels by volume at various time frames automates much of the process for the user with unique and customizable features, the lastest dated of which are displayed by its time frame support/resistance strength and extend toward the right of the screen where they can be seen more clearly by price .
// Original script is thanks to tommyf1001, synapticex and additional modifications is thanks to Lij_MC. Credit to both of them for most of the logic behind this script. Since then I have made many changes to this script as noted below.
// Changed default S/R lines from plots to lines, and gave option to user to change between solid line, dashed line, or dotted line for both S/R lines.
// Added additional time frame and gave more TF options for TF1 other than current TF. Now you will have 4 time frames to plot S/R zones from.
// Gave user option to easily change line thickness for all S/R lines.
// Made it easier to change colors of S/R lines and zones by consolidating the options under settings (rather than under style).
// Added extensions to active SR Zones to extend all the way right.
// Added option to extend or not extend the previous S/R zones up to next S/R zone.
// Added optional time frame labels to active S/R zones, with left and right options as well as option to adjust how far to the right label is set.
// Fixed issue where the higher time frame S/R zone was not properly starting from the high/low of fractal. Now any higher time frame S/R will begin exactly at the High/Low points.
// Added to script a function that will prevent S/R zones from lower time frames displaying while on a higher time frame. This helps clean up the chart quite a bit.
// Created arrays for each time frame's lines and labels so that the number of S/R zones can be controlled for each time frame and limit memory consumption.
// New alert options added and customized alert messages.
RSI MTF Table - 12 Pairs (1,5,15)
The relative strength index measures the speed and magnitude of an asset's recent price changes. Therefore, it is considered a momentum indicator in technical analysis. Essentially, the RSI is the ratio of the days an asset's value increases to decreases over a given period.
Generally speaking, if the RSI is around 50, we do not expect strong movements. RSI above 65 or below 35 are areas we expect. In this context, this chart and the general momentum in 1-5-15 minutes allow us to quickly determine the parity we will trade. It is useful for intraday trading and scalping.
EPS Estimate Profile [SS]This is the EPS Estimate Profile indicator.
What it does
This indicator
Collects all EPS estimates over the course of a lookback and BINS them (sorts them into 10 equal sized categories).
Analyzes the returns from earnings releases based on the EPS estimate and the reaction.
Calculates the number of bullish vs bearish responses that transpired based on the EPS estimate profile.
Calculates the expected Open to High and Open to Low ATR based on the EPS estimate using regression.
Toggle to actual EPS release to compare once earnings results are released.
How to Use it
This indicator can be used to gain insight into whether an earnings release will be received bullishly or bearishly based on the company's EPS estimate.
The indicator allows you to see all historic estimates and how the market generally responded to those estimates, as well as a breakdown of how many times estimates in those ranges produced a bullish response or a bearish response to earnings.
Examples
Let's look at some examples:
Here is MSFT. MSFT's last EPS estimate was 3.672.
If we consult the table, we can see the average return associated with this estimate range is -4%.
Now let's flip to the Daily timeframe and take a look:
MSFT ended the day red and continued to sell into the coming days.
Let's look at another example:
MCDs. Last earnings estimate was 3.327, putting it at the top of the range with an average positive return of 4%.
Let's look on the daily:
We can see that the earnings had a huge, bullish effect on MCD, despite them coming in below their estimates.
If we toggle the indicator to "Actual" EPS release, to see the profile of Actual earnings releases vs response, we get this:
Since MCD under-performed, they were still at the top of the profile; but, we can see that the expected returns are more muted now, though still positive. And indeed, the reaction was still positive.
Distinguishing % Bullish/Bearish to Avg Returns
You will see the profile table displays both the average returns and the percent of bullish/bearish responses. In some cases, you will see that, despite a negative return, the profile reveals more bullish reactions than bearish.
What does this mean?
It means, despite there being more bullish responses, when bearish responses happen they tend to be more severe and profound, vs bullish responses likely are muted.
This can alert you to potential downside risk and help you manage risk accordingly should you elect to trade the earnings release.
ATR Prediction
You will notice in the bottom right corner of the screen a secondary table that lists the predicted open to high ATR and open to low ATR.
This is done using RAW EPS estimates (or raw ACTUAL estimates depending on which you select) and performing a regression to determine the expected ATR.
This is only for reference, the analysis should focus around the historic profile of return estimates and actual return values.
IMPORTANT NOTE: You MUST be on the Monthly timeframe to use this. Otherwise, you will get an error. If, on certain tickers with a huge history, such as MSFT and XOM or OXY, you get an error, you can simply reduce the lookback length to 80 and this will resolve the issue.
Conclusion
And that's the indicator!
A blend of some light math and fundamentals! A real joy honestly.
Hope you enjoy it!
XAutoTrade Alert Builder v1.1Automate Your NinjaTrader Trading with TradingView Alerts
The XAutoTrade Alert Builder is a flexible Pine Script strategy that bridges TradingView alerts with
NinjaTrader automated trading. Design custom entry signals, configure exit strategies, and execute trades
automatically on your NinjaTrader account - all from TradingView charts.
Key Features
📊 Flexible Signal Logic
- Configure buy/sell signals independently
- Compare any two indicators or price sources using crossover, crossunder, greater than, or less than
logic
- Visual buy/sell markers on chart for easy signal verification
🎯 Multiple Exit Methods
1. ATM Strategy - Leverage your existing NinjaTrader ATM templates for advanced order management
2. Source Signals - Exit positions based on opposite entry signals
3. Fixed Levels - Set stop loss and profit targets using ticks or percentage
⚙️ NinjaTrader Integration
- Direct webhook integration with XAutoTrade backend service
- Multi-account support (trade multiple accounts simultaneously)
- Position sizing and max position limits
- Market or limit order types with configurable offset
- Time-in-force options (DAY/GTC)
- Active hours filter (US ET timezone) to control when alerts execute
🔐 Secure & Reliable
- Webhook secret authentication
- Symbol override capability
- Real-time status indicator showing configuration readiness
How It Works
1. Configure Entry Signals - Choose your buy/sell logic by comparing any two data sources (price,
indicators, etc.)
2. Set Exit Strategy - Select ATM templates, signal-based exits, or fixed stop/profit levels
3. Connect to NinjaTrader - Enter your XAutoTrade webhook secret and account details
4. Create Alert - Use the strategy's alert system to send formatted JSON payloads to your XAutoTrade
webhook
5. Trade Futures & Stocks Automatically - TradingView alerts trigger real trades in your NinjaTrader account
Perfect For
- Traders wanting to automate TradingView strategies in NinjaTrader
- Users with existing ATM templates who want TradingView signal automation
- Multi-account traders managing several NinjaTrader accounts
- Anyone seeking a no-code bridge between TradingView and NinjaTrader
Requirements
- Active XAutoTrade account and subscription
- NinjaTrader 8 with XAutoTrade AddOn installed
- TradingView Premium/Pro account (for webhook alerts)
NEXT GEN INSPIRED BY OLIVER VELEZDYOR NFA
1. Initial Setup & Application
Load the Strategy to your desired chart (e.g., EURUSD M5, as suggested by the script's backtest).
Overlay: Ensure the script is set to overlay=true (which it is) so the signals and Moving Averages plot directly on the price chart.
Equity Management: Review the initial strategy settings for capital and position sizing:
Initial Capital: Defaults to 10,000.
Default Qty Type: Set to strategy.percent_of_equity (22%), meaning 22% of your available equity is used per trade. Adjust this percentage based on your personal risk tolerance.
2. Reviewing Key Indicator Inputs
The script uses default values that are optimized, but you can adjust them in the settings panel:
Fast EMA: Defaults to 9 (e.g., a 9-period Exponential Moving Average).
Slow EMA: Defaults to 21 (e.g., a 21-period Exponential Moving Average). These EMAs define the short-term trend.
ATR: Defaults to 14 (Average True Range). Used to dynamically calculate volatility for SL/TP distances.
Final R:R: Defaults to 4.5 (minimum R:R required for a signal). This is the core of the strategy's high reward goal.
3. Interpreting Entry Signals
A trade signal is generated only when all conditions—EMA trend, "Elephant Logic" momentum, and non-ranging market—are met.
Long Signal: Appears as a green triangle (▲) below the bar, labeled "COMBO".
Short Signal: Appears as a red triangle (▼) above the bar, labeled "COMBO".
Live Plan: Upon signal, a detailed label is immediately plotted on the chart showing the FULL BATTLE PLAN:
SL: Calculated Stop Loss price.
TP: Calculated Take Profit price (based on the Final R:R).
Risk/Reward Pips: The calculated pips for the trade's risk and reward.
R:R = 1:4.5: The exact Risk-to-Reward ratio.
4. Understanding Market Conditions & Visuals
The script provides visuals to help you understand the current market state:
Trend EMAs: The 9 EMA (green) and 21 EMA (purple/magenta) are plotted to show the underlying trend.
Long trades only fire when Price > 9 EMA > 21 EMA.
Short trades only fire when Price < 9 EMA < 21 EMA.
Ranging Market (Rejection): Bars turn a light gray/silver when the proprietary "Reject Ranging" logic is active, indicating a low-volatility period. No new trades will be taken during these bars.
Momentum Bar: Bars turn a gold/yellow color when the "Elephant Logic" (high-momentum, large-body candles over 2-3 periods) is detected, highlighting powerful price movement.
5. Execution and Exit Logic
The strategy handles entry, scaling, and exit automatically:
Entry: A market order is placed (strategy.entry) immediately upon the bar where the longSetup or shortSetup condition is met.
Scaling Out (+1R): If the trade moves favorably by an amount equal to the initial risk (1R), the script closes a portion of the position (strategy.close with comment "+1R"). This partial exit locks in profit equivalent to the initial risk.
Re-entry (Pyramiding): After the +1R exit, the strategy attempts a re-entry (LONG RE/SHORT RE diamond plot) if the price meets certain criteria near the 9 EMA, trying to capitalize on further trend continuation.
Final Exits:
Take Profit: A limit order is set at the calculated TP level (stopDist * minRR).
Stop Loss: A stop order is set at the calculated SL level (stopDist * 1.3), slightly wider than the initial SL distance, likely to account for spread/slippage, ensuring the maximum loss is defined.
Trailing Stop: A trailing stop is applied to the re-entry positions (LONG RE/SHORT RE) to protect profits as the market moves further in the direction of the trade.
BullTrader - ParabolicSARFlipSignals(NonRepainting)🧠 Concept & Purpose
This indicator isolates the confirmed trend‑change events produced by the Parabolic SAR and turns them into direct, non‑repainting trade signals.
Instead of plotting every SAR dot as a potential entry, it marks only the bars where price has closed across the SAR line, confirming a genuine flip from bullish → bearish or vice versa.
Each confirmed flip is displayed with a single triangle on the chart and can be connected to alerts.
The design is intentionally minimal: one simple but reliable algorithmic definition of “the trend just turned.”
⚙️ How It Works
1. The script calculates the standard Parabolic SAR value using the built‑in ta.sar() function.
2. When a candle closes above a SAR dot that was previously above price → uptrend starts (Buy Signal).
3. When a candle closes below a SAR dot that was previously below price → downtrend starts (Sell Signal).
4. Signals are confirmed only after the bar closes (barstate.isconfirmed), guaranteeing no repainting.
5. Each event can trigger an alert or simply serve as a visual reversal marker.
📈 Chart Elements
Element Description
🟠 Orange cross dots Standard Parabolic SAR trail.
🟢 Triangle below bar Confirmed SAR flip up → new bullish phase.
🔴 Triangle above bar Confirmed SAR flip down → new bearish phase.
Optional green/red background Highlights bars where a confirmed flip occurred.
🔔 Alerts
Use buySignalFinal for Buy alerts and sellSignalFinal for Sell alerts.
Set alerts to “Once per bar close” to match the non‑repainting confirmation logic.
📊 Best Use
* Identifying clear trend reversals.
* As an entry / exit overlay for manual trading.
* As a base signal for automated or alert‑driven systems.
This version keeps the indicator fast, reproducible, and completely non‑repainting — ideal for traders who prefer transparent and verifiable signals derived directly from Per J. Wilder’s original Parabolic SAR formula.
Strategy XAU/M5 RSI+EMAXAU M5 Strategy — EMA + RSI with Flexible TP/SL
Recommended timeframe: M5
Best suited for: XAUUSD (Gold) — can also be tested on other pairs after optimization.
Concept
This strategy combines trend direction via EMA and momentum confirmation via RSI (oversold/overbought levels).
Buy (Long): when price is above EMA and RSI crosses above the oversold level.
Sell (Short): when price is below EMA and RSI crosses below the overbought level.
This method follows the trend but waits for RSI confirmation, avoiding premature entries during unconfirmed market moves.
Entry Conditions
Buy: close > EMA and RSI crossover RSI_oversold
Sell: close < EMA and RSI crossunder RSI_overbought
Default settings:
EMA Length = 500 (smooth trend filter for M5)
RSI Length = 8, Overbought = 70, Oversold = 30 (sensitive enough to catch early impulses)
Trade Management (TP/SL)
This strategy supports two TP/SL modes:
Fixed Value
Adds or subtracts a fixed price value directly from the entry price.
Example: TP = +14, SL = -7 (measured in price points, not USD).
Pip Mode
Uses pip size conversion: pip = syminfo.mintick * 10.
TP/SL = (entered pip value × pip size) added/subtracted from entry.
Note: although the inputs are labeled “USD/Pip,” the calculations are based on price points and pip-size scaling.
If you use a symbol other than XAUUSD, double-check pip size to ensure TP/SL aligns correctly.
Suggested Parameters (for XAUUSD M5)
EMA Length: 500
RSI Length: 8
RSI Overbought: 70
RSI Oversold: 30
TP/SL Mode: “Fixed Value” (easier for beginners)
TP (Value): 14
SL (Value): 7
Default risk–reward ratio ≈ 1:2 (TP twice the SL), ideal for fast-paced M5 scalping.
Usage & Optimization Tips
Use on M5 timeframe as designed. Adjust EMA/RSI if changing timeframes.
Select one TP/SL mode only (“Value” or “Pip”) and confirm actual units.
Avoid high-volatility news events (NFP, CPI, FOMC) to reduce slippage.
Focus on active sessions:
Gold is most volatile during London and New York sessions.
Risk management:
Risk ≤1–2% per trade.
Avoid countertrend stacking when RSI remains extreme in strong trends.
Trend confirmation:
EMA 500 filters noise well;
Backtesting Tips
Set initial capital realistically.
Include commissions/spread to mirror broker conditions.
Keep pyramiding low (0–1) to assess signal quality.
Start with On bar close mode, then test Every tick for detailed sensitivity.
Strengths
Simple and transparent: clear, rule-based signals.
Trend + momentum confirmation: avoids catching falling knives.
Flexible TP/SL system: switch easily between fixed or pip-based setups.
Limitations
RSI can trigger early during extended strong trends (persistent overbought/oversold).
TP/SL tuning is essential for each market and volatility regime.
Disclaimer
This is not financial advice.
Past performance does not guarantee future results.
Always backtest and paper trade before using real capital, and practice strict risk management.






















