| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Zigzag Bollinger Band https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3237 |
Page 22 of 28 |
| Author: | snailbeard [ Fri Aug 22, 2014 8:13 am ] |
| Post subject: | Symbol properties |
During the initialization stage, the EA does a lot of pre-processing which reduces the CPU load on each tick. This also has a major affect on the duration of a backtest. String-matching and searching is one of the big CPU hoggers to be avoided. Therefore I have added a couple of flags to the active symbols. In modern programming languages this is quite trivial but in MQL it requires more work: Code: Select all When i find parts of the EA which assume its dealing only with forex I can use the flags to help bypass the forex-specific code Code: Select all Code: Select all Alpari: _FRA40, _DE30, _US500 Oanda: FR40EUR, DE30EUR, SPX500USD And finally although Alpari provides data for two variations UK100, only one of those can be traded and the untradable one is also in the list above and needs to be dropped. |
|
| Author: | snailbeard [ Wed Aug 27, 2014 9:42 am ] |
| Post subject: | GBPUSD - Nerves of steel |
The pound has been falling like a stone for several weeks after being far too high (historically) against the dollar. I don't like to trade against such momentum. Nevertheless, D1 ATR has moved back into a useful trading range and a I noticed ZzBb has entered a short range buy trade. Currently price is trapped between the DP and DR1, if it manages to cross and stay above DR1 then it might work out. Afternoon delight Well, if I had had the courage to take this trade for real then I would be smiling now: Code: Select all |
|
| Author: | snailbeard [ Wed Aug 27, 2014 10:33 am ] |
| Post subject: | Watch out for fatty breakfast spreads |
Continuing the work on UK100 trades uncovered a few more issues. The FTSE 100 has been swinging in a channel this month and I'm wondering if that will continue or is this just a summer holiday for the upward trend? There is a chance of a pullback around WR2. However, it is good to keep an eye on the spread before taking a punt: |
|
| Author: | snailbeard [ Mon Sep 01, 2014 11:26 am ] |
| Post subject: | Deceptive bends |
ZzBb makes multiple guesses at the future direction of price, then it has to put the guesses into a hat and pick a ticket. In the first chart there are indications of a bias to a downward move: However, both the H4 and H1 zigzag pivots hint at a reversal, especially the H1 zigzags. There are several ways to see these hints: W patterns, upward slanting zigzag with the additional significant support at WMS1. Adding a trend line under the H1 zigzag lower pivots shows a possible rising support line. It is generally better not to trade down into WMS1 especially when it coincides with another boundary. |
|
| Author: | snailbeard [ Tue Sep 02, 2014 6:20 am ] |
| Post subject: | Better pattern recognition |
The test results for USDJPY March 2014 are much better after adding several functions to better detect and quantify the patterns discussed above. In the chart: March 2014: the D1 Bollinger is almost flat, ATR is low and price ranges: The number and quality of short-term trades has improved: Code: Select all |
|
| Author: | snailbeard [ Tue Sep 02, 2014 8:23 am ] |
| Post subject: | The god of small things |
Looking more closely at the failing trade: The entry at 12:36 seems a bit late and just under WR1. Price has just moved up from WMR1 and so starting a new trade into WR1 is a bit risky. Also the Fibonacci levels are (in this case) accurate predictors of support and resistance. The late entry would not be a problem in a multi-day trade as there is now longer term rising upward price action, but the trailing stop loss method combined with the late entry is not giving the trade a chance to breathe. According to the log file, a potential trade is spotted much earlier, but is getting blocked by a quirk of one of the new functions: Code: Select all |
|
| Author: | snailbeard [ Tue Sep 02, 2014 9:44 am ] |
| Post subject: | Another one bites the dust |
The late entry was due to a bug in the new code. After squashing that bug we see a better entry price and the trade proceeds to the target profit before the pull-back. ZzBb is also free to re-enter the swing after the pull-back. Code: Select all |
|
| Author: | snailbeard [ Mon Sep 08, 2014 7:15 am ] |
| Post subject: | Reference levels |
A lack of price movement in most pairs has encouraged me to look at the history of the Euro. The Euro only came into being in 1990s and therefore has a fairly limited history, however, in this short time it has managed to do some bizarre things. It is difficult to image the Euro surviving much longer given the nature of politicians, the power of public-sector unions, and the disparate nature of individual economies. In this chart we see some wild swings: Closer to home: is Scotland moving closer to independence? In the end the uncertainty of walking alone is a concern for many voters. However, Scotland could introduce its own currency and have it backed by an asset such as Scottish Porridge Oats, perhaps it would be called the Groat. For simplicity lets say 1 Groat = 1Kg of Oats, then the new Scottish Banks could promise to pay 1Kg of oats in exchange for each Groat. Of course variations in harvests and consumption could cause some interesting swings in the exchange rate. This would also require some new crosses, for example GBPGRO EURGRO USDGRO However, there is the possibility of Wales and NI going independent as well so we better use a country prefix SGR - Scottish Groat WGR - Welsh Groat NGR - Northern Ireland Groat And a lot of people in the North of England feel neglected as well, so perhaps Manchester, Liverpool, Sheffield, Leeds and Newcastle could be part of a new country, in which case Manchester would be the capital, so we also introduce another set of crosses based on MGR - Manchester Groat. It is a big step to get a divorce, especially when your partner subsidizes your life style, so in the end comfort will probably win over ideology. It was a bribe that convinced the Scots to sell their independence in the first place! Those of you familiar with works of the genius E.F. Schumacher will remember 'Small Is Beautiful' and Scotland is certainly that. His arguments are too rational for most politicians who generally prefer to spend more than a country can afford to borrow. In the long term having a proper local currency and careful management of imports (e.g. trade balance) can provide employment and a stable economy. However, my Grandparents had an expectation of income and standard of living which was more realistic and achievable than how we live now. So there could be a significant gap between expectations and reality. On a more serious note, academics have looked at the concept of regional currencies. Many of our inhumane-economic problems stem from credit, and a trade imbalance is a form of credit. There is a theory that local economies can thrive if they have a regional currency and are not swamped by cheap imports produced in dubious far away factories. However, this is not place for interesting theories... I was surprised to see such a sharp fall in the value of GBP especially as it happened 'instantly'. Who has the power to make a major currency jump by 70 pips? In the long term this is of no significance. However, EURGBP has two reference levels an old one at 0.7000 and a more recent one at 0.8000. It is amusing to see the euro gain against the pound while the French are pushing their economy and the euro towards a collapse Des chimères |
|
| Author: | snailbeard [ Tue Sep 09, 2014 3:25 pm ] |
| Post subject: | Empty4 4 compiler bug update |
MetaCrap still has the the arraysize returning null issue, (when an array is passed by reference to a function) which I first reported last century it seems but they do not seem to be interested in fixing it, which is why the I am still keeping the EA backwards compatible with build 509. Now that there are several modern alternative platforms based on .Net in the pipeline I am very excited about using better platforms in the future.
|
|
| Author: | snailbeard [ Thu Sep 11, 2014 11:48 am ] |
| Post subject: | ZzBb now compiles & runs on build 670 |
Actually, ZzBb compiled many moons ago, but now I have added a work around for the Empty4 ArraySize bug, so that it runs without errors. I no longer need them to fix their crappy software, at least not for this issue. |
|
| All times are UTC | Page 22 of 28 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|