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

Starting

Start the Script on Last Nth Bar [Experimental]Hello Pine Scripters, Sometimes we need to run some processes in the scripts on last N bar but currently we don't know bar_index value of realtime bar or number of remaining bars before we reached it. So most of us use "start date" as input and run some processes after "start date". This experimental script finds last Nth bar approximately. As you can see in the script we (should) use GMT, otherwise as I see the result might not be accurate (we don't know timezone used on the chart) The idea is to find/use similar bar in the past (using timenow as reference) and then calculate aproximate the time of last Nth bar. the results may not be accurate all the time, also we can not know local holidays etc. At the moment the script works on 1minute or higher time frames (it won't work on less 1min timeframes) In the future if the Pine Team add something like "bar_index_realtime" then we will not need such things. by the way many thanks to Pine Team, they are doing great job. You can use this script in your scripts as you want, no need to ask permission. If you can improve it let me know ;) Enjoy!
אינדיקטור Pine Script®
מאת ‎LonesomeTheBlue‎
מעודכן
1212

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

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