Hyperliquid ConnectorThis template can automate your Tradingview strategy on Hyperliquid's decentralized exchange.
지표 및 전략
QuantJazz Turbine Trader BETA v1.17QuantJazz Turbine Trader BETA v1.17 - Strategy Introduction and User Guide
Strategy Introduction
Welcome to the QuantJazz Turbine Trader BETA v1.17, a comprehensive trading strategy designed for TradingView. This strategy is built upon oscillator principles, drawing inspiration from the Turbo Oscillator by RedRox, and incorporates multiple technical analysis concepts including RSI, MFI, Stochastic oscillators, divergence detection, and an optional FRAMA (Fractal Adaptive Moving Average) filter.
The Turbine Trader aims to provide traders with a flexible toolkit for identifying potential entry and exit points in the market. It presents information through a main signal line oscillator, a histogram, and various visual cues like dots, triangles, and divergence lines directly on the indicator panel. The strategy component allows users to define specific conditions based on these visual signals to trigger automated long or short trades within the TradingView environment.
This guide provides an overview of the strategy's components, settings, and usage. Please remember that this is a BETA version (v1.17). While developed with care, it may contain bugs or behave unexpectedly.
LEGAL DISCLAIMER: QuantJazz makes no claims about the fitness or profitability of this tool. Trading involves significant risk, and you may lose all of your invested capital. All trading decisions made using this strategy are solely at the user's discretion and responsibility. Past performance is not indicative of future results. Always conduct thorough backtesting and risk assessment before deploying any trading strategy with real capital.
This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International.
Core Concepts and Visual Elements
The Turbine Trader indicator displays several components in its own panel below the main price chart:
1. Signal Line (Avg & Avg2): This is the primary oscillator. It's a composite indicator derived from RSI, MFI (Money Flow Index), and Stochastic calculations, smoothed using an EMA (Exponential Moving Average).
Avg: The faster smoothed signal line.
Avg2: The slower smoothed signal line.
Color Coding: The space between Avg and Avg2 is filled. The color (Neon Blue/gColor or Neon Purple/rColor) indicates the trend based on the relationship between Avg and Avg2. Blue suggests bullish momentum (Avg > Avg2), while Purple suggests bearish momentum (Avg2 > Avg).
Zero Line Crosses: Crossovers of the Avg line with the zero level can indicate shifts in momentum.
2. Histogram (resMfi): This histogram is based on smoothed and transformed MFI calculations (Fast MFI and Slow MFI).
Color Coding: Bars are colored Neon Blue (histColorUp) when above zero, suggesting bullish pressure, and Neon Purple (histColorDn) when below zero, suggesting bearish pressure. Transparency is applied.
Zero Line Crosses: Crossovers of the histogram with the zero level can signal potential shifts in money flow.
3. Reversal Points (Dots): Dots appear on the Signal Line (specifically on Avg2) when the color changes (i.e., Avg crosses Avg2).
Small Dots: Appear when a reversal occurs while the oscillator is in an "extreme" zone (below -60 for bullish reversals, above +60 for bearish reversals).
Large Dots: Appear when a reversal occurs outside of these extreme zones.
Colors: Blue (gRdColor) for bullish reversals (Avg crossing above Avg2), Purple (rRdColor) for bearish reversals (Avg crossing below Avg2).
4. Take Profit (TP) Signals (Triangles): Small triangles appear above (+120) or below (-120) the zero line.
Bearish Triangle (Down, Purple rTpColor): Suggests a potential exit point for long positions or an entry point for short positions, based on the oscillator losing upward momentum above the 50 level.
Bullish Triangle (Up, Blue gTpColor): Suggests a potential exit point for short positions or an entry point for long positions, based on the oscillator losing downward momentum below the -50 level.
5. Divergence Lines: The strategy automatically detects and draws potential regular and hidden divergences between the price action (highs/lows) and the Signal Line (Avg).
Regular Bullish Divergence (White bullDivColor line, ⊚︎ label): Price makes a lower low, but the oscillator makes a higher low. Suggests potential bottoming.
Regular Bearish Divergence (White bearDivColor line, ⊚︎ label): Price makes a higher high, but the oscillator makes a lower high. Suggests potential topping.
Hidden Bullish Divergence (bullHidDivColor line, ⊚︎ label): Price makes a higher low, but the oscillator makes a lower low. Suggests potential continuation of an uptrend.
Hidden Bearish Divergence (bearHidDivColor line, ⊚︎ label): Price makes a lower high, but the oscillator makes a higher high. Suggests potential continuation of a downtrend.
Delete Broken Divergence Lines: If enabled, newer divergence lines originating from a similar point will replace older ones.
6. Status Line: A visual bar at the top (95 to 105) and bottom (-95 to -105) of the indicator panel. Its color intensity reflects the confluence of signals:
Score Calculation: +1 if Avg > Avg2, +1 if Avg > 0, +1 if Histogram > 0.
Top Bar (Bullish): Bright Blue (gStatColor) if score is 3, Faded Blue if score is 2, Black otherwise.
Bottom Bar (Bearish): Bright Purple (rStatColor) if score is 0, Faded Purple if score is 1, Black otherwise.
Strategy Settings Explained
The strategy's behavior is controlled via the settings panel (gear icon).
1. Date Range:
Start Date, End Date: Define the period for backtesting. Trades will only occur within this range.
2. Optional Webhook Configuration: (For Automation)
3C Email Token, 3C Bot ID: Enter your 3Commas API credentials if you plan to automate trading using webhooks. The strategy generates JSON alert messages compatible with 3Commas. You can go ahead and just leave the text field as defaulted, "TOKEN HERE" / "BOT ID HERE" if not using any bot automations at this time. You can always come back later and automate it. More info can be made available from QuantJazz should you need automation assistance with custom indicators and trading strategies.
3. 🚀 Signal Line:
Turn On/Off: Show or hide the main signal lines (Avg, Avg2).
gColor, rColor: Set the colors for bullish and bearish signal line states.
Length (RSI): The lookback period for the internal RSI calculation. Default is 2.
Smooth (EMA): The smoothing period for the EMAs applied to the composite signal. Default is 9.
RSI Source: The price source used for RSI calculation (default: close).
4. 📊 Histogram:
Turn On/Off: Show or hide the histogram.
histColorUp, histColorDn: Set the colors for positive and negative histogram bars.
Length (MFI): The base lookback period for MFI calculations. Default is 5. Fast and Slow MFI lengths are derived from this.
Smooth: Smoothing period for the final histogram output. Default is 1 (minimal smoothing).
5.💡 Other:
Show Divergence Line: Toggle visibility of regular divergence lines.
bullDivColor, bearDivColor: Colors for regular divergence lines.
Show Hidden Divergence: Toggle visibility of hidden divergence lines.
bullHidDivColor, bearHidDivColor: Colors for hidden divergence lines.
Show Status Line: Toggle visibility of the top/bottom status bars.
gStatColor, rStatColor: Colors for the status line bars.
Show TP Signal: Toggle visibility of the TP triangles.
gTpColor, rTpColor: Colors for the TP triangles.
Show Reversal points: Toggle visibility of the small/large dots on the signal line.
gRdColor, rRdColor: Colors for the reversal dots.
Delete Broken Divergence Lines: Enable/disable automatic cleanup of older divergence lines.
6. ⚙️ Strategy Inputs: (CRITICAL for Trade Logic)
This section defines which visual signals trigger trades. Each signal (Small/Large Dots, TP Triangles, Bright Bars, Signal/Histogram Crosses, Signal/Histogram Max/Min, Divergences) has a dropdown menu:
Long: This signal can trigger a long entry.
Short: This signal can trigger a short entry.
Disabled: This signal will not trigger any entry.
Must Be True Checkbox: If checked for a specific signal, that signal's condition must be met for any trade (long or short, depending on the dropdown selection for that signal) to be considered. Multiple "Must Be True" conditions act as AND logic – all must be true simultaneously.
How it Works:
The strategy first checks if all conditions marked as "Must Be True" (for the relevant trade direction - long or short) are met.
If all "Must Be True" conditions are met, it then checks if at least one of the conditions not marked as "Must Be True" (and set to "Long" or "Short" respectively) is also met.
If both steps pass, and other filters (like Date Range, FRAMA) allow, an entry order is placed.
Example: If "Large Bullish Dot" is set to "Long" and "Must Be True" is checked, AND "Bullish Divergence" is set to "Long" but "Must Be True" is not checked: A long entry requires BOTH the Large Bullish Dot AND the Bullish Divergence to occur simultaneously. If "Large Bullish Dot" was "Long" but not "Must Be True", then EITHER a Large Bullish Dot OR a Bullish Divergence could trigger a long entry (assuming no other "Must Be True" conditions are active).
Note: By default, the strategy is configured for long-only trades (strategy.risk.allow_entry_in(strategy.direction.long)). To enable short trades, you would need to comment out or remove this line in the Pine Script code and configure the "Strategy Inputs" accordingly.
7. 💰 Take Profit Settings:
Take Profit 1/2/3 (%): The percentage above the entry price (for longs) or below (for shorts) where each TP level is set. (e.g., 1.0 means 1% profit).
TP1/2/3 Percentage: The percentage of the currently open position to close when the corresponding TP level is hit. The percentages should ideally sum to 100% if you intend to close the entire position across the TPs.
Trailing Stop (%): The percentage below the highest high (for longs) or above the lowest low (for shorts) reached after the activation threshold, where the stop loss will trail.
Trailing Stop Activation (%): The minimum profit percentage the trade must reach before the trailing stop becomes active.
Re-entry Delay (Bars): The minimum number of bars to wait after a TP is hit before considering a re-entry. Default is 1 (allows immediate re-entry on the next bar if conditions met).
Re-entry Price Offset (%): The percentage the price must move beyond the previous TP level before a re-entry is allowed. This prevents immediate re-entry if the price hovers around the TP level.
8. 📈 FRAMA Filter: (Optional Trend Filter)
Use FRAMA Filter: Enable or disable the filter.
FRAMA Source, FRAMA Period, FRAMA Fast MA, FRAMA Slow MA: Parameters for the FRAMA calculation. Defaults provided are common starting points.
FRAMA Filter Type:
FRAMA > previous bars: Allows trades only if FRAMA is significantly above its recent average (defined by FRAMA Percentage and FRAMA Lookback). Typically used to confirm strong upward trends for longs.
FRAMA < price: Allows trades only if FRAMA is below the current price (framaSource). Can act as a baseline trend filter.
FRAMA Percentage (X), FRAMA Lookback (Y): Used only for the FRAMA > previous bars filter type.
How it Affects Trades: If Use FRAMA Filter is enabled:
Long entries require the FRAMA filter condition to be true.
Short entries require the FRAMA filter condition to be false (as currently coded, this acts as an inverse filter for shorts if enabled).
How to Use the Strategy
1. Apply to Chart: Open your desired chart on TradingView. Click "Indicators", find "QuantJazz Turbine Trader BETA v1.17" (you might need to add it via Invite-only scripts or if published publicly), and add it to your chart. The oscillator appears below the price chart, and the strategy tester panel opens at the bottom.
2. Configure Strategy Properties: In the Pine Script code itself (or potentially via the UI if supported), adjust the strategy() function parameters like initial_capital, default_qty_value, commission_value, slippage, etc., to match your account, broker fees, and risk settings. The user preferences provided (e.g., 1000 initial capital, 0.1% commission) are examples. Remember use_bar_magnifier is false by default in v1.17.
3. Configure Inputs (Settings Panel):
Set the Date Range for backtesting.
Crucially, configure the ⚙️ Strategy Inputs. Decide which signals should trigger entries and whether they are mandatory ("Must Be True"). Start simply, perhaps enabling only one or two signals initially, and test thoroughly. Remember the default long-only setting unless you modify the code.
Set up your 💰 Take Profit Settings, including TP levels, position size percentages for each TP, and the trailing stop parameters. Decide if you want to use the re-entry feature.
Decide whether to use the 📈 FRAMA Filter and configure its parameters if enabled.
Adjust visual elements (🚀 Signal Line, 📊 Histogram, 💡 Other) as needed for clarity.
4. Backtest: Use the Strategy Tester panel in TradingView. Analyze the performance metrics (Net Profit, Max Drawdown, Profit Factor, Win Rate, Trade List) across different assets, timeframes, and setting configurations. Pay close attention to how different "Strategy Inputs" combinations perform.
5. Refine: Based on backtesting results, adjust the input settings, TP/SL strategy, and signal combinations to optimize performance for your chosen market and timeframe, while being mindful of overfitting.
6. Automation (Optional): If using 3Commas or a similar platform:
Enter your 3C Email Token and 3C Bot ID in the settings.
Create alerts in TradingView (right-click on the chart or use the Alert panel).
Set the Condition to "QuantJazz Turbine Trader BETA v1.17".
In the "Message" box, paste the corresponding placeholder, which will pass the message in JSON from our custom code to TradingView to pass through your webhook: {{strategy.order.alert_message}}.
In the next tab, configure the Webhook URL provided by your automation platform. Put a Whale sound, while you're at it! 🐳
When an alert triggers, TradingView will send the pre-formatted JSON message from the strategy code to your webhook URL.
Final Notes
The QuantJazz Turbine Trader BETA v1.17 offers a wide range of customizable signals and strategy logic. Its effectiveness heavily depends on proper configuration and thorough backtesting specific to the traded asset and timeframe. Start with the default settings, understand each component, and methodically test different combinations of signals and parameters. Remember the inherent risks of trading and never invest capital you cannot afford to lose.
Market Structure Trend StrategyStrategy based on my previously published indicator, most effective on the 1-hour timeframe to minimize false signals
KumoBreakLongShows Breakouts over and under Kumo Cloud, don't trade with it, just use it as indicator
Optimized Trading Strategy v6my strategy is about support and demand, support and resistance timeframe m5 and m15
McLan Pro Strategy Enhanced1. **Dynamic TP/SL Based on ATR**:
- Take Profit = Entry ± (ATR × Multiplier)
- Stop Loss = Entry ∓ (ATR × Multiplier)
- Adjustable via input parameters
2. **Additional Filters for Accuracy**:
- Stochastic Oscillator as confirmation
- Only enter when Stochastic aligns with the trend direction
3. **Improved Position Management**:
- Auto-close positions when TP/SL is hit
- Separation between entry and exit logic
4. **Enhanced Visualization**:
- Clear TP/SL lines with distinct colors
- Background color for trend direction
- More informative entry labels
5. **Customizable Parameters**:
- TP/SL multipliers
- ATR period
- Enable/disable TP/SL
## **🎯 How to Use:**
1. **Buy Signal**:
- Triggered when price is above ATR Trailing Stop + EMA crossover
- Stochastic bullish (K > D and not overbought)
- SL = Entry - (ATR × SL Multiplier)
- TP = Entry + (ATR × TP Multiplier)
2. **Sell Signal**:
- Triggered when price is below ATR Trailing Stop + EMA crossunder
- Stochastic bearish (K < D and not oversold)
- SL = Entry + (ATR × SL Multiplier)
- TP = Entry - (ATR × TP Multiplier)
## **📊 Optimization for Scalping**:
- Use M5-M15 timeframe
- ATR Period 10-14
- TP Multiplier 2.0-3.0
- SL Multiplier 1.0-1.5
- Activate during London/New York sessions
This strategy now features **controlled risk-reward ratios** and **stricter entry confirmations**. For best results, combine with proper risk management (1-2% per trade).
Dow Theory Trend Strategy v3Title: Dow Theory Trend Strategy
Description:
This Pine Script implements a trading strategy based on classic Dow Theory principles for trend identification. It analyzes pivot highs and lows to determine uptrends (Higher Highs & Higher Lows) and downtrends (Lower Highs & Lower Lows), entering trades when the trend direction is confirmed to change.
This version (v3) includes several key features and improvements:
Core Dow Theory Logic: Identifies trends based on confirmed sequences of pivot points detected using ta.pivothigh() and ta.pivotlow().
Improved Trend Persistence: The script confirms an uptrend only on both a Higher High (HH) and Higher Low (HL), and a downtrend on both a Lower High (LH) and Lower Low (LL). Crucially, if neither condition is met, the script maintains the previous trend state (trendDirection ), leading to smoother trend following compared to logic that frequently resets to neutral.
Manual Trend Override: A user input allows you to override the automatic Dow Theory trend detection. You can set the strategy to:
Auto: Follow the calculated Dow Theory trend signals.
Long Only: Only take long entry signals.
Short Only: Only take short entry signals.
Tick-Based Stop Loss & Take Profit: Optional Stop Loss (SL) and Take Profit (TP) levels can be enabled. These are set in Ticks from the entry price using strategy.exit().
Important: You must understand what a 'tick' (syminfo.mintick) represents for the specific instrument you are trading when setting the stopLossTicks and takeProfitTicks inputs (e.g., for EURUSD with mintick=0.00001, a 20 pip SL = 200 ticks).
Clear Visualizations:
Background color changes to reflect the detected Dow Theory trend (Blue for Up, Red for Down, Gray for Undetermined).
Optional markers for confirmed pivot points.
Optional labels indicating confirmed trend change signals (potential entry points).
Code Structure Note: This version defines the options for the "Manual Trend Mode" input directly inline within the input.string() function to potentially improve compatibility for users who experienced issues with copy-pasting previous versions that used a separate array definition.
How it Works:
Pivots are identified using the pivotLookback period (note the inherent lag).
The trend direction (trendDirection) is updated based on HH/HL or LH/LL confirmations, otherwise, it persists.
Strategy enters long on changedToUp (if allowed by mode) and short on changedToDown (if allowed by mode).
If enabled, strategy.exit places SL and TP orders based on the specified number of ticks immediately upon entry.
Inputs:
Calculation Settings:
pivotLookback: Controls pivot detection sensitivity and lag.
Display Settings:
Show Pivot Points: Toggle pivot markers.
Show Trend Change Signals: Toggle entry signal labels.
Strategy Settings:
Manual Trend Mode: Select "Auto", "Long Only", or "Short Only".
Risk Management:
Use Stop Loss: Enable/disable SL.
Stop Loss (Ticks): Set SL distance in ticks.
Use Take Profit: Enable/disable TP.
Take Profit (Ticks): Set TP distance in ticks.
How to Use:
Add the script to your TradingView chart.
Access the Settings panel for the script.
Configure the pivotLookback appropriate for your timeframe and instrument.
Choose your desired Manual Trend Mode.
Enable and configure the Stop Loss (Ticks) and Take Profit (Ticks) carefully, based on the instrument's tick size and your risk management plan.
Use the Strategy Tester tab to backtest performance on historical data.
Disclaimer:
This script is provided for educational and informational purposes only. Trading strategies based on Dow Theory involve inherent lag. Past performance is not indicative of future results. Financial markets involve risk, and you should not trade with capital you cannot afford to lose. Always conduct thorough backtesting and implement robust risk management practices before considering any live trading. This script does not constitute financial advice.
Golden Cross & Death Cross Strategy with SL & TPGolden Cross (BUY Signal):
• Enter long when 50 EMA crosses above 200 EMA
• Stop-Loss = 1% below entry price
• Take-Profit = 2x risk (default 1:2 ratio)
✅ Death Cross (SELL Signal):
• Enter short when 50 EMA crosses below 200 EMA
• Stop-Loss = 1% above entry price
• Take-Profit = 2x risk
Ruben.Ramiro - Momentum Breakout StrategyThis strategy is designed to capture breakout movements aligned with the prevailing trend, using a combination of Exponential Moving Averages (EMAs), Relative Strength Index (RSI), and Average True Range (ATR) for entry signals and risk management. It includes clear long/short entry conditions, dynamic stop-losses.
1. Trend Identification
Uses two EMAs:
• Fast EMA (default 20 periods)
• Slow EMA (default 50 periods)
The trend is considered bullish if EMA Fast > EMA Slow, and bearish if EMA Fast < EMA Slow.
2. Momentum Filter (RSI)
Applies a 14-period RSI to avoid entries during overbought/oversold conditions:
• Avoids long entries when RSI > 70 (overbought)
• Avoids short entries when RSI < 30 (oversold)
3. Breakout Logic
Detects breakouts over a configurable period (default: 5 candles):
• Resistance: Highest high over the last N periods (excluding the current one)
• Support: Lowest low over the last N periods (excluding the current one)
4. Entry Conditions
Long Entry:
• Price breaks above recent resistance
• Uptrend confirmed (EMA Fast > EMA Slow)
• RSI not overbought
Short Entry:
• Price breaks below recent support
• Downtrend confirmed (EMA Fast < EMA Slow)
• RSI not oversold
5. Position Management
Stop-Loss and Trailing Stop based on ATR:
Stop-Loss:
• For long: entry price - (ATR * SL multiplier)
• For short: entry price + (ATR * SL multiplier)
Trailing Stop:
• Uses same ATR * trailing multiplier for both trail_points and trail_offset
• Defaults for both SL and trailing multiplier: 1.5x ATR
6. Alerts (Webhook)
JSON-formatted webhook alerts:
• Long entry: Market buy order
• Short entry: Market sell order
7. Visual Cues
• Green triangle below bar for Long entries
• Red triangle above bar for Short entries
RecoveryPLAN - XAUUSD 1DCopyright RecoveryPLAN
This indicator utilizes the probability opportunities of the XAUUSD candlestick habits which are specifically designed for the 1D timeframe and have minimal risk because they use a relatively small stop loss.
SUPERTREND BASICSUPERTREND BASIC 2.0
The Supertrend Indicator is a popular trend-following tool used in trading to determine market direction based on price movements and volatility. It helps traders identify potential entry and exit points by plotting a continuous line above or below the price. The Supertrend shifts its position based on the Average True Range (ATR) and a multiplier, which adjusts its sensitivity to price fluctuations.
How the Supertrend Works
ATR-Based Calculation – The indicator relies on the ATR to measure market volatility.
Upper and Lower Bands – It calculates trend levels based on the ATR and a user-defined multiplier.
Trend Confirmation –
If the price moves above the Supertrend line, it turns bullish (green), signaling a buy opportunity.
If the price moves below the Supertrend line, it turns bearish (red), indicating a sell signal.
Momentum Strategy with Selectable PositionsThis strategy is written based on momentum 5 and 10. If both momentums are positive, it takes a long position and when both momentums are negative, it takes a short position.
CryptoKey ScanCryptoKey Scanner is an advanced tool designed to analyze financial markets in real time and provide accurate buy and sell signals. This system uses intelligent algorithms and technical analysis to identify trading opportunities in different assets, such as stocks, cryptocurrencies, forex, and more. Ideal for both beginner and advanced traders, the scanner helps you make informed decisions and maximize your profits.
EMA 10/55/200 - LONG ONLY MTF (4h with 1D & 1W confirmation)Title: EMA 10/55/200 - Long Only Multi-Timeframe Strategy (4h with 1D & 1W confirmation)
Description:
This strategy is designed for trend-following long entries using a combination of exponential moving averages (EMAs) on the 4-hour chart, confirmed by higher timeframe trends from the daily (1D) and weekly (1W) charts.
🔍 How It Works
🔹 Entry Conditions (4h chart):
EMA 10 crosses above EMA 55 and price is above EMA 55
OR
EMA 55 crosses above EMA 200
OR
EMA 10 crosses above EMA 500
These entries indicate short-term momentum aligning with medium/long-term trend strength.
🔹 Confirmation (multi-timeframe alignment):
Daily (1D): EMA 55 is above EMA 200
Weekly (1W): EMA 55 is above EMA 200
This ensures that we only enter long trades when the higher timeframes support an uptrend, reducing false signals during sideways or bearish markets.
🛑 Exit Conditions
Bearish crossover of EMA 10 below EMA 200 or EMA 500
Stop Loss: 5% below entry price
⚙️ Backtest Settings
Capital allocation per trade: 10% of equity
Commission: 0.1%
Slippage: 2 ticks
These are realistic conditions for crypto, forex, and stocks.
📈 Best Used On
Timeframe: 4h
Instruments: Trending markets like BTC/ETH, FX majors, or growth stocks
Works best in volatile or trending environments
⚠️ Disclaimer
This is a backtest tool and educational resource. Always validate on demo accounts before applying to real capital. Do your own due diligence.
Algo Trade | OIESU OPC PRIVATE LIMITED | SUNNY GUHAAlgo Trade | OIESU OPC PRIVATE LIMITED | SUNNY GUHA
You can automate your trade using this
MomentumEdge Trading StrategyKey Components
Hypothetical Bravo 9 Indicator:
Since Bravo 9 is a hypothetical indicator, I've implemented it as a weighted combination of RSI, MACD histogram, and momentum components
Generates signals when it crosses above/below its signal line
Trend Filtering:
Uses 200 EMA as the primary trend filter
Only takes long positions above the 200 EMA and short positions below it
Includes 50 and 20 EMAs for additional reference
Volume Confirmation:
Requires volume to be above 1.5x the 20-day average (customizable)
Can be toggled on/off
Volatility and Risk Management:
Uses ATR for stop loss calculation (1.5x ATR below/above entry by default)
Implements a risk-based position sizing (maximum 2% risk per trade)
Fixed risk ratio (2:1 by default)
Additional Confirmations:
ADX for trend strength (minimum 25 by default)
RSI for avoiding overbought/oversold conditions
Basic divergence detection
MomentumEdge Trading StrategyKey Components
Hypothetical Bravo 9 Indicator:
Since Bravo 9 is a hypothetical indicator, I've implemented it as a weighted combination of RSI, MACD histogram, and momentum components
Generates signals when it crosses above/below its signal line
Trend Filtering:
Uses 200 EMA as the primary trend filter
Only takes long positions above the 200 EMA and short positions below it
Includes 50 and 20 EMAs for additional reference
Volume Confirmation:
Requires volume to be above 1.5x the 20-day average (customizable)
Can be toggled on/off
Volatility and Risk Management:
Uses ATR for stop loss calculation (1.5x ATR below/above entry by default)
Implements a risk-based position sizing (maximum 2% risk per trade)
Fixed risk ratio (2:1 by default)
Additional Confirmations:
ADX for trend strength (minimum 25 by default)
RSI for avoiding overbought/oversold conditions
Basic divergence detection
Ersin Efsanesi Stratejisi v1.0This strategy uses moving averages, RSI, and volume analysis to identify potential buy and sell signals. It aims to find market trends and provide trading opportunities based on specific technical indicators.
SPY MACD Histogram Reversals and RejectionsStrategy Overview: Intraday SPY Options Day Trading with MACD Histogram Reversals and Rejections
This is an intraday trading strategy designed specifically for trading SPY (or SPX) using 1DTE options. It focuses on price action during the morning session and leverages MACD histogram crossovers, volatility analysis, and short-term price rejections to enter directional trades (calls or puts). The goal is to capitalize on early momentum shifts and retracement failures after initial market moves.
Key Trading Hours and Constraints
Trading Window: Only trades between 9:50 AM and 1:00 PM EST are considered.
Trade Cutoff Buffer: New trades are blocked in the final 5 minutes before the 1:00 PM end time to avoid auto-close conflicts.
First Hour Focus: Special logic applies during the first hour of the session (9:30 AM to 10:30 AM), where reversal-based setups are tracked more aggressively.
MACD Histogram Setup
The strategy calculates both 5-minute and 10-minute MACD values.
Signals are generated when the 5-minute MACD histogram crosses the zero line, indicating a momentum shift.
The magnitude of the histogram (absolute value) must exceed a threshold (0.10) to validate strong enough momentum.
The 10-minute histogram is used as a confirmation filter: if it’s under 0.17 in magnitude, it favors a call entry (bullish breakout); otherwise, it defaults to put entry (bearish momentum).
Reversal & Protection Logic (Early Morning Retests)
Call Rejection Protection (To avoid entering long after a strong upward move and sharp retrace):
Monitors price from 9:30–10:00 AM for the lowest point.
Then from 10:00–10:35 AM, it tracks the highest price.
If price retraces more than 90% of that move up, it avoids new call entries.
Put Rejection Protection (To avoid entering short after a downward move and retrace):
Tracks the highest point from 9:30–10:00 AM, then the lowest price from 10:00–10:35 AM.
If price retraces more than 90% of that downward move, put entries are skipped.
This avoids buying into failed breakouts or deep retracements, protecting against reversal traps.
Entry Conditions Summary
A trade is considered only if:
It's within the allowed time window.
MACD histogram crosses zero with sufficient strength.
No retracement rejection conditions are triggered.
The 10-minute MACD filter confirms momentum direction.
Risk Management – Dynamic ATR-Based Stop Loss & Profit Target
Uses a 6-period ATR to size both the stop loss and profit target.
ATR multipliers are adjusted dynamically based on RSI(14) values to account for current volatility and overbought/oversold conditions:
Profit Targets: Scaled using an aggressive ATR multiplier tied to RSI position.
Stop Losses: Slightly wider to prevent premature exits from minor retracements.
This adaptive approach helps ensure realistic targets while keeping risk within bounds.
Options Profit Estimation
Estimated option move is calculated using:
The difference between entry price and the profit target (in underlying asset).
Assumes 0.48 delta to approximate the expected option gain/loss.
These values are displayed directly on the chart as part of the trade label.
Trade Execution and Labeling
Each trade is assigned a unique ID and visually labeled on the chart with:
Direction (Call or Put)
Profit target level
Estimated underlying move
Estimated option gain in dollars
Alerts are also triggered to notify on entry signals, showing the estimated option profit.
Performance Tracking and Statistics
Tracks total trades, wins, losses, and current win streak using strategy.closedtrades.
Displays these values in a live stats table on the chart for real-time feedback.
Additional Visual Aids
Table showing:
MACD profit targets and histograms
Estimated option moves
Intraday range (high – low)
Draws a horizontal line at the nearest rounded price level for quick visual context.
Marks key morning times (9:55, 10:00, and 10:30) with small labeled markers.
Overall Objective
This strategy aims to:
Catch early directional momentum in SPY within a controlled risk framework.
Avoid trading into retracements or false breakouts.
Provide visually clear, data-supported trade entries for real-time manual execution.
Estimate profitability in terms of options pricing for quick decision-making.
It's ideal for traders looking to day trade 0DTE or 1DTE SPY options using technical triggers, real-time filtering, and protective logic to reduce false signals and improve timing.
Money Printer V3 – BTC 15M EMA Crossover Strategy🚀 Overview
Money Printer V3 is a trend-following strategy built for crypto markets. It uses fast EMA crossovers with RSI filtering, optional MACD and volume confirmation, and ATR-based trailing stops to capture high-probability momentum trades. This version is optimized for 15-minute timeframes with responsive parameters to increase trade frequency and signal clarity.
📈 How It Works
Buy Conditions:
Fast EMA crosses above Slow EMA
RSI > 40 (customizable)
Optional: MACD histogram > 0
Optional: Volume above 1.5x 20-period average
Sell Conditions:
Opposite of the buy conditions
Risk Management:
Stop-loss and trailing stop are dynamically set using ATR
Position size based on account equity and ATR distance (2% risk per trade)
⚙️ Default Settings
Fast EMA: 5
Slow EMA: 20
RSI Threshold: 40
MACD Filter: OFF
Volume Filter: ON
ATR SL Multiplier: 2.5
ATR Trailing Multiplier: 3.5
Risk: 2% of equity per trade
Initial Capital: $5,000
Commission: 0.1%
Slippage: 0.5%
📊 Backtest Notes
Tested on BTC/USD 15-minute timeframe from 2018 to 2024
Produces 100+ trades for statistically relevant sample size
Strategy is not predictive — it reacts to confirmed trends with filters to reduce false signals
Past performance does not guarantee future results
📌 How to Use
Add this strategy to your BTC/USD 15M chart
Customize the input parameters to match your trading style
Enable alerts for buy/sell conditions
Always forward test before using with real funds
⚠️ Disclaimer
This script is for educational and research purposes only. Use at your own risk. Markets are unpredictable, and no strategy can guarantee profits. Always use proper risk management.
ShyGotEmThe ShyGotEm indicator is a trend-following tool designed to help traders identify market momentum using Exponential Moving Averages (EMAs). It plots three key EMAs:
🔹 13 EMA (Green) – Short-term trend indicator for quick momentum shifts.
🔹 48 EMA (Yellow) – Medium-term trend confirmation.
🔹 89 EMA (Red) – Long-term trend filter for overall market direction.
How to Use:
When the 13 EMA is above the 48 EMA, and both are above the 89 EMA, the market is in an uptrend.
When the 13 EMA is below the 48 EMA, and both are below the 89 EMA, the market is in a downtrend.
The 89 EMA acts as a trend filter, helping to confirm strong market direction and reduce noise.
This indicator does not repaint and is best used in combination with price action and other confluences. Perfect for traders looking to follow trends and make informed trading decisions.
Dow Theory Trend StrategyDow Theory Trend Strategy (Pine Script)
Overview
This Pine Script implements a trading strategy based on the core principles of Dow Theory. It visually identifies trends (uptrend, downtrend) by analyzing pivot highs and lows and executes trades when the trend direction changes. This script is an improved version that features refined trend determination logic and strategy implementation.
Core Concept: Dow Theory
The script uses a fundamental Dow Theory concept for trend identification:
Uptrend: Characterized by a series of Higher Highs (HH) and Higher Lows (HL).
Downtrend: Characterized by a series of Lower Highs (LH) and Lower Lows (LL).
How it Works
Pivot Point Detection:
It uses the built-in ta.pivothigh() and ta.pivotlow() functions to identify significant swing points (potential highs and lows) in the price action.
The pivotLookback input determines the number of bars to the left and right required to confirm a pivot. Note that this introduces a natural lag (equal to pivotLookback bars) before a pivot is confirmed.
Improved Trend Determination:
The script stores the last two confirmed pivot highs and the last two confirmed pivot lows.
An Uptrend (trendDirection = 1) is confirmed only when the latest pivot high is higher than the previous one (HH) AND the latest pivot low is higher than the previous one (HL).
A Downtrend (trendDirection = -1) is confirmed only when the latest pivot high is lower than the previous one (LH) AND the latest pivot low is lower than the previous one (LL).
Key Improvement: If neither a clear uptrend nor a clear downtrend is confirmed based on the latest pivots, the script maintains the previous trend state (trendDirection := trendDirection ). This differs from simpler implementations that might switch to a neutral/range state (e.g., trendDirection = 0) more frequently. This approach aims for smoother trend following, acknowledging that trends often persist through periods without immediate new HH/HL or LH/LL confirmations.
Trend Change Detection:
The script monitors changes in the trendDirection variable.
changedToUp becomes true when the trend shifts to an Uptrend (from Downtrend or initial state).
changedToDown becomes true when the trend shifts to a Downtrend (from Uptrend or initial state).
Visualizations
Background Color: The chart background is colored to reflect the currently identified trend:
Blue: Uptrend (trendDirection == 1)
Red: Downtrend (trendDirection == -1)
Gray: Initial state or undetermined (trendDirection == 0)
Pivot Points (Optional): Small triangles (shape.triangledown/shape.triangleup) can be displayed above pivot highs and below pivot lows if showPivotPoints is enabled.
Trend Change Signals (Optional): Labels ("▲ UP" / "▼ DOWN") can be displayed when a trend change is confirmed (changedToUp / changedToDown) if showTrendChange is enabled. These visually mark the potential entry points for the strategy.
Strategy Logic
Entry Conditions:
Enters a long position (strategy.long) using strategy.entry("L", ...) when changedToUp becomes true.
Enters a short position (strategy.short) using strategy.entry("S", ...) when changedToDown becomes true.
Position Management: The script uses strategy.entry(), which automatically handles position reversal. If the strategy is long and a short signal occurs, strategy.entry() will close the long position and open a new short one (and vice-versa).
Inputs
pivotLookback: The number of bars on each side to confirm a pivot high/low. Higher values mean pivots are confirmed later but may be more significant.
showPivotPoints: Toggle visibility of pivot point markers.
showTrendChange: Toggle visibility of the trend change labels ("▲ UP" / "▼ DOWN").
Key Improvements from Original
Smoother Trend Logic: The trend state persists unless a confirmed reversal pattern (opposite HH/HL or LH/LL) occurs, reducing potential whipsaws in choppy markets compared to logic that frequently resets to neutral.
Strategy Implementation: Converted from a pure indicator to a strategy capable of executing backtests and potentially live trades based on the Dow Theory trend changes.
Disclaimer
Dow Theory signals are inherently lagging due to the nature of pivot confirmation.
The effectiveness of the strategy depends heavily on the market conditions and the chosen pivotLookback setting.
This script serves as a basic template. Always perform thorough backtesting and implement proper risk management (e.g., stop-loss, take-profit, position sizing) before considering any live trading.
US30 1-min Strategy with TP/SL, Grades, Alerts🟢 Grade A (Strongest)
• Candle is very large (body is 2x the 20-bar average)
• Volume rising
• RSI strongly confirms direction (RSI > 55 or < 45)
🟠 Grade B (Moderate)
• Candle is large
• Volume rising
• RSI confirms trend (but not as strong as A)
🟡 Grade C (Weak)
• Candle is large
• Volume rising or RSI confirms (not both)
You can select which grades to trade (A, B, C) from the strategy settings.
💰 Risk Management
• Take Profit: Default = 0.5%
• Stop Loss: Default = 0.3%
TP and SL are applied as percentage of entry price. You can adjust both in the strategy settings.
Trade Alerts & Visuals
• Labels appear on the chart when a trade is triggered (green for longs, red for shorts, with grade label)
• Alerts are sent using the alert() function, which you can link to popups, emails, or mobile notifications via TradingView
🧭 Strategy Use Case
This strategy is ideal for:
• Scalping US30 during high-volume sessions
• Traders who prefer rules-based setups with clear grading and confirmation
• Running backtests in TradingView with risk controls and performance analysis