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

Developers

Multi-Timeframe Configuration DemoThis is a developer friendly solution to the current PineScript limitation of not being able to easily configure presets for multiple timeframes. If you're developing multi-timeframe strategies then you've no doubt done battle with built-in `input` function which only allows for a single default value. You've probably come up with all kinds of fancy workarounds, including messy hardcoding, and even gritting your teeth and patiently reentering all the necessary values each time you refresh the chart or change the timeframe. The last one is my personal favourite. As you can see in the code below we have defined a `usePresets` condition which tells the script to use our preset configuration, otherwise the default `input` values will be used. If `usePresets` is false then we use our presets which are defined in a (fairly) easy to read condition chain with the help of some basic timeframe utility functions. Obviously this is nothing groundbreaking, but its helped me clean up my scripts a bit, so hopefully it will help you too.
אינדיקטור Pine Script®
מאת ‎sourcey‎
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