- Most Forex traders lose all their money.
Using the robot posted here in trading Forex does not guarantee success.
Trading this robot could lead to serious financial loss.
Trading this robot without understanding its underlying trading strategies guarantees traders will lose their money.
This is not a set-and-forget ea. There is no such thing and anyone who tells you there is, is either a liar or an idiot. This EA will need manual intervention when NoOfTrades buys and sells are open, and the only recourse from there is to manage the basket manually.
At best, a trading robot is only 90% as good as the manual strategy it trades. At best. At worst, it can be much less effective. If the strategy is rubbish, so is the robot.
To trade this robot, you have to understand:- How to use EA's.
Ehup all
Gertje contacted me with an idea that looks like fun:
- - open a pair of buy and sell trades
- send a grid of pending buy and sell trades x pips apart.
- market movement will fill the pending trades in one overwhelming direction.
- take profit when a sufficient number of buy or sell trades have taken the basket into x cash profit.
- rinse and repeat.
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:
- -PipsBetweenTrades: the distance in pips between trades.
- NoOfTrades: the maximum number of possible buy and sell trades. If the market seesaws outrageously, then twice this number is the maximum of trades that can be opened by the EA.
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:
- 1) CashProfitTarget: the profit target in dollars that the basket is aiming for.
- CashProfitPerLot: multiplies your Lot size by this number to arrive at an adaptive CashProfitTarget. Set this to zero to disable the feature.
2) Cash jumping stop loss. By default, G uses- CashProfitTarget=1000;
CashJumpingStopLoss=50;
JslStartsAt=100;- This will jump the basket stoploss by $50 once the profit reaches $100.
- CashProfitTarget=1000;
- 1) by Rsi trend determination (see below). Only send the initial trades if Rsi indicates a trend.
2) by using the TMA true indi. TMA works by calculating a moving average and using ATR to calculate a channel above and below the moving average. When the price touches either upper or lower tma, the ea sends the initial trades.- - you do not need any version of the TMA indi on your chart or in your indi folder. G emulates TMA and draws dashed yellow lines on your chart to show the upper and lower levels.
- customisable inputs are available for the Moving Average and Atr indicators. Play with them to your heart's content. All the Tma emulation does is provide an extreme at which to enter the market. The further away the extremes, the more likely you are to enter when the market is preparing a retrace and so you will make your profits more quickly, but will have fewer initial trades. The closer the extremes, the more initial trades you will see bt also more range-bound baskets:- - TmaMaTimeFrame and TmaAtrTimeFrame make the Tma emulation independent of your chart time frame. They both default to H1.
- TmaMaShift defaults to 1, so the emulation is calculating the range using the MA of the previously closed candle on you chosen time frame. This negates the 'wriggling snake head' effect of the current MA - one of Nanningbob's many ideas.
- - TmaMaTimeFrame and TmaAtrTimeFrame make the Tma emulation independent of your chart time frame. They both default to H1.
- - you do not need any version of the TMA indi on your chart or in your indi folder. G emulates TMA and draws dashed yellow lines on your chart to show the upper and lower levels.
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.
- - Lot: the lot size if you do not want auto-calculation.
- LotsPerThousandOfBalance: lot size is calculated by rounding down the balance to bare $thousands, then multiplying this figure by LotsPerThousandOfBalance to produce a lot size that will grow with the account. Set this input to zero to disable the feature.
- IncrementalLotMultiplier: multiplies the lot size of the most recent trade by this number. The default of 1 disables lot incrementing. This feature might need adaptation, as a badly ranging market might lead to alternate buy/sell trades opening, each of which has successively higher lot sizes. This will unbalance the basket, so we shall have to see if this is a problem.
- MaxPairsAllowed tells G to allow no further trading if there are already this number of pairs trading on the account. The pairs do not have to belong to G; they merely have to be open trades. Set this input to zero to allow unlimited 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:
- 1) remove the EA from the chart - this is essential.
2) drag the sell script onto the chart and wait for the sell to open and the grid appear.
3) restart Gertje, who will take over the position as though the EA had initiated everything itself (make sure your script and EA have the same magic number).
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