• Produkte
  • Community
  • Märkte
  • Broker
  • Mehr
Auf geht's
  • Community
  • /Indikatoren und Strategien
  • /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® Indikator
von sourcey
11

Die ausgewählten Marktdaten werden von ICE Data Services bereitgestellt.Die ausgewählten Referenzdaten werden von FactSet bereitgestellt. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

Mehr als ein Produkt
  • Supercharts
Screener
  • Aktien
  • ETFs
  • Anleihen
  • Krypto-Coins
  • CEX-Paare
  • DEX-Paare
  • Pine
Heatmaps
  • Aktien
  • ETFs
  • Krypto
Kalender
  • Ökonomie
  • Earnings
  • Dividenden
Weitere Produkte
  • Renditekurven
  • Optionen
  • Nachrichtenstrom
  • Pine Script®
Apps
  • Mobile
  • Desktop
Community
  • Soziales Netzwerk
  • Wall of Love
  • Einem Freund empfehlen
  • Hausregeln
  • Moderatoren
Ideen
  • Trading
  • Ausbildung
  • Editors' Picks
Pine Script
  • Indikatoren & Strategien
  • Wizards
  • Freelancer
Tools & Abonnements
  • Features
  • Preise
  • Marktdaten
Trading
  • Übersicht
  • Broker
Sonderangebote
  • Futures der CME Group
  • Eurex-Termingeschäfte
  • US-Aktienbündel
Über das Unternehmen
  • Wer wir sind
  • Weltraummission
  • Blog
  • Karrieren
  • Media Kit
Merch
  • TradingView-Store
  • Tarotkarten für Trader
  • Der C63 TradeTime
Richtlinien & Sicherheit
  • Nutzungsbedingungen
  • Haftungsausschluss
  • Datenschutzrichtlinie
  • Cookies-Richtlinien
  • Zugänglichkeitserklärung
  • Sicherheitstipps
  • Bug-Bounty-Programm
  • Statusseite
Geschäftslösungen
  • Widgets
  • Charting-Bibliotheken
  • Lightweight Charts™
  • Fortschrittliche Charts
  • Trading-Plattform
Wachstumsmöglichkeiten
  • Werbung
  • Brokerage Integration
  • Partnerprogramm
  • Ausbildungsprogramm
Community
  • Soziales Netzwerk
  • Wall of Love
  • Einem Freund empfehlen
  • Hausregeln
  • Moderatoren
Ideen
  • Trading
  • Ausbildung
  • Editors' Picks
Pine Script
  • Indikatoren & Strategien
  • Wizards
  • Freelancer
Geschäftslösungen
  • Widgets
  • Charting-Bibliotheken
  • Lightweight Charts™
  • Fortschrittliche Charts
  • Trading-Plattform
Wachstumsmöglichkeiten
  • Werbung
  • Brokerage Integration
  • Partnerprogramm
  • Ausbildungsprogramm
Look FirstLook First