--> Purpose The Weighted Trend Detector evaluates market direction by combining multiple technical indicators (RSI, MACD, Moving Averages, ADX, and Volume) across up to three different timeframes. It calculates an overall trend score to help visualize whether conditions are bullish, bearish, or neutral.
--> Scaling & Weightings Each component indicator contributes a score between -1.0 and +1.0. User-defined weights (e.g., 0.2 for RSI, 0.3 for MACD) determine how much each indicator influences the final score. An adaptive scaling mechanism ensures extreme values remain in view by dynamically setting the minimum and maximum of the score range over a specified lookback period.
--> Basic Parameters of Individual Indicators RSI Period: Number of bars for the Relative Strength Index calculation; higher values smooth out noise but may lag. MACD Fast/Slow/Signal: EMA-based periods to identify momentum shifts. A shorter “Fast” length reacts quickly, while a longer “Slow” length is smoother. Moving Averages (Short & Long Lengths): Simple Moving Averages used to gauge shorter- vs. longer-term price direction. ADX Length: Defines how many bars are considered when measuring trend strength. Higher values produce smoother ADX lines. Volume MA Length: Period over which the average volume is calculated to compare against current volume.
--> Colors & How They Are Mixed The background color scales from a negative color (for lower scores) to a positive color (for higher scores). Near the highest or lowest parts of the score range, additional blending occurs if the slope (change in score) reverses:
Turning Down: Mixes with a user-chosen “warning” color if the score is high but moving lower. Turning Up: Mixes with a user-chosen “recovery” color if the score is low but moving higher. All colors (including line and label text) can be adjusted in the script’s inputs to suit personal preferences.colors are customizable via inputs.
Have fun :-)
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menjadikannya sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Hormat untuk penulisnya! Meskipun anda dapat menggunakannya secara gratis, ingatlah bahwa penerbitan ulang kode tersebut tunduk pada Tata Tertib kami.
Untuk akses cepat pada chart, tambahkan skrip ini ke favorit anda — pelajari lebih lanjut di sini.
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menjadikannya sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Hormat untuk penulisnya! Meskipun anda dapat menggunakannya secara gratis, ingatlah bahwa penerbitan ulang kode tersebut tunduk pada Tata Tertib kami.
Untuk akses cepat pada chart, tambahkan skrip ini ke favorit anda — pelajari lebih lanjut di sini.
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.