Hanover: an auto-trader using Recent Strength

User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Hanover: an auto-trader using Recent Strength

Post by SteveHopwood »

SERIOUS WARNING

* 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:
o How to use EA's.
o How to use hanover's Recent Strength indi. Download it from http://www.forexfactory.com/showthread.php?t=163158
o How to use hanover's Build Strength Preset File script, download from the same post.



You will make nothing of anything that follows unless you can use hanover's indi.


DO NOT USE THIS EA ON A LIVE ACCOUNT. IT IS EXPERIMENTAL.



We have astral to thank for bringing Recent Strength to my attention. Nice one, astral. I see it as potentially the most exciting development yet here at FF. This is mind-blowing programming by hanover.



We have all read the mantra, "Trade the strongest currency against the weakest." All very well, but unless we have a way of identifying the strongest/weakest pairs then it is a bit hard to know which is which.


Or was. This is the information that Recent Strength provides for us.

Hanover allow us to look at multiple timeframes. The details are in the user guide.

The purposes of this thread are:

1. develop H as a trader in its own right. This means using only Recent Strength to trigger trades. This is the separate Hanover EA and associated user guide Hanover.mq4 and Hanover User Guide.pdf.
2. Develop auto-traders that use the Hanover module to confirm their individual trade triggers. These are found in the Trading EA'szipfile. There is a list of these at the end of the Shell User Guide for EA's using Hanover pdf. There is only one so far, but more will arrive.



Essential posts to read

* hanover has made some fabulous enhancements to his Build Strength Preset File.mq4 script. Make sure read http://www.forexfactory.com/showthread.php?t=163158 for details. If you have downloaded the script subsequent to the date of this post then you already have the updated script, but information about the length of time it takes the Relative Strength indi to get up and running is especially helpful.
* Not essential as such, but useful to know is this one by hanover at http://www.forexfactory.com/showthread. ... ost5062997. I have described how to set everything up in the user guide; in the linked post, David describes what to do if your initial point-plotting is taking a looooonnnnnggggg time.
* http://www.forexfactory.com/showthread. ... ost5064830. This will give you a headache, but ignore it and you are an idiot.
* http://www.forexfactory.com/showthread. ... ost5075774 David's post about using the WatchAndCopy utility - makes things lovely and clear.
* http://www.forexfactory.com/showthread. ... ost5079813: also useful to read but not vital if you merely go with the default RS inputs. This is mostly what I do - haven't a clue what most of them mean.



Note to coders
The Hanover module has its own thread, in the 'For the coders' forum. There you can download the module for your own use.

WatchAndCopy by Carsten
Originally, this was, "Would you please read this post at http://www.forexfactory.com/showthre...14#post5073914. If able to program this, you would do the FF community a vast favour."

Carsten solved the problem for us. WatchAndCopy is attached. Download the zip and run the .exe file to install the software on your machine.

Carsten mentions that, "You will need to have the .NET framework (3.5) installed to start the program. Otherwise, it should be pretty self-explaining." As I recall, if we try to install software that requires the .NET framework, Windows will go on a hunt and download it. If we have any problems, we can ask Carsten. I am about to set it up on my always-on machine, so we will soon know if there are any problems.

kibed83 points out that the RS indi works best if all 28 possible trading combos are offered by your criminal. I am fairly sure that Alpari do this, so I suggest you count up the possible combos offered by your crim and if this adds up to <28, download an Alpari demo and run the file copier from there.

Huge, huge round of applause to Carsten.

Subsequent edit: WatchAndCopy is dead easy to use and works perfectly.

A note about 'Invalid file handle' errors
Some of you are seeing these in your Experts tab. I see them on my Cowboy IBFX demo, but not on my Alpari UK demo.

Ignore them for now. The error does no harm and is caused by the Recent Strength indi output file reading in the EA's. This is David's code that I have hacked for our purposes. I do not understand it but will sort it out at some stage.

Above all else, please stop telling me about them.


In Conclusion

This could be the start of a mighty journey. Time to see where this baby takes us.

Have fun guys.



Updates not in the user guide

* Hanover EA:
o 2nd Nov 2011: added MinHoursBetweenTrades to tell the EA how many hours to wait after a trade closes before looking to trade again. On the D1 and using mptm to set a 50 pip jumping stop, I was finding the market retracing and taking out the stop, then H was re-opening a trade. This input should help combat this feature. Turn it off with a zero input.


The Central Bank Intervention Module
Those of you unfamiliar with the concept of how Central Banks intervene in the markets on behalf of their currencies, have a quick read of this post: http://www.forexfactory.com/showthre...42#post5093042 The posts that followed discussed possibilities for coding recognition of the sort of huge move that followed BOJ's interventione recently.

From this, and from code provided by Carsten, I have coded a Central Bank Intervention module. At the mo, it only lives in my generic EA code; this is attached and I shall isolate the code into a separate module for coders to use in their own work a la Hanover.

To try out the module:

* go to a demo account and download Generic auto trading robot by Steve Hopwood.mq4 into your Empty4 platform/Experts folder. This is the shell EA that contains the code I use to produce EA's so quickly. Close down and restart your platform.
* pick a chart at random and open a buy and a sell trade
* drag 'Generic auto trading robot by Steve Hopwood' onto the chart. By default, everything except CBI is turned off. In the inputs, scroll down to "----Central Bank Intervention module----" (and if you have not yet downloaded MaryJane's utility yet, then now is the time to do so). Here are the inputs:
o UseCBI: Go on, take a guess.
o TableSize: the number of ticks to look back over when deciding if the market has moved sufficiently to generate the CBI intervention functions. This works in combination with:
+ Threshold: the guts of the function is this: if the market has moved x pips in y number of quotes received, then something dramatic is happening in the market and one of the 'big players' has made a move. The defaults say that if the market has moved by 10 pips over the last 20 ticks, then said cataclysmic event is happening and it is time to act.
+ For experimentation purposes, set Threshold to 1 to generate activity quickly.
o CloseOnCBI: if true, this will close all trades linked to the chart and the EA that are in opposite direction to the detected move.
o HedgeOnCBI: will hedge open trades linked to the chart and the EA that are in the opposite direction to the detected move. This is not currently available to US traders, because they are being screwed by their own government.
+ CbiHedgeLotMultiplier: the multiplier for the open trade's lot size. The idea is that the strength of the move will allow the winning hedge to overpower the losing original, and close the entire position at breakeven.
o TradeOnCBI: if true, the EA will trade as soon as it detects a CBI scenario. It will trade regardless of the current position and will ignore normal maximum trade settings. Watch out when experimenting with a low threshold; the bot trades whenever the Threshold input value is breached, so there are a lot of these until you turn off the EA.
+ TradeOnCbiTP and TradeOnCbiSL are the tp/sl for the new trade.


The chances of this code being bloop-free are zero. I have rushed the code through so that we can play with NFP tomorrow. In time for NFP:

* dump the bot on a few charts that include USD
* reset Threshold to something more reasonable. We do not know what this is yet, but 10 seems like a good start
* turn on TradeOnCBI
* turn on whatever combination of hedging/closing is available to you
* sit back and swear when some infantile bloop on my part renders the entire exercise a total waste of time.



Matters of general interest



Read this post:
http://www.forexfactory.com/showthre...11#post4923611 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/showthre...79#post4977179



EA coding
I receive may requests to code EA's. Traders, if I code your EA for free, then I will share it here at FF. 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/showthre...94#post4431794, 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.forexfactory.com/showthread.php?t=89371
* Account equity analyser: http://www.forexfactory.com/showthre...16#post4693716 Also at http://www.forexfactory.com/showthre...98#post4709098, 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/showthre...10#post3830610
* My shell EA – the code I use to produce EA's so quickly. http://www.forexfactory.com/showthre...94#post4431794




Most promising trading EA's

* jiva: http://www.stevehopwoodforex.com/phpBB3 ... hp?f=5&t=3
You do not have the required permissions to view the files attached to this post.
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
parrondo
Posts: 3
Joined: Thu Nov 17, 2011 6:10 am

Re: Hanover: an auto-trader using Recent Strength

Post by parrondo »

Hi Steve,

Good luck with your new way in your own Forum!

I will be here followig you and your incredible work. :)

When you put all this task in order, please do not forget "dynamic ATR". It will be usefull to include in all your EA even into your fantastic MPTM.

Thank you
User avatar
shadow3131
Posts: 7
Joined: Fri Nov 18, 2011 5:58 pm
Location: Victoria BC Canada

Re: Hanover: an auto-trader using Recent Strength

Post by shadow3131 »

Hi Steve, thank you very much for all you work. I have been following you since 2007 on FF and your work as helped me become a very profitable trader. Your Trade Manager has forever changes my life.

We that said, I wanted to share the success I have had with Hanover . Since Oct 24/10/2011 I have been testing Hanover with the following settings : Broker Cowboy IBFX Australia
Timeframe : M15, H4
Confirmation:2,2
TP 50 SL 100
Lot size :0.01
Trading all availble pairs
Also using MPTM with global take profit at $5

As a result, the EA has generated 605pips and has allowed for a very small DD. I hope others may emulate the same success. Happy Trading to All
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Hanover: an auto-trader using Recent Strength

Post by SteveHopwood »

shadow3131 wrote:Hi Steve, thank you very much for all you work. I have been following you since 2007 on FF and your work as helped me become a very profitable trader. Your Trade Manager has forever changes my life.

We that said, I wanted to share the success I have had with Hanover . Since Oct 24/10/2011 I have been testing Hanover with the following settings : Broker Cowboy IBFX Australia
Timeframe : M15, H4
Confirmation:2,2
TP 50 SL 100
Lot size :0.01
Trading all availble pairs
Also using MPTM with global take profit at $5

As a result, the EA has generated 605pips and has allowed for a very small DD. I hope others may emulate the same success. Happy Trading to All
Thanks for this. I was wondering how to make the blasted thing take a few pips here and there. :lol:

Thanks for your kind words also. Much appreciated.

Cheers

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
musky
Trader
Posts: 54
Joined: Fri Nov 18, 2011 8:30 pm
Location: Northwoods

Re: Hanover: an auto-trader using Recent Strength

Post by musky »

Great board Steve.
hankeys
Trader
Posts: 21
Joined: Fri Nov 18, 2011 12:55 pm

Re: Hanover: an auto-trader using Recent Strength

Post by hankeys »

and what is your settings in Recent Strength indicator?
numpoint 15
basepoint -1
shift 0
smoothing 1
false
false
0D
3TR
is that right?
shadow3131 wrote:Hi Steve, thank you very much for all you work. I have been following you since 2007 on FF and your work as helped me become a very profitable trader. Your Trade Manager has forever changes my life.
User avatar
shadow3131
Posts: 7
Joined: Fri Nov 18, 2011 5:58 pm
Location: Victoria BC Canada

Re: Hanover: an auto-trader using Recent Strength

Post by shadow3131 »

Hankeys, I have been using numpoint 25 the rest is as stated in your post.
Panamamike
Trader
Posts: 104
Joined: Tue Nov 15, 2011 11:45 pm

Re: Hanover: an auto-trader using Recent Strength

Post by Panamamike »

Recent strength indi is not loading. The link in post #1 is no longer valid. Can anyone explain what to do to get it to run? It is running fine on my demo account.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Hanover: an auto-trader using Recent Strength

Post by SteveHopwood »

Panamamike wrote:Recent strength indi is not loading. The link in post #1 is no longer valid. Can anyone explain what to do to get it to run? It is running fine on my demo account.
Someone pm'd me about this last week, but I accidentally deleted the pm before replying - thanks to that individual whoever it was.

It seems that links can get 'broken' when I copy a page from FF and post it here. I have repaired the link and will look at the others now. 'Broken' links have .. in them.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Hanover: an auto-trader using Recent Strength

Post by SteveHopwood »

I have repaired the links. They appear to be working ok now.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Post Reply

Return to “Automated trading systems”