• プロダクト
  • コミュニティ
  • マーケット
  • ブローカー
  • 詳細
始めましょう
  • コミュニティ
  • /インジケーターとストラテジー
  • /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 services.その他データ提供元: FactSet. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

主要プロダクト
  • スーパーチャート
スクリーナー
  • 株式
  • ETF
  • 債券
  • 暗号コイン
  • CEXペア
  • DEXペア
  • Pine
ヒートマップ
  • 株式
  • ETF
  • 暗号
カレンダー
  • 経済
  • 決算
  • 配当
その他プロダクト
  • イールドカーブ
  • オプション
  • ニュースフロー
  • Pine Script®
アプリ
  • モバイル
  • デスクトップ
コミュニティ
  • ソーシャルネットワーク
  • ラブウォール
  • お友達紹介
  • ハウスルール
  • モデレーター
アイデア
  • トレーディング
  • 教育
  • エディターズ・ピック
Pineスクリプト
  • インジケーターとストラテジー
  • 魔術師
  • フリーランサー
ツールとサブスクリプション
  • 機能
  • 価格
  • マーケットデータ
トレーディング
  • 概要
  • ブローカー
スペシャルオファー
  • CMEグループ先物
  • Eurex先物
  • 米国株バンドルデータ
会社情報
  • 私たちについて
  • スペースミッション
  • ブログ
  • キャリア
  • メディアキット
商品
  • TradingViewストア
  • タロットカード
  • C63 TradeTime
ポリシーとセキュリティ
  • 利用規約
  • 免責事項
  • プライバシーポリシー
  • Cookieポリシー
  • アクセシビリティ宣言
  • セキュリティのヒント
  • バグバウンティ・プログラム
  • ステータスページ
ビジネスソリューション
  • ウィジェット
  • チャートライブラリ
  • Lightweight Charts™
  • 高機能チャート
  • トレーディングプラットフォーム
成長機会
  • 広告
  • ブローカーシステムの統合
  • パートナープログラム
  • 教育プログラム
コミュニティ
  • ソーシャルネットワーク
  • ラブウォール
  • お友達紹介
  • ハウスルール
  • モデレーター
アイデア
  • トレーディング
  • 教育
  • エディターズ・ピック
Pineスクリプト
  • インジケーターとストラテジー
  • 魔術師
  • フリーランサー
ビジネスソリューション
  • ウィジェット
  • チャートライブラリ
  • Lightweight Charts™
  • 高機能チャート
  • トレーディングプラットフォーム
成長機会
  • 広告
  • ブローカーシステムの統合
  • パートナープログラム
  • 教育プログラム
Look FirstLook First