MQL4 - automated forex trading   /  

Forum

Close Price of Current Bar - get different Values for one time

Back to topics list To post a new topic, please log in or register

avatar
9
fari 2006.07.08 19:34 
Hi,

I entered in the start function the following code:

if (Hour()==10 && Minute()== 0)
Print(iClose(NULL,PERIOD_H1,0));

When I start the expert for the date 2006.06.01 - 2006.06.03 I get 16 different values
for the 2006.06.1 and no data for the 2nd and 3rd of June.

As far as I understand, the start() function is called for every bar in the graph,
I use iClose for one hour there should be only one value to my understanding, but not 16 :-)

Please could you help me to understand this?

thank you for your help
fari
Individual Psychology of a Trader

Individual Psychology of a Trader

A portrait of a trader's behavior on the financial market. Author's own menu from the book "Как играть и выигрывать на бирже" ("How to speculate on stock exchange and win") by A. Elder.


avatar
9
fari 2006.07.08 19:58 
Hi,

Sorry for my stupidity, the point is, that MetaTrader is doing a interpolation of the
minutes data, I got from alphari. Therefore I get different seconds for one minute of time.

sorry again.
fari
Back to topics list  

To add comments, please log in or register