กำลังโหลด...
Continue to Myfxbook.com
Continue to Myfxbook.com
ลงชื่อเข้าใช้
ลงทะเบียน
Open an account with FOREX.com
FX Tools:
ปฏิทินเศรษฐกิจ
Interest Rates
FX Calculators
ข่าว
สเปรด
ความเชื่อมั่น
แผนที่ฟอเร็กซ์มาแรง
ความสัมพันธ์
Market Hours
หน้าหลัก
ชุมชน
การเขียนโปรแกรม
How to read data of latest 2 bar
แชร์
แชร์หน้านี้!
Edit Your Comment
How to read data of latest 2 bar
สมัครสมาชิก
EAcomparison
Jun 27, 2014 at 13:53
499 การดู
1 Replies
EAcomparison
เป็นสมาชิกตั้งแต่ May 02, 2012
14 โพสต์
Jun 27, 2014 at 13:53
เป็นสมาชิกตั้งแต่ May 02, 2012
14 โพสต์
Hi everyone,
This might sound silly but can anyone provide me a short script to capture the OHLC of the latest 2 bar 😀
Thanks and have a pleasant weekend ahead.
Donex
เป็นสมาชิกตั้งแต่ May 02, 2013
90 โพสต์
Jun 29, 2014 at 08:36
(แก้ไขแล้ว Jun 29, 2014 at 08:36)
เป็นสมาชิกตั้งแต่ May 02, 2013
90 โพสต์
double bar1Close = Close[1], bar1Open = Open[1], bar1High = High[1], bar1Low = Low[1]; // bar prior to current bar
double bar2Close = Close[2], bar2Open = Open[2], bar2High = High[2], bar2Low = Low[2]; // 2 bars prior to current bar
If you want the current bar values it's simply a 0 eg, High[0], if you want the 3rd previous bar from current bar it's obviously a 3.
Hate your losers more than you like your winners
ลงชื่อเข้าใช้
/
ลงทะเบียน
to comment
You must be connected to Myfxbook in order to leave a comment
😄
😐
😡
😁
😀
😑
😈
😲
😭
😎
😝
😳
😕
🙄
😞
🙃
😱
😇
😉
😂
*การใช้งานเชิงพาณิชย์และสแปมจะไม่ได้รับการยอมรับ และอาจส่งผลให้บัญชีถูกยกเลิก
เคล็ดลับ: การโพสต์รูปภาพ/youtube url จะฝังลงในโพสต์ของคุณโดยอัตโนมัติ!
เคล็ดลับ: พิมพ์เครื่องหมาย @ เพื่อป้อนชื่อผู้ใช้ที่เข้าร่วมการสนทนานี้โดยอัตโนมัติ
You have an Ad Blocker!
Myfxbook is a site supported by advertisements. Here are two ways for you to continue browsing:
Ad Free Subscription
หรือ
Disable your Ad Blocker
Already subscribed?
ลงชื่อเข้าใช้
คุณไม่ได้เข้าสู่ระบบ
คุณสมบัตินี้มีให้สำหรับสมาชิกที่ลงทะเบียนเท่านั้น
การลงทะเบียนนั้นฟรีและใช้เวลาน้อยกว่าหนึ่งนาที
คลิกปุ่มลงทะเบียนเพื่อดำเนินการต่อ
เว้นแต่คุณจะเป็นสมาชิกและเพลิดเพลินกับบริการของเราอยู่แล้ว ให้เข้าสู่ระบบ
Keep up to date with the markets
Enable notifications to receive real-time important market updates:
ปฏิทินเศรษฐกิจ
ข่าวฟอเร็กซ์
You can disable notifications at any time from your browser.
Unblock Notifications
You've blocked browser notifications for Myfxbook.com. Please enable it:
You can disable notifications at any time from your browser.
ก่อนหน้า
การสำรวจความเห็น
จริง