| 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 23 of 54 |
| Author: | phil_trade [ Sat May 26, 2012 9:28 am ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Hi "Off Quotes" is not a bug but a message from broker when price quickly move just in time with EA SendOrder. It's often with Demo account, rarely with Live. Philippe |
|
| Author: | alex_forex [ Sat May 26, 2012 9:49 am ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Merci Philippe But why open/close multiple orders ? |
|
| Author: | phil_trade [ Sat May 26, 2012 10:11 am ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
cause it's V1N |
|
| Author: | SteveHopwood [ Sat May 26, 2012 5:40 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Version 1t is in post 1. I have replaced the calls to the Slope indi with Paul's function that brings the code in-house. You can ditch your TMA Slope for EA indi. Philippe, I yelled, "Yippee" when I saw this. The blasted function has been driving me nuts. I have not immediately replace my code with this, because it appears to lose the Stealth capability. At the mo, we can either have: Phil's code that does not generate the errors but has no Stealth; my code that generates the errors but does not have the Stealth. I will go with the majority, so just tell me what you want. I have copied Philippe's code into the EA and commented it out - you will find it directly underneath my own code. Those of you who know how can make your own choice through the code editor. Re this: What is the fix and to what does it refer, so I can add it? |
|
| Author: | phil_trade [ Sat May 26, 2012 5:54 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Re this: What is the fix and to what does it refer, so I can add it? Hi Steve It's refer to LookForLongTrend(int tf) and LookForShortTrend(int tf) I have replace Code: Select all Code: Select all Code: Select all Code: Select all Code: Select all Code: Select all |
|
| Author: | phil_trade [ Sat May 26, 2012 6:06 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Philippe, I yelled, "Yippee" when I saw this. The blasted function has been driving me nuts. I have not immediately replace my code with this, because it appears to lose the Stealth capability. At the mo, we can either have: Phil's code that does not generate the errors but has no Stealth; my code that generates the errors but does not have the Stealth. I will go with the majority, so just tell me what you want. [/quote] Steve Can you explain a little bit what is the Stealth capability Philippe |
|
| Author: | SteveHopwood [ Sat May 26, 2012 6:17 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Hi Steve It's refer to LookForLongTrend(int tf) and LookForShortTrend(int tf) I have replace Code: Select all Code: Select all Code: Select all Code: Select all Code: Select all Code: Select all Thanks Phil. V 1u is in post 1. I suggest you only download it if you are a weekend backtester. If not, I suggest you wait. For the sake of your sanity, I have adopted Phil's JS code and removed the Stealth capability - saves a gazillion error messages. The Stealth code is still there, but hidden. |
|
| Author: | SteveHopwood [ Sat May 26, 2012 6:22 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Stealth means the EA draws take profit and stop loss lines on the chart, then moves the 'hard' tp/sl to HiddenPips away from the price. When the market crosses one of the lines, the bot closes the trade. The 'hard' stop is there for security. The purpose is to keep some of your settings secret from the crims and stop the less honest ones from stop hunting. Tp lines have the prefix TpPrefix, a constant set to "Tp", followed by the ticket number of the trade. Sl lines have the prefix SlPrefix, a constant set to "Sl", followed by the ticket number of the trade. There is something in the logic of my code that causes the errors to be generated, and I am buggered if I can work out what. It will be something really simple; it always is. |
|
| Author: | phil_trade [ Sat May 26, 2012 6:38 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
I have notice this line in your code Code: Select all |
|
| Author: | phil_trade [ Sat May 26, 2012 7:04 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
One other thing : In your JumpingStopLoss() you move Line only if HiddenPip >0 but you do move the SL every time Code: Select all |
|
| All times are UTC | Page 23 of 54 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|