PROTECTED SOURCE SCRIPT

EMA Cross Pro v2.0

103
[EN]

An indicator that generates trade signals based on EMA crosses and automatically displays multiple stop-loss/take-profit lines. Also includes a higher timeframe trend filter.

Main Features

【1. EMA Cross Signals】
Generates entry signals when Fast EMA (default 7) crosses Standard EMA (default 16).
・Golden cross → Long signal (green ▲ "L")
・Death cross → Short signal (red ▼ "S")

【2. Higher Timeframe Trend Filter】
Determines trend direction using a timeframe 4x larger than the current one, displayed in the top-right panel.
Example: 5-second chart references 20-second, 15-minute chart references 1-hour

【3. SL/TP Lines (4 lines)】
・SL1 (red): EMA cross price (average of both EMAs)
・SL2 (blue): Stop-loss at a set % away from SL1
・TP1 (orange): First take-profit target calculated by ATR × multiplier
・TP2 (purple): Trailing take-profit that follows price extremes

【4. Break-Even Function】
When price reaches TP1, SL1 automatically moves to entry price (BE).

Parameter Settings

【EMA Settings】
・Fast EMA: Short-term EMA period
・Standard EMA: Long-term EMA period

【Risk Management Settings】
・SL2 Offset: Offset % from SL1
・TP1 ATR Multiplier: TP1 = SL1 ± (ATR × this multiplier)
・TP2 Position Ratio: Position between SL1 and extreme price (%)

Information Panel Guide

The top-right table displays:
・HTF Trend: Higher timeframe trend direction (BULLISH/BEARISH)
・Position: Current position status
・SL2/SL1/TP1/TP2: Each price level
・High/Low: Highest/lowest price during position
・Diff from SL1: Difference from SL1 to current price (with P&L %)

Recommended Usage

1. Taking only signals aligned with the higher timeframe trend may improve win rate

2. Use SL2 as your actual stop-loss and TP1 as your minimum profit target

3. After TP1 is reached, SL moves to BE, then trail toward TP2

---------------------------------------------------------------------------------------------------------------------

[JP]

EMAクロスを基にしたトレードシグナルと、複数のストップロス/利益確定ラインを自動表示するインジケーター。上位足トレンドフィルターも搭載してます。


主な機能

【1. EMAクロスシグナル】

Fast EMA(デフォルト7)とStandard EMA(デフォルト16)のクロスでエントリーシグナルを生成します。

・ゴールデンクロス → ロングシグナル(緑の▲「L」)
・デッドクロス → ショートシグナル(赤の▼「S」)


【2. 上位足トレンドフィルター】

現在の時間足の4倍の上位足でトレンド方向を判定し、右上パネルに表示されます。

例:5秒足なら20秒足、15分足なら1時間足を参照


【3. SL/TPライン(4本)】

・SL1(赤): EMA交差価格(2つのEMAの平均値)
・SL2(青): SL1から一定%離れたストップロス
・TP1(オレンジ): ATR × 倍率で計算した最初の利確目標
・TP2(紫): 極値に連動するトレーリング利確


【4. ブレークイーブン機能】

価格がTP1に到達すると、SL1が自動的にエントリー価格(BE)に移動します。


パラメータ設定

【EMA設定】
・Fast EMA: 短期EMA期間
・Standard EMA: 長期EMA期間

【リスク管理設定】
・SL2 Offset: SL1からのオフセット%
・TP1 ATR Multiplier: TP1 = SL1 ± (ATR × この倍率)
・TP2 Position Ratio: SL1と極値の間の位置(%)


情報パネルの見方

右上のテーブルに以下が表示されます:

・HTF Trend: 上位足のトレンド方向(BULLISH/BEARISH)
・Position: 現在のポジション状態
・SL2/SL1/TP1/TP2: 各価格レベル
・High/Low: ポジション中の最高/最低価格
・Diff from SL1: 現在価格とSL1の差(損益%表示付き)


推奨される使い方

1. 上位足トレンドと同方向のシグナルのみを採用すると勝率が上がる可能性があります

2. SL2を実際のストップロス、TP1を最低利益目標として活用

3. TP1到達後はBEに移動されるため、その後はTP2を目指してトレーリング



إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.