OPEN-SOURCE SCRIPT
NonLag MA

The Non-Lag Moving Average (MA) is a technical analysis indicator designed to track price trends with significantly less lag than traditional moving averages like the SMA or EMA.
Its primary purpose is to provide a smoother, more responsive representation of the current price direction. It achieves this by using a complex, adaptive filtering algorithm—often involving trigonometric functions (like the cosine function in the code you provided)—to assign weights to past price data. This sophisticated calculation allows it to stay closer to the price action, aiming to give earlier and more reliable trend signals.
Traders use the Non-Lag MA to:
Identify Trend Direction: The slope and color of the indicator line clearly signal whether the market is in an uptrend (rising) or a downtrend (falling).
Generate Crossover Signals: Like other moving averages, a faster Non-Lag MA crossing above a slower one can indicate a buy signal, while a cross below can signal a sell.
---
Just another publicly available indicator from MT5 translated.
Its primary purpose is to provide a smoother, more responsive representation of the current price direction. It achieves this by using a complex, adaptive filtering algorithm—often involving trigonometric functions (like the cosine function in the code you provided)—to assign weights to past price data. This sophisticated calculation allows it to stay closer to the price action, aiming to give earlier and more reliable trend signals.
Traders use the Non-Lag MA to:
Identify Trend Direction: The slope and color of the indicator line clearly signal whether the market is in an uptrend (rising) or a downtrend (falling).
Generate Crossover Signals: Like other moving averages, a faster Non-Lag MA crossing above a slower one can indicate a buy signal, while a cross below can signal a sell.
---
Just another publicly available indicator from MT5 translated.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.