| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Zigzag Bollinger Band https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3237 |
Page 27 of 28 |
| Author: | snailbeard [ Sun Dec 07, 2014 6:03 am ] |
| Post subject: | Relocation, Relocation |
Perhaps it was unwise to dive into the stop-loss spaghetti, as it was difficult to follow the plot and it turned out to be quite hard separating out the many facets of stop-losses. The difficulty is that different entry methods require different amounts of slack. When prices are really moving its good to have a take profit distance 2 to 3 times the stop-loss distance, but on slow days the reversals can be as big as the target. As well as dynamic ATR based variations there are boundaries (minimum and maximum stop-loss) for different entry methods and finally I need manual overrides for these boundaries as well (Russian Dolls). After observing that too many good entries get blocked I decided to have another round of adjustments to the filters so now we have a new set of trades, some the same as before, quite a few lost and plenty waiting to be discovered/recovered. On this H4 chart below, the general direction is clear and there should be chances to enter sell trades on each of these days: 02, 03, and 04 September 2014. However, due to some excessive filtering only the one on the third was getting through. Sometimes its it not just one filter but several: Code: Select all However, the H4 chart shows 3 great trading days (except the 3rd has more reversals than the other two): The two small H4 Doji candles are due to price being trapped between two significant Fibonacci levels a common place for a reversal but in this case price breaks-out in the same direction. 'bTooFarFromH4Ema10' was out of date and no longer true. 'b7D1SwingBeyondWpRange' means price has moved a weeks worth of pips which means avoid longer trades. A closer look at the 4th on M15 shows several good places to enter a trade: My preferred time is after the price movement picks up at the close of the 14:45 bar which is bigger than the previous bars and closes below a pivot level and a Bollinger band (D1 Lower). There will often be a bounce off the outer D1 Bollingers but there is still strength in the dollar and price is still moving: After reworking the filters there is an earlier entry at a break-out of two coincident (M15 & H1) lower Bollinger bands and the M15 bar is slightly bigger than previous bars - a good entry although not as strong as the close of 14:45. Volatility hasn't picked up enough to use the longer range PBRE so ZB4 enters a shorter range PACL trade: Code: Select all The good thing about the PACL entries is they can be over very quickly in this case we get our quota of pips in less than an hour. There is also a chance of another short trade later in the day but once price goes beyond DS3 we could be pushing our luck. I am now thinking about the possibility of a trade on 2nd Sept, this was clearly a good trading day, but the difficulty for ZB4 is that price has been moving up for about two weeks. Although, the longer term price has been falling, it takes time to establish that the reversal back into the H4 Bollinger is going to continue downwards. By grep-ing the log file we see that ZB4 acknowledges a change in the direction of price movement towards the middle of the day: Code: Select all However, I added some safety features to prevent erratic entries near reversals: Code: Select all This does not have to be set in concrete but perhaps there is low hanging fruit elsewhere... |
|
| Author: | snailbeard [ Sun Dec 07, 2014 8:18 am ] |
| Post subject: | GBPUSD Low hanging fruit |
ZB4 picked up two good trades on the 17th and 19th September but did it miss out in between on the 18th? According the H4 chart there was a pull back followed by price moving up again on the 18th: In the log file there are a high number of 'Buy entry dropped because bPaxStalledAtPivot' which means price has moved up to pivot and then stalled. When price stalls under a pivot it is often a precursor to a reversal but there also many occasions when the pivots are too close together so that ZB4 never finds a good entry point. This M15 chart shows the issue more clearly: This has been on my ToDo list for a while and now is probably a good time to improve this filter... |
|
| Author: | snailbeard [ Wed Dec 10, 2014 1:40 pm ] |
| Post subject: | 10% profit in a day |
It's a most unusual day Feel like throwing my money away ... I was in the middle of changing ZB4 to allow it to run in user-mode, which means turning off the other entry methods and allowing me to setup a trade through the 'extern' declarations. Perhaps I should have done this a long time ago as it opens-up lots of possibilities. In short, if I think a pair is going in a particular direction and want to enter if the price crosses a threshold then these changes will help. However, there is a secondary objective which is to be able to read and write trade setups from a file and pull them into ZB4, so that any instance of ZB4 could work as a trade copier for either another ZB4 or a separate program. It also allows forcing a particular trade setup for back-testing. The initial intention was just to allow a single trade at a time but something interesting happened as a result of a bug. ZB4 reentered the same trade every 15 minutes for the rest of the day. I have toyed with stacking before but it is incompatible with the current profit-tracking which can only track one trade-per-pair at a time without quite a bit of extra work. However, since it made over 10% in one day I thought it was worth doing some extra work. The next step would be to constrain the stacked entries so that they are conditional on the running profit being sufficient to cover part or all of the later entries potential losses. So this would only be worth doing when the swing is strong enough otherwise it would quickly unravel. I might do a bit more work on this later, the way it works at the moment could easily lose just as much! The principal settings for a manual entry are as follows: Code: Select all In case the broker is deliberately manipulating the price the internal target and stop-loss are kept inside the program, although who knows if brokers can access the values of 'extern's so perhaps this is not private enough? I wonder if any of this forum's traders know the answer to that. A broker would not normally be interested to see these values unless they lose money each time the retail trader makes a profit then they might be more interested to find out as much as possible about the trader so that they can make his trades fail. Fortunately, there are a small number (but a growing number) of brokers who can make money without cheating their customers. Code: Select all In the following log file extracts we can see how only one trade contributes to the profit-tracking monitor, and finally when price reaches the target price the hidden target is processed and all the trades are closed at the same time. Code: Select all I was hoping to have this working on Monday so I could try it out for real, but I still need to check the hidden stop-loss. Also adding a module to parse a string representation of an trade set-up took up quite a bit of time as well. However, it should be useful when pulling trade set-ups from a file. Forcing a loss to test exit by stealth stop loss: Code: Select all |
|
| Author: | snailbeard [ Thu Dec 11, 2014 11:31 am ] |
| Post subject: | Dual Channel Breakout |
This is something ZB4 tries to do but not by this visual method I am about to describe: On AUDJPY M15 for yesterday (10 December 2014) there was an ideal set up with a low risk to high reward ratio, perhaps an ideal candidate for a stacked trade. The slow channel is wedge (yellow trend lines) and after about 24 hours we get a 2-bar top, which is a lower high than the one at the start of the channel. The lower channel trend-line is rising from a low. The major break-out will occur either above or below this channel, but there is currently short term ranging inside this wedge shaped channel. To improve the chance of successfully guessing the longer breakout it helps to look at a H4 chart from which we see the longer term direction is down: On the long term chart we can try to find the most significant support and resistance levels which we can then use on the shorter chart to guage stop-loss and take profit levels. The purple lines on the first chart give an accurate projection of future support and resistance levels. The short range channel bounded by red trend lines is steeply upward sloping but runs out of steam at 13:15, the next sequence of M15 bars creates a short range pennant flag and final bar of this has a long pin and small body. This an important precursor and now we are very interested in the following minutes. The following M15 chart is a close-up of the short-range break-out. We can choose one or more rules for entering the breakout. Where E1 is the highest risk and E2 is more cautious and E3 is late or longer term: Firstly, E1 conforms to my ORFB method (open-reverse-forward break) price reverses for a while but passes the open price in the preferred direction. However, it is on the wrong side of significant support so we might choose to be more cautious like ZB4 and wait for more downward momentum. At E2 we pass another significant level where two recent bars share a close-open level. Finally, we could wait for the current bar to close and say this confirms the break and also we can visualize a new downward short term channel. The stop loss can be just above the 2-bar top at the yellow line or it could be just above the top Fibonacci level depending on the size of the wikis and there are two main targets, the first one about 80 pips down near Fib100 and an optimistic one near Fib161 returning about 140 pips for a risk of about 15 to 20 pips! |
|
| Author: | snailbeard [ Thu Dec 11, 2014 5:20 pm ] |
| Post subject: | Slippage |
The user-specified semi-auto-trade entry method has a flaw not present in auto-entry-method which is the user price remains the same while the market price can move quite far from the entry price. Since auto-trader drops VPOs after a while, slippage was handled differently but this had to be rationalized to prevent very late entries. From the log file we can verify that the new slippage checking is preventing early or late entries. It should be possible to leave ZB4 monitoring a price, come back later and see from the log file if and why a trade was invoked or not. Code: Select all User specified entries should now enter as expected and be trailed according the selected profit/stop tracking method. After back testing over several months and improving the logging it is possible to check for problems: Did a trade occur more than once on the same day? Did a trade occur too far from the entry price? Did a trade come close to the trigger but not result in a trade? So the first and second questions are answered by: Code: Select all It would be useful to know if price came close to the trigger price but didn't actually result in a trade: From the following search there were 25 close encounters spread over 12 separate days but from above we only had 9 trades so we need to check out the near misses Code: Select all After cross checking: one of those days was a Friday afternoon after my last allowed entry time: Code: Select all And the other one on 29th October 2014 was a genuine near miss: According to these final test results I now feel confident enough to leave ZB4 running with a user's predetermined entry. Without the EBP date parameter this same price will be monitored every day although it would be more usual to change the settings day by day. |
|
| Author: | snailbeard [ Fri Dec 12, 2014 8:16 am ] |
| Post subject: | Poor trade management |
Although I have discovered many ways of spotting good trades there are even more ways to get it wrong or mess up a perfectly good trade. In this H4 chart we can see how a perfectly good trade should have been allowed to run to take profit but instead a premature exit occurred: It seems that only 19 pips were taken and 50 pips were left behind With reference to the log file it is easy to find out where the bug is: 09:09 GBPUSD: : Updated symbolLockAccPercent : 0.69 09:26 GBPUSD: : GBPUSD, orders closed at: 0.69 ,Symbol trailing percent level, 844484 A first guess would be that 0.69 should be (1.0 - 0.69) and perhaps if our stops are wide enough we don't even need the trailing profit locking, it all depends on the market and how confident you are about the current swing. After looking at the trailing logic the problem is related to risk management: The auto trades work on the basis of a 1% risk and so a trailing profit is based on this where trailing doesn't start until symbolTrailPercentLevel = 0.90 which means when the trade has reached 90% of its target start locking profit symbolTrailFractionToLock = 0.75 means try to lock at least 75% of the 1% risk after trailing has started Since I have manually chosen a lot size with say a 2% risk these numbers no longer make sense. For this to make sense 0.90 should relate to the maximum profit (actual risk) rather than the theoretical risk. After changing trailing percent this particular trade no longer gets close enough to the target to start the profit locking because it overlaps with Friday's early exits: This confirms that Friday exit check is working: Code: Select all However, we can see that after this trade the next two entries go much closer to the 2% target: Code: Select all and we can check this against the log file: Code: Select all It looks like there is just one more thing to do on user specified Enter-By-Price which is to be able to specify a risk-level instead of a lot-size then derive the lot-size from the risk level. After specifying an EBP risk value of 1% the following lot-size is used to override the given lot-size: Code: Select all |
|
| Author: | snailbeard [ Mon Dec 15, 2014 9:57 am ] |
| Post subject: | Worst spreads |
Which Broker's should we avoid due to high spreads on crosses? At lot of brokers will show low spreads on the majors and in their advertising, but what if you want to trade crosses as well? Example AUDJPY snapshot of spreads from MetaCrap: Worst Spreads First: Alpari AUDJPY 5.0 to 6.0 pips FxPro AUDJPY 2.0 to 3.0 pips FxOpen AUDJPY 1.0 to 2.0 pips GlobalPrime AUDJPY 1.0 to 2.0 pips Here is a much more comprehensive snapshot courtesy of myFxBook: (commissions are included) Should we have a competition for the worst and best spreads? So far Fat-Spread Alpari is leading the worst spreads. Our honest resident broker Global Prime is in the middle, and leading the lowest spreads is PureECN who is based in New Zealand, I don't know anything about them, but if you are happy or unhappy with them please share your experiences. When I was rookie I opened an account with Alpari and IG and since they are market-maker accounts they gain when their customers lose money. If I wanted to play against the house I could just go to a casino and play roulette. Thanks to Steves's forum I learned a lot about the criminal activity of some brokers and now know the difference between MM, STP and ECN, where STP is supposed to mean Straight-Through-Processing but it is not the same as ECN. STP is supposedly less prone to manipulation by brokers but I can't tell if this is case or not... One of our members has posted a list of true ECN brokers but this is now out of date: http://www.stevehopwoodforex.com/phpBB3 ... =28&t=3389 Of course brokers and banks are not the only sources of criminality for us smaller traders, we could also be affected indirectly: https://www.infosecurity-magazine.com/m ... round-for/ PureECN might be winning the low-spread contest but who are they? Who can vouch for them? There is no review in forexpeacearmy and scamadvisor says 70% safe http://www.scamadviser.com/is-pureecn.net-safe.html What does scamadvisor say about our friends: http://www.scamadviser.com/check-websit ... ime.com.au Which is comforting. Many traders have complained in forexpeacearmy about the difficulty of withdrawing funds from their brokers and it seems to be a common problem. There is still more work to be done on selecting several safe and dependable brokers. One more thing to watch out for is jumps in the ECN spreads: even though I would have expected several ECN brokers to have similar spread variations, Exness had several jumps in their AUDJPY spread which briefly put them on a par with Fat-Spread-Alpari so it might be necessary look at the liquidity providers of the brokers more carefully: Thanks again to myfxbook for publishing this data on their website. |
|
| Author: | snailbeard [ Sat Dec 20, 2014 6:19 pm ] |
| Post subject: | Dynamic range |
I have not had much time to develop the candle-slope method. Most of my effort has been to reduce over filtering of good entries. Last week I found some ways to improve the end-of-swing/end-of-range checks. Sometimes price swings a lot but then price comes back close to an earlier price therefore the price has not changed that much and there might be scope for real price change. Thanks to those changes ZB4 finds 3 successive daily trades in the middle of September. Previously, ZB4 had chucked out two of those 3 trades. Just as important is the work to set the right stop-loss and target. To help with this I look at distance between the daily pivots; the weekly pivots; the D1 ATR and H4 ATR. These all have problems in that they are lagging the current price action. H4 ATR is the least lagging and the size of H4 candles are important as well, as the size of reverse H4 candles. So often the entry is good but the trade is too tight. The PACL method was implemented to cope with the reduced price swings before the summer but in September we had some good swings but with bigger reversals as well. It is now possible to control the maximum and minimum PACL stop-loss with a couple of parameters: Code: Select all However, in this back test ZB4 is just inside these manual limits but with reference to the chart below, we can see that price action has notched up a gear and so have the reversals. Perhaps ZB4 should not be using the PACL method or it needs better control of the stop-loss and target: Code: Select all From the chart we can see that a recent past H4 bar reversed more than the current stop-loss setting. After entering the trade, price reversed just over 30 pips, but it could easily have been 50 or 60 pips so this entry doesn't make sense. Hopefully, the log file will tell why ZB4 chose a short trade instead of a longer PBRE trade... A couple more things to observe: a) This trade is a H4LbbBkOut (lower Bollinger Band (green)) break-out entry. b) There were potential entries several times when price reversed across H4 MBB and recrossed down in the dominant down direction. I have noticed quite a few occasions when this is a reliable entry method provided that there is a definite trend. These double-crossings might currently be too fast and difficult to quantify in real-time for ZB4, but I'll be looking into capturing some of these events as triggers... |
|
| Author: | snailbeard [ Mon Dec 29, 2014 4:00 pm ] |
| Post subject: | False H4 & D1 reversals |
Several of ZB4's filters deal with reversals. Computing the difference between a real reversal and a pullback followed by a reentry into the current direction is full of pit falls. This is particular true on the H4 time frame. When we look back historically it is easy to see several entry points when price re-crosses the H4 mid-Bollinger band in the dominant longer term direction. However, our brains are very good at ignoring the places where these crosses would result in a false re-entry. The problem is compounded by the deficiencies of the real-time zig-zag algorithm which regularly identifies false turning points. In the following chart I have labelled the real and some of the false zig-zag pivots relating to the beginning of October as I would like to be able to catch price moving back with the main swing. There are many false zigzag pivots and labelling them all would be very tedious. I have already done some work to discount some false reversals. There is an obvious trap here in that if we ignore reversal signals then there will be a lot of wrong entries. So I'm looking for a method which would be correct at least 2-to-1 or preferably 3-to-1. Several things to note are a) H4 should have steeper swings than D1 most of the time because generally the H4Zz swings backwards and forwards across the mean of the daily change. b) The length of a H4Zz or D1Zz swing should not be too short. c) A reversal which starts outside a D1 Bollinger is likely to be stronger than a shorter swing which begins a reversal inside a Bollinger. None of these observations are particular useful as they are vague and difficult to quantify. After some tweaking and a new entry detection method there were two H4-MidBB crossing entries: Code: Select all Looking at the log file Code: Select all The first part: st_bM15OC_BelowH4MBB indicates that we missed the actual crossing of H4-MidBB but entered shortly afterwards. The second part just keeps track of the of times this condition was true. The actual entry signal is 'bH4MbbReEntryDown'. This was only possible by having another flag to ignore the H4 reversal flags. So the next step is to see how many false entries occur over a longer period of testing. Running the test over a longer period did better than expected with only one failure: Code: Select all |
|
| Author: | snailbeard [ Tue Dec 30, 2014 7:37 am ] |
| Post subject: | EURUSD - how low can you go? |
I remember reading in money week several years ago that the Euro was likely to collapse in 2013. So here we are at the end of 2014 and Euro has never looked healthier The Euro looks particularly anaemic at the moment but can it go much lower. Volume has really dropped off: The Euro has been this low before and is approaching a historical low, last time it started to reverse long term but I'm not making any predictions... |
|
| All times are UTC | Page 27 of 28 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|