| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Slopey Slope https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=745 |
Page 3 of 9 |
| Author: | hilavoku [ Sat Aug 18, 2012 11:42 am ] |
| Post subject: | Re: Slopey Slope |
Hi Steve, i totally agree with the statement : 'never change a running system' . :!: When you say the cpu load of an integrated indi can be neglected than it's okay. I haven't checked this. But the changes to be made are not that much and i think you can use those in many other EA's... The second thing i mentioned was about the calculation of the variable 'PrevLtfSlopeVal' . In the 'start' function i added the following line: Code: Select all
As you can see the value of 'PrevLtfSlopeVal' doesn't change within those 24 hours. But it should change like 'LtfSlopeVal' does. So this is a faulty calculation and therefore also the angle of the slope. I did the needed changes and the output now looks like this:
So now both values are changing every trading timeframe and showing the last values from 1*15 min and 2*15 (30) min before. As it should be. The attachment is the modified version. Would be nice if someone also can take a look into the code... happy weekend Guido PS: Harry45 got a version of slopeyslope from me which also includes the difference between two slope values and when a threshold is reached it takes a trade. The modifications i did now are also included in this EA and he says that there are no errors and seems to function the right way... |
|
| Author: | Zypip [ Mon Aug 20, 2012 7:24 am ] |
| Post subject: | Re: Slopey Slope |
Hi there, Just tried your version of the Slopeyslope and opened 20 sell trades when many of the pairs' slope I am watching were actually rising Cheers, Zyp |
|
| Author: | hilavoku [ Mon Aug 20, 2012 7:43 am ] |
| Post subject: | Re: Slopey Slope |
Thanks for the feedback Zyp. I just changed some lines in the 'ReadIndicatorValues' function. Even when Steve's version seems to work at the moment it calculates the wrong values as i stated above. This doesn't also mean that my version is 100% right :-| Also personally i think that the information about the TMA rising or falling is not that meaningful. The difference between the current TMA and the previous TMA could be as little than 0.001. But on this information and the TMA value itself, i don't think you can say; 'okay the TMA is rising i go for long'. I think we should add an additionally threshold for the minimum difference between those two values as i said some post's before. But this is another story... I found a copy and paste thingy. So it would be nice if you give it another try... (attachment updated in above post) thx in advance Guido |
|
| Author: | Zypip [ Mon Aug 20, 2012 7:56 am ] |
| Post subject: | Re: Slopey Slope |
Thanks Guido, not home at the mo but will try later today and report. Cheers, Zyp EDIT: tried the new version but still only sell trades open |
|
| Author: | hilavoku [ Mon Aug 20, 2012 7:46 pm ] |
| Post subject: | Re: Slopey Slope |
Hi Zyp, can you give me the info about one or two of the taken sell trades? Did you delete the .ex4 file or recompiled the indi?! thx Guido PS: I added the EA to AUDCAD and it immediately trys to take a BUY order. Which fails with error 130... 2012.08.20 21:52:03 Slopey Slope_repaired AUDCAD,H1: Alert: AUDCAD Slopey Slope_repaired OP_BUY order send failed with error(130): invalid stops (A backtest shows that the EA takes long and short positions.) sincerely Guido |
|
| Author: | SteveHopwood [ Mon Aug 20, 2012 9:04 pm ] |
| Post subject: | Re: Slopey Slope |
Just so you know, Guido, the values calculated are those of the 10.2 TMA slope v.1.4B 4.30 indi and are correct on my charts. The EA is doing as I want it to, for now. What I want it to do may change. |
|
| Author: | hilavoku [ Tue Aug 21, 2012 7:45 am ] |
| Post subject: | Re: Slopey Slope |
Hope the best The TMA value calculation itself is correct thats for shure but the time the values are updated isn't. As i stated above, the lower timeframe previous tma value is only updated every higher timeframe... Code: Select all Would be nice if someone else can look at the function 'ReadIndicatorValues' and give his thoughts to us. I also spent a lot of time into this before i post something where i say that a calculation is wrong. Especially when its from you Steve! see you Guido |
|
| Author: | Zypip [ Tue Aug 21, 2012 7:56 am ] |
| Post subject: | Re: Slopey Slope |
Hi Guido, Sorry for being bother. Did not recompile the EA as I thought Empty4 should do that when the restart during initialisation, which I did. I thought it was not an issue at my end on the basis that Steve's version was opening correctly short/long trades according to whether the H4 slope was rising or decreasing. Also, I did not upgrade yet to the 432 build but will do soon. At the mo I have the slopeyslope EA running on about 18 pairs and Baluda's basket management EA running on another pair so that I would take profit whenever the total profit reaches X pips. Anyway, I does seem to take longs and shorts on your machine so it is probably something I have to sort out at my end. Cheers, Zyp |
|
| Author: | hilavoku [ Tue Aug 21, 2012 8:17 am ] |
| Post subject: | Re: Slopey Slope |
Thx for the info Zyp. Hope the EA serves you well and will take some longs for you. Read my thoughts about a threshold. I think it would be an usefull addition. sunny greetings from germany Guido |
|
| Author: | SteveHopwood [ Tue Aug 21, 2012 9:50 am ] |
| Post subject: | Re: Slopey Slope |
Thanks again, Guido. I misunderstood what you were saying. I had not noticed the lower time frame problem because I have not used the ltf yet. Version 1b is in post 1, with the time thingy corrected. I noticed a couple of other oddities whilst doing this, and fixed those as well. |
|
| All times are UTC | Page 3 of 9 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|