Synchronous Close in MT4?

 

Hi Guys,

 

 

Appreciate your reply on this. Thanks in advance

On D1 time frame, every bar in MT4  start with 00:00 (eg, 2014.10.31 00:00)

 

so for 2 different assets, regardless of market opening time

Asset 1: iOpen[i]  happens same time as

Asset 2: iOpen[i] ?

 

How about iClose[i]

This has been puzzling me for days

Thanks a million, 

ShinjiOno 

 

1) iOpen id a function: iOpen(Symvbol(),_Period,i) - do you mean Open[i] (Symbol of the chart)?

2) iOpen(NULL,0,i) or Open[i] provides you the open-price (not time) of the bar with index i! 

Of course different assets do have different prices!

3) iTime(..) or Time[i] will provide the time the bar at open.

For the same day the iTime(..) is the same for different assets - of course!

 
ShinjiOno:

On D1 time frame, every bar in MT4  start with 00:00 (eg, 2014.10.31 00:00)

so for 2 different assets, regardless of market opening time

Asset 1: iOpen[i]  happens same time as

Asset 2: iOpen[i] ?

  1. There is no iOpen[]. I assume you meant iOpen(..., i) or Open[i]
  2. A new bar starts when the first tick is received beyond the previous bar's period. If the first tick was received 01:02:03, there would be no bars from 00:00:00 through 01:02:02. The first bar would form at 01:02:03 and have a start time of 01:02:00 on the M1, 01:00:00 for TFs M5-H4, and 00:00:00 on the D1. All bars have the time as a multiple of their period.
 

Thanks alot.

So the price from 00:00:00 is not synchronous