• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 9:32am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 9:32am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

required to function call function 2 replies

stop loss function and edit time function for Breakout EA 1 reply

Need Help-To Add Shift Function The ihighlow indicator 2 replies

I need help with a particular Excel Function and Formula 16 replies

Need a little help of a couple simple function in Excel 13 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

Need Expert Help on Time Function

  • Post #1
  • Quote
  • First Post: Jul 13, 2006 11:57am Jul 13, 2006 11:57am
  •  stockwet
  • | Joined Mar 2006 | Status: Member | 723 Posts
OK. I feel like a real bonehead. For some reason, I simply cannot get my expert working. Essentially, all I want to do is to place an order every night at precisely 3:30 GMT. For whatever reason, MT4 acts as if the hour is set correctly, but, it does funny stuff with the minutes. For instance, I changed the setting to place an order at 15:55, but, it placed it at 15:52.

Does anyone have an idea of what could be happening? If I want an order down to the minute, does the expert need to be on a minute chart?

If someone is willing to take a glance through the code, I'm happy to post it.

Thanks.

stockwet
  • Post #2
  • Quote
  • Jul 13, 2006 12:07pm Jul 13, 2006 12:07pm
  •  mrmikal
  • | Joined Mar 2006 | Status: Pip Samurai | 975 Posts
Quoting stockwet
Disliked
OK. I feel like a real bonehead. For some reason, I simply cannot get my expert working. Essentially, all I want to do is to place an order every night at precisely 3:30 GMT. For whatever reason, MT4 acts as if the hour is set correctly, but, it does funny stuff with the minutes. For instance, I changed the setting to place an order at 15:55, but, it placed it at 15:52.

Does anyone have an idea of what could be happening? If I want an order down to the minute, does the expert need to be on a minute chart?

If someone is willing to take a glance through the code, I'm happy to post it.

Thanks.

stockwet
Ignored
stock-y...I believe it does have to be on the minute chart because the bar time is based on the closing minute of the bar. Furthermore, since experts execute on ticks, if the first tick of the 15:55 bar executed at 15:52, it would read your 15:52 bar as your 15:55 bar (since the close of the bar between 15:51 and 15:55 is exactly 15:55).

Did those few minutes get you in at a worse price?
 
 
  • Post #3
  • Quote
  • Jul 13, 2006 12:11pm Jul 13, 2006 12:11pm
  •  stockwet
  • | Joined Mar 2006 | Status: Member | 723 Posts
Quoting mrmikal
Disliked
stock-y...I believe it does have to be on the minute chart because the bar time is based on the closing minute of the bar. Furthermore, since experts execute on ticks, if the first tick of the 15:55 bar executed at 15:52, it would read your 15:52 bar as your 15:55 bar (since the close of the bar between 15:51 and 15:55 is exactly 15:55).

Did those few minutes get you in at a worse price?
Ignored

Now that's interesting. That's not what I thought the problem was. I'm actually using a 30 minute chart and the value I want is 3:30. This actually makes sense. Last night, my expert executed at 3:00. Based on what you said, even though the actual time was 3:01, it treated the tick as 3:30. Does that sum it up?
 
 
  • Post #4
  • Quote
  • Jul 13, 2006 12:14pm Jul 13, 2006 12:14pm
  •  stockwet
  • | Joined Mar 2006 | Status: Member | 723 Posts
Quoting mrmikal
Disliked

Did those few minutes get you in at a worse price?
Ignored
Markets are so slow at that time that it really didn't matter. It's just perplexing to me. Is there another approach to take to place an order at the close of the 3:30 candle besides using time functions?
 
 
  • Post #5
  • Quote
  • Last Post: Jul 13, 2006 12:40pm Jul 13, 2006 12:40pm
  •  mrmikal
  • | Joined Mar 2006 | Status: Pip Samurai | 975 Posts
Quoting stockwet
Disliked
Now that's interesting. That's not what I thought the problem was. I'm actually using a 30 minute chart and the value I want is 3:30. This actually makes sense. Last night, my expert executed at 3:00. Based on what you said, even though the actual time was 3:01, it treated the tick as 3:30. Does that sum it up?
Ignored
That sums it up...as far as correcting the problem, I'm sorry, I really don't know...I just remember running into the same issue with a time-based expert of mine as well (something pivots) a while back.

The easiest thing for you to do would be to execute your trade by checking to see if the time is GREATER THAN 3:30. This way it would execute on the next tick past the 3:30 bar. You may lose a minute...but that shouldn't affect you that much...right?
 
 
  • Platform Tech
  • /
  • Need Expert Help on Time Function
  • Reply to Thread
0 traders viewing now
Top of Page
Forex Factory Blog Updated: Alerting All Members
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022