| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Fractalated Bob https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3808 |
Page 1 of 60 |
| Author: | SteveHopwood [ Sat Aug 23, 2014 8:51 pm ] |
| Post subject: | Fractalated Bob |
SERIOUS WARNING
I had a good long lol in the bath on Saturday. Old stagers will understand the import of this. My thoughts returned yet again to using Bob's 10.x stuff as the trade setup, then finding something to act as the trigger. My mind was already occupied by thoughts of trend detection because I was coding something privately that used different methods of td, but which drew my attention to it. I mused about trend detection. Anyone who has been around Forex for more than about 5 minutes will be familiar with this:
Insert. Info for newbies Newbies, 'higher highs and lows' is not always a simple concept to grasp. It took me a few years to grasp it, but I am an idiot so this should not come as a surprise. In case you are unsure:
----------------------------------------------------------------------------------------------------------------------------- I thought about using Bob's H4 240 moving average as the trend filter that I include with almost everything I code, and wondered if highs and lows could be used to trigger trades in the direction of the prevailing trend. I looked at some charts and noticed this:
Here is where thingies get really interesting. By happenstance, I put FB onto 15 minute charts in order to generate trades to test the EA, on just the charts in the profits pic above. They did indeed generate a fair few trades - some of them picture-perfect. Study this one: Load the pic into a separate window so you can zoom in. The vertical, dashed turquoise lines highlight the candle at which a trade was taken - EU is in a downtrend so all the trades are sells and you can see the red arrow the EA draws on the charts. Look back 3 candles and you will see the fractals the EA used to decide that a trade was appropriate. Magenta lines join the high fractals, whilst yellow lines join the low fractals involved in the trading decision. Bear in mind that FB is an EA not an indi, so these lines only occur after a trade is taken and do not extend back into history unless FB was running on the chart at the time. Also, if you delete the lines from your chart after FB has been running for a while, they disappear for good. Trades are sent without a take profit or stop loss. Losing sequences will ultimately close if the H4 240 MA trend definition changes. Initially, I wanted to see what would happen if the bot opened a string of trades at each new trade trigger. Here is what I found:
The story of FB's first week does not quite end there. Do the markets always cooperate and does FB always get it right? Does it buggery. So, I had a OAM EU trade fighting the overall trend. I decided on Friday to set FB loose on the chart, to see what it could do about the situation. First damn thing it did, of course, was close the OAM EU trade because it was on the wrong side of the h4 240 MA. Here is what happened: Load the chart into a separate window again so you can zoom in. This time, you will see several trades taken in the correct direction for the trend - sells in a long trend. This time though, we were in a decent retrace and each sell was taken at a successively higher level. At one point, there were about 10 trades open, all nicely into drawdown. This pic is taken from my live trading Cowboy IBFX account. Trading 0.01 lots on a c. $500 trading account there is like trading 0.01 lots on a c. $5,000 account pretty much everywhere else a la Bob and his tiny lot sizes but loads of trades. The draw down never even considered becoming an issue to notice, let alone to be concerned about. So what happened? Some Fed Chairperson Talking Head happened and sent the EU into a spiral - I happened to be at my computer at the time, and closed out all those trades with c. +205 that more than wiped out the loser that FB closed when I first loaded it up. I have become used to regarding all the trades opened by all the instances of the bot as a 'basket'. On Friday, the demo 'basket' of trades went nicely into drawdown - a couple of hundred pips overall. The Fed spokesperson's pronouncements sent this beautifully into reverse and I was able to close out at c. +70. Not sure what would have happened had the Talking Head's pronouncements sent the markets in the opposite direction. Hey ho. It aint bust yet....................... Summing up the introduction Yes, I know. I have imbibed a bit. Plus I am tired because I did not sleep well last night, so in the end I gave up and added the functions to OAM that I posted earlier. I will sort out the intro when I am a tad more compis mentis, OK? As traded live:
It is all there along with the usual other stuff, so read the attached user guide for details. You can combine the above with Slope, Css, RSI2 etc. Take your pick. Use different time frames and play to your hearts content. The TradingTimeFrame input This must be the time frame you intend to trade as FB bases all of its calculations on it. This allows you to change time frames on your chart to view different scenarios without disturbing FB. The downside of getting this wrong is something you will discover to your cost. Optional maximum distance filters
Perceived wisdom is this: Stochastic > 70 means the market is overbought i.e. has risen for a substantial period of time and is due a retrace downwards; Stochastic < 30 means the market is oversold i.e. has fallen for a substantial period of time and is due a retrace upwards. Using the Stoch filter is an attempt to avoid buying when Stoch is overbought and selling when oversold, an so cut down on those frustrating periods of drawdown that we all experience.
Mike's individual pair as a basket inputs magft (Mike) has contributed code to this EA that allows us to treat the pair it is trading as an individual basket. This is different to using mptm to treat all open trades as a basket. Imagine you have 3 GU, 2 EU and 5 GJ trades open. Mikes code allows us to treat each individual pair as a 'basket' and manage each 'basket' individually. The inputs are:
FB can take a picture of your chart when it opens or closes a trade. Use this to post pictures here if you suspect that FB has not behaved as expected. There is a section of inputs just underneath the minimum pips section, with inputs to turn this featureon/ off and to adjust the height and width of the snap. Files are saved with the name "ChartScreenShot" and the ticket number, when the EA opens or closes a trade. Navigate to the files via File/Open Data Folder/MQL4/Files. Remember to delete these files from time to time to avoid clogging up your disk drive. Keeping track with iHistory The attached iHistory indi is the indi I use to keep track of my progress and generate the pictures I post here. Copy it in your platform's Indicators folder. Open a chart you do not trade, add the Blank template to it and drag iHistory onto the chart. It works with the information you have in your History tab. Sometimes it needs reloading before showing any information, especially at the weekends. In conclusion Have fun guyesses and guys Attached scripts We have 2 fantastic scripts presented by members. They save a hell of a lot of work, so warm thanks guys:
Go here to download and run the script that will fill your platform's missing chart history: http://www.stevehopwoodforex.com/phpBB3 ... f=15&t=254 Read this post: http://www.stevehopwoodforex.com/phpBB3 ... p?f=6&t=78 Newbie traders, read this for inspiration and warning. Those of you who have suffered losses, read it for inspiration. Masterly summary of hedging: http://www.forexfactory.com/showthread. ... ost4977179 EA coding I receive may requests to code EA's. Traders, if I code your EA for free, then I will share it here. If you want me to code your EA without sharing, then my fee is $100 payable into my paypal account. I explain why at http://www.stevehopwoodforex.com/phpBB3 ... ?f=15&t=79, at the bottom of the post. Useful utilities/EA's/scripts list][*]Multi purpose trade manager: http://www.stevehopwoodforex.com/phpBB3 ... ?f=21&t=64 [*]Account equity analyser: http://www.forexfactory.com/showthread. ... ost4709098, which includes a template for both USD and the Euro. [*]Past-trades display indi by squalou; shows a graphical display of the success/failure of trades in your History tab. Breathtaking piece of work. http://www.forexfactory.com/showthread. ... ost3830610 [*]My shell EA – the code I use to produce EA's so quickly. http://www.stevehopwoodforex.com/phpBB3 ... ?f=15&t=79[/list][/list] - |
|
| Author: | woodlands [ Mon Aug 25, 2014 5:04 pm ] |
| Post subject: | Fractalated Bob |
Thanks Steve for this, I had spare micro and put on it so the link below has history before your EA, it is running as you posted and very smoothly so far. The EJ is a trend trade waiting on Spider's ALR that I am putting on everything............ Cdt Tony |
|
| Author: | spotdespot [ Mon Aug 25, 2014 5:21 pm ] |
| Post subject: | Fractalated Bob |
I have it running on a few pairs too Steve - looking like all is running well thanks. One suggestion would be to have a minimum distance from H4 240 MA to open a trade as I had a few trades open very close to the MA and then a small retrace knocked them out. Cheers, Dave. |
|
| Author: | SteveHopwood [ Mon Aug 25, 2014 5:55 pm ] |
| Post subject: | Fractalated Bob |
Good idea. Will do. |
|
| Author: | bourgenot [ Mon Aug 25, 2014 6:53 pm ] |
| Post subject: | Fractalated Bob |
Hello! Please, i would like this indicator (mq4), thank you for your help! |
|
| Author: | SteveHopwood [ Mon Aug 25, 2014 7:15 pm ] |
| Post subject: | Fractalated Bob |
Does someone fancy knocking this together? All the line drawing stuff is in the EA and it only needs someone who understands indi code - should take about 5 minutes. I am not going to attempt it - all that IndicatorCounted stuff makes my eyes glaze over. |
|
| Author: | bourgenot [ Mon Aug 25, 2014 8:20 pm ] |
| Post subject: | Fractalated Bob |
I am sorry, to be stupid! thank you! |
|
| Author: | Lowphat [ Mon Aug 25, 2014 11:12 pm ] |
| Post subject: | Fractalated Bob |
Indicator that "only" connects fractals so if your looking for it to do something else this isn't for you |
|
| Author: | SpiderX [ Tue Aug 26, 2014 4:26 am ] |
| Post subject: | Fractalated Bob |
Man...you are brave. wouldnt even dare to put the trade manager on my own accounts since it is relatively untested. Cheers |
|
| Author: | bourgenot [ Tue Aug 26, 2014 8:32 am ] |
| Post subject: | Fractalated Bob |
Lowphat, Thank you for the indy, have a good day! |
|
| All times are UTC | Page 1 of 60 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|