| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Gertje: a hedged grid trader https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=424 |
Page 1 of 24 |
| Author: | SteveHopwood [ Tue Mar 13, 2012 10:39 pm ] |
| Post subject: | Gertje: a hedged grid trader |
SERIOUS WARNING
Ehup all Gertje contacted me with an idea that looks like fun:
US citizens It is possible for you to trade this EA. For details, read: Sam's post at http://www.stevehopwoodforex.com/phpBB3 ... 038#p10038 TehCount's post at http://www.stevehopwoodforex.com/phpBB3 ... 064#p10064 makeda's post at http://www.stevehopwoodforex.com/phpBB3 ... 133#p10133 swg's post at http://www.stevehopwoodforex.com/phpBB3 ... 519#p10519 Inputs There are few inputs. The few that need explanation are:
Taking the next buy as an example, close the basket if: - the next buy trading line is touched - there are RangeBoundClosureTotal / 2 sell trades open By default, RangeBoundClosureTotal = NoOfTrades * 2, or the maximum number of grid lines. It has to be divisible by 2, so there is an idiot check that rounds up one digit should you forget. Once there are > LookForBreakevenAfter trades open and the difference between total open buys and total open sells is 1, the bot will look to close out at breakeven. Closing a successful basket There are a three strategies available:
In a trending market, this strategy has to be a winner, as the market will gradually open more and more trades in one direction until the basket tp is hit. Money management This allows G to calculate your lot size and to protect you from over-trading.
http://www.stevehopwoodforex.com/phpBB3 ... 9027#p9027 http://www.stevehopwoodforex.com/phpBB3 ... 9029#p9029 http://www.stevehopwoodforex.com/phpBB3 ... 9051#p9051 Bear in mind that when the market screams off in one direction in rocket-style, the 'pending' trades are unlikely to fill. A combination of Empty4 and criminal activities will prevent trades being sent. RSI trend detection I have added the usual 20 period D1 Rsi trend detection routine. Disable it by setting RsiTdPeriod to zero. If used, the bot will only send initial trades if the market is trending - the trend direction does not matter. Note that the Rsi reading on your chart will only be correct if the EA is actively looking for new trades. If it already has trades open, or is unable to trade because the number of pairs with open trades is >= MaxPairsAllowed, then the bot does not read Rsi. This cuts down on processor use. By default, G considers the Rsi to be indicating a trend, so you will see ""Market is trending (0)" on the chart. In conclusion On the face of it, this is a guaranteed winner. Where is the catch? Let's see. 'Just in case' scripts G sends the buy first, then creates the buy grid, then the sell and creates the sell grid. If the buy trade-send fails for any one of the thousands of reasons that Empty4 behaves true to form, G aborts the whole process and awaits the next tick before trying again. Once the buy is open, G will keep on hammering away at sending the sell until Empty4 finally surrenders and allows it through. Theoretically, it should be impossible to end up with only the buy trade and grid, but I have seen this happen on my demo and we need a way of overcoming this situation. This is where Gertje Sell Script comes in. Should the sell trade fail:
The buy script should not have any use, but it does allow anyone who wants to use G as a single-direction basket trader to do so. G does not send initial trades if it detects there is an open trade in either direction, so using the script first then starting up the bot will achieve single-direction trading. Above/below market scripts Nicastro posted this: "Would it be possible to provide a user setting for the EA to open the grid at a preset price that is manually entered. I am thinking of testing Gertje using R1 & S1 daily readings off Scoobs RSI and Squalou’s indicator on the manual trading thread here on the forum." We cannot have such an input within the EA - that would cause chaos. Instead, use the appropriate 'Gertje above/below-market script' script to first create the initial-trades trigger line, then drag the EA onto the chart. Rsi and Tma are incompatible with this, so they are disabled if the EA discovers one/both of the lines on the chart. Matters of general interest Read this post: http://www.forexfactory.com/showthread. ... ost4923611 Newbie traders, read this for inspiration and warning. Those of you who have suffered losses, read it for inspiration. There is a thread devoted to Sam's trading method at http://www.forexfactory.com/showthre...25#post5118825 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.forexfactory.com/showthread. ... ost4431794, at the bottom of the post. Useful utilities/EA's/scripts Matt's chart-population script at http://www.stevehopwoodforex.com/phpBB3 ... 5733#p5733. Use this every time you start a fresh platform. MaryJane has posted a fabulous utility to allow us to resize EA input windows: http://www.forexfactory.com/showthread.php?t=299017 Multi purpose trade manager: http://www.forexfactory.com/showthread.php?t=89371 Account equity analyser: http://www.forexfactory.com/showthread. ... ost4693716 Also at 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 ... p?f=5&t=15 |
|
| Author: | hiredwhip [ Tue Mar 13, 2012 11:34 pm ] |
| Post subject: | Re: Gertje: a hedged grid trader |
Got it Steve, This could be a lot of fun......Winding up the Fun-O-Meter as I type.....Love these things.... Have a great week whip |
|
| Author: | acostafulano [ Tue Mar 13, 2012 11:41 pm ] |
| Post subject: | Re: Gertje: a hedged grid trader |
It'd be nice to have an option to close all trades (rinse and repeat) once the maximum trades have been opened and price started going nowhere for a while (Close for loss @ spread and transaction costs as you mentioned) |
|
| Author: | 4xPIPAHOLIC [ Wed Mar 14, 2012 12:54 am ] |
| Post subject: | Re: Gertje: a hedged grid trader |
Sam's trading method link not working..... |
|
| Author: | SteveHopwood [ Wed Mar 14, 2012 1:03 am ] |
| Post subject: | Re: Gertje: a hedged grid trader |
Tell it to get a grip on itself and start working. Can the rest of us have some of what you are on, please? It looks like fun. |
|
| Author: | musketeer [ Wed Mar 14, 2012 3:18 am ] |
| Post subject: | Re: Gertje: a hedged grid trader |
Steve, you are really a coding machine it reminds me about vipergrid http://www.forexfactory.com/showthread.php?t=109589 off-topic: let me try to write "broker " |
|
| Author: | 4x4u [ Wed Mar 14, 2012 4:56 am ] |
| Post subject: | Re: Gertje: a hedged grid trader |
Would you please share the Topdawg EA please.. thanks. |
|
| Author: | scooby-doo [ Wed Mar 14, 2012 9:10 am ] |
| Post subject: | Re: Gertje: a hedged grid trader |
This should work really well on the first Friday of the month around 1.30pm GMT on GBPUSD. You could probably make enough money in 2 hours to to last the whole month. Just place the trades around 1.15pm GMT. ...Let the fun begin. The key will be to determine how far x pips to place the trades. This is what normally kills grid trading if you get it wrong. I would work out the avaerage volatility over 240 days, say = 160 pips / 5 = 32 pips (4 digits) So, place your trades 32 pips apart or round it down to 30 pips. Unemployment is coming down in USA and In my opinion the next set of results for NFP should be good for the US. Use small lots and do the above for all USD pairs and in theory you should make a killing. Scoobs. |
|
| Author: | xxl205 [ Wed Mar 14, 2012 9:15 am ] |
| Post subject: | Re: Gertje: a hedged grid trader |
Hello Steve, thanks again for another EA If the grid moves in one direction, why not fill in the countertrade grid ? So if market moves back, we'd be faster ... and what about martingale, eventually in both directions rising AND falling ? I'd have more thoughts about the grid, but I have to bring them in understandable words at first Cheers, George |
|
| All times are UTC | Page 1 of 24 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|