Estrategia Momentum Seguro (EMS) Entry and exit signals, this indicator helps or suggests where to enter, exit, or place a stop loss.Pine Scriptยฎ strategyby cabosycom9
Tailwind.(BTC)Imagine the price of Bitcoin is like a person climbing a staircase. The Steps (Grid): Instead of watching every single price movement, the strategy divides the market into fixed steps. In your configuration, each step measures **3,000 points**. (Examples: 60,000, 63,000, 66,000...). The Signal: We buy only when the price climbs a full step decisively. The "Expensive Price" Filter: If the price jumps the step but lands too far away (the candle closes too high), we do not buy. It is like trying to board a train that has already started moving too fast; the risk is too high. Rigid Exits: The Take Profit (TP) and Stop Loss (SL) are calculated from the edge of the step, not from the specific price where you managed to buy. This preserves the geometric structure of the market. The Code Logic (Step-by-Step) A. The Math of the Grid (`math.floor`) pinescript level_base = math.floor(close / step_size) * step_size This is the most important line. What does it do? It rounds the price down to the nearest multiple of 3,000. Example: If BTC is at 64,500 and the step size is 3,000: 1. Divide: $64,500 / 3,000 = 21.5$ 2. `math.floor` (Floor): Removes the decimals $\rightarrow$ remains $21$. 3. Multiply: $21 * 3,000 = 63,000$. Result: The code knows that the current "floor" is **63,000**, regardless of whether the price is at 63,001 or 65,999. B. The Strict Breakout (`strict_cross`) pinescript strict_cross = (open < level_base) and (close > level_base) Most strategies only check if `close > level`. We do things slightly differently: `open < level_base`: Requires the candle to have "born" *below* the line (e.g., opened at 62,900). `close > level_base`: Requires the candle to have *finished* above the line (e.g., closed at 63,200). Why? This avoids entering on gaps (price jumps where the market opens already very high) and confirms that there was real buying power crossing the line. C. The "Expensive Price" Filter (`max_dist_pct`) pinescript limit_price_entry = level_base + (step_size * (max_dist_pct / 100.0)) price_is_valid = close <= limit_price_entry Here you apply the percentage rule: -If the level is 63,000 and the next is 66,000 (a difference of 3,000). -If `max_dist_pct` is **60%**, the limit is $63,000 + (60\% \text{ of } 3,000) = 64,800$. -If the breakout candle closes at **65,000**, the variable `price_is_valid` will be **false** and it will not enter the trade. This avoids buying at the ceiling. D. TP and SL Calculation (Anchored to the Level) pinescript take_profit = level_base + (step_size * tp_mult) stop_loss = level_base - (step_size * sl_mult) Note that we use `level_base` and not `close`. -If you entered because the price broke 63,000, your SL is calculated starting from 63,000. -If your SL is 1.0x, your stop will be exactly at 60,000. This is crucial: If you bought "expensive" (e.g., at 63,500), your real stop is wider (3,500 points) than if you bought cheap (63,100). Because you filter out expensive entries, you protect your Risk/Reward ratio. E. Visual Management (`var line`) The code uses `var` variables to remember the TP and SL lines and the `line.set_x2` function to stretch them to the right while the operation remains open, providing that visual reference on the chart until the trade ends. Workflow Summary Strategy Parameters: Total Capital: $20,000 We will use 10% of total capital per trade. Commissions: 0.1% per trade. TP: 1.4 SL: 1 Step Size (Grid): 3,000 We use the 200 EMA as a trend filter. Feel free to experiment with the parameters to your liking. Cheers.Pine Scriptยฎ strategyby OldWave961119
Hybrid Trend-Following Inside Bar BreakoutHybrid Trend-Following Inside Bar Breakout Strategy The Hybrid Trend-Following Inside Bar Breakout Strategy is a rule-based trading system designed to capture strong directional moves while controlling risk during uncertain market conditions. It combines trend-following, price action, and volatility-based risk management into a single robust framework. Core Concept The strategy trades inside bar breakouts only in the direction of the dominant market trend. Inside bars represent periods of consolidation, and when price breaks out of this consolidation in a trending market, it often leads to impulsive moves with favorable riskโreward characteristics. Key Components 1. Trend Filter Uses 50 EMA and 200 EMA to define the market trend. Bullish bias: 50 EMA above 200 EMA Bearish bias: 50 EMA below 200 EMA This filter prevents counter-trend trades and improves trade quality. 2. Volatility Filter Compares fast ATR (14) with slow ATR (50). Trades are taken only when volatility is expanding or above a minimum threshold. This avoids low-volatility, choppy market conditions. 3. Inside Bar Breakout An inside bar forms when the current candleโs high is lower than the previous candleโs high and the low is higher than the previous candleโs low. A trade is triggered only when price breaks above or below the inside bar range in the direction of the trend. 4. Candle Quality Filter Requires a minimum body-to-range ratio, ensuring that the breakout candle has strong momentum and is not driven by weak wicks. Risk Management & Trade Management Stop Loss (SL) Placed using ATR-based dynamic stops, adapting to current market volatility. Prevents tight stops in volatile conditions and wide stops in calm markets. Partial Profit Taking 50% of the position is exited at 1.5R, locking in profits early. This reduces psychological pressure and improves equity stability. Trailing Stop After partial profit is taken, the remaining position is managed with an ATR-based trailing stop. Allows the strategy to capture large trend moves while protecting gains. Cooldown Mechanism After a losing trade, the system enters a cooldown period and skips a fixed number of bars. This helps avoid revenge trading and overtrading during unfavorable market phases. Why This Strategy Works Trades only high-probability breakouts in trending markets Adapts automatically to changing volatility Combines price action precision with systematic risk control Designed for consistent performance over long historical periodsPine Scriptยฎ strategyby JeET3695
EMA 5/9 Angle + Candle Strength (SL=Open, TP=RR)EMA 5 / EMA 9 cross Cross must have ~30ยฐ angle (approximated using slope โ atan) Entry candle must be bullish/bearish and also be Normal / 2nd Most / Most based on body-size percentile Entry = close of signal candle SL = open of signal candle TP = 1:2 RR (editable input)Pine Scriptยฎ strategyby prajwalaradhya1112
Monthly DI+ & RSI StrategyOverview This strategy is designed to capture significant trend reversals and continuations on the Monthly timeframe. It combines the trend-following capability of the Directional Movement Index (DMI) with the fast momentum detection of RSI (Period 6). Core Logic The strategy triggers a long position based on a dual-confirmation system. It looks for a specific "handshake" between Trend (DI) and Momentum (RSI). Entry Conditions (OR Logic) A Buy signal is generated if EITHER of the following occurs: Trend Trigger: DI+ crosses over DI- (while RSI is already bullish, trading above its SMA). Momentum Trigger: RSI(6) crosses over RSI SMA(14) (while the trend is already bullish, with DI+ > DI-). Exit Condition (Stop Loss) Trend Reversal: The position is closed immediately if DI- crosses over DI+, indicating the bullish trend has been invalidated. Default Settings Timeframe: Optimized for 1M (Monthly) charts. RSI: Length 6 RSI SMA: Length 14 DMI: Length 14 / Smoothing 14 Risk Warning This script is for educational purposes only. Past performance does not guarantee future results. Always backtest on your specific asset classes before trading.Pine Scriptยฎ strategyby Ganamurthy9
Simple Candle Strategy# Candle Pattern Strategy - Pine Script V6 ## Overview A TradingView trading strategy script (Pine Script V6) that identifies candlestick patterns over a configurable lookback period and generates trading signals based on pattern recognition rules. ## Strategy Logic The strategy analyzes the most recent N candlesticks (default: 5) and classifies their patterns into three categories, then generates buy/sell signals based on specific pattern combinations. ### Candlestick Pattern Classification Each candlestick is classified as one of three types: | Pattern | Definition | Formula | |---------|-----------|---------| | **Close at High** | Close price near the highest price of the candle | `(high - close) / (high - low) โค (1 - threshold)` | | **Close at Low** | Close price near the lowest price of the candle | `(close - low) / (high - low) โค (1 - threshold)` | | **Doji** | Opening and closing prices very close; long upper/lower wicks | `abs(close - open) / (high - low) โค threshold` | ### Trading Rules | Condition | Action | Signal | |-----------|--------|--------| | Number of Doji candles โฅ 3 | **SKIP** - Market is too chaotic | No trade | | "Close at High" count โฅ 2 + Last candle closes at high | **LONG** - Bullish confirmation | Buy Signal | | "Close at Low" count โฅ 2 + Last candle closes at low | **SHORT** - Bearish confirmation | Sell Signal | ## Configuration Parameters All parameters are adjustable in TradingView's "Settings/Inputs" tab: | Parameter | Default | Range | Description | |-----------|---------|-------|-------------| | **K-line Lookback Period** | 5 | 3-20 | Number of candlesticks to analyze | | **Doji Threshold** | 0.1 | 0.0-1.0 | Body size / Total range ratio for doji identification | | **Doji Count Limit** | 3 | 1-10 | Number of dojis that triggers skip signal | | **Close at High Proximity** | 0.9 | 0.5-1.0 | Required proximity to highest price (0.9 = 90%) | | **Close at Low Proximity** | 0.9 | 0.5-1.0 | Required proximity to lowest price (0.9 = 90%) | ### Parameter Tuning Guide #### Proximity Thresholds (Close at High/Low) - **0.95 or higher**: Stricter - only very strong candles qualify - **0.90 (default)**: Balanced - good for most market conditions - **0.80 or lower**: Looser - catches more patterns, higher false signals #### Doji Threshold - **0.05-0.10**: Strict doji identification - **0.10-0.15**: Standard doji detection - **0.15+**: Includes near-doji patterns #### Lookback Period - **3-5 bars**: Fast, sensitive to recent patterns - **5-10 bars**: Balanced approach - **10-20 bars**: Slower, filters out noise ## Visual Indicators ### Chart Markers - **Green Up Arrow** โฒ: Long entry signal triggered - **Red Down Arrow** โผ: Short entry signal triggered - **Gray X**: Skip signal (too many dojis detected) ### Statistics Table Located at top-right corner, displays real-time pattern counts: - **Close at High**: Count of candles closing near the high - **Close at Low**: Count of candles closing near the low - **Doji**: Count of doji/near-doji patterns ### Signal Labels - Green label: "โ Long condition met" - below entry bar - Red label: "โ Short condition met" - above entry bar - Gray label: "โ Too many dojis, skip" - trade skipped ## Risk Management ### Exit Strategy The strategy includes built-in exit rules based on ATR (Average True Range): - **Stop Loss**: ATR ร 2 - **Take Profit**: ATR ร 3 Example: If ATR is $10, stop loss is at -$20 and take profit is at +$30 ### Position Sizing Default: 100% of equity per trade (adjustable in strategy properties) **Recommendation**: Reduce to 10-25% of equity for safer capital allocation ## How to Use ### 1. Copy the Script 1. Open TradingView 2. Go to Pine Script Editor 3. Create a new indicator 4. Copy the entire `candle_pattern_strategy.pine` content 5. Click "Add to Chart" ### 2. Apply to Chart - Select your preferred timeframe (1m, 5m, 15m, 1h, 4h, 1d) - Choose a trading symbol (stocks, forex, crypto, etc.) - The strategy will generate signals on all historical bars and in real-time ### 3. Configure Parameters 1. Right-click the strategy on chart โ "Settings" 2. Adjust parameters in the "Inputs" tab 3. Strategy will recalculate automatically 4. Backtest results appear in the Strategy Tester panel ### 4. Backtesting 1. Click "Strategy Tester" (bottom panel) 2. Set date range for historical testing 3. Review performance metrics: - Win rate - Profit factor - Drawdown - Total returns ## Key Features โ **Execution Model Compliant** - Follows official Pine Script V6 standards โ **Global Scope** - All historical references in global scope for consistency โ **Adjustable Sensitivity** - Fine-tune all pattern detection thresholds โ **Real-time Updates** - Works on both historical and real-time bars โ **Visual Feedback** - Clear signals with labels and statistics table โ **Risk Management** - Built-in ATR-based stop loss and take profit โ **No Repainting** - Signals remain consistent after bar closes ## Important Notes ### Before Trading Live 1. **Backtest thoroughly**: Test on at least 6-12 months of historical data 2. **Paper trading first**: Practice with simulated trades 3. **Optimize parameters**: Find the best settings for your trading instrument 4. **Manage risk**: Never risk more than 1-2% per trade 5. **Monitor performance**: Review trades regularly and adjust as needed ### Market Conditions The strategy works best in: - Trending markets with clear directional bias - Range-bound markets with defined support/resistance - Markets with moderate volatility The strategy may underperform in: - Highly choppy/noisy markets (many false signals) - Markets with gaps or overnight gaps - Low liquidity periods ### Limitations - Works on chart timeframes only (not intrabar analysis) - Requires at least 5 bars of history (configurable) - Fixed exit rules may not suit all trading styles - No trend filtering (will trade both directions) ## Technical Details ### Historical Buffer Management The strategy declares maximum bars back to ensure enough historical data: ```pine max_bars_back(close, 20) max_bars_back(open, 20) max_bars_back(high, 20) max_bars_back(low, 20) ``` This prevents runtime errors when accessing historical candlestick data. ### Pattern Detection Algorithm ``` For each bar in lookback period: 1. Calculate (high - close) / (high - low) โ close_to_high_ratio 2. If close_to_high_ratio โค (1 - threshold) โ count as "Close at High" 3. Calculate (close - low) / (high - low) โ close_to_low_ratio 4. If close_to_low_ratio โค (1 - threshold) โ count as "Close at Low" 5. Calculate abs(close - open) / (high - low) โ body_ratio 6. If body_ratio โค doji_threshold โ count as "Doji" Signal Generation: 7. If doji_count โฅ cross_count_limit โ SKIP_SIGNAL 8. If close_at_high_count โฅ 2 AND last_close_at_high โ LONG_SIGNAL 9. If close_at_low_count โฅ 2 AND last_close_at_low โ SHORT_SIGNAL ``` ## Example Scenarios ### Scenario 1: Bullish Signal ``` Last 5 bars pattern: Bar 1: Closes at high (95%) โ Bar 2: Closes at high (92%) โ Bar 3: Closes at mid (50%) Bar 4: Closes at low (10%) Bar 5: Closes at high (96%) โ (last bar) Result: - Close at high count: 3 (โฅ 2) โ - Last closes at high: โ - Doji count: 0 (< 3) โ โ LONG SIGNAL โ ``` ### Scenario 2: Skip Signal ``` Last 5 bars pattern: Bar 1: Doji pattern โ Bar 2: Doji pattern โ Bar 3: Closes at mid Bar 4: Doji pattern โ Bar 5: Closes at high Result: - Doji count: 3 (โฅ 3) โ SKIP SIGNAL - Market too chaotic ``` ## Performance Optimization ### Tips for Better Results 1. **Use Higher Timeframes**: 15m or higher reduces false signals 2. **Combine with Indicators**: Add volume or trend filters 3. **Seasonal Adjustment**: Different parameters for different seasons 4. **Instrument Selection**: Test on liquid, high-volume instruments 5. **Regular Rebalancing**: Adjust parameters quarterly based on performance ## Troubleshooting ### No Signals Generated - Check if lookback period is too large - Verify proximity thresholds aren't too strict (try 0.85 instead of 0.95) - Ensure doji limit allows for trading (try 4-5 instead of 3) ### Too Many False Signals - Increase proximity thresholds to 0.95+ - Reduce lookback period to 3-4 bars - Increase doji limit to 3-4 - Test on higher timeframes ### Strategy Tester Shows Losses - Review individual trades to identify patterns - Adjust stop loss and take profit ratios - Change lookback period and thresholds - Test on different market conditions ## References - (www.tradingview.com) - (www.tradingview.com) - (www.investopedia.com) - (www.investopedia.com) ## Disclaimer **This strategy is provided for educational and research purposes only.** - Not financial advice - Past performance does not guarantee future results - Always conduct thorough backtesting before live trading - Trading involves significant risk of loss - Use proper risk management and position sizing ## License Created: December 15, 2025 Version: 1.0 --- **For updates and modifications, refer to the accompanying documentation files.** Pine Scriptยฎ strategyby masteraux10127
FTSE Santa - Late Dec 12d (Optimised Exit)Simple Santa Rally Strategy. Once a year, in late December, it waits for a sensible (non-spiky) day to get long FTSE, then either stops out around โ4%, gets trailed out in profit if it rallies, or exits after about 12 trading days.Pine Scriptยฎ strategyby 1929TRA21
Institutional Execution Engine v3 [Nishith Rajwar] Institutional Execution Engine v3 Market-Structure-Driven Execution Framework (Indicator + Strategy Hybrid) The **Institutional Execution Engine v3** is a professional-grade execution framework designed to model **how institutional participants interact with liquidity, volatility regimes, and market structure**. It is built for **index traders, crypto traders, and systematic intraday participants** who require **non-repainting, forward-validated signals** with strict risk control. This is **not a mashup of indicators**. Every module is purpose-built and interacts through a unified execution pipeline. --- ๐ Core Concepts & Methodology 1๏ธโฃ Market Structure & POI Engine * Identifies **Points of Interest (POIs)** using swing structure, volatility context, and liquidity positioning * POIs are **confirmed only after bar close** (strict non-repaint enforcement) * Adaptive pivot sensitivity based on selected execution preset 2๏ธโฃ Liquidity-Aware Scoring System Each potential trade is filtered through a **multi-factor execution score**, including: * Structural alignment * Volatility normalization (ATR regime) * Liquidity reaction quality * Directional efficiency Trades are only allowed when the **minimum institutional score threshold** is met. 3๏ธโฃ Regime Detection (Forward-Walk Safe) The engine dynamically classifies market conditions into execution regimes: * Trending * Rotational * Mean-reverting Regime detection is **forward-walk compatible** and does **not leak future data**. 4๏ธโฃ Risk-First Execution Model * ATR-normalized stop placement * R-multiple-based take-profit targeting * Optional **single-trade-per-session guard** * Strategy engine includes **open-trade protection** to prevent over-execution 5๏ธโฃ Strategy + Indicator Hybrid This script can be used in **two ways**: * **Indicator mode** โ discretionary execution with visual POIs, signals, and context * **Strategy mode** โ systematic backtesting with full TradingView Strategy Tester support Both modes share the **same execution logic** (no divergence). --- โ๏ธ Preset-Driven Architecture Built-in execution presets auto-configure internal parameters without changing core logic: * **Scalp (Index)** * **Daytrade (Index)** * **Crypto Intraday** * **Institutional Research (FWalk)** Presets adjust pivot sensitivity, score thresholds, ATR behavior, and risk profile โ while preserving execution integrity. --- ## ๐ซ Non-Repainting & Data Integrity * No look-ahead bias * No future bar references * No repainting signals * VWAP and regime logic reset correctly per session * Safe handling of strategy.opentrades to avoid execution errors All signals are **bar-close confirmed**. --- ๐ Who This Is For โ Index traders (NIFTY / BANKNIFTY / SENSEX) โ Crypto intraday traders โ Systematic traders validating execution logic โ Traders who value **structure + liquidity + risk discipline** over indicators --- โ ๏ธ Disclaimer This script is a **research and execution framework**, not financial advice. Always forward-test and adapt risk parameters to your instrument and timeframe. --- **Author:** Nishith Rajwar **Version:** v3 **Execution Philosophy:** Trade where institutions execute โ not where indicators react. Pine Scriptยฎ strategyby nishith8544166424
ARVEXV1โFailed Reversal โ Opposite Candle Only (No Doji/Hammer/Hanging Man)โ: This strategy captures failed reversal attempts where the current candle is opposite to the previous candle and volume is higher. It enters long if a bearish candle fails to break a previous bullish candleโs low, and short if a bullish candle fails to break a previous bearish candleโs high. Signals are canceled for Doji, Hammer, or Hanging Man candles. Entries only, fully backtestable.Pine Scriptยฎ strategyby riccabunalda23
ARVEX V1โFailed Reversal โ Opposite Candle Only (No Doji/Hammer/Hanging Man)โ: This strategy captures failed reversal attempts where the current candle is opposite to the previous candle and volume is higher. It enters long if a bearish candle fails to break a previous bullish candleโs low, and short if a bullish candle fails to break a previous bearish candleโs high. Signals are canceled for Doji, Hammer, or Hanging Man candles. Entries only, fully backtestable.Pine Scriptยฎ strategyby riccabunalda8
Ribbon Cross Strategy This strategy uses a simple moving-average ribbon crossover system with a customizable entry filter. You can choose whether trades trigger near the fast or slow average, allowing flexibility in capturing early or confirmed trend moves. Itโs best suited for index trading on intraday timeframes , helping identify short-term trend reversals and continuations with clear visual cues and backtestable logic.Pine Scriptยฎ strategyby RAHUL99_996
Buy-Dip / Sell-Pullback Buy the Dip / Sell the Pullback โ Trend-Following Strategy (EOD โ Next Day Execution) Overview This is a trend-following futures strategy designed to participate in pullbacks within established trends, not to predict reversals. It works on End-of-Day (EOD) confirmation and executes trades on the next trading session, making it suitable for positional and swing traders. The strategy combines momentum, trend direction, volatility, and price location to filter for high-quality setups while avoiding overtrading. ๐ Core Philosophy Trade only in the direction of the prevailing trend Buy dips in uptrends Sell pullbacks in downtrends Avoid chasing price after extended gaps Use volatility-adjusted risk management (ATR-based SL & targets) ๐ Indicators Used RSI (20) Measures underlying momentum strength Stochastic Oscillator (55, 34, 21) Confirms pullback exhaustion within a trend Supertrend (10, 2) Defines primary trend direction Bollinger Bands (20, 2) Provides structural trend bias ATR (5) Used for: Entry gap filter Stop-loss Profit target Supertrend buffer โ Long (Buy) Setup โ Evaluated at EOD A long setup is generated when all of the following conditions are satisfied at the close of the trading day: RSI(20) is above the bullish threshold (default: 48) Stochastic %K is above %D (confirming pullback momentum) Supertrend direction is bullish Price is near or above Supertrend, allowing a volatility-adjusted buffer (ATR-based) Price is above the Bollinger Band middle line This combination ensures: The market is trending up Momentum supports continuation The pullback is controlled, not a breakdown โ Short (Sell) Setup โ Evaluated at EOD A short setup is generated when: RSI(20) is below the bearish threshold (default: 52) Stochastic %K is below %D Supertrend direction is bearish Price is near or below Supertrend, with an ATR buffer Price is below the Bollinger Band middle line This filters for pullbacks within sustained downtrends. โฐ Trade Execution Logic (Next Day Rule) Once a setup is confirmed at EOD, a trade is attempted on the next trading session To avoid chasing gaps: Long trades are allowed only if price does not move more than a defined multiple of the previous dayโs True Range Short trades follow the same logic in reverse This is implemented via limit orders, ensuring realistic backtesting and execution behavior ๐ Risk Management All exits are volatility-adjusted using ATR: Stop-Loss: 1.1 ร ATR(5) from entry price Target: 2.2 ร ATR(5) from entry price This results in a riskโreward ratio of approximately 1:2 ATR is frozen at entry to avoid forward-looking bias. ๐ง Why This Strategy Works Avoids low-quality trades during consolidation Participates only when trend + momentum align Prevents emotional gap-chasing Adapts automatically to changing volatility Suitable for index futures and liquid stocks ๐ Recommended Usage Timeframe: Daily Instruments: Index Futures (e.g. NIFTY, BANKNIFTY) Highly liquid stocks Market Type: Trending markets Not ideal for: Sideways or low-volatility environments โ๏ธ Customization Tips You can control trade frequency and aggressiveness by adjusting: RSI thresholds Supertrend buffer (ATR multiple) Gap filter multiplier Stochastic edge parameter Looser settings โ more trades Stricter settings โ higher selectivity โ ๏ธ Disclaimer This strategy is for educational and research purposes only. Backtest results do not guarantee future performance. Always validate with paper trading before deploying real capital.Pine Scriptยฎ strategyby Praveenmishrainvestments24
PMax - Asymmetric MultipliersDescription: This script is an enhanced version of the popular PMax (Profit Maximizer) indicator, originally developed by KivancOzbilgic. It has been converted into a full strategy with advanced customization options for backtesting and trend following. Key Features & Modifications: Asymmetric ATR Multipliers: Unlike the standard version, this script allows you to set different ATR multipliers for Upper (Short/Resistance) and Lower (Long/Support) bands. Default Upper: 1.5 (Tighter trailing for Short positions) Default Lower: 3.0 (Wider trailing for Long positions to avoid whipsaws) Expanded MA Types: Added HULL (HMA) and VAR (Variable Index Dynamic Average) options. VAR is highly recommended for filtering out noise in ranging markets. HULL is ideal for scalping and faster reactions. Built-in Risk Management: A fixed 5% Stop Loss mechanism is integrated into the strategy. It protects your capital by closing positions if the price moves 5% against you, even if the trend hasn't reversed yet. Visibility Fix: Solved the issue where the PMax line would disappear or start at zero in the initial bars. How to Use: Use the VAR MA type for trend following in volatile markets. Adjust the "Stop Loss Percent" input to fit your risk appetite. The strategy employs an "Always In" logic (Long/Short) but respects the hard Stop Loss. Credits: Original PMax logic by KivancOzbilgic.Pine Scriptยฎ strategyby algotrader0666831
Smart Money Bot [MTF Confluence Edition]Uses multi-time frame analysis and supply and demand strategy. Best used when swing trading.Pine Scriptยฎ strategyby bakinyemi24Updated 28
Crypto LONG PYThis trading approach is a powerful combination of technical tools aimed at taking advantage of market fluctuations with precision and reliability. By integrating Bollinger Bands (BB), the Relative Strength Index (RSI), Exponential Moving Averages (EMA), and Fibonacci retracement levels (Fib), we create a strategy that captures key market moves and helps identify optimal entry and exit points, all within the context of the New York market conditions (NY). Bollinger Bands provide insight into market volatility, offering signals about potential extreme price movements. The RSI is used to measure momentum and assess overbought or oversold conditions, indicating when the market might be nearing a reversal. Meanwhile, EMAs add a layer of smoothing, allowing us to observe short- and medium-term trends, helping filter out false signals and providing a clearer view of the overall market direction. Additionally, Fibonacci retracements are integrated to identify key support and resistance levels, pinpointing potential areas of price retracement and continuation. When combined, these indicators offer a holistic approach to navigating the markets, enabling traders to make data-driven, informed decisions. This approach is ideal for traders looking for a meticulous methodology for trading during the NY session, where liquidity and volatility tend to be at their highest. Leverage the synergy between these indicators to optimize your trading strategy and maximize your market performance.Pine Scriptยฎ strategyby Saletrader18
Simple ICT Sweep + FVG (LuxAlgo Swings FIXED)something i created if anyone can improve it or change for better visual Pine Scriptยฎ strategyby wilsonne1480
Optimized BTC Mean Reversion (RSI 20/65)๐ Optimized BTC Mean Reversion (RSI 20/65) Optimized BTC Mean Reversion (RSI 20/65) is a rule-based trading strategy designed to capture mean-reversion moves in strong market structures, primarily optimized for Bitcoin, but adaptable to other liquid cryptocurrencies. The strategy combines RSI extremes, Stochastic momentum, and EMA trend filtering to identify high-probability reversal zones while maintaining strict risk management. ๐ Strategy Logic This system focuses on entering trades when price temporarily deviates from equilibrium, while still respecting the broader trend. โ Long Conditions RSI below 20 (oversold) Stochastic below 25 Price trading above the 200 EMA (or within a controlled deviation) Designed to buy sharp pullbacks in bullish conditions โ Short Conditions RSI above 65 (overbought) Stochastic above 75 Price trading below the 200 EMA Designed to sell relief rallies in bearish conditions ๐ก Risk Management Fixed Stop Loss: 4% Fixed Take Profit: 6% Risk/Reward: 1 : 1.5 No pyramiding (single position at a time) Full equity position sizing (adjustable) All exits are predefined at entry, ensuring consistency and emotional discipline. ๐ Indicators Used 200 EMA โ Trend direction filter RSI (14) โ Mean-reversion trigger (20 / 65 levels) Stochastic Oscillator โ Momentum confirmation ๐ Visual Features EMA plotted directly on chart Real-time Stop Loss, Take Profit, and Entry Price lines Clear long/short entry markers Works on all timeframes (optimized for intraday and swing trading) ๐ Alerts Long entry alerts Short entry alerts (Perfect for automation or discretionary execution) โ ๏ธ Disclaimer This strategy is intended for educational and research purposes only. Past performance does not guarantee future results. Always test on a demo account and adjust risk parameters to your own trading plan.Pine Scriptยฎ strategyby malli_00716
Hammer Strategy (CLOSE ON NEXT BAR) [WORKING]Adjustable hammer and inverted hammer candle Ham? INV? is the hammer Entry on HAM, INV OR HAM?, INV? close next barPine Scriptยฎ strategyby jonfuss841116
Double&Triple Pattern[TS_Indie]๐ Description โ Double & Triple Pattern Indicator The Double & Triple Pattern Indicator is developed to help traders systematically and clearly identify Double Top, Double Bottom, Triple Top, and Triple Bottom chart patterns. โ๏ธ Core Logic & Working Mechanism The Double & Triple Pattern Indicator is built on the concept of price swing formation, based on the logic of Trend Entry_0 , which focuses on structured market analysis and price action behavior. The indicator detects three main swing points (Swing 1, Swing 2, and Swing 3). A Fibonacci Box is then created using Swing A and Swing B as reference points to define the swing detection zone. When all three swings remain inside the defined Fibonacci Box, the structure is considered a valid Price Action setup. The indicator then plots key lines on the chart: โฉ Break Line โ used to confirm the signal (confirmation) โฉ Cancel Line โ used to invalidate the price action if price moves against the conditions โ When price breaks the Break Line , the structure is confirmed and a Pending Order is placed at Swing B , with the Stop Loss set at Swing 1. โ If price breaks the Cancel Line first, the price action structure is immediately invalidated. โ๏ธ Fibonacci Entry Zone & Change SL Settings โฉ When Fibo Entry Zone is set to 0, the Pending Order is placed directly at Swing B. โฉ When the value is greater than 0, the Pending Order is calculated using Fibonacci levels drawn from Swing B to the Stop Loss level. โฉ Change SL allows switching the Stop Loss reference between Swing 1 and Swing A. โ๏ธ Min & Max Control for Swing Size : xATR When enabling Control Size Swing : xATR , the indicator filters Swing B based on the defined Min and Max range. This allows traders to selectively test larger or smaller swing-based price actions , depending on their trading strategy. โญ Pending Order Cancellation Conditions A Pending Order will be canceled under the following conditions: 1.A new Price Action signal appears on either the Buy or Sell side. 2.When Time Session is enabled, the Pending Order is canceled once price exits the selected session. ๐น Order Management Rule When there is an active open position, the indicator restricts the creation of new Pending Orders to prevent overlapping positions. ๐ก Double Pattern Example ๐ก Triple Pattern Example โ ๏ธ Disclaimer This indicator is designed for technical analysis purposes only and does not constitute investment advice. Users should apply proper risk management and make decisions at their own discretion. ๐ฅ Community Sharing If you find parameter settings that work well or produce strong statistical results, feel free to share them with the community so we can improve and develop this indicator together. Pine Scriptยฎ strategyby Truth_Strategy_Indie22 1.6โK
VWAP Mean Reversion (RSI + Deviation + ATR Risk)33this is an indicator that relies on other indicators. it relies on volume price action fvgs.OBS. and standard deviations.Pine Scriptยฎ strategyby natha_horton118
VWAP Mean Reversion v2 nice indicator based on volume and price action. it pays attention to RSI ema.VWAP. and many more indicatorsPine Scriptยฎ strategyby natha_horton2
Capitulation Detector StrategyA multi-factor capitulation detector designed to identify exhaustion points in extended trends. It focuses on fading capitulation moves after multi-leg trends with extreme volume and price extension. โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ THE CONCEPT Capitulation occurs when the last holders give up โ panic selling into lows or euphoric buying into highs. These moments create asymmetric opportunities because: Sentiment becomes maximally skewed Weak hands are flushed out Price deviates far from equilibrium The "fuel" for continuation is exhausted โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ THE 6 FACTORS Trend Persistence โ Price stays on one side of 38 EMA for 12+ bars, confirming a sustained directional move Acceleration โ Price stays on one side of 5 EMA for 3+ bars, showing the move is accelerating into exhaustion Volume Spike โ Current bar volume โฅ 2x the 20-bar average Body Expansion โ Candle body โฅ 1.5x average, showing conviction/panic in the move Extension โ Price is 2+ ATR away from the 38 EMA, indicating overextension from equilibrium Multi-Leg Structure โ At least 3 consecutive lower lows (for longs) or higher highs (for shorts) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ SIGNAL LOGIC Bullish Capitulation: 4+ factors align + price below 38 EMA + down candle + volume spike Bearish Capitulation: 4+ factors align + price above 38 EMA + up candle + volume spike The strategy enters counter-trend, fading the exhaustion move. โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ EXIT OPTIONS ATR-based stop loss (default: 2 ATR) ATR-based take profit (default: 3 ATR) Optional trailing stop Time filter for session-specific trading โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ BEST PRACTICES Works best on liquid instruments with clean trends More reliable after 3+ legs in the trend Higher conviction when daily AND intraday timeframes align "The bigger and more extended, the better" Consider VWAP as additional confirmation (not coded here) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ SETTINGS GUIDE Min Score: Increase for fewer, higher-quality signals Volume Spike Multiplier: 2x; increase for stricter filter Extension ATR: Higher values = more overextended setups only Trend Bars Min: Higher values = longer established trends required โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ALERTS Bullish Capitulation (potential long) Bearish Capitulation (potential short) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ DISCLAIMER This is a counter-trend strategy โ inherently higher risk than trend-following. Always use proper position sizing and risk management. Backtest thoroughly on your specific instruments and timeframes. Pine Scriptยฎ strategyby MagnetickAI9
Strategy with VWRSI and SAVE orders Long or Short or BothVWRSI is very powerful indicator coded by Algo Alpha and I Make Strategy of it But there is no stop loss instate the Strategy is using Save orders to minimize the market manipulation The best to used is side way market with long and short enable The Strategy trigger long or short market order - long - ta.crossover(rsi, 20) short - ta.crossunder(rsi, 80) And if is not take profit from the first trade start with the save trades until will do the sum of the first order - base order and the save order can be adjust from the user as well the deviation from the first order IF some user have questions let me know Pine Scriptยฎ strategyby fullmaxUpdated 44432