Hedge Simulation Martingale v1
1. Overview & Strategy Logic
This script implements an automated, multi-position trading strategy that uses a Martingale-inspired approach to manage a series of entries. The core logic is as follows:
Initial Entry: The script enters a trade based on the direction of the previous bar's close. A green bar triggers a Long position; a red bar triggers a Short position.
Profit-Taking: A single, fixed-percentage profit target (Profit Percentage) is set for the entire trade. If reached, all positions are closed for a net profit.
Loss Management (Martingale Logic): If the price moves against the initial position and hits the fixed-percentage stop-loss (Loss Percentage), the script does not exit. Instead, it averages down by adding a new, larger position in the same direction. The size of the new position is determined by multiplying the previous position size by the First Multiplier.
Net Position Management: The script continuously calculates the net average entry price, a new combined profit target, and a new combined stop-loss based on all open positions. The goal is for a single favorable price move to recover all previous losses and hit the profit target.
2. Key Features
Visual Indicators:
Plots the Net Average Entry Price on the chart.
Plots dynamic Profit Target (TP) and Stop-Loss (SL) levels that update as new positions are added.
Displays entry signals (triangles) for the initial Long or Short trade.
Comprehensive Dashboard: A detailed table in the top-right corner shows real-time metrics, including:
Total historical Long/Short volume and PnL.
Current trade's investment, unrealized PnL, and position sizes.
Current position count, direction, and size.
Configurable Parameters:
Profit Percentage: The target profit percentage for the net position.
Loss Percentage: The stop-loss percentage that triggers a new entry.
Initial Position Size: The size of the first position in the series.
First Multiplier: The multiplier applied to the previous position size when averaging down.
Maximum Multiplier: A safety cap (commented out in the code but present) to prevent infinite scaling.
3. Intended Use & Purpose
This script is designed as a position management and tracking tool for traders who are experimenting with or actively using Martingale-style strategies. It is best used to:
Automate the complex calculations of average entry, combined TP/SL, and PnL for multiple entries.
Visually track the status of an ongoing series of positions.
Backtest the viability and risks of such a strategy on historical data.
4. ⚠️ Critical Risk Warning & Disclaimer
THIS STRATEGY CARRIES EXTREME FINANCIAL RISK. USE AT YOUR OWN RISK.
Unlimited Loss Potential: The Martingale strategy is infamous for its potential to generate unlimited losses. By continuously doubling down (or multiplying) on losing positions, a small adverse price move can lead to catastrophic losses that can exceed your account balance.
Margin Calls: The rapidly increasing position size can quickly deplete your margin, leading to a margin call and forced liquidation of all positions at a significant loss.
No Guarantee of Recovery: The assumption that the price will eventually reverse is flawed. A strong, sustained trend can wipe out the entire trading capital.
For Educational/Advanced Use Only: This script is intended for sophisticated traders who fully understand the immense risks involved. It is not a "sure profit" system.
The publisher of this script is not responsible for any financial losses incurred through its use. You are solely responsible for your trading decisions and risk management.
5. How to Use
Apply the Script: Add the script to your chart.
Configure Parameters: Adjust the input parameters according to your risk tolerance and strategy rules. Be extremely cautious with the multiplier and position size.
Monitor the Dashboard: The table will provide all necessary information about the current and historical state of the strategy.
Observe the Levels: Watch the plotted Entry, TP, and SL levels to understand the current market position.
Backtest First: Always test the strategy extensively on historical data before considering it with real capital.
6. Notes
The Maximum Multiplier safety feature is present in the code but is currently commented out. Users are strongly advised to uncomment and set this parameter to act as a final, hard liquidation point.
The script logs key events (trade start, target hit) and export data for further analysis.
This is a complex script and should be thoroughly understood before use.
밴드 및 채널
XAutoTrade Alert Builder v1.1Automate Your NinjaTrader Trading with TradingView Alerts
The XAutoTrade Alert Builder is a flexible Pine Script strategy that bridges TradingView alerts with
NinjaTrader automated trading. Design custom entry signals, configure exit strategies, and execute trades
automatically on your NinjaTrader account - all from TradingView charts.
Key Features
📊 Flexible Signal Logic
- Configure buy/sell signals independently
- Compare any two indicators or price sources using crossover, crossunder, greater than, or less than
logic
- Visual buy/sell markers on chart for easy signal verification
🎯 Multiple Exit Methods
1. ATM Strategy - Leverage your existing NinjaTrader ATM templates for advanced order management
2. Source Signals - Exit positions based on opposite entry signals
3. Fixed Levels - Set stop loss and profit targets using ticks or percentage
⚙️ NinjaTrader Integration
- Direct webhook integration with XAutoTrade backend service
- Multi-account support (trade multiple accounts simultaneously)
- Position sizing and max position limits
- Market or limit order types with configurable offset
- Time-in-force options (DAY/GTC)
- Active hours filter (US ET timezone) to control when alerts execute
🔐 Secure & Reliable
- Webhook secret authentication
- Symbol override capability
- Real-time status indicator showing configuration readiness
How It Works
1. Configure Entry Signals - Choose your buy/sell logic by comparing any two data sources (price,
indicators, etc.)
2. Set Exit Strategy - Select ATM templates, signal-based exits, or fixed stop/profit levels
3. Connect to NinjaTrader - Enter your XAutoTrade webhook secret and account details
4. Create Alert - Use the strategy's alert system to send formatted JSON payloads to your XAutoTrade
webhook
5. Trade Futures & Stocks Automatically - TradingView alerts trigger real trades in your NinjaTrader account
Perfect For
- Traders wanting to automate TradingView strategies in NinjaTrader
- Users with existing ATM templates who want TradingView signal automation
- Multi-account traders managing several NinjaTrader accounts
- Anyone seeking a no-code bridge between TradingView and NinjaTrader
Requirements
- Active XAutoTrade account and subscription
- NinjaTrader 8 with XAutoTrade AddOn installed
- TradingView Premium/Pro account (for webhook alerts)
ADX Trend Strength Filter + TRAMA [DotGain]Summary
Are you tired of trading trend signals, only to get stopped out in volatile, sideways chop?
The ADX Trend Strength Filter (ADX TSF) is designed to solve this exact problem. It is a comprehensive trend-following system that only generates signals when a trend not only has the right direction and momentum, but also sufficient strength.
This indicator filters out weak or indecisive market phases (the "chop") and will only color the bars Green or Red when all conditions for a strong, confirmed trend are met.
⚙️ Core Components and Logic
The ADX TSF relies on a triple-filter logic to generate a clear trade signal:
Trend Filter (TRAMA): A TRAMA (Trending Adaptive Moving Average) is used as the main trendline. This adaptive average automatically adjusts to market volatility, acting as a dynamic support/resistance level.
Price > TRAMA = Bullish
Price < TRAMA = Bearish
Momentum Filter (RSI Crossover): Momentum is measured by a crossover of two moving averages of the RSI (a fast EMA and a slow SMA). This confirms whether the momentum is pointing in the same direction as the trend.
Strength Filter (ADX): This is the most important filter. A signal is only considered valid if the ADX (Average Directional Index) is above a defined threshold (Default: 30). This ensures the trend has sufficient strength.
🚦 How to Read the Indicator
The indicator has three states, displayed directly as bar colors on your chart:
🟩 GREEN BARS (Strong Uptrend) All three conditions are met:
Price is above the TRAMA.
RSI momentum is bullish (Fast MA > Slow MA).
ADX is above 30 (Strong trend is present).
🟥 RED BARS (Strong Downtrend) All three conditions are met:
Price is below the TRAMA.
RSI momentum is bearish (Fast MA < Slow MA).
ADX is above 30 (Strong trend is present).
🟧 ORANGE BARS (Neutral / Caution) This state appears if any of the following conditions are true:
Weak Trend: The ADX is below 30. The market is in consolidation or a sideways phase. (This is the primary filter!)
Indecision: The price is caught in the "Neutral Zone" between the TRAMA and the 200 SMA.
Visual Elements
Bar Colors: (Green/Red/Orange) Show the current trend status.
TRAMA (Orange Line): Your primary adaptive trendline.
200 SMA (White Line): Serves as a reference for the long-term trend.
Orange Background (Fill): Fills the area between the TRAMA and SMA to visually highlight the "Neutral Zone."
Key Benefit
The goal of the ADX TSF is to keep traders out of weak, unpredictable markets and help them participate only in strong, momentum-confirmed trends.
Have fun :)
Disclaimer
This "Buy The F*cking Dip" (BTFD) indicator is provided for informational and educational purposes only. It does not, and should not be construed as, financial, investment, or trading advice.
The signals generated by this tool (both "Buy" and "Sell") are the result of a specific set of algorithmic conditions. They are not a direct recommendation to buy or sell any asset. All trading and investing in financial markets involves substantial risk of loss. You can lose all of your invested capital.
Past performance is not indicative of future results. The signals generated may produce false or losing trades. The creator (© DotGain) assumes no liability for any financial losses or damages you may incur as a result of using this indicator.
You are solely responsible for your own trading and investment decisions. Always conduct your own research (DYOR) and consider your personal risk tolerance before making any trades.
MACD + StochasticMACD + Stochastic 14 Scenarios - Complete Signal Analysis
Combines MACD and Stochastic Oscillator to identify 14 different market scenarios based on crossover timing and indicator positioning.
🎯 Signal Strength Classification:
• STRONG (⭐⭐⭐⭐⭐): Both indicators cross together - highest confidence
• MODERATE (⭐⭐⭐⭐): One crosses while other confirms - good confidence
• WEAK (⭐⭐): Conflicting signals - low confidence
📊 Visual Features:
✓ Color-coded shapes on chart (triangles, circles, X marks)
✓ Scenario labels (1-16, excluding 12 & 14)
✓ Real-time info table showing current status
✓ Customizable signal display (show/hide by strength)
✓ Built-in alerts for all signal types
Perfect for swing traders and position traders looking for high-probability entries with dual indicator confirmation. Use on daily
timeframe for best results.
Includes toggleable display options for strong, moderate, and weak signals.
IKZ MAX# 📊 RSI + Volume Profile Integrated Indicator
## 🎯 **General Description**
An integrated indicator that combines the power of **RSI (Relative Strength Index)** and **Volume Profile** in one technical analysis tool. It blends momentum analysis with volume distribution to provide more accurate and reliable trading signals.
## 📈 **Main Components**
### 1. **RSI (Relative Strength Index)**
- **Function**: Measures the speed and magnitude of price changes
- **Levels**:
- 🟥 **Overbought (70)**: Potential selling area
- 🟩 **Oversold (30)**: Potential buying area
- ⚪ **Midline (50)**: Balance line
### 2. **Volume Profile**
- **Function**: Analyzes trading volume distribution across price levels
- **Components**:
- 🟡 **POC (Point of Control)**: Price level with highest trading volume
- 🔵 **Value Area**: Area containing 68% of trading volume around POC
## ⚡ **Trading Signals**
### 📊 **Traditional RSI Signals**
- 🟢 **RSI Buy Signal**: When RSI crosses above 30 level (oversold)
- 🔴 **RSI Sell Signal**: When RSI crosses below 70 level (overbought)
### 💪 **Strong Integrated Signals**
- 💚 **Strong Buy**: RSI in oversold + Price near POC
- 🖤 **Strong Sell**: RSI in overbought + Price near POC
## 🛠 **Adjustable Settings**
### ⚙️ **RSI Settings**
- `rsi_length`: Calculation period (default: 14)
- `rsi_overbought`: Overbought level (default: 70)
- `rsi_oversold`: Oversold level (default: 30)
- `rsi_src`: Data source (default: close price)
### 📊 **Volume Profile Settings**
- `vp_lookback`: Lookback period (number of candles)
- `vp_rows`: Number of rows (distribution precision)
- `show_vp_histogram`: Show volume histogram
- `show_poc`: Show Point of Control
- `show_value_area`: Show Value Area
## 🎨 **Visual Elements**
### 📉 **Chart Display**
- RSI line in blue color
- Colored areas for extremes (red/green)
- POC line with label
- Buy/sell signals as colored triangles
### 📋 **Information Table**
- Current RSI value and status
- Current POC price
- Value Area range
- Current active signal
- Current active volume
## 🔔 **Alert Systems**
- Alerts for traditional RSI signals
- Alerts for integrated strong signals
- Updates once per bar
## 💡 **Trading Applications**
### 1. **Support and Resistance Identification**
- POC forms strongest support/resistance levels
- Value Area defines main trading range
### 2. **Momentum and Trend Analysis**
- RSI determines current momentum strength
- Volume Profile confirms level strength
### 3. **Entry Timing**
- Enter when integrated signals converge
- Confirm momentum alignment with volume distribution
## 🚀 **Unique Features**
### ✅ **Smart Integration**
- Combines two powerful indicators in one interface
- Integrated signals provide stronger confirmation
### ✅ **Flexibility**
- Fully customizable settings
- Suitable for all timeframes
### ✅ **User-Friendly**
- Clear visual interface
- Direct and easy-to-read signals
## 📊 **Result Interpretation**
### 🟢 **Ideal Buy Scenario**
- RSI below 40 (potential upward momentum)
- Price near POC (strong support)
- Buy signal from both indicators
### 🔴 **Ideal Sell Scenario**
- RSI above 60 (potential downward momentum)
- Price near POC (strong resistance)
- Sell signal from both indicators
## ⚠️ **Important Notes**
### 🔧 For Daily Timeframe:
- `vp_lookback = 50` (lookback period)
- `rsi_length = 14` (RSI period)
### 🔧 For Hourly Timeframe:
- `vp_lookback = 100` (lookback period)
- `rsi_length = 14` (RSI period)
## 📝 **Usage Tips**
1. **Strong Signals**: Wait for confirmation from both indicators before entering trades
2. **Risk Management**: Use POC as support/resistance for stop-loss placement
3. **Timing**: Best signals occur when RSI crosses critical levels with Volume Profile confirmation
## ⚠️ **Warning**
This indicator is for educational and analytical purposes only, not financial advice. Always practice risk management and never trade more than you can afford to lose.
---
**📈 Enjoy Smart Trading!** 🚀
Low Volume Detector//@version=5
indicator("Low Volume Detector", overlay=true)
// Parameters
length = input.int(20, title="Volume MA Length")
threshold = input.float(0.5, title="Low Volume Threshold (as % of MA)", minval=0.1, step=0.1)
// Volume logic
vol = volume
volMA = ta.sma(vol, length)
lowVol = vol < (volMA * threshold)
// Plot background when volume is low
bgcolor(lowVol ? color.new(color.red, 85) : na, title="Low Volume Background")
// Optional: plot volume and its MA in separate pane
plot(vol, title="Volume", color=color.gray, style=plot.style_columns)
plot(volMA, title="Volume MA", color=color.orange)
BUY/SELL/R/BBuy/Sell/R/B by SeanKidd
Purpose: A clean, anchored signal system combining StochRSI crossovers, CVI top/bottom detection, and a MACD direction line that moves with price.
⚙️ How It Works
BUY / SELL – Generated from a higher-timeframe StochRSI crossover.
BUY (Green) → %K crosses above %D
SELL (Red) → %K crosses below %D
R (Reverse) – Yellow “R” appears above the candle when the CVI model detects a local top or exhaustion point.
B (Bottom) – Blue “B” appears below the candle when CVI detects a local bottom.
MACD Direction Line –
Green = MACD above Signal → bullish momentum
Red = MACD below Signal → bearish momentum
The line rides just above the candles, offset by ATR so it always tracks price.
🧭 How to Use It
Add the indicator:
Search for Buy/Sell/R/B by SeanKidd under Community Scripts.
Click ★ to favorite it.
Apply it to your chart.
Open ⚙️ Settings → Inputs
Calculation Timeframe (StochRSI) → pick how fast or slow you want signals (default Weekly).
MACD Line Offset (ATR ×) → raise or lower the MACD line if it overlaps candles.
Adjust Top/Bottom thresholds to control how often R/B appear.
Toggle Highlight bars or Color candles for visual clarity.
Go to Settings → Scales and ensure it’s set to
✅ “Scale with Price Chart” or
✅ same scale side as the candles.
This keeps everything perfectly attached to the chart.
Optional: Add alerts
Create → Alert → Condition → Buy/Sell/R/B by SeanKidd
Choose: SRSI BUY, SRSI SELL, Top (R), or Bottom (B).
📈 Reading the Chart
Marker Meaning Color Position
BUY StochRSI %K cross above %D Lime Below bar
SELL StochRSI %K cross below %D Red Above bar
R CVI-detected top / reversal Yellow Above bar
B CVI-detected bottom Blue Below bar
Line MACD momentum direction Green/Red Above highs
💡 Tips
Works on any symbol or timeframe.
Slower charts (Daily–Weekly) give cleaner swing signals.
Faster charts (15m–1h) show short-term reversals.
Combine the MACD line direction with BUY/SELL for stronger confirmation.
ETH Short-Term VWAP+EMA/RSI (ATR Risk, <1h) (James Logan)ETH Short-Term VWAP + EMA / RSI Strategy (ATR-based Risk Control)
A short-term (< 1 hour) ETH trading system designed for intraday scalps and momentum swings on 5- to 15-minute charts.
It blends trend confirmation (EMA 50 / 200) with intrabar structure (EMA 21 pullback & VWAP filter) and RSI momentum triggers, managing exits dynamically through ATR-based stop, take-profit, and trailing stop targets.
Core logic
• Long when RSI crosses above the threshold within an up-trend (EMA 50 > EMA 200) and price is above VWAP.
• Short when RSI crosses below threshold within a down-trend (EMA 50 < EMA 200) and price is below VWAP.
• Optional pullback confirmation to the 21-EMA for cleaner entries.
• Risk defined by ATR-multiples for stop-loss, take-profit, and an adaptive trailing stop.
• Automatic flat-out exit after a set number of bars (time-based close).
Best use
• 5 min – 15 min ETH/USDT charts (Binance, Bybit, Coinbase, etc.)
• Works with both spot and perpetual data.
• Tune ATR and RSI thresholds per venue; defaults are balanced for 0.05 % per-side fees.
Key parameters
• ATR SL × 1.6 ATR TP × 2.2 ATR Trail × 2.0
• RSI 50 cross | EMA 50/200 trend filter | VWAP confirmation
• Default position sizing = USD-based (e.g. $1 000 per trade).
Notes
• All orders and exits are simulated at bar close; use 1-minute bar magnifier for finer fill modeling.
• No repainting—uses only confirmed bar data.
• Best validated with ≥ 200 trades and profit factor > 1.25 over multi-month backtests.
BullTrader - ParabolicSARFlipSignals(NonRepainting)🧠 Concept & Purpose
This indicator isolates the confirmed trend‑change events produced by the Parabolic SAR and turns them into direct, non‑repainting trade signals.
Instead of plotting every SAR dot as a potential entry, it marks only the bars where price has closed across the SAR line, confirming a genuine flip from bullish → bearish or vice versa.
Each confirmed flip is displayed with a single triangle on the chart and can be connected to alerts.
The design is intentionally minimal: one simple but reliable algorithmic definition of “the trend just turned.”
⚙️ How It Works
1. The script calculates the standard Parabolic SAR value using the built‑in ta.sar() function.
2. When a candle closes above a SAR dot that was previously above price → uptrend starts (Buy Signal).
3. When a candle closes below a SAR dot that was previously below price → downtrend starts (Sell Signal).
4. Signals are confirmed only after the bar closes (barstate.isconfirmed), guaranteeing no repainting.
5. Each event can trigger an alert or simply serve as a visual reversal marker.
📈 Chart Elements
Element Description
🟠 Orange cross dots Standard Parabolic SAR trail.
🟢 Triangle below bar Confirmed SAR flip up → new bullish phase.
🔴 Triangle above bar Confirmed SAR flip down → new bearish phase.
Optional green/red background Highlights bars where a confirmed flip occurred.
🔔 Alerts
Use buySignalFinal for Buy alerts and sellSignalFinal for Sell alerts.
Set alerts to “Once per bar close” to match the non‑repainting confirmation logic.
📊 Best Use
* Identifying clear trend reversals.
* As an entry / exit overlay for manual trading.
* As a base signal for automated or alert‑driven systems.
This version keeps the indicator fast, reproducible, and completely non‑repainting — ideal for traders who prefer transparent and verifiable signals derived directly from Per J. Wilder’s original Parabolic SAR formula.
Fractional + Heikin-Ashi Candlestick – CF / ABNew model of Candlestick, Tis model constructed on Fractional Calculus mathematical, use two kernel - Caputo-Fabrizio and Atangana-Baleanu.
RSI BandsPlots adaptive ATR bands around the 27-EMA to approximate RSI overbought and oversold zones directly on price. Provides a clean visual reference for RSI-like extremes without displaying the RSI itself.
CME Close PriceThis script adds the closing price of another asset on your chart, such as the BTC1! Futures Price on your BTC Spot Chart for example.
Hourly ORB NY Session (5/15min) - FixedDrawing ORB each hour in NY session
First ORB is 9.30 to 11.00am
then every hour we have a 15 min ORB
11am
12pm
1pm
2pm
3pm
You dont need anything else than this! Simple and powerful
Advanced Multi-EMA System with Dashboard📋 Table of Contents-
Overview
Setup & Installation
Indicator Configuration
Trading Signals
Dashboard Interpretation
Trading Strategy
Risk Management
Advanced Features
🎯 Overview
This comprehensive trading system combines multiple EMA timeframes with advanced market analysis to provide complete market context. It's designed for both swing trading and day trading across all timeframes.
⚡ Setup & Installation
Step 1: Access Pine Script Editor
Open TradingView
Select your preferred chart
Click "Pine Editor" at the bottom of the screen
Remove any existing code
Paste the complete script I provided
Click "Add to Chart"
Step 2: Initial Configuration
pinescript
// Basic Setup:
EMA Type: EMA/TMA/RMA/SMA (default: EMA)
Show EMA 9: ON
Show EMA 21: ON
Show EMA 150: ON
Show EMA 200: ON
⚙️ Indicator Configuration
EMA Types Explained:
EMA (Exponential Moving Average): More weight to recent prices
SMA (Simple Moving Average): Equal weight to all prices
RMA (Relative Moving Average): Modified EMA calculation
TMA (Triangular Moving Average): Double-smoothed average
Recommended Settings:
pinescript
// Day Trading (1-15 min charts):
EMA 9: Fast momentum
EMA 21: Short-term trend
EMA 150: Medium-term trend
EMA 200: Long-term trend
// Swing Trading (1H-4H charts):
Use same lengths but adjust trailing stop parameters
📊 Dashboard Interpretation
Trend Analysis Section:
PRIMARY TREND: EMA 150 vs EMA 200 (Long-term)
SECONDARY TREND: EMA 21 vs EMA 150 (Medium-term)
HTF TREND: 1-hour timeframe context
Score Interpretation:
TREND STRENGTH: -1.0 to +1.0
+0.5 to +1.0: Strong Bullish
0 to +0.5: Mild Bullish
-0.5 to 0: Mild Bearish
-1.0 to -0.5: Strong Bearish
MOMENTUM SCORE: RSI-based
Above +0.2: Bullish momentum
Below -0.2: Bearish momentum
VOLATILITY SCORE: ATR-based
Above 0.5: High volatility (caution)
Below 0.5: Low volatility
Volume Analysis:
VOLUME STRENGTH: Current vs average volume
BUYER/SELLER BALANCE: Cumulative delta calculation
🎯 Trading Signals
Long Entry Conditions:
pinescript
1. EMA 150 crosses ABOVE EMA 200
2. Primary Trend shows BULLISH
3. Trend Strength > 0.3
4. Momentum Score > 0
Short Entry Conditions:
pinescript
1. EMA 150 crosses BELOW EMA 200
2. Primary Trend shows BEARISH
3. Trend Strength < -0.3
4. Momentum Score < 0
Entry Confirmation:
Wait for these additional confirmations:
Price closes above EMA 21 for long entries
Price closes below EMA 21 for short entries
Volume strength confirming the move
💡 Trading Strategy
Bullish Market Setup:
text
OVERALL BIAS: STRONG BULLISH
PRIMARY TREND: BULLISH
SECONDARY TREND: BULLISH
TREND STRENGTH: > 0.5
MOMENTUM: > 0.2
ACTION: Look for long entries on pullbacks
Bearish Market Setup:
text
OVERALL BIAS: STRONG BEARISH
PRIMARY TREND: BEARISH
SECONDARY TREND: BEARISH
TREND STRENGTH: < -0.5
MOMENTUM: < -0.2
ACTION: Look for short entries on bounces
Range-bound Market:
text
OVERALL BIAS: NEUTRAL
TREND STRENGTH: -0.3 to +0.3
ACTION: Avoid trend trades, consider mean reversion
🛡️ Risk Management
Position Sizing:
pinescript
// Conservative:
1-2% risk per trade
// Moderate:
2-3% risk per trade
// Aggressive:
3-5% risk per trade (not recommended)
Stop Loss Placement:
Initial Stops:
Long positions: Below recent swing low or EMA 150
Short positions: Above recent swing high or EMA 150
Trailing Stops:
Uses fast EMA (default: 8-period)
Automatically adjusts as price moves in your favor
Can be disabled in settings
Exit Strategies:
Profit Taking:
Take 50% profit at 1:1 risk-reward ratio
Trail remainder with fast EMA
Emergency Exits:
pinescript
// Long Position Exit:
1. Price rejection at highs (bearish engulfing)
2. EMA 9 crosses below EMA 21
3. Close below trailing stop
4. Trend Strength turns negative
// Short Position Exit:
1. Price rejection at lows (bullish engulfing)
2. EMA 9 crosses above EMA 21
3. Close above trailing stop
4. Trend Strength turns positive
🚀 Advanced Features
Multi-Timeframe Analysis:
The script automatically analyzes the 1-hour timeframe to:
Confirm primary trend direction
Identify higher timeframe support/resistance
Avoid trading against major trend
Volume Analysis:
Institutional Activity Detection:
Unusually high volume on breakouts
Declining volume on pullbacks
Buyer/Seller balance showing dominance
Market Structure Assessment:
Bullish Structure:
Price above all EMAs
Higher highs and higher lows
Strong volume on up moves
Bearish Structure:
Price below all EMAs
Lower highs and lower lows
Strong volume on down moves
📈 Practical Trading Examples
Example 1: Perfect Long Setup
text
DASHBOARD READING:
PRIMARY TREND: BULLISH ✅
SECONDARY TREND: BULLISH ✅
TREND STRENGTH: 0.72 ✅
MOMENTUM: 0.35 ✅
VOLUME: STRONG ✅
BUYER/SELLER: 0.45 ✅
MARKET STRUCTURE: BULLISH ✅
TRADING SIGNAL: LONG SETUP ✅
ACTION: Enter long on pullback to EMA 21
STOP LOSS: Below EMA 150
TARGET: Previous resistance level
Example 2: Avoid This Trade
text
DASHBOARD READING:
PRIMARY TREND: BULLISH ✅
SECONDARY TREND: BEARISH ❌
TREND STRENGTH: 0.15 ❌
MOMENTUM: -0.10 ❌
VOLUME: WEAK ❌
BUYER/SELLER: -0.20 ❌
MARKET STRUCTURE: NEUTRAL ❌
TRADING SIGNAL: NO SIGNAL ✅
ACTION: Stay out - conflicting signals
REASON: Weak momentum, bearish secondary trend
🔧 Customization Tips
For Scalpers (1-5 minute charts):
pinescript
ema9_len: 5
ema21_len: 13
fast_ema_stop_len: 3
For Swing Traders (4H-Daily charts):
pinescript
ema9_len: 9
ema21_len: 21
ema150_len: 50
ema200_len: 200
Color Customization:
You can modify colors in the script:
Change color.green to your preferred bullish color
Change color.red to your preferred bearish color
Adjust transparency with color.new(color, transparency)
❌ Common Mistakes to Avoid
Trading Against Primary Trend
Don't go long when PRIMARY TREND is BEARISH
Don't go short when PRIMARY TREND is BULLISH
Ignoring Risk Levels
HIGH RISK warning means reduce position size
LOW RISK means normal trading conditions
Chasing Entries
Wait for pullbacks in trending markets
Don't FOMO when signal appears late
Overriding the System
Trust the dashboard readings
Don't let emotions override signals
✅ Best Practices
Daily Routine:
Check higher timeframes first
Read dashboard before placing trades
Set alerts for key levels
Trade Management:
Set stops immediately after entry
Monitor trailing stops daily
Take partial profits at targets
Performance Tracking:
Keep trade journal
Review dashboard accuracy
Adjust parameters if needed
🆘 Troubleshooting
Common Issues:
Alerts Not Working:
Check TradingView alert settings
Ensure "Once Per Bar" is selected
Verify you're on real-time data
Dashboard Not Showing:
Check "Show Dashboard" is enabled
Ensure you're viewing latest bar
Try refreshing the chart
Lines Not Plotting:
Verify EMA toggles are ON
Check for sufficient historical data
Ensure script compiled without errors
🎉 Conclusion
This system provides everything you need for professional trading:
✅ Clear entry/exit signals
✅ Comprehensive market analysis
✅ Built-in risk management
✅ Real-time alerts
✅ Multi-timeframe context
Remember: No system is perfect. Always combine with price action analysis and proper risk management.
Bangladesh Time Session & Candlestick ConfirmationIt's shows the time when new york and london session colaub with candelstick confarmation.
ADX + Envelope AutoOptimizer MTF Analyzer🔹 ADX + Envelope AutoOptimizer v8.1
Smart hybrid system combining ADX trend strength and Envelope volatility for dynamic optimization and performance tracking.
Features:
Auto-optimizer (3×3×3 grid: Length, Percent, ADX Threshold)
MTF Analyzer (30m → 1D) with color-coded stats
Real-time self-calculated metrics: Net Profit, Win Rate, Profit Factor
Automatic Buy/Sell/Short/Cover signals
Highlighted best timeframe (green background)
Fully dynamic, no repaint, multi-market compatible
Profit Factor Colors:
> 🟢 >2.0 Excellent 🟩 1.5–2.0 Good 🟡 1.0–1.5 Moderate 🔴 <1.0 Weak
Note:
This tool is designed for analytical and educational purposes only — not financial advice.
Trend Dönüş Teyidi (Sade)//@version=5
indicator("Trend Dönüş Teyidi (Sade)", overlay=true)
// 200MA
ma200 = ta.sma(close, 200)
// MACD hesaplama
macdLine = ta.ema(close, 12) - ta.ema(close, 26)
signalLine = ta.ema(macdLine, 9)
macdAboveZero = macdLine > 0
macdBullCross = ta.crossover(macdLine, signalLine)
// Higher Low (swing low yapısı)
left = 3
right = 3
swingLow = ta.lowest(left + right + 1) == low
higherLow = swingLow and low > low
// Trend teyidi şartları
trendConfirmed = close > ma200 and macdBullCross and macdAboveZero and higherLow
// İşaret
plotshape(trendConfirmed, title="Trend Dönüş Onayı", style=shape.labelup,
color=color.new(color.green, 0), size=size.small,
text="Trend ↑", textcolor=color.white, location=location.belowbar)
💎 ProfittoPath – Glass HUD//@version=5
indicator("💎 ProfittoPath – Glass HUD", overlay=true)
// === Inputs ===
entryPrice = input.float(0.0, "Entry Price", step=0.01)
qty = input.float(1.0, "Position Size", step=1.0)
isLong = input.bool(true, "Long Trade?")
offsetY = input.int(60, "Vertical Offset (ticks)", step=1)
showPercent = input.bool(true, "Show % Change")
// === Calculations ===
inTrade = entryPrice > 0
priceDiff = inTrade ? (close - entryPrice) * (isLong ? 1 : -1) : na
plUsd = inTrade ? priceDiff * qty : na
plPercent = inTrade ? (priceDiff / entryPrice) * 100 : na
isProfit = inTrade ? (plUsd >= 0) : false
// === Colors ===
gold = color.rgb(255,215,0)
lossRed = color.rgb(255,90,90)
txtColor = isProfit ? gold : lossRed
bgGlass = color.new(color.rgb(15,15,15),85)
// === Entry Line ===
var line entryLine = na
if barstate.isfirst
entryLine := line.new(bar_index, entryPrice, bar_index, entryPrice, extend=extend.both, color=color.new(gold,40), style=line.style_dotted)
if inTrade
line.set_color(entryLine, color.new(gold,40))
else
line.set_color(entryLine, color.new(color.black,100))
// === Panel Label ===
var label pnlLabel = na
if barstate.isfirst
pnlLabel := label.new(bar_index, na, "", style=label.style_label_center, textcolor=txtColor, color=bgGlass, size=size.large)
// === Update ===
if inTrade
string pnlText = "💎 ProfittoPath Glass HUD "
pnlText += "──────────────────────── "
pnlText += "Trade: " + (isLong ? "LONG 📈" : "SHORT 📉") + " "
pnlText += "Entry: " + str.tostring(entryPrice, format.mintick) + " "
pnlText += "Current: " + str.tostring(close, format.mintick) + " "
pnlText += "P/L: " + (isProfit ? "+" : "") + str.tostring(plUsd, format.mintick) + " USD"
if showPercent
pnlText += " (" + str.tostring(plPercent, "#.##") + "%)"
pnlText += " "
pnlText += "──────────────────────── "
pnlText += "Status: " + (isProfit ? "PROFIT ✅" : "LOSS ❌")
label.set_text(pnlLabel, pnlText)
label.set_x(pnlLabel, bar_index)
label.set_y(pnlLabel, entryPrice + offsetY * syminfo.mintick)
label.set_color(pnlLabel, bgGlass)
label.set_textcolor(pnlLabel, txtColor)
else
label.set_text(pnlLabel, "💎 Set Entry Price ↑")
label.set_x(pnlLabel, bar_index)
label.set_y(pnlLabel, close)
label.set_color(pnlLabel, bgGlass)
label.set_textcolor(pnlLabel, gold)
9:30 AM MarkerThe 9:30 AM Market Open Marker (NYC) indicator automatically plots a vertical line at 9:30 AM New York time, marking the official U.S. stock market open for each trading day.
This visual reference helps traders quickly identify the start of the regular trading session, align intraday strategies, and analyze pre-market and post-market behavior relative to the official open.
Perfect for:
Day traders and scalpers tracking session openings.
Futures traders (e.g., ES, NQ) analyzing volatility around 9:30 AM.
Anyone studying liquidity shifts and structure transitions between pre-market and RTH (Regular Trading Hours).
Features:
Draws a clean vertical line at 9:30 AM NY time for every day.
Optional customizable color and style for clear visual separation.
Works on any timeframe and automatically adjusts for daylight-saving time.
Day of Week (NYC)The Day of Week (NYC) indicator displays the weekday name (Monday, Tuesday, Wednesday, etc.) at the bottom of a separate panel, synchronized with midnight New York time (00:00) for each trading day.
It’s designed to help traders visually distinguish between sessions while keeping the main price chart clean and uncluttered.
The labels remain fixed in their own panel, so they never move in front of candles or interfere with price action.
Perfect for:
Intraday and futures traders who use New York session timing as reference.
Journalers and analysts who review daily session performance.
Anyone who wants clear visual day separators without overlapping chart elements.
Features:
Automatically adapts to NY time (EST/EDT).
Displays weekday names for every new trading day.
Minimalist gray text for a clean, non-distracting look.
Daily Midnight Marker (NYC)This indicator automatically plots a vertical line at midnight (00:00) New York time on every trading day.
Each line is drawn in light gray to mark the start of a new day, helping traders visually separate daily sessions.
A weekday label (e.g., Monday, Tuesday, Wednesday...) is displayed to the right of each line, making it easy to identify daily transitions when analyzing intraday price action or reviewing trading sessions.
Perfect for traders who:
Trade based on daily session structure or pre-market setups
Use NY time as a market reference
Prefer a clean and minimal visual day separator
Daily Midnight Marker (NYC)Daily Midnight Marker (NYC) automatically plots a vertical light-gray line on your chart at midnight New York time (00:00) to visually mark the start of each trading day.
A small label is displayed at the bottom of the line that reads “Day Start”, helping traders quickly identify daily session boundaries.
This indicator is especially useful for:
Futures or forex traders referencing New York session time
Intraday analysts who want to distinguish daily ranges
Backtesting or reviewing overnight/pre-market activity
Features:
Plots at 00:00 NYC time daily
Light gray, clean design to avoid clutter
Optional label under each day start
6 AM Marker6 AM Marker – Daily Premarket Reference Line
This indicator automatically plots a vertical dotted line at 6:00 AM (local chart time) on every trading day.
It’s designed for traders who track premarket activity and want a clear visual reference of when the early market hours begin.
Features:
Marks 6:00 AM on all trading days automatically
Works on any timeframe
Adjustable timezone (e.g., America/New_York, America/Los_Angeles)
Clean, minimal visual style — perfect for day traders using NQ, ES, or other futures
This simple visual tool helps identify premarket ranges, overnight sessions, and morning setups with precision.






















