OPEN-SOURCE SCRIPT
TRADE ORBIT:Dual MACD + HEMA Trend

This indicator combines dual MACD histograms with a Harmonic EMA (HEMA) trend overlay to provide comprehensive trend analysis, buy/sell signals, and dynamic support/resistance zones.
Features:
Dual MACD System:
Background Coloring: Uses MACD(100,200,50) histogram to color the chart background:
Green = bullish momentum
Red = bearish momentum
Buy/Sell Signals: Uses MACD(34,144,9) histogram crossovers for trade signals:
BUY Signal: Histogram crosses above zero and background is green
SELL Signal: Histogram crosses below zero and background is red
Signals are plotted as labels on the chart.
HEMA Trend Overlay:
Uses short and long HEMA lines (default 20 & 40) to detect trend direction.
Colors bars dynamically based on trend:
Green = bullish
Red = bearish
Gray = neutral or indecisive
Provides gradient fill between HEMA lines to visually highlight trend strength.
Trend Boxes & Markers:
Bullish/bearish boxes highlight areas of potential support/resistance based on HEMA crossovers.
Markers (▲ / ▼) appear when the price interacts with trend boxes for easy visual confirmation.
Alerts:
HEMA crossovers (bullish/bearish)
Price tests of bullish/bearish boxes
Optionally, can add alerts for MACD BUY/SELL signals.
Visualization:
MACD histograms plotted as columns for reference
Dynamic bar colors reflecting HEMA trend
Combined view gives a multi-layered trend analysis on a single chart.
Use Case:
Ideal for traders who want to filter trades by overall trend (background MACD), time precise entries/exits (MACD signals), and confirm trend strength (HEMA overlay) in a single indicator.
Features:
Dual MACD System:
Background Coloring: Uses MACD(100,200,50) histogram to color the chart background:
Green = bullish momentum
Red = bearish momentum
Buy/Sell Signals: Uses MACD(34,144,9) histogram crossovers for trade signals:
BUY Signal: Histogram crosses above zero and background is green
SELL Signal: Histogram crosses below zero and background is red
Signals are plotted as labels on the chart.
HEMA Trend Overlay:
Uses short and long HEMA lines (default 20 & 40) to detect trend direction.
Colors bars dynamically based on trend:
Green = bullish
Red = bearish
Gray = neutral or indecisive
Provides gradient fill between HEMA lines to visually highlight trend strength.
Trend Boxes & Markers:
Bullish/bearish boxes highlight areas of potential support/resistance based on HEMA crossovers.
Markers (▲ / ▼) appear when the price interacts with trend boxes for easy visual confirmation.
Alerts:
HEMA crossovers (bullish/bearish)
Price tests of bullish/bearish boxes
Optionally, can add alerts for MACD BUY/SELL signals.
Visualization:
MACD histograms plotted as columns for reference
Dynamic bar colors reflecting HEMA trend
Combined view gives a multi-layered trend analysis on a single chart.
Use Case:
Ideal for traders who want to filter trades by overall trend (background MACD), time precise entries/exits (MACD signals), and confirm trend strength (HEMA overlay) in a single indicator.
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。