• ผลิตภัณฑ์
  • ชุมชน
  • ตลาด
  • โบรกเกอร์
  • เพิ่มเติม
เริ่มกันเลย
  • ชุมชน
  • /อินดิเคเตอร์และกลยุทธ์
  • /DATE

DATE

How To Set Backtest Date RangeExample how to select and set date range window to be backtested. Normally when you change chart period it changes the number of days being backtested which means as you increas the chart period (for example from 5min to 15min) you also increase the number of days traded, so you can not compare apples to apples for which period would yield best returns for your strategy. Now you can. Incorporate this code replacing buy and sell with your strategy, then simply input the From and To dates in Format -> Inputs, and then change the chart period to view updated results. NOTE: There is a limit in backtesting to 2000 orders, so please be aware of this when setting your date ranges. If you set your range too high, you may be exceeding this limit on some periods and not on others, so this would yield incorrect comparison of returns per period. If you see in your backtesting results that you are nearing this limit for one of your periods you are testing, then reduce the date range to a smaller number of days. Enjoy! (Thanks to @Gesundheit "Adeel" for pointing me in the right direction on this!)
กลยุทธ์ Pine Script®
โดย allanster
ที่อัปเดต:
131131
1122
…999999

เลือกข้อมูลตลาดที่ให้บริการโดย ICE Data services. เลือกข้อมูลอ้างอิงที่ให้บริการโดย FactSet. Copyright © 2025 FactSet Research Systems Inc.SEC filings และเอกสารอื่นๆ จัดเตรียมโดย Quartr.© 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