| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Bob and Shelley Again https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=2759 |
Page 14 of 120 |
| Author: | SteveHopwood [ Thu Aug 08, 2013 12:45 pm ] |
| Post subject: | Re: Bob and Shelley Again |
V 1j in post 1.I have changed the MA stacking filter in light of Andy's advice. There is an individual inputs section for MA stacking. |
|
| Author: | MrLong [ Thu Aug 08, 2013 3:25 pm ] |
| Post subject: | Re: Bob and Shelley Again |
Hi Steve, I use the PRICE_CLOSE, the EA would have just missed the NZDUSD trade with PRICE_OPEN. if (useMaStack && (!detectMaStack(CurrentPair, PERIOD_H4, 21, 55, 0, MODE_EMA, PRICE_CLOSE, OP_BUY, 0))) Andy |
|
| Author: | SteveHopwood [ Thu Aug 08, 2013 3:57 pm ] |
| Post subject: | Re: Bob and Shelley Again |
Cheers Andy. I have made the change folks and uploaded to post 1 - have not changed the version no. Those of you who know how; find the two lines of code that begin: Code: Select all |
|
| Author: | fxdaytrader [ Fri Aug 09, 2013 1:24 am ] |
| Post subject: | Re: Bob and Shelley Again |
It is also that e.g. on H4: The EMA 55 value is ~equal to the ema 200 on H1 The EMA 21 value is ~equal to the ema 200 on M30 H1: The EMA 55 value is ~equal to the ema 200 on M15 The EMA 21 value is ~equal to the ema 200 on M5 |
|
| Author: | fxdaytrader [ Fri Aug 09, 2013 3:16 am ] |
| Post subject: | Re: Bob and Shelley Again |
Could be a bloop? Code: Select all Code: Select all FastStackMaPeriod, SlowStackMaPeriod or not? |
|
| Author: | SteveHopwood [ Fri Aug 09, 2013 9:45 am ] |
| Post subject: | Re: Bob and Shelley Again |
Fabulous spot. Thanks. This is a last gasp just-in-case check, so the bloop completely negated MA stacking. Fixed in V 1k in post 1. Guys, discovering that I had negated MA stacking sent me to my demo to study the open trades. Correctly coded MA stacking would have kept me out of most of the losers. Not all of them, but most so this looks like an invaluable filter. Then I noticed stack trades that should have been taken but were not, so I found a couple of bloops in the troublesome trade stacking code that were stopping the trades. So, if you want to use MA stacking and demo trade stacking, then the download is essential. |
|
| Author: | ffxbettor [ Fri Aug 09, 2013 11:43 am ] |
| Post subject: | Re: Bob and Shelley Again |
Potential bloop : At the end of the function detectMaStack(), dont forget to add this instruction : return (false); Before : Code: Select all Code: Select all Not sure if it's required, but better to add this small line of code, just to be sure ! Cheers, Didier |
|
| Author: | MrLong [ Fri Aug 09, 2013 12:11 pm ] |
| Post subject: | Re: Bob and Shelley Again |
default is false. |
|
| Author: | SteveHopwood [ Fri Aug 09, 2013 12:16 pm ] |
| Post subject: | Re: Bob and Shelley Again |
Theoretically, it does not matter because a CrapQl4 Boolean function will return(false) if not explicitly coded told to return(true). All of us coders know who unreliable implicit values are in CrapQl4 and everything should be done explicitly. So, I have added the line of code to the function. I have not issued another update yet; I shall do that over the weekend when I have added the ATR stop loss function that Shelley wants. Also, the 50% stop loss is back - 50 instead of 100 pips. I made an incorrect change to the calculation function (wrong conditional), so those of you who can, copy this over the top of the existing function and recompile: Code: Select all |
|
| Author: | fxozgirl [ Sun Aug 11, 2013 5:27 am ] |
| Post subject: | Re: Bob and Shelley Again |
Stacking trades is working...3 stack trades were taken on Friday |
|
| All times are UTC | Page 14 of 120 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|