back test indicatorback test indicator
Как просто и быстро переделать внешний (comunity scripts) индикатор на TradingView в стратегию на PineScript для бэктестов индикатора и возможной торговли на TradingView Webhooks. С минимальным объемом программирования на PineScript. Даже если исходный код индикатора закрыт!
Göstergeler ve stratejiler
Anchored VWAP by DateMarks AVWAP on Chart with the date you choose. Helps to go through multiple stocks quickly. Gives a visual reference of relative strength.
Nordent Unlimited TurboCalculates rough estimation of the value of Nordnet's long/short unlimited turbo.
Configure values using the settings. After that add own scale to see the indicator over the actual course.
To separate scale for the indicator plot:
- Click the indicator's name on the chart.
- Choose "Pin to new right scale"
Supertrend + 2 EMAs Indicator with input by Natee L.What This Script Does:
Supertrend Calculation:
Uses an ATR-based Supertrend with a customizable multiplier and ATR length.
The trend is determined by the direction variable.
Exponential Moving Averages (EMA):
Computes two EMAs: EMA 20 (shorter-term) and EMA 50 (longer-term).
Uses these EMAs to determine trend direction.
Buy and Sell Conditions:
Buy Condition:
Price is above the Supertrend.
EMA 20 is above EMA 50.
Price is above both EMAs.
Sell Condition:
Price is below the Supertrend.
EMA 20 is below EMA 50.
Price is below both EMAs.
Buy/Sell Signal Plots:
Green BUY arrows appear below bars when buy conditions are met.
Red SELL arrows appear above bars when sell conditions are met.
Yield Spread OverlayAjoute directement, sur le graphique de la paire de devises Forex concernée, la différence entre les rendements obligataires à 10 ans des deux devises. Vous pouvez appliquer cette démarche aux paires impliquant la GBP, l’USD, l’EUR, le CAD, l’AUD, le CHF ou encore le JPY.
VWMA + Structure Break [ATR Filter]vwma structure break that will identify trend and structure break and still under development
M2SL/DXY RatioA custom financial ratio comparing:
Numerator: M2 Money Supply (M2SL)
U.S. monetary aggregate measuring cash, checking deposits, and easily convertible near money
Denominator: US Dollar Index (DXY)
Trade-weighted geometric mean of USD value against six major currencies
Multi-Time Period Charts with MidlineThe indicator creates boxes on your chart that represent higher timeframe price movements. For example, you can see daily or weekly ranges while trading on a smaller timeframe chart.
Ultimate Trend Strength Meter Using TechnoBloom’s IndicatorsOverview
The Ultimate Trend Strength Meter Using TechnoBloom’s Indicators is a powerful trend analysis tool developed using TechnoBloom’s proprietary indicators. This indicator helps traders assess trend strength, momentum, and potential reversals by combining three essential market factors:
• Market Participation Ratio (MPR) – Measures trader engagement and volume strength.
• Volume Weighted Moving Average (VWMO) – Confirms momentum and trend direction.
• Fibonacci-Based Support & Resistance – Identifies key reversal zones and breakout points.
⸻
Key Features:
✅ Color-Coded Trend Strength Meter:
• 🟢 Green – Strong Trend (High Confidence): High participation, strong momentum, and no major resistance.
• 🟡 Yellow – Weak Trend (Caution): Moderate participation, possible resistance ahead, and trend uncertainty.
• 🔴 Red – Reversal Risk / No Trend: Low market engagement, momentum uncertainty, and proximity to major Fibonacci levels.
✅ Eliminates False Signals & Weak Trends:
• Prevents choppy market entries by ensuring high-volume confirmation.
• Ideal for filtering fake breakouts and exhaustion phases.
✅ Works for All Trading Styles & Markets:
• Scalping (1m-5m), Day Trading (15m-1H), and Swing Trading (4H-Daily).
• Suitable for Forex, Stocks, Crypto, Indices, and Commodities (XAUUSD, US30, BTCUSD, etc.).
✅ Customizable for Any Strategy:
• Adjustable MPR thresholds, VWMO smoothing, and Fibonacci sensitivity.
• Built-in alerts notify traders when trend conditions change.
⸻
How to Use It:
1️⃣ Enter trades when the meter turns Green (Strong Trend) and aligns with your strategy.
2️⃣ Avoid or exit trades when it turns Red (Reversal Risk) to prevent unnecessary losses.
3️⃣ Use Yellow as a caution zone – wait for confirmation before making a move.
4️⃣ Combine with breakout strategies or support/resistance setups for high-probability entries.
⸻
About TechnoBlooms
TechnoBlooms is committed to developing high-precision trading indicators that enhance decision-making for traders across all markets. This tool is a result of our in-depth market research and algorithmic advancements to provide traders with an edge.
🚀 Upgrade your trading with the Ultimate Trend Strength Meter – Developed by TechnoBlooms! 🚀
TradZoo - EMA Crossover IndicatorDescription:
This EMA Crossover Trading Strategy is designed to provide precise Buy and Sell signals with confirmation, defined targets, and stop-loss levels, ensuring strong risk management. Additionally, a 30-candle gap rule is implemented to avoid frequent signals and enhance trade accuracy.
📌 Strategy Logic
✅ Exponential Moving Averages (EMAs):
Uses EMA 50 & EMA 200 for trend direction.
Buy signals occur when price action confirms EMA crossovers.
✅ Entry Confirmation:
Buy Signal: Occurs when either the current or previous candle touches the 200 EMA, and the next candle closes above the previous candle’s close.
Sell Signal: Occurs when either the current or previous candle touches the 200 EMA, and the next candle closes below the previous candle’s close.
✅ 30-Candle Gap Rule:
Prevents frequent entries by ensuring at least 30 candles pass before the next trade.
Improves signal quality and prevents excessive trading.
🎯 Target & Stop-Loss Calculation
✅ Buy Position:
Target: 2X the difference between the last candle’s close and the lowest low of the last 2 candles.
Stop Loss: The lowest low of the last 2 candles.
✅ Sell Position:
Target: 2X the difference between the last candle’s close and the highest high of the last 2 candles.
Stop Loss: The highest high of the last 2 candles.
📊 Visual Features
✅ Buy & Sell Signals:
Green Upward Arrow → Buy Signal
Red Downward Arrow → Sell Signal
✅ Target Levels:
Green Dotted Line: Buy Target
Red Dotted Line: Sell Target
✅ Stop Loss Levels:
Dark Red Solid Line: Stop Loss for Buy/Sell
💡 How to Use
🔹 Ideal for trend-following traders using EMAs.
🔹 Works best in volatile & trending markets (avoid sideways ranges).
🔹 Can be combined with RSI, MACD, or price action levels for added confluence.
🔹 Recommended timeframes: 1M, 5M, 15m, 1H, 4H, Daily (for best results).
🚀 Try this strategy and enhance your trading decisions with structured risk management!
Multi-Indicator Consensus Strategy buy and short using pinescript for tradingview. Use the following three indiccators to execute buy and short orders. 1. Liquidity weighted super trend, 2. trend signals with P and SL and 3. Enhanced wavetrend oscillator. Buy stocks when atleast two out three indicators gives a buy signal and short when two out of three indicatots gives a short signal.
Multi-Timeframe MACD Strategy ver 1.0Multi-Timeframe MACD Strategy: Enhanced Trend Trading with Customizable Entry and Trailing Stop
This strategy utilizes the Moving Average Convergence Divergence (MACD) indicator across multiple timeframes to identify strong trends, generate precise entry and exit signals, and manage risk with an optional trailing stop loss. By combining the insights of both the current chart's timeframe and a user-defined higher timeframe, this strategy aims to improve trade accuracy, reduce exposure to false signals, and capture larger market moves.
Key Features:
Dual Timeframe Analysis: Calculates and analyzes the MACD on both the current chart's timeframe and a user-selected higher timeframe (e.g., Daily MACD on a 1-hour chart). This provides a broader market context, helping to confirm trends and filter out short-term noise.
Configurable MACD: Fine-tune the MACD calculation with adjustable Fast Length, Slow Length, and Signal Length parameters. Optimize the indicator's sensitivity to match your trading style and the volatility of the asset.
Flexible Entry Options: Choose between three distinct entry types:
Crossover: Enters trades when the MACD line crosses above (long) or below (short) the Signal line.
Zero Cross: Enters trades when the MACD line crosses above (long) or below (short) the zero line.
Both: Combines both Crossover and Zero Cross signals, providing more potential entry opportunities.
Independent Timeframe Control: Display and trade based on the current timeframe MACD, the higher timeframe MACD, or both. This allows you to focus on the information most relevant to your analysis.
Optional Trailing Stop Loss: Implements a configurable trailing stop loss to protect profits and limit potential losses. The trailing stop is adjusted dynamically as the price moves in your favor, based on a user-defined percentage.
No Repainting: Employs lookahead=barmerge.lookahead_off in the request.security() function to prevent data leakage and ensure accurate backtesting and real-time signals.
Clear Visual Signals (Optional): Includes optional plotting of the MACD and Signal lines for both timeframes, with distinct colors for easy visual identification. These plots are for visual confirmation and are not required for the strategy's logic.
Suitable for Various Trading Styles: Adaptable to swing trading, day trading, and trend-following strategies across diverse markets (stocks, forex, cryptocurrencies, etc.).
Fully Customizable: All parameters are adjustable, including timeframes, MACD Settings, Entry signal type and trailing stop settings.
How it Works:
MACD Calculation: The strategy calculates the MACD (using the standard formula) for both the current chart's timeframe and the specified higher timeframe.
Trend Identification: The relationship between the MACD line, Signal line, and zero line is used to determine the current trend for each timeframe.
Entry Signals: Buy/sell signals are generated based on the selected "Entry Type":
Crossover: A long signal is generated when the MACD line crosses above the Signal line, and both timeframes are in agreement (if both are enabled). A short signal is generated when the MACD line crosses below the Signal line, and both timeframes are in agreement.
Zero Cross: A long signal is generated when the MACD line crosses above the zero line, and both timeframes agree. A short signal is generated when the MACD line crosses below the zero line and both timeframes agree.
Both: Combines Crossover and Zero Cross signals.
Trailing Stop Loss (Optional): If enabled, a trailing stop loss is set at a specified percentage below (for long positions) or above (for short positions) the entry price. The stop-loss is automatically adjusted as the price moves favorably.
Exit Signals:
Without Trailing Stop: Positions are closed when the MACD signals reverse according to the selected "Entry Type" (e.g., a long position is closed when the MACD line crosses below the Signal line if using "Crossover" entries).
With Trailing Stop: Positions are closed if the price hits the trailing stop loss.
Backtesting and Optimization: The strategy automatically backtests on the chart's historical data, allowing you to assess its performance and optimize parameters for different assets and timeframes.
Example Use Cases:
Confirming Trend Strength: A trader on a 1-hour chart sees a bullish MACD crossover on the current timeframe. They check the MTF MACD strategy and see that the Daily MACD is also bullish, confirming the strength of the uptrend.
Filtering Noise: A trader using a 15-minute chart wants to avoid false signals from short-term volatility. They use the strategy with a 4-hour higher timeframe to filter out noise and only trade in the direction of the dominant trend.
Dynamic Risk Management: A trader enters a long position and enables the trailing stop loss. As the price rises, the trailing stop is automatically adjusted upwards, protecting profits. The trade is exited either when the MACD reverses or when the price hits the trailing stop.
Disclaimer:
The MACD is a lagging indicator and can produce false signals, especially in ranging markets. This strategy is for educational and informational purposes only and should not be considered financial advice. Backtest and optimize the strategy thoroughly, combine it with other technical analysis tools, and always implement sound risk management practices before using it with real capital. Past performance is not indicative of future results. Conduct your own due diligence and consider your risk tolerance before making any trading decisions.
Non-Repainting EMA CrossoverSimple non-repainting TradingView indicator in Pine Script that generates buy and sell signals based on the EMA crossover strategy. It only triggers signals when the candle closes, ensuring no repainting.
2_plotCloseScript// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © tvt1
//@version=6
indicator("2_plotCloseScript")
plot(close)
plot(close)// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © tvt1
//@version=6
indicator("2_plotCloseScript")
plot(close)
plot(close)
Higher High & Lower Low Detector (Non-Repainting)Higher High & Lower Low Non-Repainting Indicator
How It Works
✅ Higher High (HH) – When the new swing high is higher than the previous high.
✅ Higher Low (HL) – When the new swing low is higher than the previous low.
✅ Lower High (LH) – When the new swing high is lower than the previous high.
✅ Lower Low (LL) – When the new swing low is lower than the previous low.
Why This Indicator Doesn't Repaint
✅ No future data is used – Swing points are only confirmed once a candle closes.
✅ No use of security() function – Ensuring no lookahead bias.
✅ Fixed labels on chart – Once an HH, HL, LH, or LL appears, it stays.
Quantum Moving Average - QMA (TechnoBlooms)The Quantum Moving Average (QMA) is an innovative and advanced Moving Average model designed for traders seeking a more adaptive and precise trend analysis. Unlike traditional moving averages, it integrates a multi-timeframe approach, dynamically selecting and weighting four different timeframes to provide traders with more accurate and reliable trend prediction.
Key Features
Multi-Timeframe averaging
QMA calculates its value based on four different timeframes, offering a broader perspective on market trends.
Dynamic Weighting Mechanism
Unlike fixed weight Moving Averages, QMA assigns adaptive weightage to the selected timeframes, enhancing its responsiveness.
Superior Trend Detection
Provides a smoother and more reliable trend curve reducing noise or false signals.
Enhanced Market Analysis
QMA helps traders identify trend shifts earlier by incorporating multi-timeframe confluence.
Multi-Timeframe Parabolic SAR Strategy ver 1.0Multi-Timeframe Parabolic SAR Strategy (MTF PSAR) - Enhanced Trend Trading
This strategy leverages the power of the Parabolic SAR (Stop and Reverse) indicator across multiple timeframes to provide robust trend identification, precise entry/exit signals, and dynamic trailing stop management. By combining the insights of both the current chart's timeframe and a user-defined higher timeframe, this strategy aims to improve trading accuracy, reduce risk, and capture more significant market moves.
Key Features:
Dual Timeframe Analysis: Simultaneously analyzes the Parabolic SAR on the current chart and a higher timeframe (e.g., Daily PSAR on a 1-hour chart). This allows you to align your trades with the dominant trend and filter out noise from lower timeframes.
Configurable PSAR: Fine-tune the PSAR calculation with adjustable Start, Increment, and Maximum values to optimize sensitivity for your trading style and the asset's volatility.
Independent Timeframe Control: Choose to display and trade based on either or both the current timeframe PSAR and the higher timeframe PSAR. Focus on the most relevant information for your analysis.
Clear Visual Signals: Distinct colors for the current and higher timeframe PSAR dots provide a clear visual representation of potential entry and exit points.
Multiple Entry Strategies: The strategy offers flexible entry conditions, allowing you to trade based on:
Confirmation: Both current and higher timeframe PSAR signals agree and the current timeframe PSAR has just flipped direction. (Most conservative)
Current Timeframe Only: Trades based solely on the current timeframe PSAR, ideal for when the higher timeframe is less relevant or disabled.
Higher Timeframe Only: Trades based solely on the higher timeframe PSAR.
Dynamic Trailing Stop (PSAR-Based): Implements a trailing stop-loss based on the current timeframe's Parabolic SAR. This helps protect profits by automatically adjusting the stop-loss as the price moves in your favor. Exits are triggered when either the current or HTF PSAR flips.
No Repainting: Uses lookahead=barmerge.lookahead_off in the security() function to ensure that the higher timeframe data is accessed without any data leakage, preventing repainting issues.
Fully Configurable: All parameters (PSAR settings, higher timeframe, visibility, colors) are adjustable through the strategy's settings panel, allowing for extensive customization and optimization.
Suitable for Various Trading Styles: Applicable to swing trading, day trading, and trend-following strategies across various markets (stocks, forex, cryptocurrencies, etc.).
How it Works:
PSAR Calculation: The strategy calculates the standard Parabolic SAR for both the current chart's timeframe and the selected higher timeframe.
Trend Identification: The direction of the PSAR (dots below price = uptrend, dots above price = downtrend) determines the current trend for each timeframe.
Entry Signals: The strategy generates buy/sell signals based on the chosen entry strategy (Confirmation, Current Timeframe Only, or Higher Timeframe Only). The Confirmation strategy offers the highest probability signals by requiring agreement between both timeframes.
Trailing Stop Exit: Once a position is entered, the strategy uses the current timeframe PSAR as a dynamic trailing stop. The stop-loss is automatically adjusted as the PSAR dots move, helping to lock in profits and limit losses. The strategy exits when either the Current or HTF PSAR changes direction.
Backtesting and Optimization: The strategy automatically backtests on the chart's historical data, allowing you to evaluate its performance and optimize the settings for different assets and timeframes.
Example Use Cases:
Trend Confirmation: A trader on a 1-hour chart observes a bullish PSAR flip on the current timeframe. They check the MTF PSAR strategy and see that the Daily PSAR is also bullish, confirming the strength of the uptrend and providing a high-probability long entry signal.
Filtering Noise: A trader on a 5-minute chart wants to avoid whipsaws caused by short-term price fluctuations. They use the strategy with a 1-hour higher timeframe to filter out noise and only trade in the direction of the dominant trend.
Dynamic Risk Management: A trader enters a long position and uses the current timeframe PSAR as a trailing stop. As the price rises, the PSAR dots move upwards, automatically raising the stop-loss and protecting profits. The trade is exited when the current (or HTF) PSAR flips to bearish.
Disclaimer:
The Parabolic SAR is a lagging indicator and can produce false signals, particularly in ranging or choppy markets. This strategy is intended for educational and informational purposes only and should not be considered financial advice. It is essential to backtest and optimize the strategy thoroughly, use it in conjunction with other technical analysis tools, and implement sound risk management practices before using it with real capital. Past performance is not indicative of future results. Always conduct your own due diligence and consider your risk tolerance before making any trading decisions.
Time of Day Background with Bar Count & TableDescription:
This indicator provides a comprehensive overview of market activity by dynamically displaying the time-of-day background and tracking bullish and bearish bar counts across different sessions. It also features a table summarizing the market performance for the last 7 days, segmented into four time-based sessions: Morning, Afternoon, Evening, and Night.
Key Features:
Time of Day Background:
The chart's background color changes based on the time of day:
Evening (12 AM - 6 AM) is shaded blue.
Morning (6 AM - 12 PM) is shaded aqua.
Afternoon (12 PM - 6 PM) is shaded yellow.
Night (6 PM - 12 AM) is shaded silver.
Bullish and Bearish Bar Counting:
It tracks the number of bullish (closing higher than opening) and bearish (closing lower than opening) candles.
The sum of the price differences (bullish minus bearish) for each session is displayed as a dynamic label, indicating overall market direction for each session.
Session Breakdown:
The chart is divided into four sessions, each lasting 6 hours (Morning, Afternoon, Evening, Night).
A new label is generated at the start of each session, indicating the bullish/bearish performance and the net difference in price movements for that session.
Historical Session Performance:
The indicator tracks and stores the performance for each session over the past 7 days.
A table is generated in the top-right corner of the chart, summarizing the performance for each session (Morning, Afternoon, Evening, Night) and the price changes for each of the past 7 days.
The values are color-coded to indicate positive (green) or negative (red) results.
Dynamic Table:
The table presents performance data for each time session over the past week with color-coded cells:
Green cells indicate positive performance.
Red cells indicate negative performance.
Empty cells represent no data for that session.
Use Case:
This indicator is useful for traders who want to track market activity and performance across different times of day and monitor how each session contributes to the overall market trend. It provides both visual insights (through background color) and numerical data (via the table) for better decision-making.
Settings:
The background color and session labels update automatically based on the time of day.
The table updates every day, tracking the performance of each session over the past week.
Session Swing HL + Midnight :)This is a script i made that basicly helps you fidn key levels to trade on okay :) GOOD LUCK kings
ORB Pro Indicator (Fixed)ORB strategy with signals for US open buy and sell and for false breakout. BETA mode