MurphyMan » Fri Apr 03, 2015 1:00 pm wrote:What Forex giveth, Forex taketh away. At one point I was up almost $300 on a $10,000 demo. Now, I've lost all that but $27.
I want to let this run without too much messing around just to see how it does.
I am getting a bunch of error messages and alerts. Not sure if they are from HGB FIFO or the HGM basket manager.
LookForTradeClosure called CloseEarlierTrades NZDJPY, original ticket# is: 65619938 with order open time: 2015.04.01 16:58:06
2015.04.03 12:58:33.020 10.7 HGB_v01e_strict_spgandau EURUSD,H4: Inside TradeContext.mqh, TradeIsBusy(), 2nd while..loop, the waiting time in TradeIsBusy() (30 sec) was exceeded!
CloseAllTrades called CloseEarlierTrades EURUSD, original ticket# is: 65816824 with order open time: 2015.04.03 16:11:31
these messages are the trace that allows you to determine which function actually began the trade calls.
In the first line, LookforTradeClosure determined that NJ ticket needed to be closed, and the default was to look at CloseEarlierTrades for possible earlier NJ trades the needed to be handled first (not including pending trades). that is a normal message. no error there.
The 2nd line does throw a "fault' which seems to have been that TradeContext.mqh never received a clear signal that the trade context was free. It waited 30 seconds for the Empty4 server (broker), but the server context was never made free to make a trade. After 30 secs, TradeContext.mqh quit trying, and the trade never took place. That appears to be a server (broker) issue. It correctly showed you that an error had been thrown, and why.
The third line shows that all the trades (of this pair) needed to close and this message just told you the sequence of functions that were called to get the trades to close. CloseAllTrades was called by the EA. So, CloseAllTrades sent the ticket # to CloseEarlierTrades to ensure that any earlier trade of NJ was closed before ticket #65816824 was closed. no error there. just a message
If these messages (like the first and third line) cause confusion, you can rem them out, and just deal with the true error messages when they are thrown like in middle line.
I hope this helps.
Cheer and good trading.