The Old Tick Problem.
| Subscribe to this topic |
|
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 |
|
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. |
|
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. |
|
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. |
|
Member Since Aug 20, 2009 184 posts
kennyhubbard (compuforexpamm)
Jun 04 2010 at 16:10
Wealth Creation Through Technology |
|
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 |
|
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. |
|
|
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.
|
|
Share


