| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Macd Stochastic Fractal MA5/25 Daily Marylin https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1448 |
Page 68 of 141 |
| Author: | Radar [ Sat Jul 06, 2013 4:00 pm ] |
| Post subject: | Re: Macd Stochastic Fractal MA5/25 Daily Marylin |
Hey Dudest, I replaced the W1 with 1440 in the EA 'cos I was in a mad rush to set it up before going to work, and figured that 30 was too short... Thinking of relative time, maybe the hourly is a closer bet, (W1 being 5 * D1)... I don't know which would be best though, really. Thanks for the parameter explanation file Thanks for that one too, Niepce I was looking through the code, and came across this... Code: Select all The same value is used when checking TimeElapsedSinceLastHistoBuys, too. Well, it's back to the slacktester for me Have fun! Radar =8^) |
|
| Author: | niepce [ Sat Jul 06, 2013 5:29 pm ] |
| Post subject: | Re: Macd Stochastic Fractal MA5/25 Daily Marylin |
Damn, 86400 should be changed indeed |
|
| Author: | Radar [ Sat Jul 06, 2013 6:22 pm ] |
| Post subject: | Re: Macd Stochastic Fractal MA5/25 Daily Marylin |
To? |
|
| Author: | phil_trade [ Sat Jul 06, 2013 6:40 pm ] |
| Post subject: | Re: Macd Stochastic Fractal MA5/25 Daily Marylin |
Hi Radar I think it's a big bug No need to control "TimeElapsedSinceLastHistoSell" or "TimeElapsedSinceLastHistoBuy" in this "UseTakeProfitOn3MACD" routine ??? We need to control LastTrade to open a new trade, not to close it ? Niepce should have a look |
|
| Author: | Radar [ Sat Jul 06, 2013 7:10 pm ] |
| Post subject: | Re: Macd Stochastic Fractal MA5/25 Daily Marylin |
Hey Phil, I think it's a test to make sure it doesn't look at bars previous to the opening of that trade... I just checked the code... The TimeElapsed routine gets OrderOpenTime, which returns a value based in seconds, then subtracts that from current time... If that value is less than 86400, then 3MACD would end up using bars previous to the open bar... Not too good if you get 2 downward bars, then open a buy. Have fun! Radar =8^) |
|
| Author: | niepce [ Sat Jul 06, 2013 8:15 pm ] |
| Post subject: | Re: Macd Stochastic Fractal MA5/25 Daily Marylin |
It's a bug that is affecting the take profit logic. It delays it, or even makes you miss the take profit at some point. I am having a look into that this week end. |
|
| Author: | niepce [ Sat Jul 06, 2013 9:48 pm ] |
| Post subject: | Re: Macd Stochastic Fractal MA5/25 Daily Marylin |
Just crawled through old PM's to find why there's this thing. Here a crop of Windev code. I've highlighted it :
So, do we scratch this ? |
|
| Author: | phil_trade [ Sun Jul 07, 2013 7:07 am ] |
| Post subject: | Re: Macd Stochastic Fractal MA5/25 Daily Marylin |
Hi Niepce I also have to search what is it for as I don't remember So Radar, I don"t know what to do with this in lower TimeFrame Philippe |
|
| Author: | Radar [ Sun Jul 07, 2013 9:06 am ] |
| Post subject: | Re: Macd Stochastic Fractal MA5/25 Daily Marylin |
Hey Guys, As it is, it's testing to see if a trade is at least 1 bar old... I think it should test to see if the trade is at least 3 bars old before closing, on both winners and losers, to ensure that when opening a trade on a reversal bar, 3MACD doesn't close the trade if that reversal bar is shorter than the previous 2 bars. So, would the following ensure that that happens? Code: Select all Have fun, Radar =8^) edit... I tried the above code, but it won't compile... TimeElapsedSinceLastOpenTrade doesn't take the ticket number as a parameter... Will have to create TimeElapsedSinceLastOpenBuy and TimeElapsedSinceLastOpenSell, and see if that works. |
|
| Author: | Radar [ Sun Jul 07, 2013 10:23 am ] |
| Post subject: | Re: Macd Stochastic Fractal MA5/25 Daily Marylin |
Ok, so I created TimeElapsedSinceLastOpenBuy and TimeElapsedSinceLastOpenSell, but now TimeElapsedSinceLastHistoBuy and TimeElapsedSinceLastHistoSell aren't being used at all, so I've commented them out... Testing now... |
|
| All times are UTC | Page 68 of 141 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|