Top Crypto Above 28-Day AverageDescription
The “Top Crypto Above 28-Day Average” (CRYPTOTW) script scans a selectable universe of up to 120 top-capitalization cryptocurrencies (divided into customizable 40-symbol batches), then plots the count of those trading above their own 28-period simple moving average. It helps you gauge broad market strength and identify which tokens are showing momentum relative to their recent trend.
Key Features
• Batch Selection: Choose among “Top40,” “Mid40,” or “Low40” market-cap groups, or set a custom batch size (up to 40 symbols) to keep within the API limit.
• Dynamic Plot: Displays a live line chart of how many cryptos are above their 28-day MA on each bar.
• Reference Lines: Automatic horizontal lines at 25%, 50%, and 75% of your batch to provide quick visual thresholds.
• Background Coloration: The chart background shifts green/yellow/red based on whether more than 70%, 50–70%, or under 50% of the batch is above the MA.
• Optional Table: On the final bar, show a sortable table of up to 28 tickers currently above their 28-day MA, including current price, percent above MA, and “Above” status color-coding.
• Alerts:
• Strong Batch Performance: Fires when >70% of the batch is above the MA.
• Weak Batch Performance: Fires when <10 cryptos (i.e. <25%) are above the MA.
Inputs
• Show Results Table (show_table): Toggle the detailed table on/off.
• Table Position (table_position): Select one of the four corners for your table overlay.
• Max Cryptos to Display (max_display): Limit the number of rows in the results table.
• Current Batch (current_batch): Pick “Top40,” “Mid40,” or “Low40.”
• Batch Size (batch_size): Define the number of symbols (1–40) you want to include from the chosen batch.
How to Use
1. Add the CRYPTOTW indicator to any chart.
2. Select your batch and size to focus on the segment of the crypto market you follow.
3. Watch the plotted line to see the proportion of tokens with bullish momentum.
4. (Optional) Enable the results table to see exactly which tokens are outperforming their 28-day average.
5. Set alerts to be notified when the batch either overheats (strong performance) or cools off significantly.
Why It Matters
By tracking the share of assets riding their 28-day trend, you gain a macro-level view of market breadth—crucial for spotting emerging rallies or early signs of broad weakness. Whether you’re swing-trading individual altcoins or assessing overall market mood, this tool distills complex data into an intuitive, actionable signal.
指標和策略
DNAMain array blue is used for break and retest entries, driver array is used for retest entries after retracement. The arrays signify dynamic liquidity pools where price reacts from. Timeframe confluence is needed to make everything work well.
Macros, Sessions, and Quarters - psyploThis script was developed for my personal trading workflow, where I rely heavily on macro time windows and session-based timing to guide my strategy. I designed this tool to help visualize important time-based zones that are crucial in my trading approach, and I believe other traders might find it useful as well.
Features
Macro Time Window Boxes: Visual representation of price range within a configurable time window around the top of every hour.
Session Ribbon Boxes: Clearly marks the Asia, London, and New York trading sessions, labeled distinctly for better visual separation.
Session Quarters: Each session is automatically divided into four quarters, providing more granular time segmentation within sessions.
Time Zone: All session calculations are based on UTC +8 (Asia/Singapore) timezone.
This tool helps traders:
Identify volatility zones around hourly opens.
Track session-specific market dynamics.
Recognize shifts in momentum or liquidity during each session quarter.
I created this for my own strategies, but it can serve any trader who benefits from time-based market segmentation.
Feel free to adjust the colors and time window settings to suit your preferences!
AnnualizedReturnCalculatorLibrary "AnnualizedReturnCalculator"
TODO: add library description here
calculateAnnualizedReturn(isStartTime, enableLog)
Parameters:
isStartTime (bool) : 开始时间的BOOL值变量(用于标记策略开始时间)
enableLog (bool) : 是否输出日志
Returns:
返回持仓基准年化收益率、资金基准年化收益率、总收益、平均资金占用
Assaf ATRATR (Average True Range) is a volatility indicator developed by J. Welles Wilder. It measures how much an asset moves (in price), on average, during a specific time period. It does not indicate direction, only the degree of price volatility.
LBB + RSI Multi-Level + Compact TableBB and RSI scalping script for daily or scalp zone with signals
Max Drawdown (Asset-Based Lookback)Max Drawdown (Long-Term Trading)
🟦 Majors BTC, ETH, BNB, LTC 180 – 365
Captures full correction cycles and recovery patterns (6–12 months).
🟩 Altcoins SOL, ADA, DOT, LINK, AVAX 90 – 180
Alts move faster than majors; 3–6 months catches most large swings.
🟥 Meme coins DOGE, SHIB, PEPE, FLOKI 60 – 120
Volatile with quick trend reversals; 2–4 months captures parabolic runs + drawdowns.
📅 Chart Timeframe:
Use Daily (1D) timeframe for all these.
For extra macro insight, try Weekly (1W) with 52 bars (≈ 1 year).
Compare multiple assets using the same period to assess relative risk.
If you're building a long-term portfolio, combine this with:
200-day SMA or EMA for trend context.
Sharpe Ratio or Sortino Ratio if you're looking for risk-adjusted return metrics.
SNIPERKILLS NQ JULY 18 2025, GAMEPLANNQ GAME PLAN JULY 18, 2025!
✅ Bullish Scenario
Condition: Price breaks and holds above 23,279.75
Targets:
🎯 Target 1: 23,320 — minor imbalance / reaction zone
🎯 Target 2: 23,375 — potential liquidity sweep
🎯 Target 3: 23,420 — psychological level / extended move
Stop Loss: Below 23,234.25 (Short Trigger / invalidation)
❌ Bearish Scenario
Condition: Price breaks and holds below 23,234.25
Targets:
🎯 Target 1: 23,200 — FVG or intraday demand
🎯 Target 2: 23,150 — mid-range flush target
🎯 Target 3: 23,017 — prior day’s low & major liquidity zone
Stop Loss: Above 23,279.75 (Long Trigger / invalidation)
20-Day SMA BIAS%20-day Bias is a commonly used indicator in technical analysis. It is used to measure the gap between the stock price and its 20-day moving average to determine whether the stock price deviates from the normal state and whether there is an overbought or oversold phenomenon.
How to calculate the 20-day deviation value:
The calculation formula of the deviation rate is: ((closing price of the day - 20-day moving average price) / 20-day moving average price) * 100%.
Interpretation of 20-day deviation value:
Positive deviation rate:
Indicates that the stock price is higher than the 20-day moving average, which means that the stock price is high and may face correction pressure.
Negative deviation rate:
Indicates that the stock price is lower than the 20-day moving average, which means that the stock price is low and there may be a rebound opportunity.
Absolute value of the deviation rate:
The larger the absolute value, the higher the deviation of the stock price, and the higher the degree of overbought or oversold.
Apply the deviation rate to determine the buying and selling opportunities:
Positive deviation rate is too large:
When the positive deviation rate of the stock price from the 20-day moving average is too large, and the stock price is already at a high level, this may be a sell signal.
Negative deviation rate is too large:
When the negative deviation rate of the stock price from the 20-day moving average is too large, and the stock price is already at a low level, this may be a buy signal.
Stock price fluctuates around the moving average:
Stock price usually fluctuates around the moving average and adjusts after over-rising or over-falling.
Practical operation suggestions:
The standards of the market and individual stocks are different:
When the positive and negative deviation rate of the market and the quarterly line is greater than 5%, there is a greater chance of correction; large-cap stocks are between 5% and 10%; small and medium-sized stocks may be above 15% to 20%.
Combined with other indicators:
The deviation rate is only one of the technical analysis indicators. It is recommended to combine it with other indicators, such as KD indicators, RSI, etc., to make a comprehensive judgment and improve accuracy.
Reference to historical experience:
You can refer to the situation where the deviation rate of the stock was too large in the past to determine whether the current deviation rate is also too large.
Summary:
The 20-day deviation value is an indicator to determine whether the stock price is overbought or oversold, which can help investors determine the timing of buying and selling, but it needs to be combined with other indicators and historical data, and adjusted according to market conditions.
Apex Edge - RSI Trend LinesThe Apex Edge - RSI Trend Lines indicator is a precision tool that automatically draws real-time trendlines on the RSI oscillator using confirmed pivot highs and lows. These dynamic trendlines track RSI structure in motion, helping you anticipate breakout zones, reversals, and hidden divergences.
Every time a new pivot forms, the indicator automatically re-draws the RSI trendline between the two most recent pivots — giving you an always-current view of momentum structure. You’ll instantly see when RSI begins compressing or expanding, long before price reacts.
Key Features: • Dynamic RSI trendlines drawn from the last 2 pivots
• Auto re-draws in real-time as new pivots form
• Optional "Full Extend" or "Pivot Only" modes
• Slope color-coded: green = support, red = resistance
• Built-in dotted RSI levels (30/70 default)
• Alert conditions for RSI trendline breakout signals
• Ideal for spotting divergence, compression, and early SMC confluence
This is not your average RSI — it’s a fully reactive momentum edge overlay designed to give you clarity, structure, and timing from within the oscillator itself. Perfect for traders using Smart Money Concepts, divergence setups, or algorithmic trend tracking.
⚔️ Built for precision. Built for edge. Built for Apex.
Multi-Timeframe Trend TableDetects the trend on multi-timeframe using cross over of 20 and 50 Exponential Moving Average (EMA)
🏹 CCI+RSI+EMA Strategy (Enhanced with Oscillator Filters)This script is a multi-indicator trading strategy that combines trend-following and momentum signals using CCI, RSI, and EMA, enhanced with MACD and Stochastic filters for more reliable entries.
🧠 Core Concept
The strategy aims to:
Identify the trend using EMA(50) and a long-term comparison of EMA 35 vs EMA 169;
Spot momentum using CCI and RSI;
Filter entries through MACD and Stochastic confirmations to avoid false signals.
📌 Buy Conditions:
✅ Price is above EMA
✅ RSI is above a set threshold (default: 45)
✅ CCI is above a set threshold (default: 0)
✅ Uptrend confirmed by EMA 35 > EMA 169
✅ CCI has recently reached oversold levels (e.g. below -100)
✅ MACD shows bullish crossover
✅ Stochastic confirms exit from oversold zone
📌 Sell Conditions:
✅ Price is below EMA
✅ RSI is below a set threshold (default: 55)
✅ CCI is below 0
✅ Downtrend confirmed by EMA 35 < EMA 169
✅ CCI has recently reached overbought levels (e.g. above 100)
✅ MACD shows bearish crossover
✅ Stochastic confirms exit from overbought zone
🎯 Features:
Fully customizable inputs — adapt to your own trading style.
Trend background shading — green for uptrend, red for downtrend.
Enhanced entry logic — filters out weak signals.
CCI Cross and Trigger markers — additional confirmation tools.
🔔 Alerts
You can set alerts for ENHANCED BUY and ENHANCED SELL to never miss a quality signal.
📈 Use Case:
This tool is suitable for:
Manual trading entries and exits
Being a component of a broader trading system
Semi-automation with alert-based strategies
⚠️ Disclaimer:
This script is for educational and testing purposes only. It is not financial advice. Always backtest and demo trade before using on a live account.
NMT Buy/Sell Alarm GPTBUY:
1. When the green arrow appears, it is time for you to consider other additional situations to place a buy order
2. And you set an alert so you don't miss the opportunity
SELL:
You observe the green label showing the % ratio between the order and the current price
You want to sell with how much profit % (relatively) then you sell.
IB Breakout Strategy with Fib, CVD, and DivergenceEntry rules and signals- I wait for the 5min IB(initial balance) to form every session for eg-(first 5min candle of london session or ny session, marking top wick to bottom wick of first 5 min candle with a midpoint in that zone.Then look for CVD(cumulative volume delta) if it's alining with my analysis.I also mark previous session fib levels for scalp entries on .618 or .78 level.Also i do mark previous day VAH(value area high),VAL(value area low) and POC(point of control) for better understanding of direction.
Initial stop loss and take profit values-Initial stop loss varies from 200$ to 500$ and take profit varies from 250$ to 500$.
Number of contracts you plan to trade based on system stats and risk management-I plan to trade 1-2 contracts until i reach the safety net.Once safety net is achieved based on my entry level i decide the contract size which varies from 1-4 contracts.
Trade management and any trailing stop methods-I trail the stop once i feel like there's enough room for the trade.I manage the trade on the basis of strength of a candle, if its taking much time without strength i exit the trade.
Keith's Volume with MAs and Breakout SignalsThis indicator highlights significant volume breakouts based on customizable moving averages.
A breakout signal appears only when:
Volume is higher than all three selected volume MAs (default 20, 50, 200).
The short-term MA is above the long-term MA.
Volume exceeds a customizable ratio threshold (default: 2× of MA50).
Designed for traders who want clean and reliable breakout alerts without unnecessary noise.
Works well for trend continuation and momentum confirmation.
Hull Moving Average (HMA)# Hull Moving Average (HMA) - Technical Indicator
## Overview
The Hull Moving Average (HMA) is an advanced technical indicator developed by Alan Hull that solves the main problem of traditional moving averages: **lag**. This indicator provides a unique combination of **speed** and **smoothness**, virtually eliminating lag in trend change detection.
## What HMA Does
### Primary Function
HMA calculates a moving average that reacts **much faster** to price changes than classic moving averages (SMA, EMA, WMA), while maintaining **superior smoothing** that eliminates market noise.
### Mathematical Calculation
HMA uses a three-step formula:
1. **WMA1** = WMA(price, period/2) × 2
2. **WMA2** = WMA(price, period)
3. **HMA** = WMA(WMA1 - WMA2, √period)
This complex formula allows the indicator to "anticipate" price movements rather than follow them with delay.
## Key Advantages
### 1. **Lag Elimination**
- Reacts 2-3 bars earlier than EMA
- Detects trend changes almost instantaneously
- Ideal for active trading on short timeframes
### 2. **Superior Smoothing**
- Eliminates false market noise
- Reduces false signals (whipsaws)
- Provides clear trend direction visualization
### 3. **Versatility**
- Works on all timeframes (1min - monthly)
- Compatible with all markets (forex, stocks, crypto, commodities)
- Combines excellently with other indicators
## How to Interpret HMA
### Trend Signals
- **Green/Rising line** = Bullish trend (buy)
- **Red/Falling line** = Bearish trend (sell)
- **Color change** = Potential trend reversal
### Trading Strategies
- **Entries on HMA color change**
- **Pullbacks to HMA** in trending markets
- **Price vs HMA crossovers** for confirmations
### Confluences
HMA works excellently when combined with:
- **Support/Resistance** levels
- **Stochastic** for timing
- **RSI** for momentum confirmation
- **Volume** for move validation
## Recommended Settings
### Standard Period
- **21** - Optimal speed/accuracy balance
- **14** - Faster for scalping
- **50** - Slower for swing trading
### Ideal Timeframes
- **1-5 minutes** - Scalping with HMA(14)
- **15-30 minutes** - Day trading with HMA(21)
- **1-4 hours** - Swing trading with HMA(50)
## Limitations
### Sideways Markets
HMA can generate false signals in markets without clear trend. Use additional filters in these conditions.
### Extreme Volatility
In periods of very high volatility, even HMA may have minor delays.
### Parameter Dependency
Performance depends on correct period selection based on trading style.
## Conclusion
Hull Moving Average is one of the most advanced trend indicators available, offering an elegant solution to the lag problem of traditional moving averages. It's ideal for traders who want **fast reaction** without sacrificing **signal accuracy**.
**Recommended for:** Day trading, scalping, short-term swing trading
**Level:** Intermediate - Advanced
**Combinations:** Excellent with oscillators (Stochastic, RSI), volume indicators, and support/resistance levels
HA + HMA + VWAP🔍 Script Overview
This indicator blends Heikin-Ashi smoothing, Hull Moving Average (HMA), and Volume Weighted Average Price (VWAP) to help traders identify trend direction and potential trade setups. The script provides buy/sell signals based on price action relative to HMA while anchoring the view to volume with VWAP.
📈 What It Does and How
- Heikin-Ashi Calculations: Reduces noise by averaging candle structure, revealing clearer trend direction.
- Hull Moving Average (HMA): A fast, smooth-moving average applied to Heikin-Ashi close prices, tuned to respond quickly to shifts in momentum.
- VWAP Line: Acts as a dynamic fair-value reference, balancing price against volume over time.
- Signal Logic: Generates visual Buy/Sell signals when the Heikin-Ashi close crosses the HMA.
🧠 Recommended Enhancements Using RSI + ATR
For more refined entries and exits, use this indicator alongside Relative Strength Index (RSI) and Average True Range (ATR):
- RSI for Momentum Confirmation: Ensure the buy signals align with upward momentum—RSI climbing from oversold zones adds conviction.
- ATR for Volatility Awareness: Use ATR to size stops and evaluate risk. Avoid trades during volatility spikes or when ATR exceeds typical thresholds.
- Three-Leg Alignment: When HA/HMA signal agrees with RSI momentum and ATR shows stable conditions, you get high-quality trade setups with better timing and risk control.
This fusion helps discretionary traders filter noise and make confident decisions rooted in price action, volume, momentum, and volatility.
⚙️ Chart Display
- HMA: red line
- VWAP: gray line
- Buy/Sell labels: green below bars for buys, red above bars for sells
- Clean layout optimized for visual clarity
This script is open-source and does not use future data or issue caution warnings. It’s designed to assist manual trading strategies, not provide automated trading decisions.
📊 TREND Indicator by Yogesh Mandloi 📊This custom-built TradingView indicator provides a visual and logic-based trend analysis dashboard using 4-hour RSI and EMA/SMA conditions, combined with entry/exit signals, alerts, and a toggle-controlled condition table.
🔍 Core Logic
The strategy uses 4-hour timeframe data to identify potential bullish or bearish trends based on:
RSI (14):
Buy: RSI > 48
Sell: RSI < 52
EMA/SMA (Trend Filters):
Buy: EMA 21 > SMA 55 High → uptrend confirmation
Sell: EMA 21 < SMA 55 Low → downtrend confirmation
Buy Signal = RSI > 48 AND EMA21 > SMA55 High
Sell Signal = RSI < 52 AND EMA21 < SMA55 Low
It only signals on first bar of condition (no repetitive signals) and gives exit alerts when the condition ends.
📈 Features
✅ Signal Plotting
Green "BUY" arrows below bars when buy setup forms
Red "SELL" arrows above bars when sell setup forms
Gray "EXIT" markers when the trend condition invalidates
✅ Real-Time Alerts
Entry alerts for both BUY and SELL signals
Exit alerts to close positions
✅ Dynamic Visual Table
An on-screen signal table shows the live status of each condition with color-coded clarity:
✅ Green: Condition met
❌ Red: Condition not met
🟧 Orange: Warning (bearish potential forming)
✅ Toggle Switches for Sections
Users can control the visibility of each table section:
Buy Conditions ✔️
Sell Conditions 🔻
Signal Summary 📌
Indicator Values 📊
This makes it easier to focus on relevant sections or declutter the chart view.
✅ Customizable Table Position
You can change the table location:
top_left, top_right, bottom_left, bottom_right
✅ Background Highlights
Light Green background when buy conditions are active
Light Red background when sell conditions are active
Exchanges Combined Volume📊 Exchanges Combined Volume
(Aggregated Multi-Exchange Volume: Binance, OKX, Bybit, etc.) by BIGTAKER*
🔍 Purpose
The Exchanges Combined Volume indicator aggregates real-time trading volumes from multiple global exchanges for a specific asset (e.g., a cryptocurrency).
Instead of relying on a single market, it provides a broader view of market activity, helping users detect abnormal volume behavior and increased participation across the entire market.
⚙️ Supported Exchanges
* USDT Markets
`Binance`, `OKX`, `Bybit`, `Bitget`, `Gate.io`
* USD Markets
`Coinbase`, `Bitfinex`, `Bitstamp`
* Default
Includes the current chart symbol’s native volume by default.
🧮 Core Calculation Logic
1. 📛 Symbol Normalization (cleanSymbol)
Prefixes such as `1000`, `10000`, `100000`, or `1M` (common in leveraged tickers) are automatically removed to extract the base token.
> Example:
> `1000PEPEUSDT` → `PEPEUSDT`
2. 📈 Volume Requests from External Exchanges
Volume is retrieved using the `` format (e.g., `'BINANCE:PEPEUSDT'`, `'COINBASE:BTCUSD'`).
Invalid or delisted pairs are safely ignored using `ignore_invalid_symbol=true`.
3. 📊 Total Volume Calculation
totalVolume = usdtVolume + usdVolume + currentSymbolVolume
The indicator sums the volume from all target exchanges plus the volume from the current chart symbol.
4. 📏 Comparison to Average Volume
* Period: `length = 60` (Simple Moving Average over 60 candles)
* A candle is considered **high-intensity** if:
5. 🎨 Visual Styling
| Condition | Color | Meaning |
| -------------------------- | --------------------- | ----------------------- |
| High-volume Bullish Candle | Light Green (#30db78) | Strong Buying Activity |
| High-volume Bearish Candle | Bright Red (#ff0000) | Strong Selling Activity |
| Normal Bullish Candle | Dark Green (#3c7058) | Regular Buying Volume |
| Normal Bearish Candle | Dark Red (#682e2c) | Regular Selling Volume |
📌 Use Cases
* Detect synchronized volume surges across major global exchanges.
* Identify pre-pump accumulation phases on altcoins.
* Combine with premium gap indicators (e.g., Kimchi Premium) to identify leading market sentiment.
* Confirm breakout momentum with multi-exchange volume validation.
📘 Notes & Warnings
* Listing differences across exchanges may result in **zero volume** on some platforms.
* Prefixes like `1000`, `1M`, etc., are automatically removed to **improve symbol matching accuracy**.
* As volume units are not standardized, this indicator is best suited for **absolute value analysis**, not ratio-based comparisons.
PCR tableOverview
This indicator displays a multi-period table of forward-looking price projections. It combines normalized directional momentum (Positive Change Ratio, PCR) with volatility (ATR) and presents a forecast for upcoming time intervals, adjusted for your local UTC offset.
Concepts & Calculations
Positive Change Ratio (PCR):
((total positive change)/(total change)-0.5)*2, producing a value between –100 and +100.
Synthetic ATR: Calculates average true range over the same lookbacks to capture volatility.
PCR × ATR: Forms a volatility-weighted directional forecast, indicating expected move magnitude.
Future Price Projection: Adds PCR × ATR value to current close to estimate future price at each lookahead interval.
Table Layout
There are 12 forecast horizons—1× to 12× the chart timeframe (e.g., minutes, hours, days). Each row displays:
1. Future Time: Timestamp of each projection (adjustable via UTC offset)
2. PCR: Directional bias per period (–1 to +1)
3. PCR × ATR: E xpected move magnitude
4. Future Price: Close + (PCR × ATR)
High and low PCR×ATR rows are highlighted green for minimum value in the price forecast (buy signal) or red for maximum value in the price forecast (sell signal).
How to Use
1. Set UTC offset to your time zone for accurate future timestamps.
2. View PCR to assess bullish (positive) or bearish (negative) momentum.
3. Use PCR × ATR to estimate move strength and direction.
4. Reference Future Price for potential levels over upcoming intervals, and for buy and sell signals.
Limitations & Disclaimers
* This model uses linear extrapolation based on recent price behavior. It does not guarantee future prices.
* It uses only current bar data and no lookahead logic—compliant with Pine Script rules.
* Designed for analytical insight, not as an automated signal or trade executor.
* Best used on standard bar/candle charts (avoid non-standard types like Heikin‑Ashi or Renko).
SMA Crossover with Background ShadingThis application is to identify when to buy or when to sell upon satisfying the condition on this script.
Earnings [theUltimator5]This indicator highlights daily price changes on earnings announcement days using dynamic colors, labels, and optional earnings markers.
🔍 Key Features:
Earnings Detection:
Highlights only the days when an earnings event occurs.
Price Change Calculation:
Computes the percentage change from open to close on earnings day.
Color-coded Labels:
Displays the % change as a floating label above the chart on earnings days.
Color intensity reflects the size and direction of the move:
Bright green for large gains (≥ +10%)
Bright red for large losses (≤ -10%)
White for negligible change
Gradient fades between those extremes
Optional "Earnings" Marker:
A small label marked “Earnings” appears beneath the % change label, controlled by a user toggle.
Background Highlight:
The chart background is shaded on earnings days with a semi-transparent color based on the % change.
⚙️ User Input:
✅ Show 'E' Marker: Toggles the visibility of the "Earnings" label below the main price change label.
✅ Ideal Use Case:
Use this indicator to visually analyze how a stock reacts on earnings days, helping traders spot consistent behavior patterns (e.g., post-earnings rallies or selloffs).
Strategy with DI+/DI-, ADX, RSI, MACD, EMA + Time Stop [EXP. 1]Strategy Overview
This is an experimental trend-following strategy combining directional movement indicators, momentum filters, and time-based exits. Built for low timeframes like BTCUSDT 5m, it aims to detect clean directional setups while managing risk tightly.
Indicator Components
• DI+/DI- + ADX – Confirms trend direction and strength
• RSI (14) – Momentum filter (entries only if RSI > 55 or < 45)
• MACD Histogram – Confirms momentum shift in signal direction
• Candle Body % Filter – Screens for strong price commitment bars
• EMA 600 & EMA 2400 – Defines long-term trend alignment
• Time-Based Stop – Closes trade if it doesn’t move 0.75% in 85 bars
• Reward:Risk – 1% stop-loss, 7.5:1 reward-to-risk
• One Trade per EMA Cross – Only trades first valid signal per trend shift
Entry Logic
Long Entry:
• DI+ crosses above DI−
• RSI > 55
• MACD histogram > 0
• Strong bullish candle
• EMA600 > EMA2400
• Occurs within 25 bars of an EMA crossover
Short Entry:
• DI+ crosses below DI−
• RSI < 45
• MACD histogram < 0
• Strong bearish candle
• EMA2400 > EMA600
• Occurs within 25 bars of an EMA crossover
Exit Logic
• Stop-loss: 1% from entry
• Take-profit: 7.5x risk
• Time-stop: Trade closed if price doesn’t move 0.75% in 85 bars
Testing Parameters
• Initial Capital: $10,000
• Commission: 0.04% per trade
• Timeframe: 5-minute
• Tested on: BTCUSDT
• ⚠️ Early-stage strategy — trade count may be low depending on market context. This is shared for educational use and community feedback.
Notes
• This script is experimental and educational
• Please forward-test in a demo environment before using it live
• Open-source for learning and improvement — contributions welcome!