Trying to write a weekly pivot that starts at 2 am Monday and ends 1:59.59 Monday.
This is because my broker's servers are in Cypress, 2 hours ahead of GMT.
How do I retrieve the final bid price value of 1:59 and 59 seconds on Monday only and plug it into the pivot point formula as last weeks close (W_yesterday_close)?
How do I retrieve the initial bid price value of 2:00 and 00 seconds on Monday only and plug it into the pivot point formula as this weeks open (W_today_open)?
All my variables at the beginning are stated as "double" and =0 initially.
If anyone could help it would be much appreciated.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi Guys and Gals,
Trying to write a weekly pivot that starts at 2 am Monday and ends 1:59.59 Monday.
This is because my broker's servers are in Cypress, 2 hours ahead of GMT.
How do I retrieve the final bid price value of 1:59 and 59 seconds on Monday only and plug it into the pivot point formula as last weeks close (W_yesterday_close)?
How do I retrieve the initial bid price value of 2:00 and 00 seconds on Monday only and plug it into the pivot point formula as this weeks open (W_today_open)?
All my variables at the beginning are stated as "double" and =0 initially.
If anyone could help it would be much appreciated.
Thanks