Support and Resistance Entry/ExitThis Pine Script strategy uses Support and Resistance levels for entry and exit:
Buy Signal: Enter a long position when the price breaks above the Resistance (pivotHigh).
Sell Signal: Enter a short position when the price breaks below the Support (pivotLow).
Exit Conditions:
Exit the long position when the price hits the Support.
Exit the short position when the price hits the Resistance.
지표 및 전략
Estrategia EMA + RSIElser Senior Strategy: A Precise Approach to Profitable Trading
The Elser Senior strategy is designed for traders looking to take advantage of the best market opportunities with a robust technical approach. Using a combination of Exponential Moving Averages (EMA) and the Relative Strength Index (RSI), this strategy identifies key entry and exit points, allowing you to maximize profits and minimize risks.
Short and Long EMAs: Accurately detect the market trend, providing clear buy and sell signals.
RSI: Filters out false breakouts, focusing on overbought and oversold levels for more informed decision-making.
Customizable Stop Loss and Take Profit: Protects your capital with risk management settings tailored to your needs. Set a personalized Stop Loss and TP/SL ratio, optimizing your chances of success.
This strategy works across the most popular timeframes: 15 minutes, 1 hour, 4 hours, and 1 day, allowing you to adapt to different trading styles, from intraday to long-term positions.
Ideal for Forex, Indices, Commodities, and Cryptocurrencies, the Elser Senior Strategy has been crafted for serious traders seeking consistency and reliability in their operations. With a clear and easy-to-follow structure, it is perfect for both novice and experienced traders.
Follow the signals, optimize your risk management, and achieve successful trading with Elser Senior!
Malama's ScalpingMalama's Scalping Strategy Description
Purpose
"Malama's Scalping" is a strategy designed for traders who want to capitalize on short-term price movements in fast-moving markets. It identifies precise buy and sell opportunities by combining trend analysis, momentum, volume, volatility, and candlestick patterns. This script solves the problem of finding reliable entry and exit points in choppy or unpredictable markets, making it ideal for scalpers—traders who aim to profit from small, quick price changes—while offering built-in risk management through stop-loss and take-profit settings.
How It Works
The strategy uses a blend of popular technical indicators and custom logic to confirm trading signals:
Trend Direction: A 50-period Simple Moving Average (SMA) acts as a trend filter. If the price is above this line, it’s a bullish (buy-friendly) market; if below, it’s bearish (sell-friendly).
Momentum: The Relative Strength Index (RSI) measures price speed over 14 periods. It ensures the market isn’t overbought (RSI < 70) for buys or oversold (RSI > 30) for sells.
Volume: It compares current trading volume to a 20-period average to confirm strong market participation—only high-volume moves trigger signals.
Volatility: The Average True Range (ATR) over 14 periods checks if price swings are big enough (above a user-set minimum, default 2.0) to justify a trade.
Candlestick Patterns: Simple yet effective patterns (e.g., a bullish candle closing higher than the previous day’s close after opening lower) add confirmation to signals.
A buy or sell signal only triggers when all these conditions align, ensuring high-probability trades. Once a signal fires, the strategy automatically places trades with customizable stop-loss (e.g., 1% below entry) and take-profit (e.g., 2% above entry) levels.
How to Use It
Adding to TradingView: Open TradingView, go to the "Pine Editor" at the bottom, paste the script, and click "Add to Chart." You’ll see a blue trend line and buy/sell labels appear.
Configuring Settings: Adjust inputs in the "Settings" menu:
Trend Length (50): Increase for smoother trends, decrease for faster signals.
RSI Length (14): Tweak for sensitivity to momentum.
Stop Loss (1%) and Take Profit (2%): Set based on your risk tolerance.
Volume Length (20): Adjust to filter volume strength.
Volatility Length (14) and Minimum Volatility (2.0): Fine-tune for your asset (e.g., higher for volatile stocks like TSLA).
Interpreting Signals:
A green "Buy" label below a bar means enter a long position.
A red "Sell" label above a bar means enter a short position.
Watch the blue trend line to gauge the bigger picture.
Tips for Beginners: Start with the default settings on a 1- or 5-minute chart for scalping. Test it on a demo account first to get comfortable with the signals.
For Pros: Pair it with your favorite indicators (e.g., Bollinger Bands) or adjust the ATR minimum for specific markets. Use backtesting in TradingView’s "Strategy Tester" to optimize settings.
Originality
What makes "Malama's Scalping" stand out is its multi-filter approach. Unlike basic strategies relying on one or two indicators, it demands agreement across trend, momentum, volume, volatility, and candlestick patterns—reducing false signals and boosting confidence. The built-in automation with customizable risk management also sets it apart, offering a hands-off option for scalpers who want precision without constant monitoring. Plus, its flexibility (e.g., adjustable volatility for stocks like TSLA) makes it adaptable to various assets and timeframes, a rarity in scalping tools.
This strategy bridges the gap between simplicity for beginners and robustness for pros, delivering a unique, all-in-one scalping solution.
Supply & Demand Zones + Order Block (Pro Fusion) - Auto Order Strategy Title:
Smart Supply & Demand Zones + Order Block Auto Strategy with ScalpPro (Buy-Focused)
📄 Strategy Description:
This strategy combines the power of Supply & Demand Zone analysis, Order Block detection, and an enhanced Scalp Pro momentum filter, specifically designed for automated decision-making based on high-volume breakouts.
✅ Key Features:
Auto Entry (Buy Only) Based on Breakouts
Automatically enters a Buy position when the price breaks out of a valid demand zone, confirmed by EMA 50 trend and volume spike.
Order Block Logic
Identifies bullish and bearish order blocks using consecutive candle structures and significant price movement.
Dynamic Stop Loss & Trailing Stop
Implements a trailing stop once price moves in profit, along with static initial stop loss for risk management.
Clear Visual Labels & Alerts
Displays BUY/SELL, Demand/Supply, and Order Block labels directly on the chart. Alerts trigger on valid breakout signals.
Scalp Pro Momentum Filter (Optimized)
Uses a modified MACD-style momentum indicator to confirm trend strength and filter out weak signals.
Crypto MA Cross StrategyBuy with MA crossover. Take profit when price reaches your percentage target. Stops at defined percentage below the buy price
5-Min EMA (5 & 20) + RSI + MACD StrategyThis strategy uses a combination of Exponential Moving Averages (EMA), Relative Strength Index (RSI), and the Moving Average Convergence Divergence (MACD) to identify potential buy (bullish) and sell (bearish) signals on a 5-minute intraday chart_______________By Million mantra Telugu
SPY Frequent Trading Strategythis is my SPY long term trading strategy:
entry if all conditions are met:
5 day rs is below 30
5 day rsi reading is down for the third day in a row
5 day rsi was below 60 three trading days ago
the close is higher than the 200 day moving average
exit when the 5 day rsi is above 50
I want to convert it into a strategy that trades more frequently, so adjust the rules so that it willl be taking multiple trades a week. and build it in pine script
Adaptive ROC-Based Trading Strategy
Developed a quantitative trading strategy leveraging Rate of Change (ROC) and RSI for momentum-based entries.
Implements adaptive ROC thresholds to filter noise and enhance signal accuracy.
Dynamically adjusts position entries using a hybrid mean-reversion and trend-following approach.
Integrates Cobra Metrics for performance visualization, enabling real-time strategy evaluation.
Optimized for efficient execution and minimal computational overhead in TradingView.
Let me know if you want to highlight specific improvements or add more detail!
Enhanced MA and RSI StrategyOverview: Trend following is a strategy that attempts to capture gains through the analysis of an asset's momentum in a particular direction. One of the simplest and most effective ways to implement a trend-following strategy is using moving averages.
Key Components
Indicators Used:
Moving Averages: Typically, a combination of a short-term and a long-term moving average (e.g., 50-day and 200-day simple moving averages).
Entry Signals:
Buy Signal: When the short-term moving average crosses above the long-term moving average (Golden Cross).
Sell Signal: When the short-term moving average crosses below the long-term moving average (Death Cross).
Exit Signals:
Close the position when the opposite signal occurs (i.e., sell when a death cross happens after a buy).
Risk Management:
Set stop-loss orders below the most recent swing low (for long positions) or above the swing high (for short positions).
Use a risk-to-reward ratio of at least 1:2.
Example of the Strategy in Action
Assumptions:
We will use a 50-day moving average as the short-term and a 200-day moving average as the long-term.
Buy Signal Example:
Date: March 1, 2023
Short MA (50-day): $100
Long MA (200-day): $98
Action: Buy when the 50-day MA crosses above the 200-day MA.
Sell Signal Example:
Date: June 1, 2023
Short MA (50-day): $120
Long MA (200-day): $119
Action: Sell when the 50-day MA crosses below the 200-day MA.
Advantages of the Strategy
Simplicity: Easy to understand and implement.
Objective: Removes emotional decision-making by relying on predefined
My scriptDeveloped a quantitative trading strategy leveraging Rate of Change (ROC) and RSI for momentum-based entries.
Implements adaptive ROC thresholds to filter noise and enhance signal accuracy.
Dynamically adjusts position entries using a hybrid mean-reversion and trend-following approach.
Integrates Cobra Metrics for performance visualization, enabling real-time strategy evaluation.
Optimized for efficient execution and minimal computational overhead in TradingView.
Let me know if you want to highlight specific improvements or add more detail!
BTC Macro Liquidity StrategyProvides a trading strategy for Bitcoin based on US Liquidity. Goes long when US liquidity goes above the US liquidity 30 day SMA.
EMA Supertrend StrategyAERVA EMA Supertrend Strategy
Original TradingView Script for Trend-following Strategy with Buy/Sell Signals
This strategy uses a combination of Exponential Moving Averages (EMA), Supertrend, and Fibonacci to identify potential Buy and Sell signals. The strategy focuses on detecting price action with two consecutive green candles crossing above the 200 EMA for a buy signal and two consecutive red candles crossing below the 200 EMA for a sell signal.
Key Components:
50 EMA and 200 EMA: Used to identify the trend and signal potential reversals or continuations.
Supertrend: Helps visualize the trend direction and smooths out price movements.
Fibonacci: Adds an additional layer of confluence for trade entries.
Buy Condition: A buy signal is triggered when two consecutive green candles cross above the 200 EMA.
Sell Condition: A sell signal is triggered when two consecutive red candles cross below the 200 EMA.
Features:
Buy/Sell Signals: Clear visual cues on the chart, with arrows and labels marking the entry points.
Supertrend: Displays green/red trends to help confirm the overall market direction.
Fibonacci: Plotting Fibonacci levels to support your decision-making for potential trade setups.
Risk Management & Backtesting: This script supports backtesting within the TradingView environment, and the strategy includes realistic commission and slippage parameters to reflect more accurate trade results.
The script is designed for traders who want a clear and systematic approach to identifying potential trend-following trade opportunities using a combination of classic technical indicators and price action.
Hashtags:
#AERVA #EMA #Supertrend #TradingStrategy #TechnicalAnalysis #TrendFollowing #BuyAndSellSignals #StockTrading #CryptoTrading #ForexTrading #TradingView #Backtesting #MarketTrends #Fibonacci #TechnicalIndicators #PriceAction #SwingTrading #DayTrading #TradingSystem #CustomStrategy #PineScript
Strategy Stats [presentTrading]Hello! it's another weekend. This tool is a strategy performance analysis tool. Looking at the TradingView community, it seems few creators focus on this aspect. I've intentionally created a shared version. Welcome to share your idea or question on this.
█ Introduction and How it is Different
Strategy Stats is a comprehensive performance analytics framework designed specifically for trading strategies. Unlike standard strategy backtesting tools that simply show cumulative profits, this analytics suite provides real-time, multi-timeframe statistical analysis of your trading performance.
Multi-timeframe analysis: Automatically tracks performance metrics across the most recent time periods (last 7 days, 30 days, 90 days, 1 year, and 4 years)
Advanced statistical measures: Goes beyond basic metrics to include Information Coefficient (IC) and Sortino Ratio
Real-time feedback: Updates performance statistics with each new trade
Visual analytics: Color-coded performance table provides instant visual feedback on strategy health
Integrated risk management: Implements sophisticated take profit mechanisms with 3-step ATR and percentage-based exits
BTCUSD Performance
The table in the upper right corner is a comprehensive performance dashboard showing trading strategy statistics.
Note: While this presentation uses Vegas SuperTrend as the underlying strategy, this is merely an example. The Stats framework can be applied to any trading strategy. The Vegas SuperTrend implementation is included solely to demonstrate how the analytics module integrates with a trading strategy.
⚠️ Timeframe Limitations
Important: TradingView's backtesting engine has a maximum storage limit of 10,000 bars. When using this strategy stats framework on smaller timeframes such as 1-hour or 2-hour charts, you may encounter errors if your backtesting period is too long.
Recommended Timeframe Usage:
Ideal for: 4H, 6H, 8H, Daily charts and above
May cause errors on: 1H, 2H charts spanning multiple years
Not recommended for: Timeframes below 1H with long history
█ Strategy, How it Works: Detailed Explanation
The Strategy Stats framework consists of three primary components: statistical data collection, performance analysis, and visualization.
🔶 Statistical Data Collection
The system maintains several critical data arrays:
equityHistory: Tracks equity curve over time
tradeHistory: Records profit/loss of each trade
predictionSignals: Stores trade direction signals (1 for long, -1 for short)
actualReturns: Records corresponding actual returns from each trade
For each closed trade, the system captures:
float tradePnL = strategy.closedtrades.profit(tradeIndex)
float tradeReturn = strategy.closedtrades.profit_percent(tradeIndex)
int tradeType = entryPrice < exitPrice ? 1 : -1 // Direction
🔶 Performance Metrics Calculation
The framework calculates several key performance metrics:
Information Coefficient (IC):
The correlation between prediction signals and actual returns, measuring forecast skill.
IC = Correlation(predictionSignals, actualReturns)
Where Correlation is the Pearson correlation coefficient:
Correlation(X,Y) = (nΣXY - ΣXY) / √
Sortino Ratio:
Measures risk-adjusted return focusing only on downside risk:
Sortino = (Avg_Return - Risk_Free_Rate) / Downside_Deviation
Where Downside Deviation is:
Downside_Deviation = √
R_i represents individual returns, T is the target return (typically the risk-free rate), and n is the number of observations.
Maximum Drawdown:
Tracks the largest percentage drop from peak to trough:
DD = (Peak_Equity - Trough_Equity) / Peak_Equity * 100
🔶 Time Period Calculation
The system automatically determines the appropriate number of bars to analyze for each timeframe based on the current chart timeframe:
bars_7d = math.max(1, math.round(7 * barsPerDay))
bars_30d = math.max(1, math.round(30 * barsPerDay))
bars_90d = math.max(1, math.round(90 * barsPerDay))
bars_365d = math.max(1, math.round(365 * barsPerDay))
bars_4y = math.max(1, math.round(365 * 4 * barsPerDay))
Where barsPerDay is calculated based on the chart timeframe:
barsPerDay = timeframe.isintraday ?
24 * 60 / math.max(1, (timeframe.in_seconds() / 60)) :
timeframe.isdaily ? 1 :
timeframe.isweekly ? 1/7 :
timeframe.ismonthly ? 1/30 : 0.01
🔶 Visual Representation
The system presents performance data in a color-coded table with intuitive visual indicators:
Green: Excellent performance
Lime: Good performance
Gray: Neutral performance
Orange: Mediocre performance
Red: Poor performance
█ Trade Direction
The Strategy Stats framework supports three trading directions:
Long Only: Only takes long positions when entry conditions are met
Short Only: Only takes short positions when entry conditions are met
Both: Takes both long and short positions depending on market conditions
█ Usage
To effectively use the Strategy Stats framework:
Apply to existing strategies: Add the performance tracking code to any strategy to gain advanced analytics
Monitor multiple timeframes: Use the multi-timeframe analysis to identify performance trends
Evaluate strategy health: Review IC and Sortino ratios to assess predictive power and risk-adjusted returns
Optimize parameters: Use performance data to refine strategy parameters
Compare strategies: Apply the framework to multiple strategies to identify the most effective approach
For best results, allow the strategy to generate sufficient trade history for meaningful statistical analysis (at least 20-30 trades).
█ Default Settings
The default settings have been carefully calibrated for cryptocurrency markets:
Performance Tracking:
Time periods: 7D, 30D, 90D, 1Y, 4Y
Statistical measures: Return, Win%, MaxDD, IC, Sortino Ratio
IC color thresholds: >0.3 (green), >0.1 (lime), <-0.1 (orange), <-0.3 (red)
Sortino color thresholds: >1.0 (green), >0.5 (lime), <0 (red)
Multi-Step Take Profit:
ATR multipliers: 2.618, 5.0, 10.0
Percentage levels: 3%, 8%, 17%
Short multiplier: 1.5x (makes short take profits more aggressive)
Stop loss: 20%
RSI Pro+ (Bear market, financial crisis and so on EditionIn markets defined by volatility, fear, and uncertainty – the battlegrounds of bear markets and financial crises – you need tools forged in resilience. Introducing RSI Pro+, a strategy built upon a legendary indicator born in 1978, yet engineered with modern visual clarity to remain devastatingly effective even in the chaotic financial landscapes of 3078.
This isn't about complex algorithms predicting the unpredictable. It's about harnessing the raw, time-tested power of the Relative Strength Index (RSI) to identify potential exhaustion points and capitalize on oversold conditions. RSI Pro+ cuts through the noise, providing clear, actionable signals when markets might be poised for a relief bounce or reversal.
Core Technology (The 1978 Engine):
RSI Crossover Entry: The strategy initiates a LONG position when the RSI (default period 11) crosses above a user-defined low threshold (default 30). This classic technique aims to enter when selling pressure may be waning, offering potential entry points during sharp downturns or periods of consolidation after a fall.
Modern Enhancements (The 3078 Cockpit):
RSI Pro+ isn't just about the signal; it's about providing a professional-grade visual experience directly on your chart:
Entry Bar Highlight: A subtle background flash on the chart signals the exact bar where the RSI crossover condition is met, alerting you to potential entry opportunities.
Trade Bar Coloring: Once a trade is active, the price bars are subtly colored, giving you immediate visual confirmation that the strategy is live in the market.
Entry Price Line: A clear, persistent line marks your exact average entry price for the duration of the trade, serving as a crucial visual anchor.
Take Profit Line: Your calculated Take Profit target is plotted as a distinct line, keeping your objective clearly in sight.
Custom Entry Marker: A precise shape (▲) appears below the bar where the trade entry was actually executed, pinpointing the start of the position.
On-Chart Info Table (HUD): A clean, customizable Heads-Up Display appears when a trade is active, showing vital information at a glance:
Entry Price: Your position's average cost basis.
TP Target: The calculated price level for your Take Profit exit.
Current PnL%: Real-time Profit/Loss percentage for the open trade.
Full Customization: Nearly every aspect is configurable via the settings menu:
RSI Period & Crossover Level
Take Profit Percentage
Toggle ALL visual enhancements on/off individually
Position the Info Table wherever you prefer on the chart.
How to Use RSI Pro+:
Add to Chart: Apply the "RSI Pro+ (Bear market...)" strategy to your TradingView chart. Ensure any previous versions are removed.
Access Settings: Click the cogwheel icon (⚙️) next to the strategy name on your chart.
Configure Inputs (Crucial Step):
RSI Crossover Level: This is key. The default (30) targets standard oversold conditions. In severe downturns, you might experiment with lower levels (e.g., 25, 20) or higher ones (e.g., 40) depending on the asset and timeframe. Observe where RSI(11) typically bottoms out on your chart.
Take Profit Percentage (%): Define your desired profit target per trade (e.g., enter 0.5 for 0.5%, 1.0 for 1%). The default is a very small 0.11%.
RSI Period: While default is 11, you can adjust this (e.g., the standard 14).
Visual Enhancements: Enable or disable the visual features (background highlights, bar coloring, lines, markers, table) according to your preference using the checkboxes. Adjust table position.
Observe & Backtest: Watch how the strategy behaves on your chosen asset and timeframe. Use TradingView's Strategy Tester to analyze historical performance based on your settings. No strategy works perfectly everywhere; testing is essential.
Important Considerations:
Risk Management: This specific script version focuses on a Take Profit exit. It does not include an explicit Stop Loss. You MUST manage risk through appropriate position sizing, potentially adding a Stop Loss manually, or by modifying the script.
Oversold ≠ Reversal: An RSI crossover is an indicator of potential exhaustion, not a guarantee of a price reversal.
Fixed TP: A fixed percentage TP ensures small wins but may exit before larger potential moves.
Backtesting Limitations: Past performance does not guarantee future results.
RSI Pro+ strips away complexity to focus on a robust, time-honored principle, enhanced with modern visuals for the discerning trader navigating today's (and tomorrow's) challenging markets
High-Win Trend & Momentum StrategyStrategy created by team Narayan Ventures. Details are below for reference.
✅ Trend-Following (EMA-Based Entries)
✅ Momentum Confirmation (RSI & MACD)
✅ ATR-Based Dynamic Stop-Loss
✅ Risk-Reward Ratio (1:1, 1:2 or 1:3, adjustable)
✅ Backtest Results Display
MACD + RSI + ADX + EMA Strategy PROThis strategy combines MACD crossovers, RSI momentum, ADX trend strength, EMA trend bias, and ATR-based filters to generate high-quality entries. It includes risk-based position sizing, trailing stops, and optional higher-timeframe confirmation for smarter, cleaner trades. Great for crypto, forex, and trending markets on intraday timeframes.
Estrategia de Bitcoin con 5 Rangos de Precio# 🚀 "Bitcoin Dynamic Ranges" Strategy 🚀
## Why will this strategy make you stand out in the market?
This revolutionary Bitcoin strategy combines **five specific price ranges** with **smart capital allocation** and an **automatic profit protection system**, designed to maximize your profits while reducing risk.
### ✅ Main Features:
1. **Inverse Capital Allocation** - Higher investment at low prices, lower at high prices:
- Lower ranges: 30% of your capital
- Intermediate ranges: 25%, 20%, 15%
- Higher ranges: only 10% of your capital
2. **Validation every 8 hours** - No need to be glued to the screen: the strategy automatically checks entry conditions three times a day.
3. **Smart Trailing Stop Loss** - Automatically protects your profits:
- Triggered when the price rises $5,000 above your entry point
- Dynamically adjusts as the price continues to rise
- Always maintains $1,000 as a safety margin
4. **Buy at Lows** - The strategy automatically identifies when the price falls below all your ranges, allowing you to buy at the best moments.
### 🔍 How does it work?
Imagine you buy Bitcoin at $50,000. When the price rises to $55,000, a stop loss is automatically triggered at $54,000. If the price continues to rise to $60,000, your stop loss is adjusted to $59,000, ensuring you capture at least $9,000 of profit, no matter what happens.
### 💰 Benefits:
- **Reduce risk** - Invest less capital at higher prices
- **Maximize profits** - Buy more when the price is low
- **Save time** - The strategy executes automatically
- **Preserves capital** - Trailing stop protects your profits
- **Fully customizable** - Adjust price ranges based on your market analysis
## 📊 Apply this strategy today and take your Bitcoin trading to the next level! 📊
PowerZone Trading StrategyExplanation of the PowerZone Trading Strategy for Your Users
The PowerZone Trading Strategy is an automated trading strategy that detects strong price movements (called "PowerZones") and generates signals to enter a long (buy) or short (sell) position, complete with predefined take profit and stop loss levels. Here’s how it works, step by step:
1. What is a PowerZone?
A "PowerZone" (PZ) is a zone on the chart where the price has shown a significant and consistent movement over a specific number of candles (bars). There are two types:
Bullish PowerZone (Bullish PZ): Occurs when the price rises consistently over several candles after an initial bearish candle.
Bearish PowerZone (Bearish PZ): Occurs when the price falls consistently over several candles after an initial bullish candle.
The code analyzes:
A set number of candles (e.g., 5, adjustable via "Periods").
A minimum percentage move (adjustable via "Min % Move for PowerZone") to qualify as a strong zone.
Whether to use the full candle range (highs and lows) or just open/close prices (toggle with "Use Full Range ").
2. How Does It Detect PowerZones?
Bullish PowerZone:
Looks for an initial bearish candle (close below open).
Checks that the next candles (e.g., 5) are all bullish (close above open).
Ensures the total price movement exceeds the minimum percentage set.
Defines a range: from the high (or open) to the low of the initial candle.
Bearish PowerZone:
Looks for an initial bullish candle (close above open).
Checks that the next candles are all bearish (close below open).
Ensures the total price movement exceeds the minimum percentage.
Defines a range: from the high to the low (or close) of the initial candle.
These zones are drawn on the chart with lines: green or white for bullish, red or blue for bearish, depending on the color scheme ("DARK" or "BRIGHT").
3. When Does It Enter a Trade?
The strategy waits for a breakout from the PowerZone range to enter a trade:
Buy (Long): When the price breaks above the high of a Bullish PowerZone.
Sell (Short): When the price breaks below the low of a Bearish PowerZone.
The position size is set to 100% of available equity (adjustable in the code).
4. Take Profit and Stop Loss
Take Profit (TP): Calculated as a multiple (adjustable via "Take Profit Factor," default 1.5) of the PowerZone height. For example:
For a buy, TP = Entry price + (PZ height × 1.5).
For a sell, TP = Entry price - (PZ height × 1.5).
Stop Loss (SL): Calculated as a multiple (adjustable via "Stop Loss Factor," default 1.0) of the PZ height, placed below the range for buys or above for sells.
5. Visualization on the Chart
PowerZones are displayed with lines on the chart (you can hide them with "Show Bullish Channel" or "Show Bearish Channel").
An optional info panel ("Show Info Panel") displays key levels: PZ high and low, TP, and SL.
You can also enable brief documentation on the chart ("Show Documentation") explaining the basic rules.
6. Alerts
The code generates automatic alerts in TradingView:
For a bullish breakout: "Bullish PowerZone Breakout - LONG!"
For a bearish breakdown: "Bearish PowerZone Breakdown - SHORT!"
7. Customization
You can tweak:
The number of candles to detect a PZ ("Periods").
The minimum percentage move ("Min % Move").
Whether to use highs/lows or just open/close ("Use Full Range").
The TP and SL factors.
The color scheme and what elements to display on the chart.
Practical Example
Imagine you set "Periods = 5" and "Min % Move = 2%":
An initial bearish candle appears, followed by 5 consecutive bullish candles.
The total move exceeds 2%.
A Bullish PowerZone is drawn with a high and low.
If the price breaks above the high, you enter a long position with a TP 1.5 times the PZ height and an SL equal to the height below.
The system executes the trade and exits automatically at TP or SL.
Conclusion
This strategy is great for capturing strong price movements after consolidation or momentum zones. It’s automated, visual, and customizable, making it useful for both beginner and advanced traders. Try it out and adjust it to fit your trading style!
Stop-Loss Buy Orderbuying and selling at a certain value to keep your portfolio never below a certain value. The idea is to make sure for example that if btc falls bellow 100k you sell, and if it goes up you buy. Never mind the small loss for each trade as you are selling fraction below 100k and buying at a 100k.
External Signals Strategy TesterExternal Signals Strategy Tester
This strategy is designed to help you backtest external buy/sell signals coming from another indicator on your chart. It is a flexible and powerful tool that allows you to simulate real trading based on signals generated by any indicator, using input.source connections.
🔧 How It Works
Instead of generating signals internally, this strategy listens to two external input sources:
One for buy signals
One for sell signals
These sources can be connected to the plots from another indicator (for example, custom indicators, signal lines, or logic-based plots).
To use this:
Add your indicator to the chart (it must be visible on the same pane as this strategy).
Open the settings of the strategy.
In the fields Buy Signal and Sell Signal, select the appropriate plot (line, value, etc.) from the indicator that represents the buy/sell logic.
The strategy will open positions when the selected buy signal crosses above 0, and sell signal crosses above 0.
This logic can be easily adapted by modifying the crossover rule inside the script if your signal style is different.
⚙️ Features Included
✅ Configurable trade direction:
You can choose whether to allow long trades, short trades, or both.
✅ Optional close on opposite signal:
When enabled, the strategy will exit the current position if an opposite signal appears.
✅ Optional full position reversal:
When enabled, the strategy will close the current position and immediately open an opposite one on the reverse signal.
✅ Risk Management Tools:
You can define:
Take Profit (TP): Position will be closed once the specified profit (in %) is reached.
Stop Loss (SL): Position will be closed if the price drops to the specified loss level (in %).
BreakEven (BE): Once the specified profit threshold is reached, the strategy will move the stop-loss to the entry price.
📌 If any of these values (TP, SL, BE) are set to 0, the feature is disabled and will not be applied.
🧪 Best Use Cases
Backtesting signals from custom indicators, without rewriting the logic into a strategy.
Comparing the performance of different signal sources.
Testing external indicators with optional position management logic.
Validating strategies using external filters, oscillators, or trend signals.
📌 Final Notes
You can visualize where the strategy detected buy/sell signals using green/red markers on the chart.
All parameters are customizable through the strategy settings panel.
This strategy does not repaint, and it processes signals in real-time only (no lookahead bias).
Long Term Profitable Swing | AbbasA Story of a Profitable Swing Trading Strategy
Imagine you're sailing across the ocean, looking for the perfect wave to ride. Swing trading is quite similar—you're navigating the stock market, searching for the ideal moments to enter and exit trades. This strategy, created by Abbas, helps you find those waves and ride them effectively to profitable outcomes.
🌊 Finding the Perfect Wave (Entry)
Our journey begins with two simple signs that tell us a great trading opportunity is forming:
- Moving Averages: We use two lines that follow price trends—the faster one (EMA 16) reacts quickly to recent price moves, and the slower one (EMA 30) gives us a longer-term perspective. When the faster line crosses above the slower line, it's like a clear signal saying, "Hey! The wave is rising, and prices might move higher!"
- RSI Momentum: Next, we check a tool called the RSI, which measures momentum (how strongly prices are moving). If the RSI number is above 50, it means there's enough strength behind this rising wave to carry us forward.
When both signals appear together, that's our green light. It's time to jump on our surfboard and start riding this promising wave.
⚓ Safely Riding the Wave (Risk Management)
While we're riding this wave, we want to ensure we're safe from sudden surprises. To do this, we use something called the Average True Range (ATR), which measures how volatile (or bumpy) the price movements are:
- Stop-Loss: To avoid falling too hard, we set a safety line (stop-loss) 8 times the ATR below our entry price. This helps ensure we exit if the wave suddenly turns against us, protecting us from heavy losses.
- Take Profit: We also set a goal to exit the trade at 11 times the ATR above our entry. This way, we capture significant profits when the wave reaches a nice high point.
🌟 Multiple Rides, Bigger Adventures
This strategy allows us to take multiple positions simultaneously—like riding several waves at once, up to 5. Each trade we make uses only 10% of our trading capital, keeping risks manageable and giving us multiple opportunities to win big.
🗺️ Easy to Follow Settings
Here are the basic settings we use:
- Fast EMA**: 16
- Slow EMA**: 30
- RSI Length**: 9
- RSI Threshold**: 50
- ATR Length**: 21
- ATR Stop-Loss Multiplier**: 8
- ATR Take-Profit Multiplier**: 11
These settings are flexible—you can adjust them to better suit different markets or your personal trading style.
🎉 Riding the Waves of Success
This simple yet powerful swing trading approach helps you confidently enter trades, clearly know when to exit, and effectively manage your risk. It’s a reliable way to ride market waves, capture profits, and minimize losses.
Happy trading, and may you find many profitable waves to ride! 🌊✨
Please test, and take into account that it depends on taking multiple longs within the swing, and you only get to invest 25/30% of your equity.
SPY Enhanced Short Signals – Fixed1.54% profit per trade
SPY Enhanced Short Signals – Fixed is a 5-minute strategy for SPY that triggers short entries when price nears resistance under confirmed bearish conditions (RSI below 45, MACD momentum, and volume spikes). It uses ATR-based dynamic exits to manage risk with adaptive take profit and stop loss settings. Customize inputs for optimal performance.