• Ürünler
  • Topluluk
  • Piyasalar
  • Aracı kurum
  • Daha Fazla
Şimdi başlat
  • Topluluk
  • /Göstergeler ve stratejiler
  • /Stepcorrection

Stepcorrection

Awesome Oscillator with AntiStep CorrectionHere is the well-known Awesome Oscillator (AO), which I use to present the real purpose of this post: a function that provides step correction for simple moving averages (SMAs). We all know that any indicator based on moving averages lags real-time movement. Normally this is fine, but just after large ("step") changes in level, the pre-step values that are still within the SMA window cause the result to falsely reflect continued movement, even when real-time values remain flat. To counter this, when a step change of a configurable size is detected, I temporarily shrink the SMA window size to include only those values occurring since the step change, and then allow the size to increase to normal length as we move away from the step change. This is accomplished within the antistep_sma() function. Note that this will cause SMAs of different lengths (e.g. those used in the AO) to be temporarily equal, until the shorter of the two reaches its normal size and begins to leave the longer one behind again. You can see this above, where the AO, which is the difference of two SMAs, goes to 0 immediately after a sufficiently large step change--configured to 0.5% in this case.
Pine Script® göstergesi
Lemrin tarafından
Güncellendi
11

ICE Data services tarafından sağlanan seçili piyasa verileri. FactSet tarafından sağlanan seçili referans verileri. Telif Hakkı © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

Bir üründen daha fazlası
  • Süpergrafikler
Takipçi
  • Hisseler
  • BYF
  • Tahvil
  • Kripto paralar
  • CEX çiftleri
  • DEX çiftleri
  • Pine
Isı Haritaları
  • Hisseler
  • BYF
  • Kripto
Takvimler
  • Ekonomik
  • Kazanç
  • Temettüler
Diğer ürünler
  • Verim eğrileri
  • Opsiyonlar
  • Haber Akışı
  • Pine Script®
Uygulamalar
  • Mobil
  • Masaüstü
Topluluk
  • Sosyal ağ
  • Sevgi Duvarı
  • Arkadaşını yönlendir
  • Site Kuralları
  • Moderatörler
Fikirler
  • İşlem
  • Eğitim
  • Editörün Seçtikleri
Pine Script
  • Göstergeler & stratejiler
  • Sihirbazlar
  • Serbest çalışanlar
Araçlar & abonelikler
  • Özellikler
  • Ücretlendirme
  • Piyasa verileri
İşlem
  • Genel Bakış
  • Aracı kurumlar
Özel teklifler
  • CME Grubu vadeli işlemleri
  • Eurex vadeli işlemleri
  • ABD hisse paketi
Şirket hakkında
  • Biz kimiz
  • Bildiri
  • Sporcular
  • Blog
  • Kariyer
  • Medya kiti
Ürün
  • TradingView mağazası
  • Yatırımcılar için tarot kartları
  • C63 TradeTime
Poliçeler ve güvenlik
  • Kullanım Koşulları
  • Feragatname
  • Gizlilik Politikası
  • Çerezler Politikası
  • Erişilebilirlik Beyanı
  • Güvenlik açığı
  • Durum sayfası
İş çözümleri
  • Widget'lar
  • Grafik kütüphaneleri
  • Lightweight Charts™
  • Gelişmiş Grafikler
  • İşlem Platformu
Büyüme fırsatları
  • Reklam
  • Aracı Kurum Entegrasyonu
  • Partner programı
  • Eğitim programı
Topluluk
  • Sosyal ağ
  • Sevgi Duvarı
  • Arkadaşını yönlendir
  • Site Kuralları
  • Moderatörler
Fikirler
  • İşlem
  • Eğitim
  • Editörün Seçtikleri
Pine Script
  • Göstergeler & stratejiler
  • Sihirbazlar
  • Serbest çalışanlar
İş çözümleri
  • Widget'lar
  • Grafik kütüphaneleri
  • Lightweight Charts™
  • Gelişmiş Grafikler
  • İşlem Platformu
Büyüme fırsatları
  • Reklam
  • Aracı Kurum Entegrasyonu
  • Partner programı
  • Eğitim programı
Look FirstLook First