- 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 tries to claim there is, is either stupid or lying. This ea requires frequent manual intervention.
- 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. Remember to set IsGlobalPrimeOrECNCriminal to 'true' if your crim insists on two-stage order sending.
- MACD indi - ships with Empty4.
- Stochastic indi - ships with Empty4.
Background info
I received this pm from johnlucas last week:
Indicatorsjohnlucas wrote:Hello Steve,
please find attached one EA that I've built.
It uses stochs (70,10,10)
MACD (standard settings)
Long when MACD (shift 2) < 0
then MACD (shift 1) > 0 AND stochs < 25
short when MACD (shift 2) > 0
then MACD (shift 1) < 0 AND stochs > 75
Time filter: 9-14 GMT
SL 22 pips, TP: 185 pips
move SL to BE when 22 pips in profit
backtested on EURUSD 15m from 2001-2011 with the Equity curve attached.
Max DD is around 15%; W% above 45%
I would like to ask if someone is interested in improving it.
Possibile ideas:
1) opening more than 1 position at a time and trailing the stops as they become profitable
2) Adding another filter and trying it on lower TF
3) Adding a "time bomb" i.e. closing all positions after a certain period of time has passed.
As a general note, I am not a fan of multiple TF EAs since they cannot be backtested (as far as I know), but only forward tested (and the process seems to me a bit reducing).
If you like, feel free to share it.
I am not a programmer and I've built the EA using a visual tool,
thank you,
bye,
John.
The MACD and Stochastic inputs are fully configurable. There are higher and lower time frames for you to play with. Any input beginning 'Htf' refers to a higher time frame. Any input beginning 'Ltf' refers to a lower time frame.
So, to trade exactly as John describes, set HtfMACD and HtfStoch to 0 and they will be ignored. Setting their Ltf equivalents to zero enforces the current chart as the time frame.
All well and good so far, and took about 5 minutes to do the basic stuff. The entertainment began when I started backtesting using inputs that involve the higher time frames.
Only a lunatic trusts back test results in Crapergy Tester, but this particular piece of rancid crap does at least allow the likes of me to test out my code. The first thing I discovered was that using a htf MACD killed trading stone dead.
This was not altogether a surprise. You want both a htf and a ltf macd to cross the zero line at the same time? Dream on.
So, I wondered what would happen if I aimed instead for a htf cross and then looked back over x ltf candles for a cross. This is what LtfCrossDetectionCandles is all about. So:
- there is a htf macd cross of the zero line:
- the bot looks back over LtfCrossDetectionCandles to find either:
- a point where there was a ltf cross in the direction of the htf macd.
- a point where two consecutive macd values were on the correct side of the zero line.
- the bot looks back over LtfCrossDetectionCandles to find either:
OOTB
The ootb settings allow this ea to trade in a quick and dirty open price EU M15 Cowboy IBFX Aussie demo over the last year using all the mtf stuff. That is all they are intended to do; do not expect them to be profitable.
In conclusion
Do I expect this to prove to be a profitable bot? Not a hope.
So, why did I code it? Three reasons:
- My OCCD was itching and I had a few minutes to kill and figured I was better off simply coding my own version with all the stuff that naturally comes with my ea's as a result of all our work here, then trying to adapt code produced by a code-producing machine. Mind, the programming that lies behind software that can produce an EA is mind-boggling,
but that is a different thingy to what we are discussing here. - John has clearly put a lot of work into this and so deserves some support.
- There is no telling what The Brains here might come up with.
Matters of general interest
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
- 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.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