OPEN-SOURCE SCRIPT

Contrarian Investor

133
📌 Indicator Overview
Name:Contrarian investor
Purpose: Identify oversold or overbought conditions for simple reversal trades.
Key Features:
Uses the 200-period moving average (200MA) to determine the market trend.
Uses RSI to detect oversold and overbought levels.
Includes a signal interval filter to prevent excessive signals.
📌 Signal Conditions
BUY (Reversal Buy)
Price is below the 200MA
RSI is below the oversold threshold (default: 30)
When both conditions are met, a "BUY" label is plotted below the bar.
SELL (Reversal Sell)
Price is above the 200MA
RSI is above the overbought threshold (default: 70)
When both conditions are met, a "SELL" label is plotted above the bar.
📌 Parameters
MA Length: Default 200 (used for trend detection)
RSI Length: Default 14
RSI Oversold: Default 30 (trigger for BUY signals)
RSI Overbought: Default 70 (trigger for SELL signals)
Signal Interval (bars): Default 10 (prevents duplicate signals)
📌 How to Use
Use the 200MA to confirm the trend direction.
Wait for RSI to reach extreme levels (oversold or overbought).
When a "BUY" or "SELL" label appears, consider a potential entry.
For better accuracy, combine with support/resistance or price action confirmation.
📌 Notes
This indicator is designed as a supplementary tool, not a standalone entry system.
Adjust the signal interval based on your trading style (e.g., shorter for scalping, longer for swing trading).
In strong trending markets, reversal signals may fail frequently, so additional confluence is recommended.
You need to adjust the settings depending on the market conditions.
This indicator is not intended for use during strong trending markets, such as after major economic news releases.
It is best suited for range-bound markets and scalping within a few-dollar price range.

📌 インジケーターの概要
名前:Contrarian investor
目的:過剰に売られた/買われたタイミングでの逆張りシグナルを簡単に確認
特徴:
200MAを基準にトレンド方向を判定
RSIで売られすぎ・買われすぎを検出
過剰なシグナルを防ぐための「シグナル間隔制限」付き
📌 シグナルの条件
BUY(逆張り買い)
現在の価格が 200MAより下
RSIが 設定値(初期値30)以下
この条件で「BUY」ラベルがチャート下に表示されます。
SELL(逆張り売り)
現在の価格が 200MAより上
RSIが 設定値(初期値70)以上
この条件で「SELL」ラベルがチャート上に表示されます。
📌 パラメータ設定
MA期間:デフォルト200(200MAで長期トレンドを判定)
RSI期間:デフォルト14
RSI売られすぎ:デフォルト30(BUYの発生条件)
RSI買われすぎ:デフォルト70(SELLの発生条件)
シグナル間隔(バー):デフォルト10(重複シグナル防止)
📌 使い方
200MAでトレンド方向を確認
RSIが極端な水準に達したら逆張りシグナル発生
「BUY」または「SELL」のラベルが出たら検討
他のテクニカル(サポレジ・プライスアクション)と組み合わせると精度向上
📌 注意点
単独でのエントリー判断には使わず、補助的に活用するのが推奨
シグナル間隔は調整可能(例:スキャルピングなら短め、スイングなら長め)
トレンドが強い相場では逆張りシグナルが連続して外れる可能性あり
相場環境によって設定を変える必要がある
指標発表後など強いトレンドが出る時ではなくレンジ相場で数ドル幅のスキャルピングをするのに向いている。

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.