Forex Forum - EarnForex
Serving Traders Since 2005
 

Go Back   Forex Forum - EarnForex > Forex Discussions > General Forex Discussion

General Forex Discussion General discussions about Forex market.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 19th February 2010, 06:56
Default Avatar
Junior Member
 
Join Date: Feb 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Counter to Count The Candle Itself

Dears,
can anyone make a strategy to counter the candle itself ONLY.

Example :- If I use the TimeFrame 5 Minutes ( Thats mean 300 Seconds )

Now I want strategy to make counter to the candle of 5 Minutes, from start until end of the 300 Seconds, Regardless of the stander normal candle watch

and again start counter for the new candle 300 Seconds.
and this strategy Possible for all TimeFrames

because some time you find the candle watch MetaTrader are STOP or HANG up, and Suddenly the new price with new candle are come.

of course this is only second, but i make New strategy depend on the second.

So please Can any one help me on that.
Reply With Quote
  #2 (permalink)  
Old 19th February 2010, 07:39
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,446
Thanks: 6
Thanked 8 Times in 7 Posts
Default

It's very difficult to understand what you say, but if you want an indicator that would let you know an exact time until the next candle then it's not possible in MetaTrader as the new candles there start not at an exact time but only when the first tick (quote) in the new time period comes from the server.

For example you have one M5 candle started at 13:30. By the logic it should end at 13:34:59 and the new candle should start at 13:35. But, if the markets are slow, you can see the old candle at 13:35:10 or even later and the new one will start only when the new tick with a price rate will come. Sometimes it takes milliseconds, sometimes it takes seconds, but during holidays it may probable take up a minute or more.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #3 (permalink)  
Old 19th February 2010, 08:17
Default Avatar
Junior Member
 
Join Date: Feb 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thk, my friend, Yes you are understand what i want, but why there is no indicator can make a counter Depends of the candle itself, i hope someone from the programer can do , i try but the metatrader are HANG UP, because of the LOOP. but my program Language in MQ4 are still weak.
Reply With Quote
  #4 (permalink)  
Old 19th February 2010, 08:28
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,446
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by alhabob View Post
Thk, my friend, Yes you are understand what i want, but why there is no indicator can make a counter Depends of the candle itself, i hope someone from the programer can do , i try but the metatrader are HANG UP, because of the LOOP. but my program Language in MQ4 are still weak.
It can't be done in MT4 because the indicators also work based on ticks coming from the server. It will count seconds but it will produce such outputs as 1..2..4.......297..303, depending on the frequency of the ticks coming from your broker.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #5 (permalink)  
Old 20th February 2010, 11:06
Default Avatar
Junior Member
 
Join Date: Feb 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Enivid View Post
It can't be done in MT4 because the indicators also work based on ticks coming from the server. It will count seconds but it will produce such outputs as 1..2..4.......297..303, depending on the frequency of the ticks coming from your broker.

thanks, again but is there any way to make only clock counting Continuous ?
regardless the time came from server, ONLY this counter is start first time correctly with one candle after that this counter will be in loop.
Reply With Quote
  #6 (permalink)  
Old 22nd February 2010, 13:20
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,446
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by alhabob View Post
thanks, again but is there any way to make only clock counting Continuous ?
regardless the time came from server, ONLY this counter is start first time correctly with one candle after that this counter will be in loop.
Sorry, but as far as I know that can't be done in MT4.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 37 (0 members and 37 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Inactive Reminders By Icora Web Design

SEO by vBSEO 3.3.2