หน้าแรก ตัวชี้วัดทางเทคนิค โพสต์

i-Sessions: อินดิเคเตอร์ที่ช่วยในการเทรดใน MetaTrader 5

ไฟล์แนบ
1643.zip (2.65 KB, ดาวน์โหลด 0 ครั้ง)

สวัสดีครับเพื่อนๆ เทรดเดอร์ทุกคน! วันนี้เรามาพูดถึง i-Sessions อินดิเคเตอร์ที่จะช่วยให้คุณสามารถมองเห็นช่วงเวลาการเทรดได้ชัดเจนขึ้น โดยจะมีการแสดงผลเป็นสีสันของช่วงการเทรดที่แตกต่างกันถึง 8 ช่วงด้วยกัน

อินดิเคเตอร์นี้ทำงานโดยการระบุช่วงเวลาที่คุณสามารถทำการเทรดได้ตามพารามิเตอร์ที่ตั้งค่าไว้ ซึ่งจะช่วยให้คุณสามารถวางแผนการเทรดได้อย่างมีประสิทธิภาพมากขึ้น

พารามิเตอร์การตั้งค่า

  • NumberOfDays: จำนวนวันที่ต้องการดูข้อมูล (ค่าเริ่มต้น 50)
  • S1Begin/S1End: ช่วงเวลาแรก (เช่น "00:55" ถึง "03:55")
  • S2Begin/S2End: ช่วงเวลาที่สอง (เช่น "03:55" ถึง "06:55")
  • S3Begin/S3End: ช่วงเวลาที่สาม (เช่น "06:55" ถึง "09:55")
  • S4Begin/S4End: ช่วงเวลาที่สี่ (เช่น "09:55" ถึง "12:55")
  • S5Begin/S5End: ช่วงเวลาที่ห้า (เช่น "12:55" ถึง "15:55")
  • S6Begin/S6End: ช่วงเวลาที่หก (เช่น "15:55" ถึง "18:55")
  • S7Begin/S7End: ช่วงเวลาที่เจ็ด (เช่น "18:55" ถึง "21:55")
  • S8Begin/S8End: ช่วงเวลาที่แปด (เช่น "21:55" ถึง "23:55")

แต่ละช่วงเวลาจะมีการตั้งค่าสีเพื่อให้เห็นความแตกต่างได้ชัดเจน โดยใช้โค้ดต่อไปนี้ในการตั้งค่าต่างๆ:

//+-----------------------------------+
//|  พารามิเตอร์การตั้งค่าอินดิเคเตอร์     |
//+-----------------------------------+
input int NumberOfDays=50;
input string S1Begin ="00:55";
input string S1End ="03:55";
input color S1Color = clrDarkSlateGray;
input string S2Begin ="03:55";
input string S2End ="06:55";
input color S2Color = clrDarkSlateGray;
input string S3Begin ="06:55";
input string S3End ="09:55";
input color S3Color = clrDarkSlateGray;
input string S4Begin ="09:55";
input string S4End ="12:55";
input color S4Color = clrDarkSlateGray;
input string S5Begin ="12:55";
input string S5End ="15:55";
input color S5Color = clrDarkSlateGray;
input string S6Begin ="15:55";
input string S6End ="18:55";
input color S6Color = clrDarkSlateGray;
input string S7Begin ="18:55";
input string S7End ="21:55";
input color S7Color = clrDarkSlateGray;
input string S8Begin ="21:55";
input string S8End ="23:55";
input color S8Color = clrDarkSlateGray;

อินดิเคเตอร์นี้ถูกพัฒนาขึ้นใน MQL4 และเผยแพร่ใน Code Base ที่ mql4.com เมื่อวันที่ 26 กันยายน 2007 ครับ

Fig.1 The i-Sessions indicator

รูปที่ 1: อินดิเคเตอร์ i-Sessions

โพสต์ที่เกี่ยวข้อง

ความคิดเห็น (0)