DoubleTrap
(ForexSeeker)
Membre depuis Apr 20, 2010
posts 814
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.
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.

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.
We don't have any old tick problems, but I suspect it's because we wrote them out.

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 = ');
}
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 = ');
}

Jun 04 2010 at 11:52
And so on, stays in a loop till it gets it.
kennyhubbard
(compuforexpamm)
Membre depuis Aug 20, 2009
posts 265
Jun 04 2010 at 16:10
DoubleTrap
(ForexSeeker)
Membre depuis Apr 20, 2010
posts 814
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 ?
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.

Jun 05 2010 at 05:42
Double trap.
See - in this thread they give the same solution I did: https://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.
See - in this thread they give the same solution I did: https://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.
Scroll down a bit and read the post by mill at https://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.
Veuillez vous connecter pour commenter .