| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Nanningbob 10.2 auto-trading EA https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=552 |
Page 28 of 54 |
| Author: | phil_trade [ Mon May 28, 2012 10:13 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Hello Steve I suggest to include this check module to avoid all bad surprise in future : Code: Select all Code: Select all Philippe |
|
| Author: | SteveHopwood [ Mon May 28, 2012 10:45 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Nice one Phil. V 1w is in post 1 incorporating Phil's latest. This will not solve the problem if it is caused by a bug in the EA code; it will help if it is a Empty4 thingy. |
|
| Author: | phil_trade [ Mon May 28, 2012 10:50 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Steve New bug found in InserStopLoss Code: Select all Code: Select all |
|
| Author: | SteveHopwood [ Mon May 28, 2012 11:02 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Oh crap. I cannot believe even me can make a mistake that basic. V 1x in post 1, for those of you who have not yet lost the will to live. |
|
| Author: | mackaozy [ Mon May 28, 2012 11:18 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Cheers Steve. I'm running it on Alpari. I'll fire up my Vantage fx account and run it side by side with fresh demos with your updated version and give it a go. |
|
| Author: | SteveHopwood [ Mon May 28, 2012 11:32 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Hehe. You might be better off thanking Phil for his correcting my best efforts. |
|
| Author: | mackaozy [ Mon May 28, 2012 11:53 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Thanks again Phil!! Appreciate the effort |
|
| Author: | phil_trade [ Tue May 29, 2012 6:09 am ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
I suspect Steve to leave a few bugs so I can be useful. Steve very charitable. More seriously, above a level of technical difficulty, four eyes are essential! |
|
| Author: | phil_trade [ Tue May 29, 2012 9:32 am ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Steve I found an incorrect code that could do some strange things in modules LookForD1H4TrendTrade and LookForD1TrendTrade, you define double Target in If Buy...so if it's a SELL, MQL found a no declared variable target = xxxx You always have to declare variables at top of module to avoid this... of course...if you're kind enough |
|
| Author: | phil_trade [ Tue May 29, 2012 10:40 am ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Steve a friend has an Empty4 on Alpari which generates the Open/close bug. I have add a Print in LookForTradeClosure() to see value as you can see TP is 0.77782 but take read from line is 80.65200 so for a sell BID < take and LookForTradeClosure() close the trade ! Now we have to find why line is set to 80.652 2012.05.29 10:37:11 Nanningbob 10.2 auto-trading EA EURGBP,H4: open #1800554604 sell 0.60 EURGBP at 0.79938 sl: 0.83496 tp: 0.77782 ok 2012.05.29 10:37:13 Nanningbob 10.2 auto-trading EA EURGBP,H4: close #1800554604 sell 0.60 EURGBP at 0.79938 sl: 0.83496 tp: 0.77782 at price 0.79949 2012.05.29 10:37:13 Nanningbob 10.2 auto-trading EA EURGBP,H4: EURGBP Close By LookForTradeClosure() : Bid = 0.79937 take = 80.65200 stop = 0.00000 |
|
| All times are UTC | Page 28 of 54 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|