Forex
Google

Go Back   Forex Trading > Programming > Metatrader Programming
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-25-2008, 06:22 PM
Ghamm Ghamm is offline
Member
 
Join Date: Jul 2007
Posts: 56
Ghamm is on a distinguished road
EA function Question..

Hi,
Im looking at the daily candles.
Is there a simple way of knowing (via code) what time of the day, the broker forms new daily candles? I know it varies by Broker..

Its prob obvious, and Im missing it..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-25-2008, 08:31 PM
Ronald Raygun Ronald Raygun is offline
Member
 
Join Date: Sep 2007
Posts: 39
Ronald Raygun is on a distinguished road
Look at the timelocal() function.

It looks at your computer clock, so if you know the difference between your computer clock and GMT, you can calculate your broker's shift.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-25-2008, 10:41 PM
Nicholishen's Avatar
Nicholishen Nicholishen is offline
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
here ya go

PHP Code:
int dayBarHour(){ //returns the hour the bar was formed
   
return(TimeHour(iTime(Symbol(),1440,0)));

__________________
"Anyone who has never made a mistake has never tried anything new." -Albert Einstein

Last edited by Nicholishen : 02-25-2008 at 10:58 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
iCustom function homicida Questions 55 06-07-2008 04:36 AM
DefindTrade(..) function phoenix Tools and utilities 7 09-13-2006 09:38 AM
General Question on Function of Experts garciaal General Discussion 1 08-02-2006 09:30 AM
MT4 Function Details BC Brett Questions 3 04-25-2006 10:38 PM
MT4 function/EA question eastmaels Questions 2 04-16-2006 03:43 AM


All times are GMT. The time now is 10:07 PM.