BOBADE"S 70% ACCURACY ENJOY -------------------------------------------------------------------------================================== Very good strategy dedicated to all meStrategia Pine Script®od oxaam479Zaktualizowano 4418
XAUUSD Breakout Retest Sniper StrategyThis strategy is designed to demonstrate a structured breakout + retest approach using trend confirmation and volatility-based risk management. It is built for educational and research purposes to help traders understand how breakout continuation moves can be analyzed systematically. The logic focuses on identifying key breakout zones from recent highs and lows, then waiting for price confirmation in the direction of the prevailing trend before simulating entries. Core Logic Behind the Strategy Uses a trend filter (EMA) to define directional bias Identifies recent resistance and support using lookback highs/lows Waits for breakout confirmation and retest behavior Applies ATR-based stop loss and risk-to-reward target projection Designed for intraday charts such as 5M–15M (can be adjusted) The strategy aims to model how price often moves from one liquidity zone to another after breaking key levels. It avoids trading in consolidation and focuses only on confirmed directional moves. How It Works • Bullish conditions when price is above trend EMA • Bearish conditions when price is below trend EMA • Breakout of recent structure signals potential continuation • ATR used to simulate dynamic SL and TP levels • Built-in backtesting for study and optimization Important Notes This script is a technical model for chart study and strategy development. It does not guarantee performance and should not be used as financial advice or a signal service. Users are encouraged to test, modify, and adapt it according to their own trading plans and risk management rules. Best Use Learning breakout + retest behavior Backtesting structured entry models Studying trend-based continuation setups Developing personal trading systems Disclaimer This publication is for educational and informational purposes only. Trading involves risk, and past performance does not guarantee future results. Always perform your own analysis before making trading decisions. xauusd, gold, strategy, breakout, price action, algorithmic trading, trend tradingStrategia Pine Script®od JaxonJackFX185
RSI & Stoch OS + HH Entry + SL 0.6%RSI & Stochastic Convergence (Higher High Entry) This strategy is designed to capture high-probability reversals by combining dual-oscillator oversold conditions with price action confirmation. Entry Logic: The strategy waits for both RSI and Stochastic to reach oversold territory. To avoid "falling knives," it only enters a Long position when the current bar achieves a Higher High compared to the previous bar. Take Profit (TP): Positions are closed when the Stochastic %K enters the overbought zone (90), securing gains during peak momentum. Stop Loss (SL): A disciplined risk management rule is applied with a fixed -0.6% stop loss from the entry price to protect against sudden market drops.Strategia Pine Script®od lnwza99plus34
DoubleTunnelDoubleTunnel,myTestScript,myTestScript,myTestScript,myTestScriptStrategia Pine Script®od lipengjie95271
SOL Hedge | 8500 TargetHigh efficiency and risk control. This script provides a structured framework for high-frequency execution while maintaining strict boundaries on losses and overtrading. ### Core Advantages **1. Strict Risk Management** The strategy enforces a fixed 1:3 risk-to-reward ratio. By automating the exit points immediately upon entry, it eliminates "hope-trading" or moving stop losses manually, ensuring that a single win covers the cost of three losses. **2. Overtrading Prevention** The daily trade limit (set to 100) acts as a mechanical circuit breaker. This protects the account from catastrophic "revenge trading" by hard-locking the script once the quota is reached, regardless of market conditions. **3. Execution Speed** Because the logic is purely mechanical and lacks heavy indicator processing, it is extremely lightweight. This minimizes calculation lag, allowing for rapid entry and exit cycles that are difficult to perform manually at high volumes. **4. Visual and Operational Clarity** The UI is streamlined for focus. The color-coded background provides instant confirmation of the current bias, and the simplified input panel allows for quick adjustments to pip targets without digging into the code. **5. Instrument Versatility** The pip-calculation logic is dynamic. It automatically detects the decimal precision of the asset (Forex vs. Yen pairs), making it portable across different markets without needing manual code rewrites for price formatting. **In short:** The script excels at enforcing discipline through hardcoded limits and a healthy reward-to-risk ratio. It removes emotional bias and provides a scalable framework for high-volume trading.Strategia Pine Script®od oxaam4797
SOL Hedge | 8500 Target By Rodel SOL Hedge | 8500 Target By Rodel SOL Hedge | 8500 Target By Rodel SOL Hedge | 8500 Target By Rodel SOL Hedge | 8500 Target By Rodel Strategia Pine Script®od oxaam4790
SuperTrend STRATEGYSuperTrend Strategy (Long Only) A streamlined, long-only implementation of the classic SuperTrend indicator designed for trend-following entries and exits. How It Works This strategy identifies uptrend reversals using the SuperTrend algorithm and enters long positions accordingly. When the trend flips bearish, the position is closed — no short entries are taken. This makes it ideal for spot trading or accounts that do not permit shorting. Core Logic ATR is calculated using a Simple Moving Average (SMA) of True Range for more responsive volatility tracking. A long entry is triggered when the SuperTrend flips from bearish to bullish. The position is closed when the SuperTrend flips back to bearish. "Buy" and "Close" labels are plotted on the chart for clear visual reference. Default Settings ATR Period: 10 ATR Multiplier: 3.0 Source: hl2 Initial Capital: $10,000 Position Size: 100% of equity Commission: 0.015% Backtest Window A customizable date range filter is included, allowing you to evaluate performance over specific periods. Notes This strategy is intended for educational and backtesting purposes only. Past performance does not guarantee future results. Works across all asset classes and timeframes. Adjust ATR Period and Multiplier to suit your preferred market and trading style. Strategia Pine Script®od holdon_to_profitsZaktualizowano 826
Buy / Sell OBStrategy Concept: Pure Trend Following System This indicator is designed for traders who believe in the philosophy of "The Trend is Your Friend." Instead of trying to predict market tops or bottoms, this system focuses on capturing the "meat" of a move by identifying and following established momentum. Why Trend Following? Market prices don't move in a straight line, but they do move in sustained trends. This tool filters out the daily market noise to reveal the underlying direction of the asset. It is built to keep you on the right side of the market—staying long during uptrends and staying flat or short during downtrends. How it works: Momentum Confirmation: The system waits for a confirmed shift in momentum before issuing a signal. This ensures that you enter when the trend has already gained strength. Visual Bias: The color-coded tracking line acts as your "North Star." If the line is green, the trend is your ally for buying. If the line is red, the momentum has shifted, and caution is advised. Simplicity & Discipline: By following the labels, traders can remove emotional bias from their decision-making process, relying instead on systematic trend validation. Best Practice: For the best results, this system is optimized for the 30-minute timeframe, providing a balance between catching significant moves and avoiding the "whipsaws" found in lower timeframes. "Ride the winners, cut the losers, and always follow the trend." How to use: Timeframe: Optimized for 30m. Entry: Look for "BUY" labels during a fresh bullish cross. Exit/Stop: Use the dynamic EMA 100 line as a trailing support/resistance level. Trading Philosophy: Never fight the trend. Wait for the cross, confirm with price action, and let the EMA 100 guide your bias. OBEYStrategia Pine Script®od kannikapp3
CRP God Logic (Both MA on LOW)he CRP God Logic is a high-performance trend-following strategy designed for traders who want to capture precise entries by focusing on price "lows" rather than "closes." By calculating moving averages based on the low of the candle, this strategy aims to enter long positions at the most exhausted points of a pullback. ✨ Key Features Dual-Low Logic: Unlike standard indicators, both the Fast and Slow MAs are anchored to the Low price. This provides a unique perspective on support levels and trend reversals. Advanced MA Options: Choose between three powerful moving average types: ALMA (Arnaud Legoux): Best for smoothness and reducing lag. TEMA (Triple EMA): Provides extreme responsiveness for fast scalping. HullMA (Hull Moving Average): Reduces lag while remaining smooth. Built-in MTF (Multi-Timeframe): Includes an "Alternate TF" multiplier (default 8x) to filter noise by confirming signals with higher timeframe trends. Non-Repainting Logic: Features a delay offset option to ensure signals remain fixed once the bar closes. Automated Strategy: Fully equipped with strategy.entry and strategy.close commands, making it ready for backtesting and automation. ⚙️ How to Use Selection: Choose your preferred MA type based on the asset's volatility (ALMA is recommended for Crypto). Confirmation: The Lime line (Fast) crossing over the Red line (Slow) generates a BUY signal. Exit: The strategy automatically closes the position when a crossunder occurs. Timeframe: Works best on 1m, 5m, and 15m charts for scalpingStrategia Pine Script®od oxaam479Zaktualizowano 15
CTA Trend Ensemble CTA replication based on a mix of old school TA (turtle strategy and MAs) as well as quant trend strats (lin reg and tsmo). 50/200 sma, 40-day donchian, 60-tmso, and 60 linreg slope seem to work best for longer timeframes. Strategia Pine Script®od BangtheClose115
A71 Sweep First Return Pullback ReversalA7 is a structure-driven trading strategy framework built around liquidity behavior rather than indicator prediction. Core sequence: Sweep → First Return → Pullback → Reversal Trigger Key concepts: 1. Trades are considered only after a clear liquidity sweep. 2. The system enforces a mandatory First Return, preventing chase entries. 3. Entries require a pullback followed by a reversal trigger (Engulfing or Impulse candle). 4. Trend and regime filters are applied to avoid structurally adverse conditions. About the 4H Heikin Ashi FVG: - The 4H HA Fair Value Gap is used strictly as higher-timeframe visual context. - It does NOT generate entries. - It does NOT act as a buy/sell signal. - Its purpose is environmental awareness and trade management context only. Included components: - Liquidity sweep state machine - First Return time window constraint - Pullback validation logic - Engulf / Impulse reversal triggers - EMA, Supertrend, and LWMA trend filters - Structure-based stop and trailing exit logic - 4H HA-FVG visualization (non-signal) Important notice: This script is provided for research and educational purposes only. It does not constitute financial advice. All parameters must be independently tested and adjusted per market and timeframe. Pine Script v5 Strategia Pine Script®od Wll4106842681
BTCUSDT.P MEXC Structure Bot - 4H Bias + 15m CHOCH BOS PullbackFollows market structure on 4hr and enters on choch and bos confirmation on 15m TFStrategia Pine Script®od Sterling847738
Large Candle Continuation StrategyFilter for candle by percentage of price change. I.E. candles larger than a 5% move. Customize entries as price continues from the large candle with an offset of ticks from the large candle close. Choose the number of candles for which the entry is valid. Multiple profit and stop loss variables. Adjustable time window for when trades are valid, meaning you could filter for 8am news candles or 9:30 opening candles etc. Remember, if you are on a 1 minute chart or another very small timeframe, it is less likely you will find many examples. Strategy created with Gemini. No information generated with this script is financial advice, nor should you invest or trade based off of it's signals. Strategia Pine Script®od Toddwaters724
Eurusd 15min long Divergence StrategyPart 1/20 of my trading strategy collection. Long-only divergence strategy built for EURUSD 15m. Detects momentum shifts before price reverses. Adjustable risk per trade and leverage settings. Fully automated entries and exits with trailing stop. More scripts coming soon — follow for updates. ⚠️ This is not financial advice. Past performance does not guarantee future results. Trade at your own risk.Strategia Pine Script®od SimasDimasZaktualizowano 9
dueh dueh dueh 123123dont use this junk its worthless it's just for fun dueeeeeeaaaaaaaaaaaaahhhhhhhhh dueahStrategia Pine Script®od peteranton851
EP Strategy V2.2 (SuperTrend)Here is the English description for your EP Strategy V2.2. I have modified it to be "Multi-Asset" (Universal), so it applies not just to Bitcoin, but also to Altcoins, Stocks (Nasdaq/S&P500), and Forex. 🚀 EP Strategy V2.2: Universal SuperTrend Sniper 1. Overview This is a robust Trend-Following Strategy optimized for volatile markets. While originally tested on Bitcoin, this strategy is designed to work on any trending asset (Crypto, Stocks, Forex, Indices). It eliminates market noise and focuses on capturing major trend waves using the SuperTrend indicator combined with a long-term EMA Filter. 2. Core Logic A. Smart Entry (Trend Alignment) Signal: Entries are triggered when the SuperTrend flips color (Bearish to Bullish, or vice versa). Trend Filter (200 EMA): To prevent "catching falling knives" or trading against the major trend, the strategy uses a 200-period Exponential Moving Average (EMA). LONG: SuperTrend turns Green AND Price is ABOVE the 200 EMA. SHORT: SuperTrend turns Red AND Price is BELOW the 200 EMA. Cash Mode (Safety): If the SuperTrend signals a buy but the price is below the 200 EMA (or vice versa), the strategy stays in Cash (Wait Mode) to avoid whipsaws in choppy markets. B. Dynamic Exit (Trailing Stop) No Fixed TP/SL: The strategy does not use static Take Profit or Stop Loss levels, which often limit potential gains. Trend Riding: The exit is triggered strictly when the SuperTrend line is breached. This acts as a dynamic trailing stop, allowing the position to remain open as long as the trend remains strong, maximizing profit on large moves. 3. Key Features ✅ Universal Application: Effective on any asset class that exhibits strong trends (e.g., ETH, SOL, NVDA, TSLA, Gold, EURUSD). ✅ Whipsaw Protection: The 200 EMA filter significantly reduces false signals during sideways consolidation phases. ✅ Profit Maximization: Designed to "Let profits run" and "Cut losses short" automatically. 4. Recommended Settings Timeframe: 1 Hour (1H) or 4 Hours (4H) recommended for Swing Trading. Assets: High volatility assets (Crypto) or Trending Stocks. SuperTrend Settings: Factor 3.0 / Period 10 (Default). Tip: Increase Factor to 4.0 for less frequent, longer-term trades. Risk Management: Use consistent position sizing (e.g., 5-10% of equity per trade).Strategia Pine Script®od evanpark_ca2
London Pre-Session Sweep London Pre-Session Sweep – XAUUSD 5m strategy for XAUUSD. Builds the Pre-London box (08:00–09:00 Berlin), waits for a sweep of box high or low, then enters on an Attempted Candle (green for long, red for short). SL = high/low of that candle, TP = 4R. Mon/Wed/Thu only, max 3 trades/day, no new trades after first win. DST-safe, no repaint.Strategia Pine Script®od Lean_TradingZaktualizowano 38
SSL MACD - nhuthang83strategy that rely on supertrend indi, combine with PAStrategia Pine Script®od vbrqakvwc41462
Swing Strategy Feature Set K [theEccentricTrader]█ OVERVIEW This swing strategy is part of a broader research and exploration framework designed to encourage users to experiment with a variety of technical concepts and evaluate the comparative effectiveness of different strategy configurations. For example, users can first configure a core strategy as a benchmark, then iteratively test a range of feature configurations as additional entry conditions and compare their performance against one another and against the core strategy. Feature Set K includes concepts beginning with the letter "K" and forms part of a larger swing strategy suite that covers a wide range of technical concepts. The objective of the suite is not curve-fitting, but rather structured experimentation, exploration and statistical validation (or invalidation) of technical concepts. Concepts exclusive to the feature set are as follows: Kaufman Adaptive Moving Average Kaufman Efficiency Ratio Keltner Channels Klinger Volume Oscillator █ OPERATIONAL Initial Capital The initial capital is defined as a monetary value denominated in a given base currency. The default initial capital is set to 100,000. The default base currency is set to the selected symbol's default base currency. Users can adjust the initial capital and select an alternative base currency via strategy Settings/Properties. Risk as Percentage of Equity The equity is defined as the sum of initial capital, net profit and open profit. The risk is defined as a percentage of equity per-trade. As a result, net profit outcomes are subject to compounding effects over time. The default risk is set to 1% of equity. Users can adjust the strategy's per-trade risk via strategy Settings/Inputs/STRATEGY. For further information on how the risk is applied in practice, refer to the position sizing section below. Unit of Value The unit of value is defined as a decimal precision factor that converts user-defined point or pip distances into actual price units used by the selected symbol. Different symbols express price movement using different conventions. For example, some symbols are quoted directly in whole price points, while others use pips or fractional point increments. The unit of value provides a normalisation layer that allows all distance-based logic in the strategy to operate consistently across symbols. Examples: A unit of value of 1 corresponds to a price increment of 1.0. A unit of value of 10 corresponds to a price increment of 0.1. A unit of value of 100 corresponds to a price increment of 0.01. A unit of value of 1000 corresponds to a price increment of 0.001. A unit of value of 10000 corresponds to a price increment of 0.0001. Users should consult their broker’s published symbol specifications to confirm how price movement is defined for the symbols they intend to backtest. Incorrect configuration of the unit of value may result in misaligned stop distances, targets and/or risk calculations. The default unit of value is set to 1. Users can adjust the unit of value via strategy Settings/Inputs/STRATEGY. Stop Buffer The stop buffer is defined as the number of points or pips beyond a stop loss level required for the level to be considered clearly breached. The default stop buffer is set to 0 points/pips. Users can adjust the stop buffer via strategy Settings/Inputs/STRATEGY. Risk Range The risk range is defined as the difference between the entry price and the stop loss price (inclusive of the stop buffer) for any given trade. Position Sizing Position sizing determines the quantity of contracts, shares or units opened for each trade based on the user-defined risk and the selected symbol’s pricing structure. "syminfo.pointvalue" is a built-in Pine Script variable that defines the number of underlying units contained within a single contract for any given symbol, and is critical for accurate position size calculations. The position size is calculated as follows: The risk range is multiplied by the syminfo.pointvalue to convert the price movement into its monetary equivalent. The user-defined risk amount (expressed as a percentage of equity) is divided by this monetary risk per unit to determine the position size. This ensures that each trade risks a consistent proportion of account equity regardless of point or pip based quoting conventions, symbol price scale or contract specifications. While the strategy targets a fixed percentage of equity risk per-trade, the exact risk applied cannot always be matched precisely due to symbol-specific constraints such as contract sizing and margin requirements. In these cases, the strategy opens the largest permissible position that does not violate operational constraints, resulting in a realised risk that is as close as possible to the user-defined risk without exceeding it. For further information on the syminfo.pointvalue variable, please refer to: www.tradingview.com Margin The margin is defined as the minimum percentage of a position’s notional value that must be covered by the strategy’s available equity in order for TradingView's strategy tester to simulate opening and maintaining that position. For example, a margin setting of 25% means the simulated account must hold equity equal to at least 25% of the position’s notional value in order to enter or maintain that trade, the remaining 75% is considered provided by the simulated broker. A lower margin percentage allows the account to open larger positions relative to its equity, because the required equity portion is smaller. Conversely, a higher margin percentage demands more of the account's equity be committed to any given position. When the account’s equity falls below the required margin, the strategy tester emulates a margin call event, in which the broker emulator forcibly closes or reduces positions so that remaining positions no longer exceed available equity relative to the margin requirement. This behaviour is documented as part of TradingView’s margin/leverage feature for strategies. Margin settings in a strategy are used solely for simulation purposes and do not automatically match any broker’s real-world margin requirements (which can vary by broker, asset class and symbol). Users should consult their broker’s published specifications for further details. The default margin is set to 25% for both long and short positions. Users can adjust the margin for long and short positions independently via strategy Settings/Properties/MARGIN. For further information on the strategy tester's margin functionality, please refer to: www.tradingview.com www.tradingview.com Pyramiding The pyramiding count is defined as the maximum number of open positions permitted at any one time. TradingView's strategy tester does not facilitate hedging, as such, long entries will close any open short positions and short entries will close any open long positions. The default pyramiding count is set to 100. Users can adjust the pyramiding count via strategy Settings/Properties. For further information on TradingView's strategy tester and broker emulator, please refer to: www.tradingview.com Spread The spread is defined as the difference between a given symbol's bid (buy) price and ask (sell) price. Typical spreads vary by broker and symbol. Some brokers offer fixed spreads on certain symbols, while others offer variable spreads that fluctuate with market conditions. Users should consult their broker's published specifications for further details. Commission The commission is defined as a transaction cost applied by a broker and may be expressed as a percentage of position size, a per-contract fee or a fixed fee per-transaction. Commission structures vary by broker and symbol. Some brokers charge no explicit commission and instead generate revenue through the spread or other indirect sources, while others will typically apply one of the three aforementioned commission types, depending on the product offered. Users should consult their broker's published specifications for further details. The default commission is set to 0.005% of position size. Users can select and adjust the commission type via strategy Settings/Properties/COST SIMULATION. █ CORE STRATEGY Green and Red Candles A green candle is defined as a candle that closes at or above its open price and a red candle is defined as a candle that closes below its open price. Swing Highs and Swing Lows A swing high is defined as a green candle, or a series of consecutive green candles, followed by a single red candle that completes the swing and forms the peak. A swing low is defined as a red candle, or a series of consecutive red candles, followed by a single green candle that completes the swing and forms the trough. Peak and Trough Prices The peak price of a complete swing high is either the high of the red candle that completes the swing high or the high of the preceding green candle, depending on which is higher. The trough price of a complete swing low is either the low of the green candle that completes the swing low or the low of the preceding red candle, depending on which is lower. Fixed Reward-to-Risk Fixed reward-to-risk is defined as a user-defined reward multiple for a given unit of risk. Variable Reward-to-Risk Variable reward-to-risk is defined as a path-dependent reward multiple for a given unit of risk. Swing High Swing Low (SHSL) Strategy The SHSL strategy uses swing lows for core long entry conditions and swing highs for core short entry conditions. The strategy is designed for standard OHLC candlestick charts only and will not behave as intended on other chart types. All entries are processed at candle close and use the candle close price for the entry price. Long stop losses are anchored to the most recent trough and short stop losses are anchored to the most recent peak. Users can choose between long-only and short-only configurations, or alternatively simulate trades in both directions (long-short). However, when the "Both" option is selected, long entries will close any open short positions and short entries will close any open long positions (as mentioned in the pyramiding sub-section above). This can and will result in variable reward-to-risk outcomes. The default direction is set to "Long" for a long-only configuration. The default exit type is set to "Target" for a fixed reward-to-risk configuration. Long targets are determined by adding a user-defined multiple of the risk range to the entry price and short targets are determined by subtracting a user-defined multiple of the risk range from the entry price. Even when using a fixed reward-to-risk configuration, realised reward-to-risk outcomes may vary due to market gaps, particularly when positions are held across session boundaries or market closures. Gaps can cause stop losses or exits to be executed at prices materially different from those implied by the strategy’s static distance calculations. Users who wish to minimise gap-related variability may consider applying the close at end of session filter (see core filters section below), accepting that this introduces its own form of reward-to-risk variability. The default reward-to-risk is set to 1. Users can adjust strategy parameters via strategy Settings/Inputs/STRATEGY. Selecting a non-target exit type removes profit targets and renders the reward-to-risk input inactive. Trailing Stop Loss A trailing stop loss is defined as an exit type that dynamically moves a stop loss level in a favourable direction when a predefined condition is met. For example, a predefined point move or the formation of a higher trough or lower peak. Risk Range Trailing Stop Loss The risk range trailing stop loss is defined as a trailing stop mechanism that activates once price has moved favourably by one full risk range. Upon activation, the stop loss is moved to breakeven and subsequently trails favourable price movement by the risk range into profit. Users can apply this exit type by selecting "Trail" via strategy Settings/Inputs/STRATEGY. Trend Trailing Stop Loss The trend trailing stop loss is defined as a trailing stop mechanism that dynamically moves a stop loss level to newly formed higher troughs (for longs) or lower peaks (for shorts). Users can apply this exit type by selecting "Trend Trail" via strategy Settings/Inputs/STRATEGY. Candle Trailing Stop Loss The candle trailing stop loss is defined as a trailing stop mechanism that dynamically moves a stop loss level to newly formed higher candle lows (for longs) or lower candle highs (for shorts). Users can apply this exit type by selecting "Candle Trail" via strategy Settings/Inputs/STRATEGY. Opposing Candle Colour Close The opposing candle colour close exit type is defined as an exit condition that closes any long positions when a new red candle forms and closes any short positions when a new green candle forms. Users can apply this exit type by selecting "Opposing Candle" via strategy Settings/Inputs/STRATEGY. █ CORE FILTERS Minimum Risk Range Filter The minimum risk range filter is defined as an entry filter that invalidates trade signals with a risk range below a user-defined threshold. The default minimum risk range is set to 4 points/pips. Users can adjust the minimum risk range via strategy Settings/Inputs/RISK RANGE FILTER. It is recommended that users set the minimum risk range at least 1–2 points/pips above the selected symbol’s spread to invalidate trades that would be completely impractical under realistic trading conditions. Time Zone The time zone is defined using either an IANA region identifier (e.g. Europe/London, America/New_York) or a fixed UTC/GMT offset (e.g. UTC+1, GMT-05:30). Fixed offsets do not account for daylight saving time. The default time zone is set to Europe/London. Users can change the time zone via strategy Settings/Inputs/TIME ZONE. For further information on time zone configuration, please refer to: data.iana.org en.wikipedia.org Session Filter The session filter is defined as an entry filter that invalidates trade signals that fall outside a user-defined intraday trading session, with session start and end times bound to the strategy time zone. TradingView candle timestamps represent the candle open time, not the candle close time. As a result, session boundaries are evaluated based on when a candle opens, even though entries and exits are processed at candle close. To avoid trades being entered or held beyond the intended session end, users should configure the session end time at least one full timeframe period earlier than the desired practical session close. For example, on a 5-minute chart with a desired session end at 22:00, the session should typically be configured to end at 21:55. This ensures that no new trades are taken at the final session close and that any session-dependent exit logic is applied before the session ends in practice. When using custom or non-standard timeframes where the desired session end does not align cleanly with candle boundaries, it is recommended that users set the session end two full timeframe periods earlier than the desired session end. This provides an additional safety buffer, ensuring the strategy avoids taking trades near the session boundary. By default, the session filter is set to false and the default session is set to "2300-2155". Users can apply the session filter and adjust session boundaries via strategy Settings/Inputs/SESSION FILTER. Close At End of Session Filter The close at end of session filter is defined as an exit filter that closes all open positions when the active trading session ends, provided that the session filter is appropriately configured and applied. When enabled, the strategy monitors the session filter state and detects the transition from an active session to an inactive session. All open trades are closed on the first candle that falls outside the defined session window. This ensures that no positions are carried beyond the user-defined trading session. The close at end of session filter operates independently of entry conditions and other exit types. When enabled, it will force the closure of all open positions at session end regardless of the selected exit configuration. Enabling the close at end of session filter can result in variable reward-to-risk outcomes. Because positions are forcibly closed at session end regardless of stop loss or target placement, exits may occur at prices that differ from those implied by the fixed reward-to-risk configuration. This behaviour is intentional and reflects a design trade-off between enforcing strict session boundaries and allowing trades to reach their predefined directional objectives, regardless of how severely distorted the realised reward-to-risk outcomes could be in the event of price gaps. By default, the close at end of session filter is set to false. Users can apply the close at end of session filter via strategy Settings/Inputs/CLOSE AT END OF SESSION FILTER. Users should also ensure that the session filter is applied and that session boundaries are configured appropriately with respect to candle timestamp behaviour, as described in the session filter section above. Sample Period Filter The sample period filter is defined as an entry filter that invalidates trade signals that fall outside a user-defined date-time range, with start and end date-times bound to the strategy time zone. TradingView candle timestamps represent the candle open time, not the candle close time. As a result, sample period boundaries are evaluated based on when a candle opens, even though entries and exits are processed at candle close. To avoid trades being entered beyond the intended sample period end, users should configure the sample period end date-time at least one full timeframe period earlier than the desired practical sample period end date-time. For example, on a 5-minute chart with a desired end date-time of 01/01/2026 22:00, the end date-time should typically be configured to 01/01/2026 21:55. The default sample period start and end date-times are set to 01/01/1900 00:00 and 01/01/3000 00:00, respectively. Users can adjust the sample period via strategy Settings/Inputs/SAMPLE PERIOD FILTER. █ GENERIC FILTERS Generic Filter Behaviour Unless otherwise stated: "None" inputs return true. Filters return true only when their selected condition is satisfied. Above-Equal/Below Zero Filter The above-equal/below zero filter is defined as an entry filter that evaluates zero centred oscillator values relative to the zero line and invalidates trade signals that do not satisfy a user-defined directional condition. "Above-Equal" returns true when the oscillator value is greater than or equal to zero. "Below" returns true when the oscillator value is less than zero. Close Above-Equal/Below Filter The close price above-equal/below filter is defined as an entry filter that evaluates the most recent candle close price relative to a given time-series value and invalidates trade signals that do not satisfy a user-defined directional condition. "Above-Equal" returns true when the most recent candle close price is greater than or equal to any given time-series value. "Below" returns true when the most recent candle close price is less than any given time-series value. Minimum and Maximum Boundary Filters Minimum and maximum boundary filters are defined as entry filters used to constrain time-series values to predefined minimum and/or maximum thresholds, invalidating trade signals that do not satisfy a user-defined threshold criteria. The filters consist of two independent threshold components, minimum (above-equal) and maximum (below-equal), which may be applied individually or together. When both components are applied simultaneously the filters act as a value range constraint, invalidating trade signals that fall outside of the specified bounds. "Above-Equal" returns true when the evaluated value is greater than or equal to the user-defined minimum boundary. "Below-Equal" returns true when the evaluated value is less than or equal to the user-defined maximum boundary. Minimum Percentage Change Positive-Flat/Negative Filter The minimum percentage change filter is an entry filter that measures the relative change of a time-series value over a configurable historical window and applies a directional threshold condition, invalidating trade signals that do not meet the directional threshold criteria. The filter compares the current value to its value n bars ago and computes the percentage difference. A signal returns true only if this percentage change satisfies both: The selected directional requirement. The user-defined minimum percentage change magnitude. "Positive-Flat" direction logic: Accepts values that have increased or remained unchanged, provided the percentage change is greater than or equal to the minimum threshold. "Negative" direction logic: Accepts values that have decreased, provided the magnitude of the decrease meets or exceeds the minimum threshold. When the minimum threshold is set to 0%, the filter behaves as a pure directional check: "Positive-Flat" accepts ≥ 0% changes. "Negative" accepts < 0% changes only. Moving Average (MA) Double and Triple Trend Filters MA double and triple trend filters are defined as entry filters that evaluate the relative positioning of two or more MA values and invalidate trade signals that do not satisfy a user-defined directional condition. "Above-Equal" returns true when one MA is greater than or equal to another MA. "Below" returns true when one MA is less than another MA. Basic and Exclusive Rejection Filters The basic rejection filter is defined as an entry filter that evaluates swing-based wick or body rejections of a given price level and invalidates trade signals that do not satisfy the rejection criteria. For long trades, "Rejection" returns true when all three of the following conditions are met: The previous candle open is above a given rejection price. The trough price is less than or equal to a given rejection price. The green candle that completes the swing closes above a given rejection price. For short trades, "Rejection" returns true when all three of the following conditions are met: The previous candle open is below a given rejection price. The peak price is greater than or equal to a given rejection price. The red candle that completes the swing closes below a given rejection price. The exclusive rejection filter is defined as an entry filter that meets basic rejection filter criteria for only one user-defined price level from a set of given price levels. If the rejection criteria is met for more than one of the given price levels the filter will return false. Basic and Multi-Part Trend Filters Basic and multi-part trend filters are defined as entry filters that evaluate changes in time-series values from one period to the next and invalidate trade signals that do not satisfy a user-defined trend condition. Basic trends operate independently of prior trend state, whereas multi-part trends are defined by the presence or absence of preceding trend sequences. The multi-part trend states are distinguished numerically and the conditions are bound to a user-defined trend count. "Basic Uptrend" returns true when a time-series value is greater than the preceding value. For example, a basic volume uptrend filter returns true if the most recent candle's volume is greater than the preceding candle's volume. "Basic Downtrend" returns true when a time-series value is less than the preceding value. For example, a basic volume downtrend filter returns true if the most recent candle's volume is less than the preceding candle's volume. "Uptrend" returns true while a multi-part uptrend state is valid. The uptrend state begins when a new basic uptrend forms following a basic downtrend and remains valid until a new basic downtrend forms. The user-defined trend count will determine which multi-part trend condition is selected. For example, if the user-defined trend count is set to 3, then only 3-part uptrend conditions will return true. "Downtrend" returns true while a multi-part downtrend state is valid. The downtrend state begins when a new basic downtrend forms following a basic uptrend and remains valid until a new basic uptrend forms. The user-defined trend count will determine which multi-part trend condition is selected. For example, if the user-defined trend count is set to 3, then only 3-part downtrend conditions will return true. █ FEATURE SET K SPECIFIC FILTERS All feature set specific indicators use the same calculations as the built-in TradingView indicators unless otherwise stated in the relevant filter sub-section. While users do not need to apply the indicators for the strategy to function, they can of course apply the relevant indicators as visual aids if they so desire. For further information on how to apply built-in TradingView indicators, please refer to: www.tradingview.com Kaufman Adaptive Moving Average (KAMA) Filters Users can define up to three independent KAMA series. The defaults are as follows: KAMA 1: source = close, ER length = 50, fast length = 2, slow length = 30. KAMA 2: source = close, ER length = 100, fast length = 2, slow length = 30. KAMA 3: source = close, ER length = 200, fast length = 2, slow length = 30. Users can adjust the KAMA inputs via strategy Settings/Inputs/KAUFMAN ADAPTIVE MOVING AVERAGE (KAMA). Users can apply up to three independent close above-equal/below filters (see generic filters section above), one for each user-defined KAMA. The default mode for all three KAMA close above-equal/below filters is set to "None". Users can apply up to three independent KAMA double trend filters (see generic filters section above), one filter for each of the three possible configurations. The defaults are as follows: KAMA 1 above-equal/below KAMA 2 is set to "None". KAMA 2 above-equal/below KAMA 3 is set to "None". KAMA 1 above-equal/below KAMA 3 is set to "None". The KAMA rejection filter is defined as an exclusive rejection filter (see generic filters section above) that will only return true if the user-defined KAMA is rejected exclusive of the other two KAMAs. The default KAMA rejection filter mode is set to "None". Users can apply the KAMA filters and adjust filter parameters via strategy Settings/Inputs/KAMA FILTERS. Kaufman Efficiency Ratio (KER) Filters As there is no built-in indicator for the KER value used in this script, users can build their own KER indicator in Pine Script by copying the following code and pasting it into a new indicator: //@version=6 indicator(title = "Kaufman Efficiency Ratio", shorttitle = "KER", overlay = false) import TradingView/ta/12 as ta ker_source = input.source(close, 'KER Source', group = 'Kaufman Efficiency Ratio (KER)') ker_length = input.int(10, 'KER Length', group = 'Kaufman Efficiency Ratio (KER)') ker = ta.er(ker_source, ker_length) plot(ker) For further information on how to build Pine Script indicators, please refer to: www.tradingview.com www.tradingview.com KER minimum and maximum boundary filters (see generic filters section above) are included for the KER value, the defaults are as follows: Apply KER above-equal is set to false KER above-equal threshold is set to 0. Apply KER below-equal is set to false KER below-equal threshold is set to 1. The KER minimum percent change positive-flat/negative filter (see generic filters section above) defaults are as follows: Mode is set to "None". Minimum percent change is set to 0. Lookback is set to 3. The KER trend filter (see generic filters section above) defaults are as follows: Mode is set to "None". Trend count is set to 3. Users can apply the KER filters and adjust filter parameters via strategy Settings/Inputs/KAUFMAN EFFICIENCY RATIO (KER) FILTERS. Keltner Channels (KC) Filters The KC bandwidth increasing/decreasing filter is defined as an entry filter that evaluates whether the distance between the KC upper and lower values is expanding or contracting over a configurable lookback period. The default mode for the KC bandwidth increasing/decreasing filter is set to "None". The default KC bandwidth increasing/decreasing lookback is set to 3. Users can apply up to three independent close above-equal/below filters (see generic filters section above), one for each KC value (upper, middle and lower). The default mode for all three KC close above-equal/below filters is set to "None". The KC rejection filter is defined as an exclusive rejection filter (see generic filters section above) that will only return true if the user-defined KC value is rejected exclusive of the other KC values. The default KC rejection filter mode is set to "None". Users can apply the KC filters and adjust filter parameters via strategy Settings/Inputs/KELTNER CHANNELS (KC) FILTERS. Klinger Volume Oscillator (KVO) Filters As there is no built-in indicator for the KVO value used in this script, users can build their own KVO indicator in Pine Script by copying the following code and pasting it into a new indicator: //@version=6 indicator(title = "Klinger Volume Oscillator", shorttitle = "KVO", overlay = false) import TradingView/ta/12 as ta = ta.kvo(34, 55, 13) plot(kvo) plot(kvo_trigger, color = color.green) For further information on how to build Pine Script indicators, please refer to: www.tradingview.com www.tradingview.com The KVO above-equal/below trigger filter is defined as an entry filter that evaluates the relative positioning of the KVO value and its trigger line and invalidates trade signals that do not satisfy a user-defined directional condition. The default mode for the KVO above-equal/below trigger filter is set to "None". The default mode for the KVO above-equal/below zero filter (see generic filters section above) is set to "None". The default mode for the KVO trigger above-equal/below zero filter (see generic filters section above) is set to "None". The KVO minimum percent change positive-flat/negative filter (see generic filters section above) defaults are as follows: Mode is set to "None". Minimum percent change is set to 0. Lookback is set to 3. The KVO trigger minimum percent change positive-flat/negative filter (see generic filters section above) defaults are as follows: Mode is set to "None". Minimum percent change is set to 0. Lookback is set to 3. The KVO trend filter (see generic filters section above) defaults are as follows: Mode is set to "None". Trend count is set to 3. The KVO trigger trend filter (see generic filters section above) defaults are as follows: Mode is set to "None". Trend count is set to 3. Users can apply the KVO filters and adjust filter parameters via strategy Settings/Inputs/KLINGER VOLUME OSCILLATOR (KVO) FILTERS. █ ALERTS Users can set alerts for any given strategy configuration via the alerts dialogue box. Users must first ensure that the correct condition (the strategy title) is selected from the first drop-down list in the alert dialogue box's condition field. Default alert messages have been configured for both entries and exits so that users can more effectively distinguish between long and short entries and exits while using long-short configurations. To get alerts for both entries and exits the user should change the value in the condition field's second drop-down list from "Order fills only and alert() function calls" to "Order fills only". When using "Order fills only" with long-short configurations, it is recommended that users define their alert via the alert name field and use only the default {{strategy.order.alert_message}} call in the alert message field. Alert conditions generated by "Order fills only" are evaluated after entry conditions have been satisfied and operational constraints (risk, position size and margin requirements) have been applied. As such, trade signals that would result in position sizes exceeding the simulated account's margin constraints will not generate alerts. To get alerts for entries only the user should change the value in the condition field's second drop-down list from "Order fills only and alert() function calls" to "alert() function calls only". The default alert messages generated by "Order fills only" are as follows: "long entry". "long exit". "short entry". "short exit". The default alert messages generated by "alert() function calls only" are as follows: "long entry". "short entry". Alert conditions generated by "alert() function calls only" are operational-constraint-agnostic and will generate alerts whenever entry conditions are satisfied, regardless of the simulated account's margin constraints. For further information on setting and managing alerts, please refer to: www.tradingview.com www.tradingview.com www.tradingview.com █ LIMITATIONS AND CONSIDERATIONS Backtesting Backtest results should always be interpreted cautiously. Strategy performance can vary significantly across time periods and sample sets. While strong historical performance does not guarantee future results, poor historical performance reliably indicates a weak strategy when sample sizes are statistically meaningful. Statistical Significance and Path-Dependent Outcomes (Overfitting) In statistical practice, sample sizes of 100 observations are sometimes cited as a rough lower bound for certain forms of basic significance testing. In the context of trading strategy evaluation, such sample sizes are rarely sufficient to produce results that are meaningfully reliable or replicable. Based on practical experience, sample sizes closer to 1,000 observations or more are generally required before performance characteristics begin to stabilise. As a general rule, larger sample sizes increase the reliability and replicability of observed results. Path dependence refers to situations in which outcomes are determined not only by initial conditions, but by the specific and unique sequence of price movements over a given time period. Even with large sample sizes, favourable net profit outcomes should be interpreted with caution when they are primarily driven by either variable reward-to-risk configurations or fixed reward-to-risk configurations that employ unrealistically high reward multiples. In both cases, performance is often strongly influenced by path-dependent effects, making such outcomes less reliable and less replicable. Fixed reward-to-risk configurations are generally less susceptible to path dependence when the reward multiple is kept within reasonable bounds. However, empirical studies and practitioner research suggest that reward multiples above approximately 3:1 increasingly exhibit the same path-dependent characteristics observed in variable reward-to-risk strategies. Bar Magnifier Due to the limitations of OHLC data, intra-bar price movement cannot be precisely determined. When both stop loss and target levels are reached within the same candle, assumptions are made by the strategy tester. Pine Script's bar magnifier partially mitigates this limitation by evaluating lower-timeframe data. However, this feature is available only to TradingView Premium users and remains inherently limited. For further information on the bar magnifier functionality, please refer to: www.tradingview.com www.tradingview.com TradingView Premium users can enable bar magnifier via strategy Settings/Properties/FILL ORDERS. Processing Orders at Candle Close Backtests cannot accurately account for slippage between signal generation and trade execution. A practical mitigation is to use fixed-distance stop losses and targets rather than absolute price levels, a feature supported by many brokers and APIs. Empirical Probabilities Empirical probabilities are derived directly from observed outcomes rather than from theoretical models or assumed distributions. In the context of trading, they are calculated by measuring the relative frequency of events (such as wins and losses) across a large sample of historical trades. Unlike conditional or model-based probabilities, empirical probabilities make no assumptions. Their validity relies primarily on sample size and the consistency of the rules used to generate observations, making them particularly relevant for trading systems evaluated under the law of large numbers. Empirical probabilities are most useful for comparative analysis, such as assessing how different configurations, filters or exit mechanisms alter the statistical behaviour of a strategy under identical conditions. They are not intended to represent true predictive probabilities or to imply stable future performance. To study empirical probabilities for comparative purposes, it is recommended that users set commission and both long and short margin values to 0% in order to maximise sample size. However, users should not interpret any resulting profits as realistic. Setting commission and margin (in particular) to 0% produces highly distorted outcomes that are not representative of realistic live trading conditions. █ DISCLAIMER This Pine Script strategy is provided for educational purposes only and does not constitute financial advice in any form.Strategia Pine Script®od theEccentricTrader3
Buy Signal EMA & RSI Strategy [CocoChoco]Strategy to back test my published indicator under the same name: Buy Signal EMA & RSI Strategy Strategia Pine Script®od CocoChoco115
9 EMA First Full Candle Entry + EMA Cross Exit (Strategy)his strategy is designed to create a simple, mechanical trading system using only the 9 EMA on the 5-minute chart. Entry Logic A trade is entered on the first candle that closes completely on one side of the 9 EMA: Long entry: the candle’s low is above the 9 EMA Short entry: the candle’s high is below the 9 EMA Only the first qualifying candle is used, preventing repeated entries during the same move. Exit Logic Once in a trade, the position is closed when price crosses back through the 9 EMA: Long exits when price crosses below the EMA Short exits when price crosses above the EMA On the exit candle, the 9 EMA is highlighted yellow to clearly mark the exit point. Visual Cues Entry candle is colored yellow EMA is normally orange and turns yellow on the exit candle only No background shading, labels, or extra indicators Purpose This strategy is built to minimize decisions by: Using a single timeframe (5-minute) Using a single indicator (9 EMA) Defining objective entry and exit rules Designed for: SPY and other highly liquid ETFs Intraday trend continuation Clean, rules-based execution with minimal discretion Best performance is typically seen during strong trend periods and reduced during sideways or low-volatility conditions.Strategia Pine Script®od myttthew5
9 EMA First Full Candle Entry + EMA Cross Exit (Strategy)This strategy is designed to create a simple, mechanical trading system using only the 9 EMA on the 5-minute chart. Entry Logic A trade is entered on the first candle that closes completely on one side of the 9 EMA: Long entry: the candle’s low is above the 9 EMA Short entry: the candle’s high is below the 9 EMA Only the first qualifying candle is used, preventing repeated entries during the same move. Exit Logic Once in a trade, the position is closed when price crosses back through the 9 EMA: Long exits when price crosses below the EMA Short exits when price crosses above the EMA On the exit candle, the 9 EMA is highlighted yellow to clearly mark the exit point. Visual Cues Entry candle is colored yellow EMA is normally orange and turns yellow on the exit candle only No background shading, labels, or extra indicators Purpose This strategy is built to minimize decisions by: Using a single timeframe (5-minute) Using a single indicator (9 EMA) Defining objective entry and exit rules Designed for: SPY and other highly liquid ETFs Intraday trend continuation Clean, rules-based execution with minimal discretion Best performance is typically seen during strong trend periods and reduced during sideways or low-volatility conditions.Strategia Pine Script®od myttthew4
BTC Strategy 5min only📊 Strategy Overview BTC Strategy is a sophisticated multi-timeframe trading strategy designed Bitcoin and cryptocurrency markets. It combines multiple technical indicators with advanced filtering systems to generate high-probability trade signals while managing risk through comprehensive exit mechanisms. 🎯 Core Trading Logic The strategy employs a Triple EMA (TEMA) crossover system as its primary signal generator: · Long Entry: TEMA crosses above SMA, with bullish candle close and RSI above threshold · Short Entry: TEMA crosses below SMA, with bearish candle close and RSI below threshold 🔧 Multi-Layer Filtering System 1. Trend Strength Filter (ADX) · Ensures trades only occur during strong trending markets 2. Supertrend Filter · Provides dynamic support/resistance levels · Confirms trend direction alignment 3. Market Condition Filters · Time Filter: Trades only between 8 AM - 10 PM (configurable) · Day Filter: Customizable trading days (Monday-Friday enabled by default) · Volatility Filter: Optional ATR-based volatility control 4. Additional Confirmation · MACD Filter: Optional confirmation using MACD bullish/bearish signals · Heiken Ashi Candles: Optional smoothing of price data · RSI Filter: Customizable RSI thresholds for overbought/oversold conditions ⚙️ Risk Management Features Exit Strategies: 1. Trailing Stop Loss 2. Take Profit 3. Stop Loss Position Management: · Pyramiding: Disabled by default (all set to 0) · Single Position: One trade at a time · 100% Equity Allocation: Full position sizing 📈 Visual Indicators on Chart 1. Supertrend Line: Dynamic support/resistance (green for bullish, red for bearish) 2. Bollinger Bands: Volatility reference bands 3. Signal Markers: Triangle shapes below/above bars for long/short signals 4. Status Label: Real-time strategy status display ⚡ Alert System · Long Signal Alert: Triggers when all conditions for long entry are met · Short Signal Alert: Triggers when all conditions for short entry are met 🔍 Customization Options Users can modify: · All indicator parameters · Filter toggles (MACD, Volatility, Supertrend, Time, Days) · Risk management settings (TP, SL, Trailing Stop) · Trading direction (Longs only, Shorts only, or Both) · Signal delay duration 💡 Recommended Use · Timeframe: 5-minute · Market: Bitcoin (BTC/USD, BTC/USDT) · Best Conditions: Trending markets with clear directional bias · Risk Profile: Medium to High (due to cryptocurrency volatility) ⚠️ Important Notes · This strategy is designed for Bitcoin but can be tested on other cryptocurrencies · Always backtest and forward test before live trading · Adjust position sizing according to your risk tolerance · Market conditions may affect performance - regularly review and optimize parameters 📊 Performance Monitoring The strategy includes a comprehensive status label showing: · Current ADX value and condition · MACD status · ATR percentage and volatility condition · RSI value · Current day and time filter status · Supertrend direction · Active signal (if any) 🔄 Strategy Reset Logic The strategy automatically resets all counters and averages after positions are closed, ensuring clean state management for each new trade cycle. For more information telegram @Salt_88Strategia Pine Script®od Mital13678