• מוצרים
  • קהילה
  • שווקים
  • ברוקרים
  • עוד
התחל
  • קהילה
  • /אינדיקטורים ואסטרטגיות
  • /Smafix

Smafix

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®
מאת ‎Lemrin‎
מעודכן
11

בחר נתוני שוק שסופקו על ידי שירותי ICE Data. בחר נתוני עזר שסופקו על ידי FactSet. זכויות יוצרים © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

יותר ממוצר
  • סופר גרפים
סורקים
  • מניות‏
  • תעודות סל
  • אג"ח
  • מטבעות קריפטו
  • צמדי CEX
  • צמדי DEX
  • Pine
מפות חום
  • מניות‏
  • תעודות סל
  • קריפטו
לוחות שנה
  • כלכלי
  • דו"חות רווחים
  • דיבידנדים
מוצרים נוספים
  • עקומות תשואה
  • אופציות
  • זרם חדשות
  • Pine Script®
אפליקציות
  • נייד
  • שולחן עבודה
קהילה
  • רשת חברתית
  • קיר של אהבה
  • הפנה חבר
  • כללי הבית
  • מנחים
רעיונות
  • מסחר
  • השכלה
  • בחירות העורכים
Pine Script
  • אינדיקטורים ואסטרטגיות
  • אשפים
  • פרילנסרים
כלים ומנויים
  • מאפיינים
  • מחירון
  • נתוני שוק
מסחר
  • סקירה כללית
  • ברוקרים
הצעות מיוחדות
  • חוזים עתידיים של קבוצת CME
  • חוזים עתידיים של Eurex
  • חבילת מניות בארה"ב
אודות החברה
  • מי אנחנו
  • משימת חלל
  • בלוג
  • קריירה
  • ערכת מדיה
מוצרים
  • חנות TradingView
  • קלפי טארוט לסוחרים
  • זמן המסחר של C63
מדיניות ואבטחה
  • תנאי שימוש
  • כתב ויתור
  • מדיניות פרטיות
  • מדיניות עוגיות
  • הצהרת נגישות
  • טיפים בנושא אבטחה
  • תוכנית Bug Bounty
  • דף סטטוס
פתרונות עסקיים
  • וידג'טים
  • ספריות גרפים
  • Lightweight Charts™
  • גרפים מתקדמים
  • פלטפורמת מסחר
הזדמנויות צמיחה
  • פּרסום
  • אינטגרציית ברוקר
  • תוכנית שותפים
  • תכנית לימודית
קהילה
  • רשת חברתית
  • קיר של אהבה
  • הפנה חבר
  • כללי הבית
  • מנחים
רעיונות
  • מסחר
  • השכלה
  • בחירות העורכים
Pine Script
  • אינדיקטורים ואסטרטגיות
  • אשפים
  • פרילנסרים
פתרונות עסקיים
  • וידג'טים
  • ספריות גרפים
  • Lightweight Charts™
  • גרפים מתקדמים
  • פלטפורמת מסחר
הזדמנויות צמיחה
  • פּרסום
  • אינטגרציית ברוקר
  • תוכנית שותפים
  • תכנית לימודית
Look FirstLook First