Rating: Empty Star Empty Star Empty Star Empty Star Empty Star
The Old Tick Problem.
ForexSeeker

Member Since Apr 20, 2010  727 posts DoubleTrap (ForexSeeker) Jun 04 2010 at 10:57
Any Experience Trader encounter the old tick problem before ?

What caused the old tick ?

As in real account, this problem seem can be fix.

But in demo account, it seem permanently disable your account to trade anymore.

Information is Gold when come to organised. http://winterwongforex.com
Elkart

Member Since Aug 01, 2009  941 posts Elkart (Elkart) Jun 04 2010 at 11:46
I think you have to get the result from your broker when you do a transaction and check if the transaction occurred or not. Not good enough to just send. You have to make sure it happened and if it hasn't re-do the process.

We don't have any old tick problems, but I suspect it's because we wrote them out.

Chang beer is evil.
Elkart

Member Since Aug 01, 2009  941 posts Elkart (Elkart) Jun 04 2010 at 11:50
Result = OrderSend(Symbol(), OP_SELLSTOP, MyLots, Bid - TradeGap * Pips, Slip, 0, 0, 'Selling', 0, 0, 0);
    if (Result < 1)
     {
      Print('Error ', GetLastError(), ' On First Attempt at SellStop On ', Symbol());
      RefreshRates();
      Result = OrderSend(Symbol(), OP_SELLSTOP, MyLots, Bid - TradeGap * Pips, Slip, 0, 0, 'Selling', 0, 0, 0);
      if (Result <1)
       {
        Print('Error ', GetLastError(), ' While Placing SellStop On ', Symbol());
        Print(' Lots = ', OrderLots(), ' Bid = ', Bid, ' Slip = ');
       }

Chang beer is evil.
Elkart

Member Since Aug 01, 2009  941 posts Elkart (Elkart) Jun 04 2010 at 11:52
And so on, stays in a loop till it gets it.

Chang beer is evil.
compuforexpamm

Member Since Aug 20, 2009  184 posts kennyhubbard (compuforexpamm) Jun 04 2010 at 16:10
Wealth Creation Through Technology
ForexSeeker

Member Since Apr 20, 2010  727 posts DoubleTrap (ForexSeeker) Jun 04 2010 at 17:13
Obviously is not the EA code problem, as It's the delay of data delivery to the MT4 system.
Even though I have deleted the history folder file data, this problem still occur in demo.

I have try to copy a working probably platform, copy the default folder in profile to the new platform.
The same thing happened again, I suspected the demo server ping connection is slow to the MT4 platform result such error.

While in life account this problem can be solve by just deleting the history folder data.
Restart the platform, load the data on each time frame and restart platform again.

Any more opinion what causes old tick data ?

Information is Gold when come to organised. http://winterwongforex.com
Elkart

Member Since Aug 01, 2009  941 posts Elkart (Elkart) Jun 05 2010 at 05:42
Double trap.

See - in this thread they give the same solution I did: http://forum.mql4.com/10869

Doesn't matter what causes it, to get around it you have to go refresh your rates and try again. So your code needs to be adjusted.

Chang beer is evil.
bob1234

Member Since Sep 10, 2009  9 posts bob1234 Jun 22 2010 at 05:17
Scroll down a bit and read the post by mill at http://www.metatrader4.com/forum/893 - basically, it’s a broker issue that you can do nothing about; it’s a MT4 terminal error, not an EA error.

Please login to comment.
Tools Community Reviews Platform Company Support
Economic Calendar Community Brokers Features About FAQ
Forex Broker Spreads Systems Expert Advisors API Blog Help
Streaming Forex News Strategies Signal Providers Translations Twitter Contact Us
Community Outlook Contests VPS Services Mobile Facebook Report A Bug!
Widgets EA Programming        
RSS          

Site Map  |   Terms & Conditions  |   Privacy Policy
©2011 Myfxbook Ltd. All Rights Reserved.
HIGH RISK WARNING: Foreign exchange trading carries a high level of risk that may not be suitable for all investors. Leverage creates additional risk and loss exposure. Before you decide to trade foreign exchange, carefully consider your investment objectives, experience level, and risk tolerance. You could lose some or all of your initial investment; do not invest money that you cannot afford to lose. Educate yourself on the risks associated with foreign exchange trading, and seek advice from an independent financial or tax advisor if you have any questions. Any data and information is provided 'as is' solely for informational purposes, and is not intended for trading purposes or advice.
*GFT is a sponsor of myfxbook.com for advertisement purposes only. GFT does not endorse any other products, services, or companies represented on myfxbook.com. The views of myfxbook.com and all other parties contained therein are not necessarily those of GFT, and GFT makes no warranty as to the accuracy of information provided.