• ผลิตภัณฑ์
  • ชุมชน
  • ตลาด
  • โบรกเกอร์
  • เพิ่มเติม
เริ่มกันเลย
  • ชุมชน
  • /อินดิเคเตอร์และกลยุทธ์
  • /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
  • คริปโต
ปฏิทิน
  • ทางเศรษฐกิจ
  • ผลประกอบการ
  • เงินปันผล
ผลิตภัณฑ์เพิ่มเติม
  • เส้นแสดงอัตราผลตอบแทน
  • Options
  • กระแสข่าว
  • Pine Script®
แอป
  • แอปมือถือ
  • เดสก์ท็อป
ชุมชน
  • เครือข่ายทางสังคม
  • กำแพงแห่งรัก
  • แนะนำเพื่อน
  • กฎระเบียบการใช้งาน
  • ผู้ดูแลการใช้งาน
ไอเดีย
  • การซื้อขาย
  • การศึกษา
  • คัดสรรโดยบรรณาธิการ
Pine Script
  • อินดิเคเตอร์ & กลยุทธ์
  • Wizard
  • ฟรีแลนซ์
เครื่องมือ & การสมัครสมาชิก
  • ฟีเจอร์
  • อัตราค่าบริการ
  • ข้อมูลตลาด
การซื้อขาย
  • ภาพรวม
  • โบรกเกอร์
ข้อเสนอพิเศษ
  • ฟิวเจอร์ส CME Group
  • ฟิวเจอร์ส Eurex
  • ชุดหุ้นสหรัฐฯ
เกี่ยวกับบริษัท
  • พวกเราคือใคร
  • ภารกิจสำรวจอวกาศ
  • บล็อก
  • อาชีพ
  • เครื่องมือสำหรับสื่อ
สินค้า
  • ร้านค้า TradingView
  • ไพ่ทาโรต์สำหรับเทรดเดอร์
  • The C63 TradeTime
นโยบาย & ความปลอดภัย
  • ข้อกำหนดการใช้งาน
  • คำจำกัดสิทธิ์ความรับผิดชอบ
  • นโยบายความเป็นส่วนตัว
  • นโยบายการใช้คุกกี้
  • คำชี้แจงสิทธิ์การเข้าถึง
  • เคล็ดลับความปลอดภัย
  • โปรแกรม Bug Bounty
  • สถานะเพจ
โซลูชันสำหรับธุรกิจ
  • วิดเจ็ต
  • ไลบรารีชาร์ต
  • Lightweight Charts™
  • ชาร์ตขั้นสูง
  • แพลตฟอร์มการซื้อขาย
โอกาสในการเติบโต
  • การลงโฆษณา
  • การเชื่อมต่อกับโบรกเกอร์
  • โปรแกรมสำหรับพาร์ทเนอร์
  • โปรแกรมสำหรับการศึกษา
ชุมชน
  • เครือข่ายทางสังคม
  • กำแพงแห่งรัก
  • แนะนำเพื่อน
  • กฎระเบียบการใช้งาน
  • ผู้ดูแลการใช้งาน
ไอเดีย
  • การซื้อขาย
  • การศึกษา
  • คัดสรรโดยบรรณาธิการ
Pine Script
  • อินดิเคเตอร์ & กลยุทธ์
  • Wizard
  • ฟรีแลนซ์
โซลูชันสำหรับธุรกิจ
  • วิดเจ็ต
  • ไลบรารีชาร์ต
  • Lightweight Charts™
  • ชาร์ตขั้นสูง
  • แพลตฟอร์มการซื้อขาย
โอกาสในการเติบโต
  • การลงโฆษณา
  • การเชื่อมต่อกับโบรกเกอร์
  • โปรแกรมสำหรับพาร์ทเนอร์
  • โปรแกรมสำหรับการศึกษา
Look FirstLook First