| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| HGB FIFO and Error Traps Thread https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4169 |
Page 2 of 6 |
| Author: | pt2004 [ Tue Mar 31, 2015 6:48 pm ] |
| Post subject: | HGB FIFO and Error Traps Thread |
Hi, great results What version do you use ? Original or spgandau? Best regards PT |
|
| Author: | MurphyMan [ Tue Mar 31, 2015 7:28 pm ] |
| Post subject: | HGB FIFO and Error Traps Thread |
The version in Post #1 of this thread. 10.7 HGB_v01e_strict_spgandau. Cheers |
|
| Author: | pt2004 [ Tue Mar 31, 2015 7:53 pm ] |
| Post subject: | HGB FIFO and Error Traps Thread |
Ok, Thank You |
|
| Author: | remix919 [ Thu Apr 02, 2015 3:53 pm ] |
| Post subject: | HGB FIFO and Error Traps Thread |
Great stuff! Maybe Steve could integrate this into part of his shell EA, but dunno how complicated that could be? Quick question, will this work on any US broker (I use Oanda for example) or is this coded specifically to FXCM only? |
|
| Author: | spgandau [ Thu Apr 02, 2015 8:28 pm ] |
| Post subject: | HGB FIFO and Error Traps Thread |
It works with Empty4. If Oanda uses Empty4, it should work fine. It can be worked into the EA shell. Perhaps at some future date, that might be done. Since it is a US-centric issue, there does not seem to be many users who need these features. Cheers! |
|
| Author: | MurphyMan [ Fri Apr 03, 2015 6:00 pm ] |
| Post subject: | HGB FIFO and Error Traps Thread |
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 |
|
| Author: | spgandau [ Sat Apr 04, 2015 6:48 pm ] |
| Post subject: | HGB FIFO and Error Traps Thread |
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. |
|
| Author: | MurphyMan [ Sun Apr 05, 2015 3:26 pm ] |
| Post subject: | HGB FIFO and Error Traps Thread |
Thanks for the explanation, I get it now. Also, my internet service has been in the crapper lately. The download speed bounces from a high of 6 mbps, down to 1 mbps. |
|
| Author: | coolsnake [ Mon Apr 13, 2015 4:57 am ] |
| Post subject: | HGB FIFO and Error Traps Thread |
Thanks for your mqh file. |
|
| Author: | boldtrader [ Mon May 04, 2015 6:31 pm ] |
| Post subject: | HGB FIFO and Error Traps Thread |
Hi team.. Just to throw in an alternative or option.. I am a US based trader.. and I am able to trade in both directions simultaneously, with total disregard to the FIFO rules. I use ATCBrokers, who gets their feed wholesale from FXCM and I think partially from Citi. ATC"s backoffice software handles the FIFO rules automatically, allowing me total freedom. Their minimum is $5,000 to open account. No requotes.. great narrow spreads, excellent service and support. I have been with them for about 7 years now.. and is the ONLY Empty4 broker I trust. I am sure there are others out there, and I have written here in SHF several times about them and their operations, servers, etc. They are not for everyone, but for me, they are the best. I really enjoy and prefer their Advance Order Entry Script for trading, which has built in trade management, multi-leg order entry, etc. You may want to give them a strong look. All of the code work you are doing here, is not needed with their feed. So you may want to consider them as an alternative. The program and systems I am developing are specific developed specific to ATC and their feed. Cheers. BT. disclaimer: I am not an IB for ATC. However.. I do highly recommend their services. |
|
| All times are UTC | Page 2 of 6 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|