| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| swingONE https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=217 |
Page 6 of 21 |
| Author: | SteveHopwood [ Sat Jan 21, 2012 11:23 am ] |
| Post subject: | Re: swingONE |
Things do not always compile just as we intend them to. I remember an occasion where the only way I could use Ask in one particular circumstance was to create a string with the DoubleToStr function, then extract the value of the string into a separate double. In bool bool SendSingleTrade, try removing the 'else' from this block, and testing the crim thingy explicitly: Code: Select all Code: Select all |
|
| Author: | markft [ Sat Jan 21, 2012 11:33 am ] |
| Post subject: | Re: swingONE |
Hi Khalid, Can you also please post the log file if the issue does not go away after this? I could not reproduce an issue with regular or intermittent double trades. Thanks mate, Mahmut |
|
| Author: | markft [ Sat Jan 21, 2012 11:42 am ] |
| Post subject: | Re: swingONE |
Thanks for the heads up Steve. OOTB HiddenPips is set to 0 so I am guessing this is why this hasn't been reported yet. Fixed this now in the 1.9.9 version (not yet posted; will do some more testing first). |
|
| Author: | markft [ Sat Jan 21, 2012 12:06 pm ] |
| Post subject: | Re: swingONE |
As requested, please see attached. Primarily coming from a C++ background, I would be quite surprised if Empty4 interpreter did not process the else correctly; but hey with Empty4 you should perhaps never get surprised. Khalid please let me know if this fixes the double trade issue. |
|
| Author: | markft [ Sat Jan 21, 2012 1:25 pm ] |
| Post subject: | Re: swingONE |
Hi Khalid, Please download 1.9.9 again if you got it before. I put some additional logging and there was a typo in it... |
|
| Author: | SteveHopwood [ Sat Jan 21, 2012 5:49 pm ] |
| Post subject: | Re: swingONE |
Another thought guys, inspired by the info that not everyone has been getting the double trade thingy, and which I have been contemplating for a while.. If you are using the Stealth pending trade technology, then my code sends a trade if the ea detects a pending trade line and spots that the market is on the trading side of the line. As soon as the trade send is successfully verified, the code deletes the pending trade line, but the verification process might take time. Is it possible that the line deletion from the chart can be delayed by some Empty4 thingy for just long enough for the ea to receive another tick and go through the trade-trigger process again, before the line has actually disappeared? If all else fails, try inserting a 2 second sleep after the trade send is verified li this into both the HasxxxFilled() functions: Code: Select all |
|
| Author: | markft [ Mon Jan 23, 2012 2:49 am ] |
| Post subject: | Re: swingONE |
Hi Khalid, The EA uses the lot argument and does not have any code to double it. I haven't seen either the double trade or the lotsize doubling issues in my testing. I will download a demo of your broker Divisa to see if this is due to brokers. Would you mind sending me the setfile and expert logs so I can try to identify the cause? Kind Regards To |
|
| Author: | fx800 [ Mon Jan 23, 2012 7:24 am ] |
| Post subject: | Re: swingONE |
Hi Mahmut, I have changed the multiplier code = 1 for the MPTM EA as you suggested but the same problem happened again this a.m. Shortly after 6 am gmt, two shorts were sent and both closed almost immediately beccause stop loss hit. I have since removed the MPTM EA again. Attached below is the experts log. Many thanks. Cheers, Peter |
|
| Author: | AltosT [ Mon Jan 23, 2012 11:04 am ] |
| Post subject: | Re: swingONE |
Hi Khalid, Seems strange that Oanda did not gap down as did the others. I am presently running FXPro only (who gapped down also) but I have noticed that some brokers open an hour later, which more often than not would cause a gap. So question is, did the criminals open with the market or later. Won't show on one hour chart either as they fill in the missing bar. You have to actually see when and where the first tick comes. |
|
| Author: | markft [ Mon Jan 23, 2012 1:41 pm ] |
| Post subject: | Re: swingONE |
Hi Peter, Hmm, I am not familiar with the MPTM and there are a few versions around. There must be another similar condition that calculates stop loss to 0 when the crim reports Digits = 0 for the MPTM. I can see log lines such as 06:08:32 MPTM 30+0 PC1 JS30.mq4 mod GBPJPY,Weekly: Alert: Stop loss hit. Close of US30 ticket no 107792 which confirm it is the MPTM. Perhaps you can contact Steve to resolve it. If he is busy I can give it a shot if you can post the version you are using. I would suggest remove MPTM as you have already done for the time being. The swingOne EA sets the stoploss as well so there is no reason to run MPTM for stop loss alone. Cheers mate, Mahmut |
|
| All times are UTC | Page 6 of 21 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|