Versi UT Bot Anti-Margin Call (Short SL = Take Profit)📌 Strategy Purpose
This strategy uses a UT Bot system based on ATR trailing stops to generate buy/sell signals. It is customized to focus on risk control and avoiding margin calls, especially in leveraged environments.
🔧 Input Parameters
Key Value (a): Sensitivity of the trailing stop (multiplier of ATR).
ATR Period (c): Lookback period for ATR calculation.
Use Heikin Ashi?: Option to apply Heikin Ashi candles instead of regular price.
Risk % per Trade: Fraction of account equity to risk per trade.
Minimum Position Size: Ensures a base size for positions regardless of calculations.
🔍 Core Components
1. Price Source
pinescript:
src = h ? request.security(haTicker, timeframe.period, close) : close
Allows the user to switch between regular candles and Heikin Ashi candles.
2. ATR & Trailing Stop
A dynamic, price-following trailing stop:
pinescript:
xATRTrailingStop := ...
Adjusts upward when price rises and downward when price falls. It’s the foundation for signal generation.
3. UT Bot Buy/Sell Signals
Based on crossover/crossunder of price and the trailing stop:
pinescript:
buySignal = ta.crossover(close, xATRTrailingStop)
sellSignal = ta.crossunder(close, xATRTrailingStop)
4. Risk Management & Position Sizing
Trade size is calculated dynamically:
pinescript:
longQty = ...
shortQty = ...
Based on account equity and ATR-derived risk, with a minimum size enforced.
5. Trend Detection
Simple trend filter using moving averages:
pinescript:
isTrendUp = ta.sma(close, 5) > ta.sma(close, 20)
isTrendDown = ta.sma(close, 5) < ta.sma(close, 20)
Currently not actively used in entries.
6. Entry & Exit Logic
Long Entry:
Triggered by buySignal.
Closes existing short, enters long with calculated size.
SL = max(2 x ATR, 10% of last profit or capital).
Short Entry:
Triggered by sellSignal.
Closes existing long, enters short.
Exit logic acts like a take profit using a stop at entryPrice - stopLoss.
7. Visuals & Alerts
Plots buy/sell labels and bar colors. Alerts can be set for both signal types.
⚠️ Strengths
Strong risk management through dynamic stop-loss and position sizing.
Designed to avoid margin calls by preventing oversizing.
Heikin Ashi compatibility may smooth signals in volatile conditions.
Visuals and alerts enhance user interaction.
❌ Potential Weaknesses
Short position exit uses a stop loss, but functions more like a take profit.
Trend detection is calculated but not used in entry decisions.
No re-entry logic after a stop-out.
Does not use strategy.opentrades for deeper trade control.
✅ Suggestions for Improvement
Actively apply the trend filter to validate entries.
Use strategy.opentrades to manage trade conditions more intelligently.
Add a real take profit logic for long trades (to mirror short side).
Consider using the trailing stop for exits as well, not just for signals.
Candlestick analysis
Configurable Vertical LineThis indicator adds a vertical line at a set amount of bars back. Specifically for when you are using the "auto" chart sizing and the long or short position on auto.
this will allow consistent measuring without using the measuring tool.
Hybrid Heikin Ashi OverlayHybrid Heikin Ashi Overlay
I personally like Heikin Ashi for its simplicity in showing clean trends. However, it tends to smooth out price action so much that we sometimes miss key signals from the actual candles.
This indicator overlays Heikin Ashi-style background colors while keeping regular candles intact — giving you the best of both worlds:
• Smoother trend visibility
• No loss of execution precision
• Customizable colors & transparency
🔹 No repainting
🔹 No strategy logic — purely visual
🔹 Designed to reduce clutter and help traders stay focused on structure
Created by: @yug_and_her
Bearish RSI + 2 Bullish Candles - Colored REV LabelsDetects a reversal pattern: bearish candle with RSI ≤ 30, followed by two consecutive bullish candles.
Prints a REV label with:
Green by default
Red if two labels appear within 20 bars, and the second label is higher than the first
Yellow if two labels appear within 20 bars, and the second label is lower than the first
High/Low last 1-3 candlesHere you can display the high and low of the last 1, 2 or 3 candles. The whole thing is updated with every new candle. you can also switch the lines on or off as you wish and adjust the colour of the lines. have fun with it
Candle/RSI BUY SELLWhy Use Candlesticks?
They help traders visualize price action
Used in technical analysis and price pattern recognition (e.g., Doji, Engulfing, Hammer)
Assist in determining entry and exit points
Why Traders Use RSI:
To identify potential reversal zones
To confirm trend strength
To detect divergences between price and momentum
Why Combine Candlestick Patterns with RSI?
Using Candlestick patterns together with the Relative Strength Index (RSI) enhances trading decisions by combining price action and momentum analysis.
Conclusion:
Combining RSI with Candlestick patterns allows traders to:
Confirm potential reversals
Filter false signals
Improve entry and exit timing
Make more confident and accurate decisions
How It Works:
RSI Calculation
Custom RSI is calculated manually using Wilder's smoothing technique.
MA or BB Option
User can select whether to apply a smoothing MA or Bollinger Bands to RSI (useful for visual enhancements or custom strategies).
Buy/Sell Logic
check for:
Buy when the current candle is bullish (open <= close) and the previous candle was bearish (open >= close ), AND RSI is ≥ 50.
Sell when current candle is bearish and previous was bullish, AND RSI is ≤ 50.
Plot Buy/Sell Labels
Final Verdict
code is:
Valid (no syntax errors)
Useful (combines candlestick confirmation + RSI strength)
Extendable (can add divergence, alerts, etc.)
This Timeframe 5 min
email : dudedicate@gmail.com
TAKAM 2-Candle Break Above MA200first candle (bullish or bearish) low below MA200, second candle (bullish) closes above first candle close and above MA200
Dynamic Candle Levels — High/Low & 50% Lines LiveThis indicator dynamically visualizes the key price levels of the current and recent candles in real-time.
Automatically draws lines at the highs and lows of the last X candles
Marks the 50% level of each candle with horizontal lines
Updates the lines of the currently forming candle live as high, low, and midpoint change
Fully customizable colors, line widths, and number of displayed candles
Perfect for quickly identifying support and resistance zones or intermediate levels at a glance to make faster trading decisions.
Settings:
Number of candles for high/low and 50% lines
Colors and widths of the lines
Option to show live lines for the current candle
Bullish Engulfing off MA200 - BE SignalFirst candle (1 bar ago) is bearish and its low is below MA200.
Second candle (current bar) is bullish, its high is higher than the previous candle's high, and it closes above MA200.
If the pattern is detected, a white label "BE" is printed below the engulfing candle.
Candle/RSI BUY SELLWhy Use Candlesticks?
They help traders visualize price action
Used in technical analysis and price pattern recognition (e.g., Doji, Engulfing, Hammer)
Assist in determining entry and exit points
Why Traders Use RSI:
To identify potential reversal zones
To confirm trend strength
To detect divergences between price and momentum
Why Combine Candlestick Patterns with RSI?
Using Candlestick patterns together with the Relative Strength Index (RSI) enhances trading decisions by combining price action and momentum analysis.
Conclusion:
Combining RSI with Candlestick patterns allows traders to:
Confirm potential reversals
Filter false signals
Improve entry and exit timing
Make more confident and accurate decisions
How It Works:
RSI Calculation
Custom RSI is calculated manually using Wilder's smoothing technique.
MA or BB Option
User can select whether to apply a smoothing MA or Bollinger Bands to RSI (useful for visual enhancements or custom strategies).
Buy/Sell Logic
check for:
Buy when the current candle is bullish (open <= close) and the previous candle was bearish (open >= close ), AND RSI is ≥ 50.
Sell when current candle is bearish and previous was bullish, AND RSI is ≤ 50.
Plot Buy/Sell Labels
Final Verdict
code is:
Valid (no syntax errors)
Useful (combines candlestick confirmation + RSI strength)
Extendable (can add divergence, alerts, etc.)
This Timeframe 5 min
Elliott Wave + Fib Levels w/Alerts [Enhanced]Elliott Wave + Fibonacci Levels with Alerts
This powerful TradingView indicator combines Elliott Wave detection with customizable Fibonacci retracement levels to help identify key price zones and potential trade opportunities. It automatically detects bullish and bearish waves based on recent highs and lows, with an optional EMA filter to improve trend accuracy.
Key features include:
Dynamic detection of Elliott Waves based on configurable wave length.
Visualization of Fibonacci retracement levels on detected waves, with customizable percentage levels and optional labels for clarity.
ATR-based automatic calculation of stop loss and take profit levels with adjustable multipliers.
Real-time alerts triggered on new wave formations, indicating bullish or bearish setups with precise entry price details.
Clean plotting of entry signals, stop loss, and take profit zones directly on the chart.
User-friendly input controls to tailor the indicator to your trading style, including options to toggle EMA filtering, Fibonacci level display, and alert activation.
Ideal for traders looking to combine classic wave analysis with Fibonacci support/resistance levels and actionable trade alerts, this indicator streamlines technical analysis and trade management in one easy-to-use tool.
Chande Momentum OscillatorReally JUST CMO with a signal
There isnt much to say about the chande mom.
I tend to focus on higher timeframe to plan for the week or day, and scalp with lower timeframes.
Divergence reading, LL HH readings are key here, if youre good at spotting them in lower timeframes youd be pretty profitable.
Is this long enough TV ?
London 23:00 Body‑RangeLondon 23:00 Body-Range bla bla bla bla bla bjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
Pin Bar Detector (66% Wick)Higher probability pin bar indicator highlighting only pinbars with 66% wick
ScalpGuard XRP M1 - Ultra EnhancedXRP Strategy that provide signals when to buy and when to exit the trade. This is not 100% accurate
Bearish RSI + 2 Bullish Candles with Smart Label bearish candle with RSI ≤ 30, followed by two consecutive bullish candles, and prints a green label REV on the chart when the condition is met
Best Fractals (Modified)"Best Fractals" Indicator – Modified Version
This updated version of the "Best Fractals" TradingView indicator introduces the following improvements:
✅ Changes Implemented:
Line Color Changed to Black:
The horizontal lines that represent recent fractal levels are now drawn in black instead of red (for tops) and green (for bottoms).
This helps ensure better visibility across various chart backgrounds.
Fractal Marker Position Adjusted (Bottom Fractals):
The bottom fractal triangle markers are now positioned closer to the candles by reducing the offset from -len to -1.
This provides a more visually aligned and natural placement relative to price action.
🔧 Unchanged Features:
Top and bottom fractals are still identified using custom logic based on the candle body highs and lows (not wicks).
Triangular markers are shown above or below bars.
Up to a specified number (fractalCount) of recent fractals are used to draw persistent horizontal lines.
All-in-One S/R Zones + Anchored VWAPWeekly and daily support and resistance zones - use for swing trading
MTF Candle Direction Forecast + Breakdown🧭 MTF Candle Direction Forecast + Breakdown 🔥📈🔼
This script is a multi-timeframe (MTF) price action dashboard that helps traders assess real-time directional bias across five customizable timeframes — with a focus on candle behavior, trend alignment, and confidence strength.
📌 What It Does
For each timeframe, this dashboard summarizes:
Current direction → Bullish, Bearish, or Neutral
Confidence score (0–100) → How strongly price is likely to continue in that direction
Candle strength → 🔥 icon appears if the current candle has a large body relative to its range
Trend alignment:
📈 = EMA9 is above EMA20
🔼 = Price is above VWAP
Color-coded background to visually reinforce directional state
Each row gives you a visual “at-a-glance” readout of what price is doing right now — not in the past.
💡 Why It’s Useful
✅ Direction forecasting based on price action
Instead of lagging indicators, this script prioritizes:
Candle body-to-range ratio (momentum)
Real-time VWAP/EMA structure
Immediate price positioning
✅ Confidence is quantified
The score (0–100) helps you judge how reliable each directional signal is:
90+ → Strong conviction
50–70 → Mixed but potentially valid
<40 → Weak move or early signal
✅ Timeframe confluence at a glance
See whether multiple timeframes are aligning directionally — helpful for scalping, day trading, or waiting for multi-timeframe breakout setups.
✅ Visual & intuitive
Icons, colors, and layout make it easy to scan your dashboard instead of deciphering charts or code.
🛠️ Adjustable Settings
Setting Description
Timeframe 1–5 Choose any timeframes to monitor (e.g., 5m, 15m, 1h, 4h)
Candle Display Mode Show trend color via emoji (🟢/🔴) or background shading
Strong Candle Threshold Adjust the body-to-range % needed to trigger 🔥 strength
Bullish/Bearish Background Customize label color coding
Neutral Background (opacity) Set transparency or styling for flat/consolidating zones
Table Location Place the dashboard anywhere on the chart
🎯 Use Cases
Scalpers: Confirm trend across 1m/5m/15m before entering
Day Traders: Use confidence score to avoid low-momentum setups
Swing Traders: Monitor higher timeframes for trend shifts while tracking intraday noise
VWAP/EMA traders: Quickly see when price is reclaiming or losing critical trend levels
🧠 What Makes It Unique?
Unlike generic trend meters or mashups of standard indicators, this script:
Uses live candle dynamics (not just closes or lagging values)
Computes directional bias and confidence together
Visualizes strength and structure in a compact, readable interface
Let’s you filter by price action, not just indicator alignment
💥 Why Traders Love Will Love It
✅ Instant clarity on which timeframes agree
✅ No more guessing candle strength or trend health
✅ Confidence score keeps you out of weak trades
✅ Works with any strategy — trend following, VWAP reclaim, EMA scalps, even breakouts
✅ Keeps your chart clean — all the context, none of the clutter
⚠️ Transparency🧬 Under the Hood
Powered by live candle body analysis, trend structure (EMA9 vs EMA20), and VWAP placement.
All scores are generated in real-time — No repainting or lookahead bias: all values are computed with lookahead=barmerge.lookahead_on
Confidence scores reflect the current candle only — they do not predict future moves but measure momentum and alignment in real-time
Labels update per bar and respond to subtle shifts in candle structure and trend indicators
✅ MTF Trend Snapshot (Live Output Example Shown in Chart Above)
This dashboard gives you a fast, visual summary of market trend and momentum across 5 timeframes. Here's what it's telling you right now:
🕔 5 Minute (5m)
📉 EMA Trend: Down
🔼 Price: Above VWAP
Direction: Bearish (42)
🟥 Weak bearish bias. Short-term pullback against a stronger trend. Use caution — lower confidence and mixed structure.
⏱️ 15 Minute (15m)
📈 EMA Trend: Up
🔼 Price: Above VWAP
Direction: Bullish (73)
🟩 Clean bullish structure with growing momentum. Solid for intraday confirmation.
🕧 30 Minute (30m)
📈 EMA Trend: Up
🔼 Price: Above VWAP
Direction: Bullish (77)
🟩 Stronger trend forming. Above VWAP and EMAs — building conviction.
🕐 1 Hour (1h)
📈 EMA Trend: Up
🔼 Price: Above VWAP
Direction: Bullish (70)
🟩 Confident, clean trend. Good alignment across indicators. Ideal timeframe for swing entries.
🕓 4 Hour (4h)
🔥 Strong Candle
📈 EMA Trend: Up
🔼 Price: Above VWAP
Direction: Bullish (100)
🟩 Full trend alignment with max momentum. Strong body candle + structure — high confidence continuation.
🧠 Quick Takeaway
🔻 5m is pulling back short term
✅ 15m through 4h are fully aligned Bullish
🔥 4h has max confidence — big-picture trend is intact
📈 Ideal setup for momentum traders looking to ride trend with multi-timeframe confirmation
Try pinning this dashboard to your chart during live trading to read price like a story across timeframes, and filter out weak setups with low-confidence noise.