DJLogicsAn indicator designed to trade fast and efficiently on 3-minute charts — without lagging signals or unnecessary noise.
🎯 What’s inside:
— Clear identification of short-term trend
— Early entry and exit points
— Minimal subjectivity, maximum structure
— Perfect for active trading and scalping
🎥 I’ve recorded a detailed training video where I walk you step by step through:
— how the indicator works
— how to use it correctly
— the mistakes 90% of traders make on lower timeframes
This is a tool for those who actually trade — not just watch the market.
Индикаторы и стратегии
chart4me candel buy 1 hour the best candel buy 1 hour the best candel buy 1 hour the best candel buy 1 hour the best candel buy 1 hour the best candel buy 1 hour the best
Position Sizing Calculator_V1Added a Table Text Size setting so you can control how big the text appears in the on-chart table.
New input: Table Text Size with options Tiny / Small / Normal / Large / Huge
ICT Weekly Lines [OPEN/MID]This indicator plots two core weekly reference levels:
- Weekly Open: the opening price of the current confirmed week (a common “weekly anchor”).
- Weekly Mid: the 50% level of the previous confirmed week’s range.
Why weekly levels matter
Weekly levels act like “macro structure” on lower timeframes. Even if you trade 1m–15m, price often reacts around weekly anchors because they’re widely watched and represent higher-timeframe positioning.
Practical use cases
1. Directional bias filter
- Above Weekly Open → bullish tilt / “premium” willingness.
- Below Weekly Open → bearish tilt / “discount” willingness.
2. Mean reversion vs continuation
- Weekly Mid often behaves like a “magnet” in balanced conditions.
- Strong trends can use it as a “pullback boundary” (hold mid → continuation, reclaim mid → reversal attempts).
3. Stop/target structure
- Weekly Open/Mid can act as logical target zones or invalidation lines because they’re higher-timeframe derived.
RSI > 70 Buy / Exit on Cross Below 70This strategy buys when the RSI (Relative Strength Index) closes above 70, indicating strong market momentum. It closes the position as soon as the RSI crosses down and falls below 70, to secure profits before a possible reversal.
In summary:
Entry: RSI > 70
Exit: RSI crosses down below 70
It’s a momentum-based strategy that aims to take advantage of strong trends but exits as soon as the momentum weakens.
FVG Clean MTF + IFVG (Deep Memory)FVG Deep Memory
This is a highly optimized, Multi-Timeframe (MTF) Fair Value Gap indicator designed to solve the common "data limit" issues found in standard FVG scripts.
Most MTF indicators share a single "memory limit" for all zones. This causes a problem: specific high-frequency zones (like 1-minute gaps) flood the memory and accidentally delete your important Higher Timeframe levels (like Daily or 4H gaps).
FVG Deep Memory solves this by assigning Independent Memory Buckets to each timeframe. Your 1-minute noise will never delete your Daily structure again.
🚀 Key Features
1. "Deep Memory" Architecture
5 Independent Timeframes: Monitor the Chart, 15m, 1h, 4h, and Daily intervals simultaneously.
No Cannibalization: Each timeframe has its own dedicated allocation (e.g., 100 zones each). A flood of new zones on the 15m chart will not erase an old Daily zone. They coexist perfectly.
2. Dynamic "Gray Zone" State
SR Channel Logic: When price enters an active FVG, the zone dynamically changes color to Gray (customizable).
Why it helps: This provides an instant visual cue that price is "in traffic" or a decision point, separating it from untouched "fresh" zones.
3. Advanced Logic
Inversion Gaps (IFVG): When a Fair Value Gap is broken, it can automatically flip into an Inversion Gap (Support becomes Resistance) with a dashed style.
Mitigation Handling: Choose between extending zones until broken, or hiding them immediately upon mitigation to keep the chart clean.
Midlines: Optional median lines for precision entries.
4. Soft UI & Customization
Designed with "Soft" transparency to keep your chart readable.
Fully customizable colors for Bullish, Bearish, and "In-Zone" states.
Toggle any timeframe on/off individually without affecting the logic of others.
🛠 Settings Guide
Lookback Limit: How far back (in days) to scan for gaps.
Max Boxes PER Timeframe: The distinct memory limit for each timeframe bucket.
Show Inversion Gaps: Enables the "Support to Resistance" flip logic.
Hide Nested Gaps: Prevents clutter by merging overlapping zones.
Price In Zone Color: The color the zone turns when price is currently trading inside it.
⚠️ Credits
Original detection logic by LuxAlgo.
Heavily modified by Gemini_AI_Optimization to include Independent Memory Architecture, Gray Zone Logic, and Independent MTF Layering.
Supply and Demand Zones [Clean v6]Overview
The Supply and Demand Zones indicator is an automated market structure tool designed to identify high-probability Points of Interest (POI) on any asset or timeframe. Built using Pine Script v6, this script focuses on clarity and performance, providing traders with a clutter-free view of where institutional buying and selling pressure has previously occurred.
Unlike crowded indicators that overwhelm the chart, this script dynamically manages zones—drawing new ones as structure forms and automatically removing invalid zones as price breaks through them.
Key Features
Automated Zone Detection: Automatically identifies Supply (Resistance) and Demand (Support) zones based on Swing Highs and Swing Lows.
Dynamic Zone Management: Active zones extend to the right until price interacts with them.
Break of Structure (BOS) Logic: When price violates a zone (closes beyond the invalidation level), the zone is automatically removed and marked as "Broken" to keep the chart clean.
Zig Zag Structure: Includes an optional Zig Zag overlay to visualize market flow, Higher Highs, and Lower Lows.
ATR-Based Sizing: Zone width is calculated using the Average True Range (ATR), ensuring zones adapt to the asset's current volatility.
Pine Script v6: Optimized using the latest array and method functions for speed and stability.
How It Works
Zone Creation: The script looks for Pivot Highs and Lows based on your defined Swing Length.
Supply Zones: Created at Swing Highs.
Demand Zones: Created at Swing Lows.
Zone Width: The height of the box is determined by the ATR multiplied by your Zone Width setting. This ensures the zone covers the "wick" area or the volatility range of the pivot.
Invalidation: If the price closes past the outer edge of a zone (the top of a Supply zone or bottom of a Demand zone), the script detects a break, removes the filled box, and leaves a subtle trace of the broken structure.
How to Use
Trend Following: Use the Zig Zag lines to identify the trend direction. Look for Long entries in Demand zones during an uptrend, and Short entries in Supply zones during a downtrend.
Reversals: Watch for price to react at older, unfilled zones (POIs) that align with major support/resistance levels.
Stop Loss Placement: The outer edge of the zone acts as a natural invalidation point. If price closes beyond it, the setup is typically invalidated.
Settings Guide
Swing Length: Determines the sensitivity of the pivot detection. Lower numbers find more local zones (scalping); higher numbers find major structural zones (swing trading).
Max Zones to Keep: Limits the number of historic zones displayed to prevent chart clutter.
Zone Width (ATR): Adjusts how thick the zones are. Increase this value if you want to capture wider wicks.
Visual Settings: Fully customizable colors for Supply, Demand, Borders, and Zig Zag lines.
Disclaimer
This tool is for informational and educational purposes only. It visualizes past price action and does not guarantee future performance. Always manage your risk appropriately.
VPH - Volume Profile Heatmap (Visible Prices) [Da_Prof]The Volume Profile Heatmap (VPH) indicator is a dynamic volume visualization tool. Unlike traditional Volume Profiles that aggregate all historical data within a range, VPH focuses on recent price action. Specifically, it only considers the volume of the most recent time price touched a level. Additionally, it displays the volume as a heatmap where color intensity directly translates to volume density at specific price levels (as a percentage of the volume range).
What makes the VPH different than other volume profile indicators is its exclusion logic. If a high-volume node was created in the past, but the price has since crossed back through that level, the indicator disregards the previous volume. Therefore, it prioritizes the most recent market participants at any given price level. This is particularly useful for identifying:
1) Fresh Support/Resistance: Levels where volume has accumulated recently without being invalidated by a price cross-through.
2) Real-time Liquidity: Seeing exactly where the supply and demand reside in the current market structure in terms of volume transacted for the particular asset.
Main Features:
1) Dynamic Heatmap: Uses a multi-stage blue color gradient to represent volume intensity. Brighter, more vibrant cyan indicates high-volume nodes, while deep blues represent lower-activity zones. These default colors are best viewed on a black background. The colors can be customized through the settings.
2) Visible Range Scaling: The indicator automatically calculates the High and Low of your current screen view and adjusts the heatmap rows to fit perfectly within your visible window. Note: Ensure the indicator is pinned to the appropriate scale (likely the right scale). If the profile appears to not move when moving the chart, right click on the indicator and select the "pin to scale" to pin it to the appropriate scale.
3) Adjustable Resolution: Use the Number of Profile Bars input to increase the "granularity" of the heatmap (up to 400 rows).
4) Volume Thresholding: The Minimum Volume to Plot setting allows you to filter out "noise," showing only the price levels where significant market commitment occurred. The default is set at 50% of the range maximum.
How to use:
1) Identify high volume nodes: Look for the brightest cyan boxes. These represent price levels where the most recent heavy trading occurred. These areas are more likely to create a price reaction.
2) Spot thinly traded areas: Darker or empty areas indicate "low volume Nodes," where price moved quickly through. These often act as "vacuum" zones where price might travel through rapidly in the future.
3) Scroll & zoom to get the exact window of price action: The indicator is fully reactive. As you move your chart, it recalculates the heatmap based on the visible bars to provide a localized view of the current auction. This allows back testing of the indicator without using the "Replay" feature. Just put the historical price action you are interested in on your screen and the indicator will calculate the volume profile.
SessionVWAP + ORBThis TradingView Pine Script indicator combines two powerful intraday tools:
Multiple Rolling VWAPs: It plots up to four independent rolling (continuous) Volume Weighted Average Prices (VWAPs) with user-defined periods (e.g., 1-hour, 2-hour, 4-hour, daily). These are "anchored" to a customizable session start time and roll forward accurately without daily resets, providing dynamic fair-value benchmarks that react at different speeds (fastest/shortest on top).
Opening Range Breakout (ORB) Zones: It displays the high/low range (with optional background shading and lines) for major global trading sessions — Sydney, Tokyo, London, New York, and US RTH (Regular Trading Hours, starting at 9:30 ET) — over the first configurable minutes (default 30) after each session open, with history for several prior days.
The latest version adds full timezone flexibility (e.g., Chicago, New York, UTC, London, Tokyo, Sydney), automatically adjusting anchor times and session opens.
Use Case
This script is ideal for intraday and day traders (especially in stocks, futures, forex, or indices) seeking confluence between volume-based value areas and session momentum.
VWAP Component: Use the layered rolling VWAPs as dynamic support/resistance. Price above the fastest VWAPs suggests bullish bias; pullbacks to slower VWAPs offer mean-reversion entries. The multi-timeframe view helps gauge short-term vs. longer-term "fair value."
ORB Component: Trade breakouts from major session opening ranges — e.g., buy above the New York ORB high (red line) for momentum longs, or fade failures for reversals. Combine with VWAP (e.g., only take NY ORB longs if price is above session VWAP) for higher-probability filters.
Overall: Overlay on lower timeframes (1-15 min) to spot setups like ORB breakouts aligning with VWAP crosses, or use for risk management (stops beyond ORB extremes). The timezone support makes it versatile for global markets without manual adjustments.
MAG7 Index vs $TICKER$HOW TO USE:
I recommend creating a new layout just for using the indicator, because you should make everything but the indicator invisible, so it is less confusing.
www.tradingview.com
www.tradingview.com
Adaptive Gaussian AFR# Adaptive Gaussian AFR (Average Filtering Range)
The **Adaptive Gaussian AFR** is a sophisticated trend-following overlay designed to provide a "cleaner" perspective on market structure. It synthesizes advanced signal processing with volatility-adjusted trailing logic to create a perpetual trend indicator that filters noise while maintaining extreme responsiveness during momentum breakouts.
## How It Works
This indicator combines three distinct mathematical principles to analyze and visualize price action:
### 1. 4-Pole Gaussian Smoothing
Standard moving averages often suffer from a trade-off between smoothness and lag. By employing a **4-pole Gaussian filter**, the indicator applies a bell-curve weighting to price data. This results in a curve that is mathematically smoother than an EMA but reacts more sharply to significant price shocks.
### 2. Adaptive Volatility Scaling
Unlike static indicators, this script utilizes a **Volatility Ratio** (comparing short-term ATR to long-term ATR).
- **Expansion:** When volatility spikes, the Gaussian filter automatically shortens its lookback to "catch" the breakout.
- **Contraction:** When the market consolidates, it lengthens the lookback to prevent "whipsaws" and false signals.
### 3. AFR (Average Filtering Range) Logic
The "step-ladder" behavior is driven by the AFR logic. It calculates volatility-based boundaries (using an ATR factor). The trend line only moves higher if the price exceeds the current floor, and only moves lower if the price breaks the ceiling, creating a "perpetual" support and resistance level.
## Visual Interface & Branding
The script features a high-visibility sentiment map using a custom brand color scheme:
- **Bullish State (Blue - rgb(45, 162, 252)):** Triggered when price is trading above the Adaptive Gaussian mean and the AFR floor.
- **Bearish State (Purple - rgb(113, 59, 249)):** Triggered when price breaks below the mean and the AFR ceiling.
- **Brand Candles:** Price bars are automatically colored to match the trend state for immediate visual confirmation.
## Why This is Unique
Most trend followers are "fixed"—they perform well in trending markets but fail in sideways chop. The uniqueness of the **Adaptive Gaussian AFR** lies in its ability to "breathe." Because the Gaussian engine is adaptive, it attempts to solve the "lag vs. noise" problem by becoming more rigid when the market is indecisive and more fluid when a trend is confirmed.
## Great inventions require great Care
**This is not a standalone trading system.** While the Adaptive Gaussian AFR provides a highly refined view of the trend, it should be used in conjunction with other analysis tools.
- **Lag:** Like all indicators based on historical data, the filter is inherently lagging and cannot predict future price movements.
- **No Standalone Use:** Do not use this as your sole reason for entering or exiting a trade. It is best used as a **Trend Filter** or a **Volatility-Adjusted Entry/Exit Strategy in confluence with other tools**.
- **Context Matters:** It does not account for fundamental news, higher-timeframe resistance, or volume profiles.
Enjoy!
Volume Flow and Delta Analysis [MarkitTick]💡This comprehensive technical indicator is designed for traders who require a granular view of market participation that goes beyond standard volume bars. By leveraging the advanced "Intrabar Analysis" capabilities of Pine Script, this tool deconstructs every single price candle on your chart into its constituent lower-timeframe components. It effectively "X-rays" the market to determine whether the volume inside a bar was primarily driven by aggressive buying or aggressive selling, providing a definitive read on market sentiment and institutional control.
● Originality and Utility
Most standard volume indicators display a simple aggregate total—a single block of volume that fails to distinguish between buying pressure and selling pressure. A high-volume candle could represent a strong breakout, or it could represent a "selling tail" where buyers were absorbed. This script solves that ambiguity. It is not a standard oscillator; it is a quantitative flow analyzer. It reconstructs the "Delta" (the net difference between buying and selling volume) by querying lower-timeframe data (e.g., analyzing 1-minute data inside a 60-minute bar). This allows traders to spot "Hidden Accumulation" (where price is flat but Delta is rising) or "Exhaustion" (where price rises but Delta falls), offering a significant edge in identifying reversals and trend continuations.
● Methodology
The script operates through a sophisticated three-stage quantitative process:
• Intrabar Data Acquisition
The script uses the security_lower_tf function to fetch granular price and volume data from a lower timeframe (automatically detected or user-defined). This allows the script to see what happened "inside" the current chart's bar.
• Directional Flow Distribution
For every lower-timeframe interval, the script assigns volume to either "Bullish Flow" or "Bearish Flow." If the close is higher than the open on the lower timeframe, the volume is credited to buyers. If the close is lower, it is credited to sellers. This logic is far more accurate than simple "Up/Down" tick data, as it respects price action.
• Statistical Volatility Normalization
To filter out noise, the script calculates a dynamic baseline using an Exponential Moving Average (EMA) of the absolute Delta values. It then compares the current bar's Delta against this baseline. This generates an "Intensity Score" (measured in Sigma or Standard Deviations). This ensures that a "High Volume" signal is relevant to the current market volatility, rather than relying on fixed, arbitrary thresholds.
● How to Use
This tool is designed to be a complete decision-support system. Here is how to interpret its various components:
• The Volume Histogram
The background histogram displays Total Volume, while the foreground bars show the split between Buying (Teal) and Selling (Red) flow. Use this to gauge the "quality" of a move. A price rally accompanied by high Teal volume is healthy; a rally on low volume or high Red volume is suspect.
• The Delta Histogram
This plots the net difference.
Strong Positive (Green) Delta: Indicates aggressive market buy orders are hitting the ask.
Strong Negative (Red) Delta: Indicates aggressive market sell orders are hitting the bid.
Divergence: If Price makes a New High but the Delta Histogram makes a Lower High, this is a classic signal of exhaustion and potential reversal.
• The Heads-Up Display (HUD)
A dashboard table pinned to the chart provides real-time metrics:
Session Delta: The cumulative buy/sell pressure for the current trading day.
Flow Regime: Clearly states if the market is in "ACCUMULATION" or "DISTRIBUTION."
Intensity: Shows how statistically significant the current volume is (e.g., "2.5x" means the volume is 2.5 times the standard deviation, indicating an anomaly).
• Visual Signals
The script plots triangle markers on top of the chart when the Delta Intensity exceeds the user-defined threshold.
Up Triangle (Green): Signals strong institutional buying pressure (Delta > Threshold).
Down Triangle (Red): Signals strong institutional selling pressure (Delta < Threshold).
● Inputs and Configuration
Lower Timeframe: By default, the script auto-selects the best resolution (e.g., 1-minute data for hourly charts). Users can override this to fine-tune the granularity.
Volume MA Length: Defines the lookback period for the volume moving average.
Delta Volatility Threshold (Sigma): This is the sensitivity filter for signals. A higher value (e.g., 2.0) results in fewer but more significant signals. A lower value (e.g., 1.0) provides more frequent alerts.
Visual Logic: Users can toggle the Dashboard, Delta Histogram, and Moving Averages on or off to suit their charting aesthetic.
● Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Professional Breakout Indicator (DC + ATR Filter)Description Elements (Professional): Benefits of Donchian Channel (DC): Uses $\text{highest(high, N)}$ and $\text{lowest(low, N)}$ to determine the historical price accumulation range ($N$). Identifies resistance/support levels that serve as natural market breakout points. ATR Filter: Uses the Average True Range (ATR) multiplied by the multiplier ($\text{Multiplier}$) to increase the distance from the DC edges. Prevents False Breakouts: Signals only occur when the breakout has enough strength (momentum) to overcome the average volatility ( NYSE:ATR $). Input Parameters: Allow users to customize $N$, $\text{ATR Length}$, and $\text{ATR Multiplier}$. Flexibility: The indicator can be adapted to different assets (stocks, Forex, crypto) or timeframes. Alerts ($\text{alertcondition}$): Adds an automatic alert function when a confirmed breakout signal occurs. Convenience: Traders do not need to constantly monitor the screen. Notifications can be set to be sent to mobile phones or emails. Visuals show breakout boundaries and plot shapes clearly display buy/sell signals. Clarity: Facilitates easy visual decision-making and backtesting.
Trading Discipline Mirror How deciplined you are?
Trading Discipline Journal – Smart Feedback helps traders stay disciplined and emotionally controlled. Select your winning or losing reasons, and the indicator automatically calculates scores, evaluates your behavior, and gives clear feedback on whether you’re trading in a safe mindset or a risky one.
DJLogics🔥 NEW INDICATOR FOR THE 3-MINUTE TIMEFRAME 🔥
An indicator designed to trade fast and efficiently on 3-minute charts — without lagging signals or unnecessary noise.
🎯 What’s inside:
— Clear identification of short-term trend
— Early entry and exit points
— Minimal subjectivity, maximum structure
— Perfect for active trading and scalping
🎥 I’ve recorded a detailed training video where I walk you step by step through:
— how the indicator works
— how to use it correctly
— the mistakes 90% of traders make on lower timeframes
This is a tool for those who actually trade — not just watch the market.
👉 The video is already available.
👉 The indicator is live and in action.
Don’t miss it. Small timeframe — big opportunities. 💥
FX Master Confluence v41 (Smart TDI Filter)How to read your new Dashboard:
Top Row (The Boss): This is your 8-Hour WaveTrend status.
DARK GREEN: Strong Bull (Bias is Up & Above Zero). Aggressively look for buys.
LIGHT GREEN: Weak Bull (Bias is Up but Below Zero). Be cautious, could be a deep pullback.
DARK RED: Strong Bear (Bias is Down & Below Zero). Aggressively look for sells.
LTF Rows (15m - 6h):
"GOLDEN ZERO": This is the Holy Grail signal you asked for. The LTF WaveTrend just crossed the Zero line in agreement with the 8H Boss.
"REV SETUP": Standard reversal signal (useful, but lower confidence than Golden).
"TREND UP/DOWN": No signal right now, but tells you the flow of that specific timeframe.
Waduji MACD with Timeframe This indicator will not change any setting or information for standard MACD but only display selected timeframe on MACD this will be helpful for the traders who trade purely MTF MACD
FX Master Confluence v39 (Restored MAs) TDDHow to read your new Dashboard:
Top Row (The Boss): This is your 8-Hour WaveTrend status.
DARK GREEN: Strong Bull (Bias is Up & Above Zero). Aggressively look for buys.
LIGHT GREEN: Weak Bull (Bias is Up but Below Zero). Be cautious, could be a deep pullback.
DARK RED: Strong Bear (Bias is Down & Below Zero). Aggressively look for sells.
LTF Rows (15m - 6h):
"GOLDEN ZERO": This is the Holy Grail signal you asked for. The LTF WaveTrend just crossed the Zero line in agreement with the 8H Boss.
"REV SETUP": Standard reversal signal (useful, but lower confidence than Golden).
"TREND UP/DOWN": No signal right now, but tells you the flow of that specific timeframe.
Now you have a "Traffic Light" system. If the Top Row is RED, you ignore everything until you see a RED "GOLDEN ZERO" on your 15m or 1H chart.
Repent Deviationsalot of levels, use at own risk, ict method, idk wth to type here just use ts and delete it instantly
EMA and Dow Theory Strategies V2 DOGE Current Optimum Value
📘 Overview
These are the current optimal values for DOGE.
They are intended for use on the 2‑hour timeframe.
This script requires complex configuration, but there is an optimal set of values somewhere.
Here, I’m sharing the settings that I personally use at the moment.
Turning Take Profit off can lead to higher profits, but it also increases risks such as a lower win rate.
With Take Profit on, you can adjust the settings by increasing the values.
I have been trading using Dow Theory for many years.
Trading with Dow Theory and EMA has been my main strategy.
Although it has been profitable, I have long struggled with its low win rate.
The issue lies in the immaturity of the exit strategy, and I’m currently experimenting to see if I can solve that.
In V2, I added three take‑profit lines, securing 30% of the profit at each level to ensure a minimum level of gain.
Additionally, when the trend weakens, half of the position is closed.
In all scenarios, the remaining position is held until the trend reverses.
The system provides precise entries, adaptive exits, and highly visual guidance that helps traders understand trend structure at a glance.
🧠 Key Features
🔹 1. Dual‑EMA Trend Logic (Symbol + External Index)
Both the chart symbol and an external index (OTHERS.D) are evaluated using fast/slow EMAs to determine correlation‑based trend bias.
🔹 2. Dow Theory Swing Detection (Real‑time)
The script identifies swing highs/lows and updates trend direction when price breaks them. This creates a structural trend model that reacts faster than EMAs alone.
🔹 3. Gradient Trend Zones (Visual Trend Strength)
When trend is up or down, the area between price and the latest swing level is filled with a multi‑step gradient. This makes trend strength and distance-to-structure visually intuitive.
🔹 4. Higher‑Timeframe Swing Trend (htfTrend)
Swing highs/lows from a higher timeframe (e.g., 4H) are plotted to show macro structure. Used only for visual context, not for filtering entries.
🔹 5. RSI‑Based Entry Protection
RSI prevents entries during extreme overbought/oversold conditions.
🔹 6. Dynamic Exit System
Includes:
Custom stop‑loss (%)
Partial take‑profit (TP1/TP2/TP3)
Automatic scale‑out when trend color weakens
“Color‑change lockout” to prevent immediate re‑entry
Real‑time PnL tracking and labels
🔹 7. Alerts for All Key Events
Entry, stop‑loss, partial exits, and trend‑change exits all generate structured JSON alerts.
🔹 8. Visual PnL Labels & Equity Tracking
PnL for the latest trade is displayed directly on the chart, including scale‑out adjustments.
⚙️ Input Parameters
Parameter Description
Fast EMA / Slow EMA EMAs used for symbol trend detection
Index Fast / Slow EMA EMAs applied to external index
StopLoss (%) Custom stop‑loss threshold
Scale‑Out % Portion to exit when trend color weakens
RSI Period / Levels Overbought/oversold filters
Swing Detection Length Bars used to detect swing highs/lows
Stats Display Position of statistics table
🧭 About htfTrend (Higher Timeframe Trend)
The higher‑timeframe swing trend is displayed visually but not used for entry logic.
Why? Strict HTF filtering reduces trade frequency and often removes profitable setups. By keeping it visual‑only, traders retain flexibility while still benefiting from macro structure awareness.
Use it as a contextual guide, not a constraint.
📘 概要
DOGEの現在の最適値です。
2時間足での使用を想定しています。
このスクリプトは複雑な設定が必要ですが、どこかに最適値が存在します。
今回は現在私が個人的に使っている設定値の公開です。
Take ProfitをOFFにするとさらなる利益が望めますが、勝率が下がるなどのリスクが上がります。
ONにした状態で数値を上げることによって調整することが可能です。
私はダウ理論を使ったトレードを長年続けてきました。
ダウ理論とEMAを使ったトレードが私の主力です。
しかし利益は出るものの、長年その勝率の低さに悩んでいました。
問題は出口戦略が未熟なためで、現在はそれらの解決ができないかと試行錯誤を続けています。
V2では3本の利益確定ラインを引き、それぞれ30%ずつ利益を確定し、最低限の利益がでるようにしました。
それ以外にはトレンドが弱まったタイミングで半分の利益確定をし、どのパターンでも残ったポジションはトレンド転換まで持ち続けます。
🧠 主な機能
🔹 1. 銘柄+外部インデックスの EMA クロス判定
対象銘柄と OTHERS.D の EMA を比較し、相関を考慮したトレンド方向を判定します。
🔹 2. ダウ理論に基づくスイング高値・安値の自動検出
スイング更新によりトレンド方向を切り替える、構造ベースのトレンド判定を採用。
🔹 3. グラデーション背景によるトレンド強度の可視化
スイングラインから現在価格までを段階的に塗り分け、 「どれだけトレンドが伸びているか」を直感的に把握できます。
🔹 4. 上位足スイングトレンド(htfTrend)の表示
4H などの上位足でのスイング高値・安値を表示し、 大局的なトレンド構造を視覚的に把握できます(ロジックには未使用)。
🔹 5. RSI による過熱・売られすぎフィルター
極端な RSI 状態でのエントリーを防止。
🔹 6. 動的イグジットシステム
カスタム損切り(%)
TP1/TP2/TP3 の段階的利確
トレンド色の弱まりによる自動スケールアウト
色変化後の再エントリー制限(waitForColorChange)
リアルタイム PnL の追跡とラベル表示
🔹 7. アラート完備(JSON 形式)
エントリー、損切り、部分利確、トレンド反転などすべてに対応。
🔹 8. 損益ラベル・統計表示
直近トレードの損益をチャート上に表示し、視覚的に把握できます。
⚙️ 設定項目
設定項目名 説明
Fast / Slow EMA 銘柄の EMA 設定
Index Fast / Slow EMA 外部インデックスの EMA 設定
損切り(%) カスタム損切りライン
部分利確割合 トレンド弱化時のスケールアウト割合
RSI 期間・水準 過熱/売られすぎフィルター
スイング検出期間 スイング高値・安値の検出に使用
統計表示位置 テーブルの表示位置
🧭 上位足トレンド(htfTrend)について
上位足スイングの更新に基づくトレンド判定を表示しますが、 エントリー条件には使用していません。
理由: 上位足を厳密にロジックへ組み込むと、トレード機会が大幅に減るためです。
本ストラテジーでは、 「大局の把握は視覚で、エントリーは柔軟に」 という設計思想を採用しています。
→ 裁量で利確判断や逆張り回避に活用できます。
Adaptive Regime Z-Score (ARZ)Adaptive Regime Z-Score (ARZ) — Description
Adaptive Regime Z-Score (ARZ) is a regime-weighted, volatility-normalized price deviation histogram.
It measures the distance between price and a slow EMA (market center), normalized by ATR, and amplifies this deviation only when a directional trend regime is confirmed.
The output is displayed as a signed histogram, capped between -100 and +100, with directional regime awareness (bullish or bearish trends).
🔍 What ARZ measures
Normalized price deviation
Distance of price from the EMA center, expressed in ATR units and scaled to a fixed range.
Directional trend regime detection
A trend regime is confirmed only when all three conditions align:
EMA slope has a clear direction
Price is sufficiently far from the EMA (ATR-based distance)
ADX is above its threshold
Regime-weighted deviation
When a trend regime is active, the deviation is scaled by a trend-strength score
When no trend is detected, the output collapses toward zero
📊 How to read the histogram
Green bars → confirmed bullish trend regime
(price extended above EMA, positive deviation)
Red bars → confirmed bearish trend regime
(price extended below EMA, negative deviation)
Near-zero values → no confirmed trend regime
(range / transition state, not highlighted)
There is no separate “ranging” histogram:
absence of bars (or minimal values) implicitly represents non-trending conditions.
🎨 Visual elements
Histogram
Green = bullish trend regime
Red = bearish trend regime
Intensity reflects trend strength × extension
Highlighted only when a directional trend regime is active
Neutral otherwise
Upper / Lower Visual Levels
Reference levels only
RSI Bull bear thresholds region highlight on priceBullish & bearish relative strength thresholds
Default 61 & 39 RSI






















