| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Stochy Bob https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3870 |
Page 8 of 18 |
| Author: | jlcgarcia [ Wed Nov 19, 2014 4:09 pm ] |
| Post subject: | Stochy Bob |
Hi, excuse me again, but I find anothe bug referred to the following parameters, Code: Select all Independently, that you made them false, the program will consider them as true. The modification affects to the LookForTradingOpportunities() function. I am posting here the text modified of this function for Steve to take a look. Regards José Luis |
|
| Author: | SteveHopwood [ Wed Nov 19, 2014 5:50 pm ] |
| Post subject: | Stochy Bob |
Thanks for spotting that, José Luis. Please do post your multi-pair version once finished. |
|
| Author: | SteveHopwood [ Wed Nov 19, 2014 6:08 pm ] |
| Post subject: | Stochy Bob |
Sorry José Luis, but I do not get your point. |
|
| Author: | jlcgarcia [ Wed Nov 19, 2014 6:31 pm ] |
| Post subject: | Stochy Bob |
Hi Steve, perhaps I have not explain the problem properly. One can not exclude specific Stoch entries. The program will trade all the Stoch levels although you made them false. For example, in the following piece of code Code: Select all Code: Select all Code: Select all Please take a look at the txt file I have posted with the modified LookForTradingOpportunities() function. Regards José Luis |
|
| Author: | SteveHopwood [ Wed Nov 19, 2014 10:30 pm ] |
| Post subject: | Stochy Bob |
Which line? Couldn't point me to an actual line number, could you? With a description of what is wrong and how to fix it? |
|
| Author: | jlcgarcia [ Thu Nov 20, 2014 5:28 am ] |
| Post subject: | Stochy Bob |
Hi Steve, the wrong lines are 1440, 1452, 1469, 1479, 1489, 1541, 1553, 1565, 1582, 1592 and 1602. I am posting here the corrected version, so you can compare with the original. Excuse me if I have not explained properly the modifications. Also I have opened a demo for the multipair version of this EA, as I have said before I use two 4H stochastics at the same time for the entries. The trail stop loss and the trail tp are calculated taking into account the volatility of the pairs. There is still a lot of work to do. Let's see. Regards José Luis |
|
| Author: | gringoh [ Thu Nov 20, 2014 12:46 pm ] |
| Post subject: | Stochy Bob |
Hi Steve, I have a situation here with a buy trade open and a sell trade open on USDCHF. - Price was above MA 240 and a buy trade was opened, normal. - Price drop below MA and then, later, reach 70s level (between 70 & 80 level), so a sell trade was opened, normal. As the price never went above 90 level and Stop Loss was not hit, the buy trade remain opened while the sell trade was opened. Result is a hedge situation. What is your view on this? - Keep the hedge open and close manually at best price? - Or to avoid this situation, if so, I see 2 solutions: 1 – Avoid Sell entries if buy are opened and vice versa 2 – or add a stop condition like this one: Code: Select all G |
|
| Author: | SteveHopwood [ Thu Nov 20, 2014 9:45 pm ] |
| Post subject: | Stochy Bob |
Ahhhhh. I see what happened. Thanks very much for posting this or my bloop might not have manifested itself for some time. I could see no difference between your code and mine - in fact there is no difference. So I downloaded the version in post 1 and it holds the incorrect code. Here is what happens folks. I have a dedicated code-development platform. I code an ea then move it to its dedicated demo if it looks promising and continue to develop it from there. I must have uploaded the wrong file to post 1 - the one in the development platform not the one I worked on subsequently. V 1a is in post 1 and everyone interested in this bot must re-download. Sorry about that, and warm |
|
| Author: | Vlokkies [ Fri Nov 21, 2014 3:19 am ] |
| Post subject: | Stochy Bob |
Hi Steve. The bot in post 1 is version 1a, not 1b. Is that correct? |
|
| Author: | SteveHopwood [ Fri Nov 21, 2014 9:38 am ] |
| Post subject: | Stochy Bob |
Yes. That was a typing error that I have corrected. Thanks. V 1a, definitely. |
|
| All times are UTC | Page 8 of 18 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|