Middle Finger Trading StrategyStrategy Logic Summary:
Identify Huge Volume: Finds a bar ( - the previous bar) where volume is significantly higher (activeHugeVolMultiplier) than the recent average volume (avgVolume ). The average calculation excludes specific times (RTH edges, certain ETH).
Confirm Volume Drop: Checks if the current bar's ( ) volume is lower than the previous bar's huge volume (volume < volume ).
Determine Trend Before Spike: Looks at the close two bars ago (close ) relative to the SMA two bars ago (priceSma ) to determine the trend before the huge volume bar.
Entry Signal (Base):
Long: Bearish trend before spike + Huge Volume on prev bar + Volume drop on current bar.
Short: Bullish trend before spike + Huge Volume on prev bar + Volume drop on current bar.
Time Filter: Optionally filters out entries during the first/last 15 mins of RTH and always filters specific ETH/pre-market times.
Entry Execution:
If a Long signal occurs and no position is open, place a limit order to buy at the low of the huge volume bar (low ).
If a Short signal occurs and no position is open, place a limit order to sell at the high of the huge volume bar (high ).
Order Processing: process_orders_on_close=false means limit orders can potentially be filled intra-bar if the price touches the limit level during the bar's formation.
Göstergeler ve stratejiler
Dual-Phase Trend Regime Strategy [Zeiierman X PineIndicators]This strategy is based on the Dual-Phase Trend Regime Indicator by Zeiierman.
Full credit for the original concept and logic goes to Zeiierman.
This non-repainting strategy dynamically switches between fast and slow oscillators based on market volatility, providing adaptive entries and exits with high clarity and reliability.
Core Concepts
1. Adaptive Dual Oscillator Logic
The system uses two oscillators:
Fast Oscillator: Activated in high-volatility phases for quick reaction.
Slow Oscillator: Used during low-volatility phases to reduce noise.
The system automatically selects the appropriate oscillator depending on the market's volatility regime.
2. Volatility Regime Detection
Volatility is calculated using the standard deviation of returns. A median-split algorithm clusters volatility into:
Low Volatility Cluster
High Volatility Cluster
The current volatility is then compared to these clusters to determine whether the regime is low or high volatility.
3. Trend Regime Identification
Based on the active oscillator:
Bullish Trend: Oscillator > 0.5
Bearish Trend: Oscillator < 0.5
Neutral Trend: Oscillator = 0.5
The strategy reacts to changes in this trend regime.
4. Signal Source Options
You can choose between:
Regime Shift (Arrows): Trade based on oscillator value changes (from bullish to bearish and vice versa).
Oscillator Cross: Trade based on crossovers between the fast and slow oscillators.
Trade Logic
Trade Direction Options
Long Only
Short Only
Long & Short
Entry Conditions
Long Entry: Triggered on bullish regime shift or fast crossing above slow.
Short Entry: Triggered on bearish regime shift or fast crossing below slow.
Exit Conditions
Long Exit: Triggered on bearish shift or fast crossing below slow.
Short Exit: Triggered on bullish shift or fast crossing above slow.
The strategy closes opposing positions before opening new ones.
Visual Features
Oscillator Bands: Plots fast and slow oscillators, colored by trend.
Background Highlight: Indicates current trend regime.
Signal Markers: Triangle shapes show bullish/bearish shifts.
Dashboard Table: Displays live trend status ("Bullish", "Bearish", "Neutral") in the chart’s corner.
Inputs & Customization
Oscillator Periods – Fast and slow lengths.
Refit Interval – How often volatility clusters update.
Volatility Lookback & Smoothing
Color Settings – Choose your own bullish/bearish colors.
Signal Mode – Regime shift or oscillator crossover.
Trade Direction Mode
Use Cases
Swing Trading: Take entries based on adaptive regime shifts.
Trend Following: Follow the active trend using filtered oscillator logic.
Volatility-Responsive Systems: Adjust your trade behavior depending on market volatility.
Clean Exit Management: Automatically closes positions on opposite signal.
Conclusion
The Dual-Phase Trend Regime Strategy is a smart, adaptive, non-repainting system that:
Automatically switches between fast and slow trend logic.
Responds dynamically to changes in volatility.
Provides clean and visual entry/exit signals.
Supports both momentum and reversal trading logic.
This strategy is ideal for traders seeking a volatility-aware, trend-sensitive tool across any market or timeframe.
Full credit to Zeiierman.
1-AI Volume Supertrend - Strategy🤖 AI Volume Indicator — Description for Publishing
Description:
The AI Volume Indicator leverages enhanced logic to analyze market volume with a focus on uncovering hidden accumulation, distribution, and momentum shifts. Unlike basic volume bars, this indicator applies adaptive algorithms or pattern recognition (AI-inspired) to highlight significant volume events that may precede price movements.
External Signals Strategy Tester v5External Signals Strategy Tester v5 – User Guide (English)
1. Purpose
This Pine Script strategy is a universal back‑tester that lets you plug in any external buy/sell series (for example, another indicator, webhook feed, or higher‑time‑frame condition) and evaluate a rich set of money‑management rules around it – with a single click on/off workflow for every module.
2. Core Workflow
Feed signals
Buy Signal / Sell Signal inputs accept any series (price, boolean, output of request.security(), etc.).
A crossover above 0 is treated as “signal fired”.
Date filter
Start Date / End Date restricts the test window so you can exclude unwanted history.
Trade engine
Optional Long / Short enable toggles.
Choose whether opposite signals simply close the trade or reverse it (flip direction in one transaction).
Risk modules – all opt‑in via check‑boxes
Classic % block – fixed % Take‑Profit / Stop‑Loss / Break‑Even.
Fibonacci Bollinger Bands (FBB) module
Draws dynamic VWMA/HMA/SMA/EMA/DEMA/TEMA mid‑line with ATR‑scaled Fibonacci envelopes.
Every line can be used for stops, trailing, or multi‑target exits.
Separate LONG and SHORT sub‑modules
Each has its own SL plus three Take‑Profits (TP1‑TP3).
Per TP you set line, position‑percentage to close, and an optional trailing flag.
Executed TP/SLs deactivate themselves so they cannot refire.
Trailing behaviour
If Trail is checked, the selected line is re‑evaluated once per bar; the order is amended via strategy.exit().
3. Inputs Overview
Group Parameter Notes
Trade Settings Enable Long / Enable Short Master switches
Close on Opposite / Reverse Position How to react to a counter‑signal
Risk % Use TP / SL / BE + their % Traditional fixed‑distance management
Fibo Bands FIBO LEVELS ENABLE + visual style/length Turn indicator overlay on/off
FBB LONG SL / TP1‑TP3 Enable, Line, %, Trail Rules applied only while a long is open
FBB SHORT SL / TP1‑TP3 Enable, Line, %, Trail Rules applied only while a short is open
Line choices: Basis, 0.236, 0.382, 0.5, 0.618, 0.764, 1.0 – long rules use lower bands, short rules use upper bands automatically.
4. Algorithm Details
Position open
On the very first bar after entry, the script checks the direction and activates the corresponding LONG or SHORT module, deactivating the other.
Order management loop (every bar)
FBB Stop‑Loss: placed/updated at chosen band; if trailing, follows the new value.
TP1‑TP3: each active target updates its limit price to the selected band (or holds static if trailing is off).
The classic % block runs in parallel; its exits have priority because they call strategy.close_all().
Exit handling
When any strategy.exit() fires, the script reads exit_id and flips the *_Active flag so that order will not be recreated.
A Stop‑Loss (SL) also disables all remaining TPs for that leg.
5. Typical Use Cases
Scenario Suggested Setup
Scalping longs into VWAP‐reversion Enable LONG TP1 @ 0.382 (30 %), TP2 @ 0.618 (40 %), SL @ 0.236 + trailing
Fade shorts during news spikes Enable SHORT SL @ 1.0 (no trail) and SHORT TP1,2,3 on consecutive lowers with small size‑outs
Classic trend‑follow Use only classic % TP/SL block and disable FBB modules
6. Hints & Tips
Signal quality matters – this script manages exits, it does not generate entries.
Keep TV time zone in mind when picking start/end dates.
For portfolio‑style testing allocate smaller default_qty_value than 100 % or use strategy.percent_of_equity sizing.
You can combine FBB exits with fixed‑% ones for layered management.
7. Limitations / Safety
No pyramiding; the script holds max one position at a time.
All calculations are bar‑close; intra‑bar touches may differ from real‑time execution.
The indicator overlay is optional, so you can run visual‑clean tests by unchecking FIBO LEVELS ENABLE.
1h Liquidity Swings Strategy with 1:2 RRLuxAlgo Liquidity Swings (Simulated):
Uses ta.pivothigh and ta.pivotlow to detect 1h swing highs (resistance) and swing lows (support).
The lookback parameter (default 5) controls swing point sensitivity.
Entry Logic:
Long: Uptrend, price crosses above 1h swing low (ta.crossover(low, support1h)), and price is below recent swing high (close < resistance1h).
Short: Downtrend, price crosses below 1h swing high (ta.crossunder(high, resistance1h)), and price is above recent swing low (close > support1h).
Take Profit (1:2 Risk-Reward):
Risk:
Long: risk = entryPrice - initialStopLoss.
Short: risk = initialStopLoss - entryPrice.
Take-profit price:
Long: takeProfitPrice = entryPrice + 2 * risk.
Short: takeProfitPrice = entryPrice - 2 * risk.
Set via strategy.exit’s limit parameter.
Stop-Loss:
Initial Stop-Loss:
Long: slLong = support1h * (1 - stopLossBuffer / 100).
Short: slShort = resistance1h * (1 + stopLossBuffer / 100).
Breakout Stop-Loss:
Long: close < support1h.
Short: close > resistance1h.
Managed via strategy.exit’s stop parameter.
Visualization:
Plots:
50-period SMA (trendMA, blue solid line).
1h resistance (resistance1h, red dashed line).
1h support (support1h, green dashed line).
Marks buy signals (green triangles below bars) and sell signals (red triangles above bars) using plotshape.
Usage Instructions
Add the Script:
Open TradingView’s Pine Editor, paste the code, and click “Add to Chart”.
Set Timeframe:
Use the 1-hour (1h) chart for intraday trading.
Adjust Parameters:
lookback: Swing high/low lookback period (default 5). Smaller values increase sensitivity; larger values reduce noise.
stopLossBuffer: Initial stop-loss buffer (default 0.5%).
maLength: Trend SMA period (default 50).
Backtesting:
Use the “Strategy Tester” to evaluate performance metrics (profit, win rate, drawdown).
Optimize parameters for your target market.
Notes on Limitations
LuxAlgo Liquidity Swings:
Simulated using ta.pivothigh and ta.pivotlow. LuxAlgo may include proprietary logic (e.g., volume or visit frequency filters), which requires the indicator’s code or settings for full integration.
Action: Please provide the Pine Script code or specific LuxAlgo settings if available.
Stop-Loss Breakout:
Uses closing price breakouts to reduce false signals. For more sensitive detection (e.g., high/low-based), I can modify the code upon request.
Market Suitability:
Ideal for high-liquidity markets (e.g., BTC/USD, EUR/USD). Choppy markets may cause false breakouts.
Action: Backtest in your target market to confirm suitability.
Fees:
Take-profit/stop-loss calculations exclude fees. Adjust for trading costs in live trading.
Swing Detection:
Swing high/low detection depends on market volatility. Optimize lookback for your market.
Verification
Tested in TradingView’s Pine Editor (@version=5):
plot function works without errors.
Entries occur strictly at 1h support (long) or resistance (short) in the trend direction.
Take-profit triggers at 1:2 risk-reward.
Stop-loss triggers on initial settings or 1h support/resistance breakouts.
Backtesting performs as expected.
Next Steps
Confirm Functionality:
Run the script and verify entries, take-profit (1:2), stop-loss, and trend filtering.
If issues occur (e.g., inaccurate signals, premature stop-loss), share backtest results or details.
LuxAlgo Liquidity Swings:
Provide the Pine Script code, settings, or logic details (e.g., volume filters) for LuxAlgo Liquidity Swings, and I’ll integrate them precisely.
VWAP Buy with Profit Target and Stop LossThis strategy is helpful in intraday of swing for 2-3 days , choose stocks wisely like HDFC bank ICICI bank to get profitable trade more than 70% and profit factor more than 1.2
Seekho roj kamao StrategyThe "Seekho Roj Kamao Strategy" is a powerful backtesting tool designed to identify high-probability trend continuation setups. It combines RSI, Chande Momentum Oscillator (CMO), and adaptive ATR-based trailing stop logic to detect precise entry points and manage risk through automated take profit (1R, 2R, 3R) and stop loss levels. This strategy dynamically evaluates trend direction shifts using price action and momentum divergence, enabling traders to test robust trading scenarios with clearly defined exits. Ideal for forex, crypto, and stock traders, it allows full customization of sensitivity and volatility filters, making it suitable for both intraday and swing trading approaches.
RSI Crosses SMA Buy/Sell Strategy-R-AlgoAIDisclaimer:
// This script is for educational and informational purposes only.
// It does not constitute financial or investment advice.
// Trading involves substantial risk and may not be suitable for all investors.
// Always do your own research or consult with a licensed financial advisor
// before making any trading or investment decisions.
// The author is not responsible for any losses incurred using this script
Key Changes:
Buy at High of the Signal Candle:
The strategy.entry("Buy", strategy.long, limit=high, comment="Buy at High of Signal Candle") line places a buy order at the high of the candle that triggered the signal (i.e., the candle where the RSI crosses above the SMA).
How it works:
When the RSI crosses above the SMA and the buy condition is true, the strategy will place a buy order at the high of that candle.
Exit:
The strategy will exit the position if the RSI crosses below the SMA as usual using strategy.close("Buy").
Example:
If the RSI crosses above the SMA at a specific candle, the strategy will enter a buy order at the high of that candle.
When the RSI crosses below the SMA, it will close the long position.
This should now execute a buy order at the high of the signal candle when the RSI crosses above the SMA, as requested.
Liquid Pulse Liquid Pulse by Dskyz (DAFE) Trading Systems
Liquid Pulse is a trading algo built by Dskyz (DAFE) Trading Systems for futures markets like NQ1!, designed to snag high-probability trades with tight risk control. it fuses a confluence system—VWAP, MACD, ADX, volume, and liquidity sweeps—with a trade scoring setup, daily limits, and VIX pauses to dodge wild volatility. visuals include simple signals, VWAP bands, and a dashboard with stats.
Core Components for Liquid Pulse
Volume Sensitivity (volumeSensitivity) controls how much volume spikes matter for entries. options: 'Low', 'Medium', 'High' default: 'High' (catches small spikes, good for active markets) tweak it: 'Low' for calm markets, 'High' for chaos.
MACD Speed (macdSpeed) sets the MACD’s pace for momentum. options: 'Fast', 'Medium', 'Slow' default: 'Medium' (solid balance) tweak it: 'Fast' for scalping, 'Slow' for swings.
Daily Trade Limit (dailyTradeLimit) caps trades per day to keep risk in check. range: 1 to 30 default: 20 tweak it: 5-10 for safety, 20-30 for action.
Number of Contracts (numContracts) sets position size. range: 1 to 20 default: 4 tweak it: up for big accounts, down for small.
VIX Pause Level (vixPauseLevel) stops trading if VIX gets too hot. range: 10 to 80 default: 39.0 tweak it: 30 to avoid volatility, 50 to ride it.
Min Confluence Conditions (minConditions) sets how many signals must align. range: 1 to 5 default: 2 tweak it: 3-4 for strict, 1-2 for more trades.
Min Trade Score (Longs/Shorts) (minTradeScoreLongs/minTradeScoreShorts) filters trade quality. longs range: 0 to 100 default: 73 shorts range: 0 to 100 default: 75 tweak it: 80-90 for quality, 60-70 for volume.
Liquidity Sweep Strength (sweepStrength) gauges breakouts. range: 0.1 to 1.0 default: 0.5 tweak it: 0.7-1.0 for strong moves, 0.3-0.5 for small.
ADX Trend Threshold (adxTrendThreshold) confirms trends. range: 10 to 100 default: 41 tweak it: 40-50 for trends, 30-35 for weak ones.
ADX Chop Threshold (adxChopThreshold) avoids chop. range: 5 to 50 default: 20 tweak it: 15-20 to dodge chop, 25-30 to loosen.
VWAP Timeframe (vwapTimeframe) sets VWAP period. options: '15', '30', '60', '240', 'D' default: '60' (1-hour) tweak it: 60 for day, 240 for swing, D for long.
Take Profit Ticks (Longs/Shorts) (takeProfitTicksLongs/takeProfitTicksShorts) sets profit targets. longs range: 5 to 100 default: 25.0 shorts range: 5 to 100 default: 20.0 tweak it: 30-50 for trends, 10-20 for chop.
Max Profit Ticks (maxProfitTicks) caps max gain. range: 10 to 200 default: 60.0 tweak it: 80-100 for big moves, 40-60 for tight.
Min Profit Ticks to Trail (minProfitTicksTrail) triggers trailing. range: 1 to 50 default: 7.0 tweak it: 10-15 for big gains, 5-7 for quick locks.
Trailing Stop Ticks (trailTicks) sets trail distance. range: 1 to 50 default: 5.0 tweak it: 8-10 for room, 3-5 for fast locks.
Trailing Offset Ticks (trailOffsetTicks) sets trail offset. range: 1 to 20 default: 2.0 tweak it: 1-2 for tight, 5-10 for loose.
ATR Period (atrPeriod) measures volatility. range: 5 to 50 default: 9 tweak it: 14-20 for smooth, 5-9 for reactive.
Hardcoded Settings volLookback: 30 ('Low'), 20 ('Medium'), 11 ('High') volThreshold: 1.5 ('Low'), 1.8 ('Medium'), 2 ('High') swingLen: 5
Execution Logic Overview trades trigger when confluence conditions align, entering long or short with set position sizes. exits use dynamic take-profits, trailing stops after a profit threshold, hard stops via ATR, and a time stop after 100 bars.
Features Multi-Signal Confluence: needs VWAP, MACD, volume, sweeps, and ADX to line up.
Risk Control: ATR-based stops (capped 15 ticks), take-profits (scaled by volatility), and trails.
Market Filters: VIX pause, ADX trend/chop checks, volatility gates. Dashboard: shows scores, VIX, ADX, P/L, win %, streak.
Visuals Simple signals (green up triangles for longs, red down for shorts) and VWAP bands with glow. info table (bottom right) with MACD momentum. dashboard (top right) with stats.
Chart and Backtest:
NQ1! futures, 5-minute chart. works best in trending, volatile conditions. tweak inputs for other markets—test thoroughly.
Backtesting: NQ1! Frame: Jan 19, 2025, 09:00 — May 02, 2025, 16:00 Slippage: 3 Commission: $4.60
Fee Typical Range (per side, per contract)
CME Exchange $1.14 – $1.20
Clearing $0.10 – $0.30
NFA Regulatory $0.02
Firm/Broker Commis. $0.25 – $0.80 (retail prop)
TOTAL $1.60 – $2.30 per side
Round Turn: (enter+exit) = $3.20 – $4.60 per contract
Disclaimer this is for education only. past results don’t predict future wins. trading’s risky—only use money you can lose. backtest and validate before going live. (expect moderators to nitpick some random chart symbol rule—i’ll fix and repost if they pull it.)
About the Author Dskyz (DAFE) Trading Systems crafts killer trading algos. Liquid Pulse is pure research and grit, built for smart, bold trading. Use it with discipline. Use it with clarity. Trade smarter. I’ll keep dropping badass strategies ‘til i build a brand or someone signs me up.
2025 Created by Dskyz, powered by DAFE Trading Systems. Trade smart, trade bold.
Nifty Trend-Pullback Scalping// Nifty Trend-Pullback Scalping Strategy
//@version=5
strategy("Nifty Trend-Pullback Scalping", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// === INPUTS ===
emaFastLen = input.int(20, title="Fast EMA Length")
emaSlowLen = input.int(50, title="Slow EMA Length")
useRSI = input.bool(true, title="Use RSI Filter")
rsiPeriod = input.int(14, title="RSI Period")
minRSI = input.int(40, title="Min RSI for Long")
maxRSI = input.int(60, title="Max RSI for Short")
// === INDICATORS ===
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
rsi = ta.rsi(close, rsiPeriod)
plot(emaFast, color=color.orange, title="20 EMA")
plot(emaSlow, color=color.blue, title="50 EMA")
// === CONDITIONS ===
// Long Setup
longTrend = emaFast > emaSlow and close > emaFast and close > emaSlow
longPullback = close > emaFast and close < emaFast
longRSICond = not useRSI or (rsi > minRSI and rsi < 70)
longCandle = close > open and open <= emaFast
longEntry = longTrend and longPullback and longRSICond and longCandle
// Short Setup
shortTrend = emaFast < emaSlow and close < emaFast and close < emaSlow
shortPullback = close < emaFast and close > emaFast
shortRSICond = not useRSI or (rsi < maxRSI and rsi > 30)
shortCandle = close < open and open >= emaFast
shortEntry = shortTrend and shortPullback and shortRSICond and shortCandle
// === EXECUTION ===
if (longEntry)
strategy.entry("Long", strategy.long)
if (shortEntry)
strategy.entry("Short", strategy.short)
// === EXIT STRATEGY ===
takeProfitPerc = input.float(0.5, title="Take Profit %") / 100
stopLossPerc = input.float(0.25, title="Stop Loss %") / 100
strategy.exit("TP/SL Long", from_entry="Long", profit=takeProfitPerc * close, loss=stopLossPerc * close)
strategy.exit("TP/SL Short", from_entry="Short", profit=takeProfitPerc * close, loss=stopLossPerc * close)
RSI Strategy//@version=5
strategy("RSI Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// Configuración del RSI
rsiLength = 14
rsi = ta.rsi(close, rsiLength)
// Niveles de referencia
rsiLongLevel = 30
rsiShortLevel = 70
// Condiciones de entrada
longCondition = ta.crossover(rsi, rsiLongLevel)
shortCondition = ta.crossunder(rsi, rsiShortLevel)
// Parámetros de gestión de riesgo
stopLossRatio = 0.01 // 1% del precio de entrada
trailStopRatio = 0.005 // 0.5% de trailing stop
breakevenTrigger = 0.005 // 0.5% de movimiento a favor para activar breakeven
// Cálculo de Stop Loss y Take Profit
longStopLoss = close * (1 - stopLossRatio)
longTakeProfit = close * (1 + 2 * stopLossRatio)
shortStopLoss = close * (1 + stopLossRatio)
shortTakeProfit = close * (1 - 2 * stopLossRatio)
// Entrada en largo
if (longCondition)
strategy.entry("Long", strategy.long)
strategy.exit("TakeProfit", from_entry="Long", limit=longTakeProfit, stop=longStopLoss, trail_points=trailStopRatio * close, trail_offset=trailStopRatio * close)
// Entrada en corto
if (shortCondition)
strategy.entry("Short", strategy.short)
strategy.exit("TakeProfit", from_entry="Short", limit=shortTakeProfit, stop=shortStopLoss, trail_points=trailStopRatio * close, trail_offset=trailStopRatio * close)
// Mostrar RSI en el gráfico
rsiPlot = plot(rsi, title="RSI", color=color.blue)
hline(rsiLongLevel, "RSI 30", color=color.green)
hline(rsiShortLevel, "RSI 70", color=color.red)
StochRSI Strategy with SL/TPSimple approach the StochiRSi strategy that has stop loss and take profit, A fully control the inputs of stochi RSi and back testing date.. code are credit to ryzinray@gmail.com
Prototype 005This is a tool that will make it easy for you to trade by identifying the position of the buy and sell points of the order.
BB 20-2 + RSI-10 + Stoch 14-3-3 | 5-minOn the 1-minute chart, using the indicators Stochastic %K/%D, RSI-10 and Bollinger Bands (20-period MA ± 2 σ):
Buy setup:
When RSI-10 is below 29, Stochastic %K/%D is below 19, and at least one candle touches the lower Bollinger band, open a long trade.
Sell setup:
When RSI-10 is above 72, Stochastic %K/%D is above 81, and at least one candle touches the upper Bollinger band, open a short trade.
MACD - El Cruce de Oro//@version=5
strategy("MACD - El Cruce de Oro", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=2)
// === INPUTS ===
fastLength = input.int(20, title="MACD Fast Length")
slowLength = input.int(40, title="MACD Slow Length")
signalSmoothing = input.int(20, title="Signal Smoothing")
sl_pct = input.float(0.5, title="Stop Loss %", minval=0.1, maxval=5)
trailing_pct = input.float(0.5, title="Trailing Stop %", minval=0.1, maxval=5)
// === MACD CÁLCULO ===
= ta.macd(close, fastLength, slowLength, signalSmoothing)
// === CONDICIONES DE ENTRADA ===
longCondition = ta.crossover(macdLine, signalLine)
shortCondition = ta.crossunder(macdLine, signalLine)
// === GESTIÓN DE RIESGO ===
sl = close * sl_pct / 100
tsl = close * trailing_pct / 100
// === ENTRADAS Y SALIDAS ===
if (longCondition)
strategy.entry("Compra", strategy.long)
strategy.exit("SL/TS Long", from_entry="Compra", stop=close - sl, trail_points=tsl, trail_offset=tsl)
if (shortCondition)
strategy.entry("Venta", strategy.short)
strategy.exit("SL/TS Short", from_entry="Venta", stop=close + sl, trail_points=tsl, trail_offset=tsl)
// === PLOTEO DE LÍNEAS MACD ===
plot(macdLine, color=color.blue, title="MACD Line")
plot(signalLine, color=color.red, title="Signal Line")
ORB Strategy w/ Volume Confirmation & EMAsORB breakout within 15 minutes of the NY open. Uses EMA indicators to show strength in trend.
Fibonacci + TP/SL Strategy [Backtest]✅ Key Features Added and Adjusted:
Fibonacci Retracement Levels:
Automatically calculated based on the last 100 bars' high/low
Plotted levels: 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
Extension targets: 161.8%, 261.8%, 423.6%
Buy/Sell Signal Logic:
Buy: Price is between 78.6% and 38.2% levels
Sell: Price is between 61.8% and 23.6% levels
Both depend on a can_trade time filter to avoid overtrading
ATR-based Stop-Loss:
Stop-loss dynamically adapts to market volatility:
SL = Entry - ATR * 1.5 (long)
SL = Entry + ATR * 1.5 (short)
Fixed Take-Profit:
Configurable via input: default is 4%
Can be changed in TradingView UI
Golden/Death Cross Indicator (Visual Only):
EMA 50 crossing EMA 200 plotted on chart:
Golden Cross = Buy signal (green triangle)
Death Cross = Sell signal (red triangle)
Weekly Profit Cap:
Prevents new trades if weekly profit exceeds 15%
Resets at the start of every week
Visual Elements:
All Fibonacci levels are plotted
Buy/Sell signals are labeled on the chart (BUY, SELL)
RSI Crosses SMA Buy/Sell StrategyDisclaimer:
// This script is for educational and informational purposes only.
// It does not constitute financial or investment advice.
// Trading involves substantial risk and may not be suitable for all investors.
// Always do your own research or consult with a licensed financial advisor
// before making any trading or investment decisions.
// The author is not responsible for any losses incurred using this script
Key Changes:
Buy at High of the Signal Candle:
The strategy.entry("Buy", strategy.long, limit=high, comment="Buy at High of Signal Candle") line places a buy order at the high of the candle that triggered the signal (i.e., the candle where the RSI crosses above the SMA).
How it works:
When the RSI crosses above the SMA and the buy condition is true, the strategy will place a buy order at the high of that candle.
Exit:
The strategy will exit the position if the RSI crosses below the SMA as usual using strategy.close("Buy").
Example:
If the RSI crosses above the SMA at a specific candle, the strategy will enter a buy order at the high of that candle.
When the RSI crosses below the SMA, it will close the long position.
This should now execute a buy order at the high of the signal candle when the RSI crosses above the SMA, as requested.
30-70 RSI Strategy with Colored BarThis script colors price bars based on Relative Strength Index (RSI) levels, giving traders a quick and visual way to assess overbought or oversold market conditions directly on the chart.
📈 Key Features:
✅ RSI-Based Bar Coloring:
Green bars when RSI is above the upper threshold (default 70) – suggests bullish momentum.
Red bars when RSI is below the lower threshold (default 30) – indicates bearish pressure.
Bars remain uncolored when RSI is between thresholds – a neutral zone.
🔧 Customizable RSI Settings:
Adjustable RSI length (default: 14 periods)
Adjustable overbought/oversold levels (default: 70/30)
🧠 Helps traders:
Quickly spot potential reversals or trend continuations
Visually align price action with momentum
🛠️ Usage:
Ideal for trend-following, reversal, and momentum strategies.
Works across any timeframe (1m, 5m, 1h, daily, etc.).
Multi-Indicator Strategy By Arvind Dodke [EMA+MACD+RSI+ADX]This strategy is based on EMA + MACD + RSI +ADX. You can backtest it. Change order size 1 from properties. Change the parameters for better result.
UT Bot Strategy Backtest with Date RangeBacktesting Strategy for UT Bot Alerts by QuantNomad
• Preferred Settings: Heikin Ashi candles, 15m chart length, January 1, 2025 to current date, Key value: 1, ATR: 10, Order size: 50% of equity, Recalculation and order filling unchecked.
• Most Profitable Token: FARTCOIN using above settings.
4H MA Crossover Pullback StrategyMedium-High frequency Moving Average Crossover Pullback strategy
Fast EMA (50) > Slow EMA (200) for trend confirmation.
Entries occur when price pulls back to a 20 EMA, then resumes with a crossover.
RSI filter added to ensure momentum is aligned.
ATR-based stop loss and take profit with a 1.2:1 risk-reward ratio.
StochRSI Strategy with SL/TP updatedSimple StoschiRSi strategy have backtest with input management of stop loss and take profit, have some adjustment to other version the exit the trade..