VWAP Breakout Strategy + EMAs + Clean Cycle/TP/SL PlotsHere’s a quick user-guide to get you up and running with your “VWAP Breakout Strategy + EMAs + Clean Cycle/TP/SL Plots” script in TradingView:
⸻
1. Installing the Script
1. Open TradingView, go to Pine Editor (bottom panel).
2. Paste in your full Pine-v6 code and hit Add to chart.
3. Save it (“Save as…”): give it a memorable name (e.g. “VWAP Breakout+EMAs”).
⸻
2. Configuring Your Inputs
Once it’s on the chart, click the ⚙️ Settings icon to tune:
Setting Default What it does
ATR Length 14 Period for average true range (volatility measure)
ATR Multiplier for Stop 1.5 How many ATRs away your stop-loss sits
TP1 / TP2 Multipliers (ATR) 1.0 / 2.0 Distance of TP1 and TP2 in ATR multiples
Show VWAP / EMAs On Toggles the blue VWAP line & EMAs (100/34/5)
Full Cycle Range Points 200 Height of the shaded “cycle zone”
Pivot Lookback 5 How many bars back to detect a pivot low
Round Number Step 500 Spacing of your dotted horizontal lines
Show TP/SL Labels On Toggles all the “ENTRY”, “TP1”, “TP2”, “STOP” tags
Feel free to adjust ATR multipliers and cycle-zone size based on the instrument’s typical range.
⸻
3. Reading the Signals
• Long Entry:
• Trigger: price crosses above VWAP
• You’ll see a green “Buy” tag at the low of the signal bar, plus an “ENTRY (Long)” label at the close.
• Stop is plotted as a red dashed line below (ATR × 1.5), and TP1/TP2 as teal and purple lines above.
• Short Entry:
• Trigger: price crosses below VWAP
• A red “Sell” tag appears at the high, with “ENTRY (Short)” at the close.
• Stop is the green line above; TP1/TP2 are dashed teal/purple lines below.
⸻
4. Full Cycle Zone
Whenever a new pivot low is detected (using your Pivot Lookback), the script deletes the old box and draws a shaded yellow rectangle from that low up by “Full Cycle Range Points.”
• Use this to visualize the “maximum expected swing” from your pivot.
• You can quickly see whether price is still traveling within a normal cycle or has overstretched.
⸻
5. Round-Number Levels
With Show Round Number Levels enabled, you’ll always get horizontal dotted lines at the nearest multiples of your “Round Number Step” (e.g. every 500 points).
• These often act as psychological support/resistance.
• Handy to see confluence with VWAP or cycle-zone edges.
⸻
6. Tips & Best-Practices
• Timeframes: Apply on any intraday chart (5 min, 15 min, H1…), but match your ATR length & cycle-points to the timeframe’s typical range.
• Backtest first: Use the Strategy Tester tab to review performance, tweak ATR multipliers or cycle size, then optimize.
• Combine with context: Don’t trade VWAP breakouts blindly—look for confluence (e.g. support/resistance zones, higher-timeframe trend).
• Label clutter: If too many labels build up, you can toggle Show TP/SL Labels off and rely just on the lines.
⸻
That’s it! Once you’ve added it to your chart and dialed in the inputs, your entries, exits, cycle ranges, and key levels will all be plotted automatically. Feel free to experiment with the ATR multipliers and cycle-zone size until it fits your instrument’s personality. Happy trading!
Indicators and strategies
Livermore-Seykota Breakout StrategyStrategy Name: Livermore-Seykota Breakout Strategy
Objective: Execute breakout trades inspired by Jesse Livermore, filtered by trend confirmation (Ed Seykota) and risk-managed with ATR (Paul Tudor Jones style).
Entry Conditions:
Long Entry:
Close price breaks above recent pivot high.
Price is above main EMA (EMA50).
EMA20 > EMA200 (uptrend confirmation).
Current volume > 20-period SMA (volume confirmation).
Short Entry:
Close price breaks below recent pivot low.
Price is below main EMA (EMA50).
EMA20 < EMA200 (downtrend confirmation).
Current volume > 20-period SMA.
Exit Conditions:
Stop-loss: ATR × 3 from entry price.
Trailing stop: activated with offset of ATR × 2.
Strengths:
Trend-aligned entries with volume breakout confirmation.
Dynamic ATR-based risk management.
Inspired by principles of three legendary traders.
NY HIGH LOW BREAKThis Pine Script code implements a "NY High Low Break" strategy, designed to trade breakouts from the high and low of the initial New York trading session. It focuses on capturing momentum when price moves beyond these key levels.
Strategy Overview
The core idea of this strategy revolves around identifying the price range established during the first 30 minutes of the New York trading session (7:01 AM to 7:31 AM GMT-4). Once this range is defined, the strategy looks for breakouts above the high or below the low of this initial candle.
Key Components:
New York Session Range Definition: The strategy first determines the high and low of the first 30-minute candle of the New York trading session. This range acts as the "NY Box" or the "opening range".
Breakout Signals:
Long Signal: Generated when the price breaks and closes above the high of the initial New York candle, indicating potential upward momentum.
Short Signal: Generated when the price breaks and closes below the low of the initial New York candle, indicating potential downward momentum.
Trade Execution: Trades are entered based on these breakout signals.
Risk Management:
Dynamic Lot Sizing: The lotsvalue function calculates the appropriate position size based on the configured risk percentage (1% of equity by default) and the distance to the stop-loss. This ensures consistent risk management per trade.
Stop-Loss (SL): Set at the midpoint of the initial New York session's high and low. This provides a fixed and logical stop-loss level once a breakout occurs.
Take-Profit (TP): Calculated using a predefined Risk-to-Reward (RR) ratio (2.0 by default), aiming for a profit target twice the size of the stop-loss distance.
Daily Trade Limit: The strategy has a built-in limit of 2 trades per day (day_trade_counter < 2). This helps prevent overtrading.
Daily Profit Target: If a certain daily profit target (equal to the RR value) is met, the strategy stops trading for the remainder of the day (get_stop_trade).
Session Management: The strategy specifically defines and highlights the New York trading session and lunch break on the chart using background colors. Trades are only allowed within specified trading hours (8:00 AM to 4:00 PM New York time, with a lunch break from 11:30 AM to 12:30 PM).
Visual Representation: Plots the New York session's high and low lines, as well as the stop-loss, take-profit, and entry levels for active trades directly on the chart. Diamond shapes indicate potential buy/sell signals.
Performance Tracking: A table is displayed on the chart showing daily profit, number of trades, daily losses, and daily wins, providing real-time performance insights.
How to Use:
Apply to Chart: Add the "NY HIGH LOW BREAK" strategy to your TradingView chart.
Adjust Inputs: Customize the Risk to Reward ratio (rr) to your preference.
Timeframe: This strategy is designed for intraday timeframes (1-minute and 5-minute are explicitly supported in the signal logic).
Market Selection: While the code includes specific pip values for XAUUSD, SOLUSD, USDCHF, AVAXUSD, and DOTUSD, this strategy can be adapted to other liquid instruments with clear New York session opening ranges.
Important Considerations:
Time Zone: The strategy uses "GMT-4" for timestamp calculations, which corresponds to New York time during Daylight Saving Time. Be aware of potential adjustments if not trading during DST.
Market Volatility: Breakout strategies can be highly effective in volatile markets but may struggle in range-bound or choppy conditions.
Backtesting: Thoroughly backtest the strategy on your chosen instrument and timeframe to understand its historical performance and limitations.
Risk Management: Always understand and accept the risks associated with trading. Past performance is not indicative of future results.
Smart Trading System v3This strategy is a precision-based trend-following system that leverages multi-timeframe alignment and momentum signals. Entry decisions are made using a blend of moving average pullbacks and oscillator crossovers, triggered only during active trading hours. Exits are governed by trailing volatility thresholds or key indicator reversals, adapting intelligently to the instrument’s behavior while managing risk through position sizing and drawdown constraints.
Backtest: EMA + CPR + Volume + SL/TargetBacktest Strategy — EMA + CPR + Volume + SL/Target
Buy & Sell signals: Plotted on chart
Volume Spike Filter: Volume > 20-day average
Stop-Loss: 1.5% below entry price
Target: 3% above entry price (can be adjusted)
Backtest mode: Tracks performance
Works on all stocks (Futures or Equity)
Liquidity Grab Strategy (Volume Trap)🧠 Strategy Logic:
Liquidity Grab Detection:
The script looks for a sharp drop in price (bearish engulfing or breakdown candle).
However, volume remains flat (within 5% of the 20-period moving average), suggesting the move is manipulated, not genuine.
Fair Value Gap Confirmation (FVG):
It confirms that a Fair Value Gap exists — a gap between recent candle bodies that price is likely to retrace into.
This gap represents a high-probability entry zone.
Trade Setup:
A limit BUY order is placed at the base of the FVG.
Stop Loss (SL) is placed below the gap.
Take Profit (TP) is placed at the most recent swing high.
📈 How to Use It:
Add the strategy to your TradingView chart (1–5 min or 15 min works well for intraday setups).
Look for green BUY labels and plotted lines:
💚 Green = Entry price
🔴 Red = Stop loss
🔵 Blue = Take profit
The script will automatically simulate entries when conditions are met and exit either at TP or SL.
Use TradingView’s Strategy Tester to review:
Win rate
Net profit
Risk-adjusted performance
BankNifty 9:15 Breakout - Fixed Qty 30. 🎯 Strategy Objective
To trade the Bank Nifty Futures based on the breakout of the 9:15 AM candle (15-min) using a fixed quantity of 30 lots, with intraday reversal and exit logic.
MFI EMA Divergence Strategyema 9-ema45
ema 9 trên ema45 xu hướng tăng
ema 9 dưới ema 45 xu hướng giảm
Ali 3-Bar MC v5 (Structure Exit)Ali 3 bar MC implemented by Joo
//@version=5
strategy("Ali 3-Bar MC v5 (Structure Exit)", overlay=true, default_qty_type=strategy.fixed, default_qty_value=1)
// === INPUTS ===
showLabels = input.bool(true, title="Show Entry Labels")
rewardMultiple = input.float(1.0, title="Reward : Risk")
minStrongCloseRatio = input.float(0.75, title="Strong Close Threshold")
atrLength = input.int(4, title="ATR Length")
atrMult = 2.0
// === ATR ===
atr = ta.sma(ta.tr(true), atrLength)
tick = syminfo.mintick
// === Ali BULL MC ===
bullBar1 = close > open
bullBar2 = close > open
bullBar3 = close > open
bullStrong1 = (close - low ) / (high - low + 0.01) > minStrongCloseRatio
bullStrong2 = (close - low ) / (high - low + 0.01) > minStrongCloseRatio
bullStrong3 = (close - low ) / (high - low + 0.01) > minStrongCloseRatio
bullHasStrong = bullStrong1 or bullStrong2 or bullStrong3
bullMicroGap = low > high
bullTrendLow = low > low and low > low and low > low
isAliBull = bullBar1 and bullBar2 and bullBar3 and bullHasStrong and bullMicroGap and bullTrendLow
// === Ali BEAR MC ===
bearBar1 = close < open
bearBar2 = close < open
bearBar3 = close < open
bearStrong1 = (close - low ) / (high - low + 0.01) < 1 - minStrongCloseRatio
bearStrong2 = (close - low ) / (high - low + 0.01) < 1 - minStrongCloseRatio
bearStrong3 = (close - low ) / (high - low + 0.01) < 1 - minStrongCloseRatio
bearHasStrong = bearStrong1 or bearStrong2 or bearStrong3
bearMicroGap = high < low
bearTrendHigh = high < high and high < high and high < high
isAliBear = bearBar1 and bearBar2 and bearBar3 and bearHasStrong and bearMicroGap and bearTrendHigh
// === ENTRY/RISK/TARGET ===
bullEntry = high + tick
bullRisk = atr * atrMult
bullStop = bullEntry - bullRisk
bullTarget = bullEntry + bullRisk * rewardMultiple
bearEntry = low - tick
bearRisk = atr * atrMult
bearStop = bearEntry + bearRisk
bearTarget = bearEntry - bearRisk * rewardMultiple
// === STATE ===
var float bullGapCloseLine = na
var float bearGapCloseLine = na
var bool inLong = false
var bool inShort = false
var bool bullStructureExitArmed = false
var bool bearStructureExitArmed = false
var float lastBullOpen = na
var float lastBearOpen = na
// === BULL ENTRY ===
endOfDayEntryCutoff = time >= timestamp("America/New_York", year, month, dayofmonth, 15, 55)
if isAliBull and not endOfDayEntryCutoff and strategy.position_size == 0
strategy.entry("Ali Long", strategy.long, stop=bullEntry)
strategy.exit("Long SL", from_entry="Ali Long", stop=bullStop)
bullGapCloseLine := low
lastBullOpen := open
inLong := true
bullStructureExitArmed := false
// === BEAR ENTRY ===
if isAliBear and not endOfDayEntryCutoff and strategy.position_size == 0
strategy.entry("Ali Short", strategy.short, stop=bearEntry)
strategy.exit("Short SL", from_entry="Ali Short", stop=bearStop)
bearGapCloseLine := high
lastBearOpen := open
inShort := true
bearStructureExitArmed := false
// === GAP CLOSE ===
// === Exit label handled per-exit; no shared label variable
if inLong and low <= bullGapCloseLine
strategy.close("Ali Long", comment="Gap Closed")
label.new(bar_index, low, text="Exit: Gap Closed", style=label.style_label_down, color=color.red, textcolor=color.white)
inLong := false
if inShort and high >= bearGapCloseLine
strategy.close("Ali Short", comment="Gap Closed")
label.new(bar_index, high, text="Exit: Gap Closed", style=label.style_label_up, color=color.orange, textcolor=color.white)
inShort := false
// === STRUCTURE-BASED TRAILING ===
isBearBar = close < open
engulfBull = isBearBar and close < lastBullOpen
isBullBar = close > open
engulfBear = isBullBar and close > lastBearOpen
if inLong
if not bullStructureExitArmed and high >= bullTarget
strategy.exit("Lock Long", from_entry="Ali Long", stop=bullTarget)
bullStructureExitArmed := true
if bullStructureExitArmed and engulfBull
strategy.close("Ali Long", comment="Bear bar engulf exit")
label.new(bar_index, close, text="Exit: Engulf Bar", style=label.style_label_down, color=color.green, textcolor=color.white)
inLong := false
bullStructureExitArmed := false
if inShort
if not bearStructureExitArmed and low <= bearTarget
strategy.exit("Lock Short", from_entry="Ali Short", stop=bearTarget)
bearStructureExitArmed := true
if bearStructureExitArmed and close > open and close > lastBearOpen
strategy.close("Ali Short", comment="Bull bar engulf exit")
label.new(bar_index, close, text="Exit: Engulf Bar", style=label.style_label_up, color=color.lime, textcolor=color.white)
inShort := false
bearStructureExitArmed := false
// === END OF DAY EXIT ===
endOfDay = time >= timestamp("America/New_York", year, month, dayofmonth, 15, 30) // 可视为收盘前5分钟(适用于美股时间)
if inLong and endOfDay
strategy.close("Ali Long", comment="EOD Exit")
label.new(bar_index, close, text="Exit: EOD", style=label.style_label_down, color=color.gray, textcolor=color.white, size=size.small)
inLong := false
if inShort and endOfDay
strategy.close("Ali Short", comment="EOD Exit")
label.new(bar_index, close, text="Exit: EOD", style=label.style_label_up, color=color.gray, textcolor=color.white, size=size.small)
inShort := false
// === RESET ===
if strategy.position_size == 0
inLong := false
inShort := false
bullStructureExitArmed := false
bearStructureExitArmed := false
// === PLOTS ===
plotshape(isAliBull and showLabels, location=location.belowbar, style=shape.labelup, color=color.green, text="Bull 3MC")
plotshape(isAliBear and showLabels, location=location.abovebar, style=shape.labeldown, color=color.red, text="Bear 3MC")
SuperBollingerTrend MACD ADXWrote this, but it didn't work so well
I used MACD ADX and SuperBollingerTrend
magic wandThis Pine Script code implements a "magic wand" trading strategy. Its core purpose is to identify potential entry and exit points for long and short trades based on a combination of technical indicators, including Moving Averages (EMA and SMA), Supertrend, and pivot analysis. It also incorporates risk management, lot size calculation, and trade statistics displayed in a table.
Strategy Overview
This strategy combines multiple technical indicators to generate trade signals:
Moving Averages (MA): Uses EMA (60, 34) and SMA (200) to identify overall market direction and potential support/resistance levels. The SMA 200 is particularly important as a filter for trade direction (price above SMA 200 for longs, below for shorts).
Supertrend: This indicator is used in both the current and a higher timeframe to confirm the prevailing trend. The strategy looks for alignment in the Supertrend direction across timeframes.
Pivot Analysis: Custom functions are implemented to identify specific price action around pivot points, looking for candlestick patterns that confirm buy or sell readiness.
Key Features:
Multi-Timeframe Analysis: Utilizes request.security to fetch Supertrend and SMA data from a higher timeframe. This helps to filter out noise and trade in the direction of the broader trend.
Dynamic Lot Sizing: The lotsvalue function calculates the appropriate lot size for each trade based on your specified equity, risk percentage, and the distance to the stop-loss. This ensures consistent risk management per trade.
Risk Management:
Stop-Loss (SL): Automatically set based on the Supertrend value for both long and short trades.
Take-Profit (TP): Calculated using a predefined Risk-to-Reward (RR) ratio (rr input).
Daily & Monthly Performance Tracking: The strategy tracks daily and cumulative wins/losses and profits in a table. It includes logic to potentially pause trading if daily or monthly loss limits are reached (day_profit and monthly_trade variables).
Trade Confirmation: Entry signals are confirmed by a combination of Supertrend direction, price position relative to the SMA 200, and specific candlestick patterns identified around pivot points.
Visual Aids: Plots the SMA 200, stop-loss, take-profit, and entry prices on the chart, along with fills to visually represent potential profit and loss zones. Diamond shapes are plotted to indicate buy/sell readiness.
Alerts: The strategy can send alerts on trade entries (including symbol, trade type, lot size, SL, and TP) and daily/monthly performance summaries at specific times.
How it Works (Simplified Logic):
Long Entry: When Supertrend indicates an uptrend (both current and higher timeframe), price is above SMA 200, and a specific "buy readiness" candlestick pattern is confirmed.
Short Entry: When Supertrend indicates a downtrend (both current and higher timeframe), price is below SMA 200, and a specific "sell readiness" candlestick pattern is confirmed.
Exits: Trades are exited automatically when either the stop-loss or take-profit level is hit.
Potential Considerations for Publication:
Readability: Ensure your variable names and comments are clear and easy to understand for other users.
Performance: While the current code is generally robust, complex loops or excessive request.security calls in larger, more intricate strategies can sometimes lead to performance issues or script timeouts on TradingView. Using built-in Pine Script functions like ta.lowest and ta.highest instead of custom loops can often improve efficiency.
Customization: Highlight the input parameters that users can adjust (e.g., equity, risk percentage, RR ratio, MA lengths, Supertrend settings) to tailor the strategy to their preferences.
Disclaimer: Always include a disclaimer stating that past performance is not indicative of future results and that trading involves risk.
V2_Livermore-Seykota Breakout)V2_ Livermore-Seykota Breakout Strategy
Objective: Execute breakout trades inspired by Jesse Livermore, filtered by trend confirmation (Ed Seykota) and risk-managed with ATR (Paul Tudor Jones style).
Entry Conditions:
Long Entry:
Close price breaks above recent pivot high.
Price is above main EMA (EMA50).
EMA20 > EMA200 (uptrend confirmation).
Current volume > 20-period SMA (volume confirmation).
Short Entry:
Close price breaks below recent pivot low.
Price is below main EMA (EMA50).
EMA20 < EMA200 (downtrend confirmation).
Current volume > 20-period SMA.
Exit Conditions:
Stop-loss: ATR × 3 from entry price.
Trailing stop: activated with offset of ATR × 2.
Strengths:
Trend-aligned entries with volume breakout confirmation.
Dynamic ATR-based risk management.
Inspired by principles of three legendary traders.
Trend Revisit Pullback Strategy (Final Working Box)📈 Trend Revisit Pullback Strategy
This TradingView Pine Script strategy identifies strong trend breakouts and accounts for natural pullbacks by:
Entering long or short on strong 1-bar breakouts
Allowing for pullback averaging if price retraces after entry
Expecting a revisit to the original entry price within 15 bars
Automatically exiting at break-even or using a custom TP/SL
Drawing a visual trade zone (entry → SL → revisit window) for easy reference
Optional labels and color-coded boxes to track each trade’s lifecycle
Ideal for trend traders who anticipate a pullback and prefer to manage risk with break-even exits or reward-to-risk parameters.
Gold Breakout Strategy - RR 4Strategy Name: Gold Breakout Strategy - RR 4
🧠 Main Objective
This strategy aims to capitalize on breakouts from the Donchian Channel on Gold (XAU/USD) by filtering trades with:
Volume confirmation,
A custom momentum indicator (LWTI - Linear Weighted Trend Index),
And a specific trading session (8 PM to 8 AM Quebec time — GMT-5).
It takes only one trade per day, either a buy or a sell, using a fixed stop-loss at the wick of the breakout candle and a 4:1 reward-to-risk (RR) ratio.
📊 Indicators Used
Donchian Channel
Length: 96
Detects breakouts of recent highs or lows.
Volume
Simple Moving Average (SMA) over 30 bars.
A breakout is only valid if the current volume is above the SMA.
LWTI (Linear Weighted Trend Index)
Measures momentum using price differences over 25 bars, smoothed over 5.
Used to confirm trend direction:
Buy when LWTI > its smoothed version (uptrend).
Sell when LWTI < its smoothed version (downtrend).
⏰ Time Filter
The strategy only allows entries between 8 PM and 8 AM (GMT-5 / Quebec time).
A timestamp-based filter ensures the system recognizes the correct trading session even across midnight.
📌 Entry Conditions
🟢 Buy (Long)
Price breaks above the previous Donchian Channel high.
The current channel high is higher than the previous one.
Volume is above its moving average.
LWTI confirms an uptrend.
The time is within the trading session (20:00 to 08:00).
No trade has been taken yet today.
🔴 Sell (Short)
Price breaks below the previous Donchian Channel low.
The current channel low is lower than the previous one.
Volume is above its moving average.
LWTI confirms a downtrend.
The time is within the trading session.
No trade has been taken yet today.
💸 Trade Management
Stop-Loss (SL):
For long entries: placed below the wick low of the breakout candle.
For short entries: placed above the wick high of the breakout candle.
Take-Profit (TP):
Set at a fixed 4:1 reward-to-risk ratio.
Calculated as 4x the distance between the entry price and stop-loss.
No trailing stop, no break-even, no scaling in/out.
🎨 Visuals
Green triangle appears below the candle on a buy signal.
Red triangle appears above the candle on a sell signal.
Donchian Channel lines are plotted on the chart.
The strategy is designed for the 5-minute timeframe.
🔄 One Trade Per Day Rule
Once a trade is taken (buy or sell), no more trades will be executed for the rest of the day. This prevents overtrading and limits exposure.
Scalping EMA + RSI Strategy (Long & Short)Scalping EMA with RSI Strategy.
Entry Criteria: Indicators, price action, or patterns triggering entries.
Stop Loss (SL): Fixed pips, ATR-based, or swing low/high.
Take Profit (TP): Fixed reward, trailing stop, or dynamic levels.
RRR Target: e.g., 1:1.5 or 1:2.
MFI EMA Divergence Strategypositive mfi divergence when price falls and makes a lower low but mfi makes a higher low
negative mfi divergence when price falls and makes a higher high but mfi makes a lower high
CANX MA Crossover© CanxStixTrader
Moving average crossover systems measure drift in the market. They are great strategies for time-limited traders. KEEP IT SIMPLE
This strategy works both for buys and sells using the reaction line to guide your position against the reactions.
HOW TO USE THE INDICATOR
1) Choose your market and timeframe.
2) Choose the length.
3) Choose the multiplier.
4) Choose if the strategy is long-only or bidirectional (longs & shorts).
TIPS
The strategy works best in bullish markets as that is the primary direction that market such as stocks, indexes and metals like to move.
- Increase the multiplier to reduce whipsaws
- Increase the length to take fewer trades
- Decrease the length to take more trades
- Try a Long-Only strategy to see if that performs better.
The base set up when you load the indicator is for the 1 minute chart on gold. We found that it also works well on the US Indexes. For other markets you may need to change the length and multiplier to suit the market and back test its results.
Crypto Scalping Strategy [Dubic] - LONG Only📈 Crypto Scalping Strategy – LONG Only
This strategy is designed for scalping crypto assets on lower timeframes (e.g., 5m, 15m, 1H), focused strictly on LONG entries with smart trend confirmation and ATR-based risk management.
✅ Core Features
EMA Trend Confirmation: Entry triggers when fast EMA crosses above slow EMA and RSI confirms bullish strength.
Re-Entry Logic: Detects pullbacks using Heikin Ashi candles and enters again when bullish momentum resumes.
ATR-Based Stop Loss & Take Profit: Dynamic SL and TP levels adapt to market volatility.
Trailing Take Profit: After initial TP is hit, a trailing TP protects profits as the trend continues.
Visual SL/TP Levels: Plots ATR stop loss, take profit, and trailing TP levels directly on the chart.
Alert-Ready: Includes webhook-compatible alerts for Initial Buy, Re-entry Buy, and Manual Exit signals.
⚙️ Inputs You Can Customize
EMA Fast/Slow Periods
RSI Length
ATR Length and multipliers for SL/TP
Trailing TP Deviation %
🔔 Alerts
Ready-to-use alerts for:
Initial Buy
Re-Entry Buy
Manual Exit when price closes below the fast EMA
Webhook messages are formatted in JSON for easy integration with bots or automation tools.
🚨 Disclaimer: This is a long-only strategy built for educational and testing purposes. Always backtest thoroughly and use proper risk management before trading live.
RSI + MACD Cross StrategyRSI + MACD Cross Strategy (No Trailing SL)
When your trade goes into profit, the best thing to do is to move your Stop Loss to a logical point behind the most recent swing low or swing high, depending on whether you're in a Buy or Sell position. This way, if the market reverses, you’ll at least secure the profit you had up to that point.
Smart Trendlines Strategy with SL/TP (Hybrid)This is a breakout trading strategy that uses dynamic trendlines based on recent swing highs and lows. Trendlines are sloped using ATR-based volatility to adapt to market conditions. Trades are triggered when price breaks above or below these trendlines, with automatic stop-loss and two take-profit levels based on customizable risk/reward settings. Includes visual signals, labels, and full backtest support.
Valtoro Trading BotThis PineScript code defines a trading strategy based on moving average crossovers with additional conditions and risk management. Here's a breakdown:
Strategy Overview
1%-2% Daily Profit!
The strategy uses two Simple Moving Averages (SMA) with periods of 100 and 200. It generates buy and sell signals based on the crossover of these MAs, combined with RSI (Relative Strength Index) conditions.
Buy and Sell Conditions
Buy: Short MA crosses over Long MA, RSI < 70, and close price > open price.
Sell: Short MA crosses under Long MA, RSI > 30, and close price < open price.
Close Conditions
Close Long: Short MA crosses under Long MA or RSI > 80.
Close Short: Short MA crosses over Long MA or RSI < 20.
Risk Management
Stop Loss: 2% of the entry price.
Take Profit: 5% of the entry price.
Position Sizing
The strategy calculates the position size based on a risk percentage (1% of equity) and the stop loss percentage.
Some potential improvements to consider:
1. Optimize parameters: Experiment with different MA periods, RSI thresholds, and risk management settings to improve strategy performance.
2. Add more conditions: Consider incorporating other technical indicators or market conditions to refine the strategy.
3. Test on different assets: Evaluate the strategy's performance on various assets and timeframes.