Loading...
Continue to Myfxbook.com
Continue to Myfxbook.com
Pieslēgties
Sign Up
Open an account with FOREX.com
FX Tools:
Ekonomisko notikumu kalendārs
Interest Rates
FX Calculators
News
spreads
Apskats
Forex Heat Map
Correlation
Market Hours
Sākumlapa
Kopiena
Programmēšana
How to read data of latest 2 bar
Share
Share this page!
Edit Your Comment
How to read data of latest 2 bar
Abonēts
EAcomparison
Jun 27, 2014 at 13:53
494 Views
1 Replies
EAcomparison
Biedrs kopš
14 ieraksti
Jun 27, 2014 at 13:53
Biedrs kopš
14 ieraksti
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
Biedrs kopš
90 ieraksti
Jun 29, 2014 at 08:36
(labots Jun 29, 2014 at 08:36)
Biedrs kopš
90 ieraksti
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
Pieslēgties
/
Sign Up
to comment
You must be connected to Myfxbook in order to leave a comment
😄
😐
😡
😁
😀
😑
😈
😲
😭
😎
😝
😳
😕
🙄
😞
🙃
😱
😇
😉
😂
*Spams netiks pieļauts, un tā rezultātā var slēgt kontu.
Tip: Posting an image/youtube url will automatically embed it in your post!
Tip: Type the @ sign to auto complete a username participating in this discussion.
You have an Ad Blocker!
Myfxbook is a site supported by advertisements. Here are two ways for you to continue browsing:
Ad Free Subscription
or
Disable your Ad Blocker
Already subscribed?
Pieslēgties
You're not logged in
This feature is available for registered members only.
Registration is free and takes less than a minute.
Click the sign up button to continue.
Unless you're already a member and enjoying our service, then just sign in.
Keep up to date with the markets
Enable notifications to receive real-time important market updates:
Ekonomisko notikumu kalendārs
Forex ziņas
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.
IEPRIEKŠĒJĀS
VIENPRĀTĪBA
AKTUĀLS