13 EMA vs 20 SMA CloudThis indicator is for trend signal primarily used on the 15 minute timeframe. look for the retest of the 13 ema from above as a long entry and retest of 13 ema from below as a short entry. Once the 13 ema crosses the 20 sma to the upside it is indicating a bullish reversal and vice versa when the 13 ema crosses the 20 sma to the downside it is indicating a possible bearish reversal
Indicators and strategies
Holy Grail (100% Win Rate)tldr:
1. Here you go folks – no repaint, no dodgy stuff, and 100% win rate
2. DO NOT TRADE THIS
________________________________________
Key points:
• Assets to trade: SPY, NASDAQ, DAX, FTSE, Bitcoin
• Time Frame: 1D or higher
________________________________________
What does the script do?
The script buys a certain amount of the asset every time we're in a pullback, and sells when we make a new All-Time High (ATH). More specifically, it waits for the first green candle after the lowest point of the pullback, and then adds to the position. We assume that when we see a green candle, the pullback is over. If we go even lower – we wait for another green candle. The script sells on the first red candle after an ATH.
The pullback is identified using a simple moving average (MA) – if we're below the MA, we're in a pullback.
You can set the MA length in the settings. I considered adding different types of MAs, but decided against it as it wouldn't change much in terms of the general idea.
You can also set the percentage of your account to invest on the very first candle – this is an initial pre-filling of the position, so you have something to sell if the price goes straight up after you start trading. If you think we’re in a bear market and the only way is up, you might want to set a higher number. On the other hand, if you believe we’re near the top of a bull market, set a lower one.
You can set the percentage of the position to sell on each red candle after ATH under Settings → Input → Exit % . Similarly, you can set the percentage to buy on each green candle after a pullback low under Settings → Properties → Order Size . Since bull markets tend to last longer than bear market pullbacks, you’ll typically want Exit % to be larger than Order Size — though this may vary depending on your initial pre-fill.
________________________________________
Why these assets?
These are assets that are expected to go up over the long run. I call them “number go up” assets. Meaning: no matter where they are now, at some point in the future they’ll make a new ATH. That’s why this might not work on individual stocks like Nvidia or Tesla — there’s no guarantee they won’t go bust tomorrow. We all remember big companies from the past (Enron, Lehman Brothers, etc.) that collapsed unexpectedly.
With SPY, you're betting on the American economy. And the American economy will go up at least because of inflation. If you believe inflation will continue, then you believe we’ll eventually see a new ATH in SPY. It may take years — like from 2007 to 2013 — but it happened. And there was a bull run after that.
And if you think the American economy will never grow again — well, if that’s true, we’ll all have much bigger problems than trading scripts.
________________________________________
Why this time frame?
Because, as mentioned, it may take a long time to reach a new ATH. You can use a shorter time frame, but that requires a higher TradingView subscription plan to view multi-year data.
Also, if you choose a shorter time frame, you should reduce the Order Size and Exit % accordingly, because the script will jump in on every new green candle after a pullback. On a 1-minute chart, that could mean 100x more entries compared to daily. Conversely, if you go to a higher time frame, increase the sizes — otherwise, too much of your capital will just sit unused.
________________________________________
So if everything is so great and it has a real 100% win rate – why not trade it?
If you turn on the “buy & hold equity” curve, you’ll see that the profit from all closed trades (with a 100% win rate) is smaller than if you had simply bought the asset and held it for years.
Real-world slippage and fees will reduce your actual profits even more.
If you’re unlucky and start trading at the very top of a bull market, it might take 10 years before even a single trade is closed.
Some assets that seem like they can only go up long-term... might not. Take Bitcoin. Many believe it can only go up in the long term, but it could still die — just like anything else. The only reason I included it is because many people treat it as a “number go up” asset. And I know some will try to trade it. You've been warned. But I don’t want to start holy wars in the holy grail description (pun intended), so let’s move on.
________________________________________
What if, after all this, you do decide to trade this strategy?
Why would you? Maybe not for profit, but just to impress your friends with a 100% win rate. Or maybe you skipped the entire explanation above and just want to jump in because it sounds like a sure win.
Whatever your reason, first you should research the asset’s historical max time (in years) between ATHs. That’s how long you might need to keep a trade open. My other script – Cycles Analysis – might help with this.
Second, experiment with the input parameters. There aren't many, so it should be easy to find what works best for your asset. You can also enable “Show stats table” in settings – it’ll help you see how many entries/exits the script makes, which will help you find the right Order Size to Exit % ratio.
Yes, this might lead to over-optimization — but hey, if we’re at this stage, who cares, right?
That said, I did find some rare cases where specific parameter setups caused performance to dip below 100% due to a mandatory close at the wrong time.
Also, since trades can last for years, don’t use this with futures — you'd have to keep rolling them over. Use ETFs or similar long-holdable assets.
________________________________________
The final word
In short, this is a glorified “Buy the Dip” strategy. It only works long-term on a very limited set of assets, and in most cases performs worse than just buying and holding for the same period.
I created this script as a teaching tool — to show new traders that win rate isn’t everything. Even if the win rate is 100%. Trust me: it’s extremely hard to beat the market (especially without leverage), and this script is just more proof of that.
10 EMA & 10 SMA Crossover with Dot/Cross ON ChartCombining 10MA an 10SMA is very powerful indicator, it give early indication of trend.
Tried to combine 10MA and 10SMA crossover on same chart with cross over indicator.
Back test it. It works well in trending market.
Tried to combine RSI, ADX and 10 MA combination on chart but could not make appropriate/effective Pine Script.
Your suggestion's are welcome to improve it further.
ORB 15min + Entry + SL + TP at 2R15MIN ORB
- ORB high & low
- Entry above/below 5MIN candle close outside range
- SL above/below 5MIN break-out candle
- TP at 2R
Mahnam BTC with breake outThis strategy is designed and coded specifically for trading Bitcoin in the 15-minute timeframe.
Of course, those who are skilled in coding can use it in other timeframes and currencies by changing its codes and personalizing it.
Of course, it is strongly recommended that people who want to use it first perform the necessary backtests or test this strategy on demo sites and then trade on the Tetri platform.
In this strategy, it only checks the entry and exit conditions and connects to the exchange using the API code and trades completely automatically.
This strategy determines the stop loss and take profit points on the exchange at the same time as entering the transaction and sets them.
RSI Confluence - 3 TimeframesThe 3-Timeframe RSI Confluence indicator analyzes the Relative Strength Index (RSI) across three customizable timeframes. It highlights strong overbought or oversold conditions when all RSI values align, helping identify high-conviction buy or sell signals based on multi-timeframe momentum agreement.
Math by Thomas - SMC Structure Toolkit – OB + FVG + CHoCH/BoS📌 Description:
A complete Smart Money Concepts (SMC) market structure toolkit designed to help traders identify high-probability institutional activity using fractals, order blocks, fair value gaps, and structure shifts.
This tool combines several key SMC components to provide clear, actionable insights for both trend continuation and reversals.
🛠 Key Features:
✅ Order Blocks (OBs): Detected using fractal swing highs/lows, optional high volume & displacement candle filters
✅ Midline OB Visuals: Optional dashed lines drawn through the midpoint of each OB
✅ Fair Value Gaps (FVGs): Auto-detected based on classic gap criteria
✅ CHoCH & BoS Labeling: Real-time swing structure labeling with trend tracking
✅ Premium/Discount Zones: Highlighted zones for optimal entries in trending environments
✅ User Toggles: Turn OBs, FVGs, or midlines on/off for a cleaner chart
📈 How to Use:
Apply the indicator to your chart (best on 15m, 1h, or higher)
Enable/disable features in the settings panel:
Order Blocks: Use with displacement & high volume filters for cleaner setups
FVGs: Spot imbalances between price and liquidity
Structure Labels: Follow BoS/CHoCH signals to track trend changes
Look for:
CHoCH ➝ potential trend reversal
BoS ➝ trend continuation confirmation
OBs within discount/premium zones ➝ high-RR trade setups
Combine with your existing SMC or supply/demand approach
🧪 Best Timeframes:
Recommended: 15m, 1h, 4h, Daily
Works on any timeframe but more reliable with higher volume context
✍️ Notes:
Built using fractal logic and volume filters for cleaner signals
Designed to complement SMC strategies, not replace analysis
Momentum ScopeOverview
Momentum Scope is a Pine Script™ v6 study that renders a –1 to +1 momentum heatmap across up to 32 lookback periods in its own pane. Using an Augmented Relative Momentum Index (ARMI) and color shading, it highlights where momentum strengthens, weakens, or stays flat over time—across any asset and timeframe.
Key Features
Full-Spectrum Momentum Map : Computes ARMI for 1–32 lookbacks, indexed from –1 (strong bearish) to +1 (strong bullish).
Flexible Scale Gradation : Choose Linear or Exponential spacing, with adjustable expansion ratio and maximum depth.
Trending Bias Control : Apply a contrast-style curve transform to emphasize trending vs. mean-reverting behavior.
Duotone & Tritone Palettes : Select between two vivid color styles, with user-definable hues for bearish, bullish, and neutral momentum.
Compact, Overlay-Free Display : Renders solely in its own pane—keeping your price chart clean.
Inputs & Customization
Scale Gradation : Linear or Exponential spacing of intervals
Scale Expansion : Ratio governing step-size between successive lookbacks
Scale Maximum : Maximum lookback period (and highest interval)
Trending Bias : Curve-transform bias to tilt the –1 … +1 grid
Color Style : Duotone or Tritone rendering modes
Reducing / Increasing / Neutral Colors : Pick your own hues for bearish, bullish, and flat zones
How to Use
Add to Chart : Apply “Momentum Scope” as a separate indicator.
Adjust Scale : For exponential spacing, switch your indicator Y-axis to Logarithmic .
Set Bias & Colors : Tweak Trending Bias and choose a palette that stands out on your layout.
Interpret the Heatmap :
Red tones = weakening/bearish momentum
Green tones = strengthening/bullish momentum
Neutral hues = indecision or flat momentum
Copyright © 2025 MVPMC. Licensed under MIT. For full license see opensource.org
Fall from Recent Top & ATH (Latest Only)Easy tool for smart investors. it's good option when you find good fundamental stock. then just check the fall from the top before taking decision.
PAHelperFrameworkPAHelperFramework is a comprehensive Pine Script™ library designed to power price action trading tools with advanced logic, drawing operations, and timeframe-aware structures. It serves as a foundational building block for indicators and strategies that require dynamic price analysis and visualization.
🔧 Key Features:
Multi-Timeframe Candle Management
Get OHLC, pivots, and ATR values for any timeframe and manage synchronized historical data arrays.
Clean Zone Detection
Identify zones of consecutive bullish or bearish candles, automatically draw boxes, and raise alerts when they are invalidated or revisited.
Smart Level Handling
Track support/resistance levels with metadata, including tap status, number of breaches, pivot source, and time-based properties.
Session Visualization
Dynamically draw sessions (e.g., London, NY) with optional colored fill and support for up to 4 distinct time ranges.
Psychological Levels Engine
Auto-detect round numbers based on symbol type and price, draw levels with tolerance control and deduplication.
Gap Tracking
Detect and draw price gaps, monitor closures, and automatically extend or remove them over time.
Bias Candle Representation
Convert candles into table cell heatmaps for a visual representation of directional bias.
Customizable Alert Zones
Set and monitor breakout levels, with smart alerts and label notifications for proximity and confirmation.
Flexible Parameter Overrides
Supports parameter injection via strings, allowing dynamic reconfiguration of inputs (useful for template reusability).
🛠️ Ideal For:
Script developers who need reusable structures for multi-timeframe price action logic
Power users building tools for clean zones, breakouts, gaps, and session-based analysis
Traders looking to visualize market structure with dynamically maintained visual aids
🧱 Technical Highlights:
Written in Pine Script™ v6
Includes 20+ exported types and functions
Modular, readable structure to plug into any custom indicator or strategy
Built-in support for different instrument types: Forex, Stocks, Futures, Crypto, etc.
Bắt Đáy Kỹ Thuật_Only_Buy [VNFlow]Bắt Đáy Kỹ Thuật_Only_Buy
Email: hasobin@outlook.com
Phone: 0373885338
LTHB & HTLB Zones with AlertsIn price action trading, the Lowest Tick of the Highest Bar (LTHB) and the Highest Tick of the Lowest Bar (HTLB) are important concepts for support/resistance identification, trend exhaustion, and reversal confirmation. Here's what they mean and why they matter:
🔹 Definitions
1. Lowest Tick of the Highest Bar (LTHB):
The lowest price (tick) of the bar (candlestick) with the highest high in a recent price swing.
Significance: It marks the support inside an upward swing. If price breaks below this, it often indicates loss of upward momentum or reversal.
2. Highest Tick of the Lowest Bar (HTLB):
The highest price of the bar with the lowest low in a swing.
Significance: It acts as a resistance inside a downward swing. If price moves above this, it can signal a bullish reversal.
🔸 Why Are They Significant?
Concept LTHB HTLB
Trend Reversal - Break below LTHB → possible bearish reversal Break above HTLB → possible bullish reversal
Swing Confirmation -Holding above LTHB → continuation of uptrend Holding below HTLB → continuation of downtrend
Trap Detection - Stop hunts often occur just below LTHB Stop hunts often occur just above HTLB
Risk Management -Acts as logical stop-loss in long trades Acts as logical stop-loss in short trades
🔸 Uses in Strategy
1. Breakout Traders use these levels as entry triggers.
2. Reversal Traders look for price failing to hold these levels for early reversal signs.
3. Structure-Based Traders use them to confirm higher highs/lower lows.
4. Stop Placement: Tight stops just beyond LTHB/HTLB help manage risk in swing trades.
🔔 How to Set Alerts in TradingView:
Add the script to your chart.
Open the "⚠️ Alerts" tab.
Click "Create Alert".
In the "Condition" dropdown, select one of:
Enter LTHB Zone
Exit LTHB Zone
Enter HTLB Zone
Exit HTLB Zone
Set desired alert frequency (e.g., once per bar or once).
Click Create.
MA 3/20/200 mit Trendverlängerung📊 3-Line MA Pack – Clean Trend Tracking with Projection
Fast. Clear. No fluff.
This script shows:
🔴 MA 3 – short-term momentum
🟠 MA 20 – medium trend flow
🔵 MA 200 – long-term direction
All lines extend forward based on recent slope – automatically adjusted to your timeframe.
Perfect for traders who want to see the flow at a glance.
Plug it in. Read the trend. Trade smarter.
No noise – just structure.
Volume PercentileThis Pine Script indicator highlights bars where the current volume exceeds a configurable percentile threshold (e.g., 80th percentile) based on a rolling window of historical volume data.
🔍 Key Features:
Calculates a user-defined volume percentile (e.g., 75th, 80th, 90th) over a rolling window.
Marks candles where current volume is higher than the selected percentile.
Helps detect volume spikes, breakouts, or unusual activity.
Works directly on the main chart window for easier analysis.
🛠️ Inputs:
Window Length: Number of bars used to calculate the percentile (default = 20).
Percentile: The percentile threshold to trigger a high-volume signal (default = 80).
🖥️ Visualization:
Displays a red triangle marker below bars with volume above the selected percentile.
DAYTRADE GPT StrategyThis is the DAYTRADE GPT Strategy — built for disciplined intraday traders aiming to grow small capital into serious gains through calculated, high-probability trades.
🔍 Strategy Overview:
- Combines Bollinger Bands, RSI, Stochastic RSI, and Volume Spike detection for precise entries.
- Auto-detects optimal LONG and SHORT positions.
- Built-in Stop Loss and Take Profit using a configurable Risk/Reward ratio (default 1:2).
- Includes dynamic trailing stop logic to scale and protect profits once in the green.
🎯 Designed for:
- Scalping and short-term trades on crypto or highly liquid assets.
- Traders who scale positions as profits increase.
- High-frequency setups backed by volume confirmation.
💡 How It Works:
- Long when price is outside lower BB, RSI < 40, Stoch RSI oversold, and volume spike detected.
- Short when price is outside upper BB, RSI > 60, Stoch RSI overbought, and volume spike detected.
- Uses trailing stop once profitable to lock in gains as price climbs.
- Fully customizable: risk ratio, trailing %, and indicator sensitivity.
📈 Goal: Turn consistent setups into strategic wins. Ideal for those growing accounts from $100 toward $100K by December through disciplined trade management.
Let the algorithm handle entry/exit while you focus on execution. Adjust settings for your market.
#Crypto #DayTrading #Scalping #PineScript #Strategy
🕯️ Full Candle Size AnalyzerFull Candle Size Analyzer – Detect Volatility with Visuals and Alerts
This all-in-one indicator is designed to help traders spot large candles based on high–low range, a key measure of price volatility. It provides a clear visual representation and customizable alerts when candle sizes exceed average behavior.
Features:
🎯 Candle Coloring: Automatically colors candles red if their full size (High - Low) exceeds a user-defined multiple of the average candle size.
📊 Size Plotting: Displays both current candle size and its moving average in a separate pane for easy visual comparison (toggle on/off).
🚨 Alerts: Alerts when candle size exceeds a more aggressive threshold (customizable).
🎨 Background Highlights: Light red background flags extremely large candles visually.
⚙️ Customizable Settings: Choose your average period, thresholds for coloring and alerting, and plot visibility.
MA + ATR + U/D + RS + Total (Two Rows)An indicator that displays distances from moving averages plus ATR
Minervini-style RS (Relative Strength) + summary of the 8 entry conditions