EMA Cross Strategy only Long📈 EMA Cross Strategy – Only Long
Simple. Clean. Powerful. Designed for strong uptrends.
This is a long-only trend-following strategy based on the classic crossover of Exponential Moving Averages (EMAs). It’s designed for growth stocks and trending assets where upward momentum dominates.
⚙️ How it works:
Entry: when the Fast EMA crosses above the Slow EMA
Exit: when the Fast EMA crosses below the Slow EMA
No shorts, no reversals – just pure trend riding.
By default, the strategy uses 50/100 EMA, which has performed exceptionally well on stocks like NVIDIA (NVDA). These settings can be easily customized to fit your preferred asset or timeframe.
📊 Backtest Example – NVIDIA (NVDA, 1D timeframe)
Test parameters:
Initial capital: $10,000
Order size: 50% of equity per trade (adjustable in settings)
Results:
Net profit: +$2,037,563.63 USD
Gross profit: $2,127,432.33
Gross loss: $89,868.70
Max equity growth: $2,708,648.75 (+99.63%)
Drawdown: 20.00%
Buy & Hold profit: +$30,636,000 USD (but with far more exposure)
The strategy dramatically outperformed passive holding on a risk-adjusted basis, while keeping drawdowns and trade count under control.
🔧 Customization & Risk Management
In the Strategy Settings, you can adjust:
EMA lengths (default: 50 fast, 100 slow)
Order size as a % of equity (e.g., reduce below 50% to lower drawdown)
Backtest range and asset type (works well on growth stocks and trending commodities)
Try this on assets with strong bullish cycles like NVDA, AAPL, MSFT, or Gold (XAU/USD).
⚠️ Disclaimer
This script is for educational and backtesting purposes only. It is not financial advice. Please do your own research and test carefully before trading live.
Индикаторы и стратегии
Moving Average Convergence-Divergence (MACD)This script implements the Moving Average Convergence-Divergence (MACD), a popular momentum indicator used in technical analysis to identify trend direction, momentum shifts, and potential buy/sell signals.
🔹 Key Features
1. Inputs & Customization
MACD Lines Toggle: Enable/disable the MACD and signal lines.
Source Price: Defaults to close but can be adjusted (e.g., open, high, low, hl2).
Fast Length (12): The period for the faster-moving EMA.
Slow Length (26): The period for the slower-moving EMA.
Signal Length (9): The smoothing period for the signal line.
2. Calculations
Computes the MACD Line (fast EMA - slow EMA).
Computes the Signal Line (EMA of the MACD line).
Computes the Histogram (difference between MACD and Signal lines).
3. Visual Indicators
Zero Line: A white horizontal line at 0 for reference.
MACD Line: Plotted in green when above the signal line, red when below.
Signal Line: Displayed as a yellow line.
Histogram:
Green bars when MACD > Signal (bullish momentum).
Red bars when MACD < Signal (bearish momentum).
Background Highlights:
Light green on bullish crossovers (MACD crosses above Signal).
Light red on bearish crossunders (MACD crosses below Signal).
4. Alerts
Triggers when:
Bullish Crossover (MACD crosses above Signal).
Bearish Crossunder (MACD crosses below Signal).
🔹 How Traders Use This Indicator
Trend Identification:
MACD above zero → bullish trend.
MACD below zero → bearish trend.
Momentum Signals:
Bullish Crossover (Buy Signal): MACD crosses above Signal.
Bearish Crossunder (Sell Signal): MACD crosses below Signal.
Divergence (Not in this script, but useful):
Price makes higher highs, but MACD makes lower highs → Potential reversal.
🔹 Strengths of This Script
✅ Clean and Efficient Code – Uses Pine Script v6 best practices.
✅ Customizable Inputs – Adjust lengths and source price.
✅ Clear Visuals – Color-coded for easy interpretation.
✅ Built-in Alerts – For automated trading strategies.
Avg 30-min High-Low Pips (Bar Chart)Analyses movements over 30 days and plots possible movement windows.
Last 10 Sessions: High, Low, Pivot, GapLast 10 Sessions: High, Low, Pivot, Gap
Version: v1.0
Developed by
This indicator highlights the most important price levels from the last 10 completed trading sessions to help intraday and swing traders quickly spot potential support, resistance, and price reaction zones.
Key Features:
Previous Highs and Lows: Visualize the high and low from each of the past 10 sessions. These are the most commonly tested breakout and reversal points for day trading.
Session Pivots: The classic pivot formula ((High + Low + Close) / 3) for each of the last 10 sessions, often acting as a market “equilibrium” or intraday magnet.
Gaps: Displays the difference between each day’s open and the previous session’s close (“gap”), showing sentiment shifts and possible gap fill targets.
Clean, Faded Visuals: All lines and labels are subtly faded so your chart remains clear and uncluttered, with each level labeled by how many sessions ago it occurred.
Full Customization: Instantly toggle any level type (High, Low, Pivot, Gap) ON/OFF in settings, extend lines to the right, and adjust their forward length.
Bulletproof Logic: Never throws runtime errors. Lines and labels only display when valid data is present.
How to Use:
Use recent highs/lows for breakout, breakdown, or mean reversion trades.
Spot where multiple levels from past sessions cluster together for high-probability reversal or breakout areas.
Watch pivots for intraday bias, and gaps for sentiment and possible fill plays.
Perfect for all intraday timeframes.
If you want a powerful yet minimal map of where price is most likely to react, this indicator is for you!
Fisher Transform Background StripesThe "Fisher Transform Background Stripes" indicator is an easy-to-use tool that helps traders identify extreme market conditions using the Fisher Transform, a technical indicator that normalizes price data to highlight potential reversals. It displays colored background stripes on your chart to show when the market is oversold or undersold, making it simple to spot trading opportunities.
How It Works:Fisher Transform Calculation: The indicator calculates the Fisher Transform based on a user-defined period (default: 9), using the average of high and low prices to measure market momentum and identify extreme price movements.
Oversold/Undersold Levels: It highlights when the Fisher Transform is above a user-set oversold level (default: 3.0) with red background stripes, or below an undersold level (default: -2.0) with green background stripes.
Visual Feedback: Red and green stripes appear on the chart to mark oversold or undersold conditions, helping you quickly understand market extremes.
Customization: You can adjust the Fisher Transform period, oversold/undersold levels, background colors, and transparency. You can also enable an optional Fisher Transform plot or display values on the chart for debugging.
Wait for Close Option: You can choose whether the indicator waits for the timeframe’s candle to close before showing stripes, ensuring more reliable signals.
Alerts: Optional alerts notify you when the Fisher Transform crosses into oversold or undersold zones (always using confirmed values for accuracy).
Who It’s For: This indicator is ideal for beginner and intermediate traders looking for a clear, visual way to track extreme market conditions and potential reversals using the Fisher Transform.
Key Features:Colored background stripes for oversold (red) and undersold (green) conditions.
Customizable settings for period, levels, colors, and transparency.
Option to wait for candle close for more accurate signals.
Optional Fisher Transform plot and value display for analysis.
Alerts to notify you of key Fisher Transform level crossings.
This indicator provides a straightforward way to monitor market extremes and make informed trading decisions.
RAHA Indicator📈 RAHA Indicator
Roni's Adjusted Hybrid Average
The indicator developed by Aaron Roni Pesach combines an innovative RAHA average - an adjusted hybrid average with smart trend analysis, using additional oscillators in a sophisticated way.
LONG and SHORT signals are given only when:
✅ Technical conditions confirm
✅ And the long-term trend is consistent
RAHA Indicator helps traders identify entry points while filtering out noise and market anomalies.
📈 RAHA Indicator
Roni's Adjusted Hybrid Average
האינדיקטור שפותח על ידי אהרון רוני פסח משלב ממוצע חדשני מסוג RAHA - ממוצע היברידי מתואם עם ניתוח מגמה חכם, באמצעות שימוש במתנדים נוספים באופן מתוחכם.
איתותי LONG ו‑SHORT ניתנים רק כאשר:
✅ התנאים הטכניים מאשרים
✅ והמגמה בטווח ארוך תואמת
RAHA Indicator מסייע לסוחרים לזהות נקודות כניסה תוך סינון רעשים וחריגות שוק.
Rolling 250-Day Sharpe RatioThis Pine Script indicator, “Rolling 250-Day Sharpe Ratio”, computes the trailing Sharpe Ratio for any traded asset over a 250-session window, equivalent to approximately one trading year. The script first derives daily log returns and adjusts them by subtracting the daily equivalent of the 3-month US Treasury yield to obtain the excess return. It then calculates the rolling mean and standard deviation of these excess returns to produce the annualized Sharpe Ratio, which is displayed as a continuous time series on the chart. This allows traders and analysts to assess how the asset’s risk-adjusted performance evolves over time relative to a risk-free benchmark.
A persistently high Sharpe Ratio can indicate strong risk-adjusted returns, but it is essential to approach extreme values with caution. Elevated Sharpe readings can sometimes reflect unsustainable trends, excessive leverage, or periods of unusually low volatility that may revert abruptly. Conversely, a low or negative Sharpe Ratio does not automatically imply an asset should be avoided; it might signal an opportunity if the risk environment normalizes.
EMA200 + MA200 + EMA21 Cross full editabel IndikatorThis Indicator gives you the ema200 + ma200 with an golden cross.
Also the ema21 is integratet.
you can edit it fully.
have fun with it :)
Процентные уровниIndent as a percentage from the current price of the instrument
Отступ в процентах от текущей цены инструмента
Hourly Markers 09:00 - 22:00 (Europe/Budapest)Quick Summary:
✅ Markers appear every full hour from 09:00 to 22:00 Budapest time
✅ Marker shown only on bars at the first minute of each hour
✅ Uses persistent downward labels for clear, visible markers
✅ Works best on low timeframes (1m, 5m) to catch exact hour bars
⸻
Optional tweaks available:
✔ Change to vertical lines instead of arrows
✔ Adjust timezone or colors
Hourly Markers 09:00 - 20:00 Adjusted for UTC+2A line for every hour from 0900 to 2200
Description:
This TradingView Pine Script plots small red markers (downward arrows) at the top of the chart for every full hour between 09:00 AM and 08:00 PM (20:00) based on UTC+2 time. The markers appear precisely at the opening minute of each hour within the defined range, helping traders visually track key time intervals during the day.
Features:
✔ Displays markers from 09:00 to 20:00 local time (UTC+2 adjustment)
✔ Only plots markers at the first minute of each hour
✔ Uses clear, unobtrusive triangle-down symbols above the bars
✔ Works on any chart timeframe that captures hourly intervals
Use Case:
Ideal for traders who want a quick visual reference of hourly intervals during the main trading hours, especially when working with charts set to UTC or different time zones.
Pivot Projection Levels (Hi1, Hi2, Lo1, Lo2)Pivot Avg “Fair value” or equilibrium price
Hi1 1st upside projection — potential resistance
Hi2 Further extension — aggressive target
Lo1/Lo2 Same logic to the downside
Charts Algo Signature Stamp 🖋️
📌 Charts Algo Signature Stamp 🖋️
An elegant and professional chart signature tool to brand your trading ideas, track chart context, and add motivational affirmations to your work.
🔍 What It Does
The Signature Stamp displays a clean, customizable branding box on your chart that includes:
A Main Title (e.g., brand name or username)
A Subtitle (e.g., your trading mantra or values)
The current symbol + timeframe (optional)
The current date (optional)
This creates a polished, professional visual signature—great for screenshots, social sharing, educational content, or simply marking your charts with intention.
⚙️ How to Use It
Once added to your TradingView chart:
Customize Your Stamp:
Go to the indicator’s settings panel.
Under Main Title, enter your brand (e.g., Charts Algo, Trading by Charts Algo 📈).
Under Subtitle, input a personal mantra or values like:
PATIENCE | DISCIPLINE | FEARLESS
(You can change this anytime — see suggestions below.)
Optional Toggles:
Show Symbol – display the ticker symbol and timeframe.
Show Date – include the current date in DD/MM/YYYY format.
Position Settings:
Choose from 9 positions on the screen:
Top Left, Top Center, Top Right
Middle Left, Center, Middle Right
Bottom Left, Bottom Center, Bottom Right
Style Settings:
Set background color (e.g., transparent or muted).
Choose text colors for title, subtitle, and info text.
Adjust font sizes (tiny → huge) for visual hierarchy.
🖋️ Stamp Ideas
Here are some great 5-word signature ideas for your subtitle:
SCAN | PLAN | EXECUTE | DOMINATE | WIN
PATIENCE | DISCIPLINE | FEARLESS | CONTROL | EDGE
MINDSET | STRATEGY | SETUPS | RISK | PROFIT
SMC | FVG | OTE | CE | FLOW
OBSERVE | LEARN | TRADE | IMPROVE | MASTER
Pick the one that best reflects your trading style and mission—or create your own.
✅ Best Uses
Personal branding for social media posts
Visual signature for shared trading ideas
Motivational reminders on your chart
Identifying context (symbol + date) in screenshots
⚠️ Disclaimer
This visual stamp is for branding and educational display only. It does not provide trading signals or financial advice.
Charts Algo and its tools are intended to support analysis, not replace your judgment or due diligence. Always trade responsibly.
XAUUSD Scalping System [MACD + EMA + UT Bot + LinReg]//@version=5
indicator("XAUUSD Scalping System ", overlay=true)
// === INPUTS ===
fastLen = input.int(8, title="MACD Fast Length")
slowLen = input.int(21, title="MACD Slow Length")
signalLen = input.int(5, title="MACD Signal Smoothing")
linregLen = input.int(14, title="Linear Regression Length")
emaLen = input.int(21, title="EMA Length")
atrPeriod = input.int(10, title="UT Bot ATR Period")
atrMultiplier = input.float(2.0, title="UT Bot ATR Multiplier")
// === EMA ===
ema = ta.ema(close, emaLen)
plot(ema, title="21 EMA", color=color.orange, linewidth=1)
// === MACD ===
macdLine = ta.ema(close, fastLen) - ta.ema(close, slowLen)
signalLine = ta.ema(macdLine, signalLen)
hist = macdLine - signalLine
macdBull = hist > 0 and hist > hist
macdBear = hist < 0 and hist < hist
// === Linear Regression ===
linreg = ta.linreg(close, linregLen, 0)
bullCandle = close > linreg
bearCandle = close < linreg
barcolor(bullCandle ? color.new(color.green, 40) : bearCandle ? color.new(color.red, 40) : na)
// === UT Bot ===
atr = ta.atr(atrPeriod)
upperBand = close + atr * atrMultiplier
lowerBand = close - atr * atrMultiplier
var float trend = na
trend := na(trend ) ? 1 : trend
trend := close > upperBand ? 1 : close < lowerBand ? -1 : trend
buyUT = ta.crossover(trend, 0)
sellUT = ta.crossunder(trend, 0)
// === ENTRY CONDITIONS ===
longCondition = buyUT and bullCandle and macdBull and close > ema
shortCondition = sellUT and bearCandle and macdBear and close < ema
plotshape(longCondition, title="BUY Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY", size=size.small)
plotshape(shortCondition, title="SELL Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL", size=size.small)
bgcolor(longCondition ? color.new(color.green, 85) : shortCondition ? color.new(color.red, 85) : na, title="Signal Background")
// === Alerts ===
alertcondition(longCondition, title="BUY Alert", message="XAUUSD BUY setup triggered!")
alertcondition(shortCondition, title="SELL Alert", message="XAUUSD SELL setup triggered!")
V8 Momentum Indicator - X CrossEMA Distance
8/21 Cross
B/S for initial change in signal
b/s yellow for price action second confirm.
x for 8/21 break
V8 On-Chart Signals + CrossEMA Distance
8/21 Cross
B/S for initial change in signal
b/s yellow for price action second confirm.
RFM Strategy - High QualityI trade high-probability resistance fades using a systematic 4-pillar approach that has delivered a proven 60%+ win rate with 2.5+ profit factor."
📊 Core Strategy Elements:
1. VRF Resistance Identification:
Multiple resistance level confluence (minimum 2 levels)
Dynamic resistance zones using 20-period high/low ranges
Only trade when price approaches clustered resistance
2. Volume Weakness Confirmation:
Volume ROC must be ≤ -30% (weak buying pressure)
Identifies exhaustion rallies with poor participation
Confirms institutional selling vs retail buying
3. Momentum Divergence:
SMI ≥ 60 (extreme overbought) OR 25-point momentum collapse
Multi-timeframe confirmation for higher reliability
Catches momentum exhaustion at key levels
4. Price Rejection Patterns:
Long upper wicks (2x body size) at resistance
Doji formations showing indecision
Failed breakout patterns with immediate rejection
⚡ Execution:
Entry: Only when ALL 4 conditions align simultaneously
Risk Management: 6-point stops, 12-point targets (2:1 R/R minimum)
Timeframe: 5-minute charts for precise entries
Selectivity: Quality over quantity - average 5 trades per period
🏆 Performance:
60% win rate (matches manual trading performance)
2.59 Profit Factor (highly profitable)
Systematic approach eliminates emotional decisions
"This strategy automates the discretionary resistance fade setups that institutional traders use, with strict filters ensuring only the highest-probability opportunities."
V8 On-Chart Signals + CrossEMA Distance
8/21 Cross
B/S for initial change in signal
b/s yellow for price action second confirm.
x shows 8/21 trend break
V8 Momentum Indicator - X CrossEMA Distance
8/21 Cross
B/S for initial change in signal
b/s yellow for price action second confirm.