• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 9:24am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 9:24am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Hanover replies to PMs 1,424 replies

Trading profitably using Recent Strength 58 replies

Hanover - can you help me with MT4 qs please? 4 replies

  • Commercial Content
  • /
  • Reply to Thread
  • Subscribe
  • 69
Attachments: Hanover: an auto-trader using Recent Strength
Exit Attachments
Tags: Hanover: an auto-trader using Recent Strength
Cancel

Hanover: an auto-trader using Recent Strength

  • Last Post
  •  
  • 1 Page 23456 17
  • 1 Page 234 17
  •  
  • Post #21
  • Quote
  • Oct 13, 2011 4:48pm Oct 13, 2011 4:48pm
  •  Invisible
  • | Joined Nov 2009 | Status: Member | 469 Posts
FF is strangely quiet at the moment.... and now I know why: Steve "The Coding Machine" Hopwood is out of town.

We miss you, Steve
 
 
  • Post #22
  • Quote
  • Oct 13, 2011 4:50pm Oct 13, 2011 4:50pm
  •  stimpy
  • | Membership Revoked | Joined Sep 2010 | 303 Posts
Quoting Invisible
Disliked
FF is strangely quiet at the moment.... and now I know why: Steve "The Coding Machine" Hopwood is out of town.

We miss you, Steve
Ignored
all the forums are.

I have noticed a distinct decline recently in quality and in numbers.

Has everyone been burnt or has everyone made money?

hmmm?
 
 
  • Post #23
  • Quote
  • Oct 13, 2011 4:59pm Oct 13, 2011 4:59pm
  •  Pinhead
  • | Joined Mar 2010 | Status: Member | 322 Posts
I just hope he has his OCCD meds with him.
 
 
  • Post #24
  • Quote
  • Oct 13, 2011 5:18pm Oct 13, 2011 5:18pm
  •  AJvdB
  • | Joined Apr 2009 | Status: Member | 40 Posts
Quoting Invisible
Disliked
FF is strangely quiet at the moment.... and now I know why: Steve "The Coding Machine" Hopwood is out of town.

We miss you, Steve
Ignored
He is taking one of his famous inspiring baths, so fasten your seatbelts,
and be ready to take off.

AJ
 
 
  • Post #25
  • Quote
  • Oct 13, 2011 6:12pm Oct 13, 2011 6:12pm
  •  Invisible
  • | Joined Nov 2009 | Status: Member | 469 Posts
Quoting Pinhead
Disliked
I just hope he has his OCCD meds with him.
Ignored
 
 
  • Post #26
  • Quote
  • Edited 7:15pm Oct 13, 2011 6:54pm | Edited 7:15pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
I forgot to take my meds with me, so my occd is itching like mad, so the 15 ea's I have coded since returning are.................

I do not properly understand how to extract values from the output file generated by Recent Strength. Once I do so, I can make H a much more flexible bot.

 
 
  • Post #27
  • Quote
  • Oct 13, 2011 8:06pm Oct 13, 2011 8:06pm
  •  Invisible
  • | Joined Nov 2009 | Status: Member | 469 Posts
The first thing I thought when I saw you were online was, "He's forgotten his meds!" Then I come to this thread - and sure enough......
 
 
  • Post #28
  • Quote
  • Oct 13, 2011 8:19pm Oct 13, 2011 8:19pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
 
 
  • Post #29
  • Quote
  • Oct 14, 2011 3:17am Oct 14, 2011 3:17am
  •  macman
  • Joined Jan 2009 | Status: Member | 844 Posts
Quoting SteveHopwood
Disliked
I forgot to take my meds with me, so my occd is itching like mad, so the 15 ea's I have coded since returning are.................

I do not properly understand how to extract values from the output file generated by Recent Strength. Once I do so, I can make H a much more flexible bot.

Ignored
In my experience Hanover is very open to help anyone who wants to adapt/use his work.

You probably remember I incorporated his S/R indicator into one of your early EA's (AshFX).

Just drop him a line, and I am sure he will reply.

Best of luck
 
 
  • Post #30
  • Quote
  • Oct 14, 2011 6:46pm Oct 14, 2011 6:46pm
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,092 Posts
Quoting SteveHopwood
Disliked
I do not properly understand how to extract values from the output file generated by Recent Strength. Once I do so, I can make H a much more flexible bot.
Ignored
Steve,

I've had a quick look at your EA and I see you've copied the function LoadRSvalues() from another one of my indys. Good idea, will save you some coding.

What I suggest you also do is include something like the following near the top of your EA:

Inserted Code
#define _AUD 0
#define _CAD 1
#define _CHF 2
#define _EUR 3
#define _GBP 4
#define _JPY 5
#define _NZD 6
#define _USD 7

#define _M1  0
#define _M5  1
#define _M15 2
#define _M30 3
#define _H1  4
#define _H4  5
#define _D1  6
#define _W1  7
#define _MN  8
The LoadRSvalues() function initializes and re-populates the RSvalue[][][] array from the values in the file. You need to run the function only when the data in the file has changed. After the function has been run, simply reference the RSvalue array to get your desired values:

If we use RSvalue[i][j][k], then
i = the currency
j = the timeframe
k = the datapoint#. Point #0 is rightmost point on the RS plot; point #1 is the second point from the right; point #2 is the third point from the right; and so on, up to the number of points being output (set by the NumPoints parameter in RS)

Hence, supposing you want to retrieve the value of the third datapoint for USD,H1, then (using the constants defined earlier) you could use the code:

double value = RSvalue[_USD][_H1][2];

The attached screenshot illustrates how the value relates to the RS plot.

Hope this makes sense.

David
Attached Image (click to enlarge)
Click to Enlarge

Name: Recent_Strength_info.jpg
Size: 174 KB
 
 
  • Post #31
  • Quote
  • Oct 14, 2011 7:36pm Oct 14, 2011 7:36pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting hanover
Disliked
Steve,

I've had a quick look at your EA and I see you've copied the function LoadRSvalues() from another one of my indys. Good idea, will save you some coding.

What I suggest you also do is include something like the following near the top of your EA:

Inserted Code
#define _AUD 0
#define _CAD 1
#define _CHF 2
#define _EUR 3
#define _GBP 4
#define _JPY 5
#define _NZD 6
#define _USD 7

#define _M1  0
#define _M5  1
#define _M15 2
#define _M30 3
#define _H1  4
#define _H4  5
#define _D1  6
#define _W1  7
#define _MN  8
The LoadRSvalues()...
Ignored
Fantastic David. I cannot thank you enough.

I was going to follow macman's advice and pm you this weekend. This is better, as we all have the benefit of your expertise.

Cheers. You are a star.

 
 
  • Post #32
  • Quote
  • Oct 15, 2011 1:20pm Oct 15, 2011 1:20pm
  •  stimpy
  • | Membership Revoked | Joined Sep 2010 | 303 Posts
I like the idea of the data points.

As opposed to just saying NZD is srongest and USD is weakest you can measure the acceleration of change over those data points.

You can really see the strength of a currency that way.
 
 
  • Post #33
  • Quote
  • Oct 15, 2011 2:03pm Oct 15, 2011 2:03pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting hanover
Disliked
Steve,

I've had a quick look at your EA and I see you've copied the function LoadRSvalues() from another one of my indys. Good idea, will save you some coding.

What I suggest you also do is include something like the following near the top of your EA:

Inserted Code
#define _AUD 0
#define _CAD 1
#define _CHF 2
#define _EUR 3
#define _GBP 4
#define _JPY 5
#define _NZD 6
#define _USD 7

#define _M1  0
#define _M5  1
#define _M15 2
#define _M30 3
#define _H1  4
#define _H4  5
#define _D1  6
#define _W1  7
#define _MN  8
The LoadRSvalues()...
Ignored
I have just spent a happy half-hour playing with this.

Oh wow, the potential is huge. Thanks again David, on all our behalves.

Nothing will happen immediately folks. I need a bath first.

 
 
  • Post #34
  • Quote
  • Oct 15, 2011 2:06pm Oct 15, 2011 2:06pm
  •  stimpy
  • | Membership Revoked | Joined Sep 2010 | 303 Posts
is the computer waterproof?
 
 
  • Post #35
  • Quote
  • Oct 15, 2011 2:27pm Oct 15, 2011 2:27pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting stimpy
Disliked
is the computer waterproof?
Ignored
Get a grip fella. Of course it is. How do you think it survives my baths?

Just remember, I am not actually human. **I AM EPSILON MEGASTAR**

Oops. Another brief reversion to type there. Must stop doing that. I will take some meds.......
 
 
  • Post #36
  • Quote
  • Oct 15, 2011 2:30pm Oct 15, 2011 2:30pm
  •  stimpy
  • | Membership Revoked | Joined Sep 2010 | 303 Posts
Quoting SteveHopwood
Disliked
Get a grip fella. Of course it is. How do you think it survives my baths?

Just remember, I am not actually human. **I AM EPSILON MEGASTAR**

Oops. Another brief reversion to type there. Must stop doing that. I will take some meds.......
Ignored
uh oh.

the robots have taken over.

Im a cheaper alternative and you can call me Optimus Primark
 
 
  • Post #37
  • Quote
  • Oct 15, 2011 6:40pm Oct 15, 2011 6:40pm
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,092 Posts
Quoting SteveHopwood
Disliked
I have just spent a happy half-hour playing with this.

Oh wow, the potential is huge. Thanks again David, on all our behalves.

Nothing will happen immediately folks. I need a bath first.

Ignored
Steve,

This is probably stating the obvious, but the strongest currency has the steepest upward slope, and the weakest has the steepest downward slope. If you want to obtain the slope (for example) of the last 10 hours of USD, then you could use something like:

double slopeUSD = RSvalue[_USD][_H1][0] - RSvalue[_USD][_H1][10];

i.e. the difference between the RS value now, and what it was 10 H1 candles ago.

____________________

@everybody:

A note about some of the advantages of using currency strength —

You may or may not be aware that the prices of currency pairs are noting more than ratios. For example, if I take GBP/USD and multiply it by USD/JPY the result will be GBP/JPY. Let’s test this using their current values, 1.58200 x 77.207 = 122.14109 (courtesy of Windows calculator) while GBPJPY = 122.142, which is a difference of 0.1 pip.

This means that if GBPUSD is in an uptrend, and USDJPY likewise, then I would have harvested more pips by trading GBPJPY instead of either of these majors. Of course we can’t trade in hindsight, but the assumption of ‘trading with the trend’ is that the current uptrends of each of GBPUSD and USDJPY will continue, and their constructive reinforcement means that GBPJPY must necessary trend upward even more so.

As Tom Yeomans says: "pairs don't trend, currencies do". If we plot relative currency strength on the longer term (daily, weekly) TFs, will that give us a technical proxy as to underlying national economic strength? Sure, as with all TA, it's going to be a lagging process, but offsetting that are the following benefits: (1) the technicals will confirm that sentiment agrees with the underlying economic rationale; (2) it removes the need to try to accurately weigh up the offsetting effects of a number of complex economic factors; (3) if these conditions have a more gradual, longer-term impact, then the disadvantaging effect of the 'lag' is reduced, in any case; (4) by trading the strongest currencies against the weakest, we can potentially double the likelihood of trend continuation, i.e. for the trend to reverse completely, the strong currency has to be come weak AND the weak one become strong.

Another advantage of strength is that it merely tells us which pairs to trade, without interfering with our favorite technical strategy. Hence, as Steve has pointed out, we can add a potential “edge” - and more importantly, a completely independent one - to an already profitable strategy.

As an example of using RS to determine which pairs to trade, look at the daily RS plot in the screenshot: AUD (green) is rising strongly, and both USD (white) and JPY (purple) are both falling strongly. Look at the strong, clean uptrend generated by pairing AUD and USD. Then look at the sideways, jagged plot created by pairing highly positive correlated currencies like USD and JPY.

Finally, if you want some more reading (), there's an interesting article about the advantages of using currency strength here.

OK, enough background info, this is Steve's thread, and I want to see how it progresses without undue influence from me. Hence I will make myself scarce.

David
Attached Image(s) (click to enlarge)
Click to Enlarge

Name: 2011-10-16_1133.png
Size: 28 KB
Click to Enlarge

Name: 2011-10-16_1129.png
Size: 76 KB
Click to Enlarge

Name: 2011-10-16_1126.png
Size: 77 KB
 
 
  • Post #38
  • Quote
  • Oct 15, 2011 7:16pm Oct 15, 2011 7:16pm
  •  astral77
  • | Joined Nov 2009 | Status: Member | 1,196 Posts
Quoting hanover
Disliked
Steve,
This is probably stating the obvious, but the strongest currency has the steepest upward slope, and the weakest has the steepest downward slope... Look at the strong, clean uptrend generated by pairing AUD and USD. Then look at the sideways, jagged plot created by pairing highly positive correlated currencies like USD and JPY...OK, enough background info, this is Steve's thread, and I want to see how it progresses without undue influence from me. Hence I will make myself scarce.
David
Ignored
David

Thanks very mcuh for your informative post. I think I speak for everyone (in particular STEVE) when I say we would love you to have as much influence as possible to the progress of this thread (as the creator of the recent strength indi). We are well aware that you are a full time programmer and as such the last thing you want to do when you get home and wish to chill out is to sit front of the screen and banging on the keyboard. So we gratefully accept what ever inforamtion you can provide. Speaking personally as a trader who prefers "RANGE" trading to trend trading, your indicator opens new possibilities for people like me. The only reason I prefer range to trend is because I always seem to enter trades at the end of the trend (something inspector Clouseau and I have in common in trading)

Kind regards
P.S. CAN YOU PLEASE LET US HAVE YOUR SETTING FOR THE RECENT STRENGTH. ALTHOUGH MY CHART SHOWS THE SAME INFORMATION BUT THE LINES ARE NOT AS SMOOTH AND CLEAR AS YOUR CHART
 
 
  • Post #39
  • Quote
  • Oct 15, 2011 9:09pm Oct 15, 2011 9:09pm
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,092 Posts
Quoting astral77
Disliked
CAN YOU PLEASE LET US HAVE YOUR SETTING FOR THE RECENT STRENGTH.
Ignored
They are as follows:

Inserted Code
   TimeFrames               = "M1, M5, M15, M30, H1, H4, D1, W1, MN";
   NumPoints                = 20;
   BasePoint                = 0;
   HistoricalShift          = 0;
   SmoothingSMA             = 4;
   SetBaseCurrency          = "";
   UseTickvolForWgt         = false;
   ShowPointCount           = false;
   LegendValues             = "-1A";
   LegendVertSpacing        = "3TL";
   TextColor                = Gray;
   TextFont                 = "Comic Sans MS";
   TextSize                 = 13;
   RefreshEveryXMins        = 1;
   OutputFile               = "Output---Recent Strength.CSV";  
;
   ___Currency1___          = "AUD";
   C1_Color                 = Green;
   C1_Style                 = 20;
   C1_Pairs_Wgts            = "AUDCAD,100,AUDJPY,100,AUDNZD,100,AUDUSD,100,EURAUD,100,GBPAUD,100";
   C1_ScaleFactor           = 100;
;
   ___Currency2___          = "CAD";
   C2_Color                 = SaddleBrown;
   C2_Style                 = 20;
   C2_Pairs_Wgts            = "AUDCAD,100,CADCHF,100,CADJPY,100,EURCAD,100,GBPCAD,100,USDCAD,100";
   C2_ScaleFactor           = 100;
;
   ___Currency3___          = "CHF";
   C3_Color                 = Yellow;
   C3_Style                 = 20;
   C3_Pairs_Wgts            = "CADCHF,100,CHFJPY,100,EURCHF,100,GBPCHF,100,USDCHF,100";
   C3_ScaleFactor           = 100;
;
   ___Currency4___          = "EUR";
   C4_Color                 = HotPink;
   C4_Style                 = 20;
   C4_Pairs_Wgts            = "EURAUD,100,EURCAD,100,EURCHF,100,EURGBP,100,EURJPY,100,EURNZD,100,EURUSD,100";
   C4_ScaleFactor           = 100;
;
   ___Currency5___          = "GBP";
   C5_Color                 = Crimson;
   C5_Style                 = 20;
   C5_Pairs_Wgts            = "EURGBP,100,GBPAUD,100,GBPCAD,100,GBPCHF,100,GBPJPY,100,GBPUSD,100";
   C5_ScaleFactor           = 100;
;
   ___Currency6___          = "JPY";
   C6_Color                 = DarkOrchid;
   C6_Style                 = 20;
   C6_Pairs_Wgts            = "AUDJPY,100,CADJPY,100,CHFJPY,100,EURJPY,100,GBPJPY,100,NZDJPY,100,USDJPY,100";
   C6_ScaleFactor           = 100;
;
   ___Currency7___          = "NZD";
   C7_Color                 = CornflowerBlue;
   C7_Style                 = 20;
   C7_Pairs_Wgts            = "AUDNZD,100,EURNZD,100,NZDJPY,100,NZDUSD,100";
   C7_ScaleFactor           = 100;
;
   ___Currency8___          = "USD";
   C8_Color                 = White;
   C8_Style                 = 20;
   C8_Pairs_Wgts            = "AUDUSD,100,EURUSD,100,GBPUSD,100,NZDUSD,100,USDCAD,100,USDCHF,100,USDJPY,100";
   C8_ScaleFactor           = 100;
;
I set BasePoint = 0 because I like to have the lines converging at the RHS of the plot. If you want to have them dispersing from the LHS, set BasePoint = -1. (For more info, read the Parameters section here).

I also tinker with the Cx_ScaleFactor settings.

Note that the Cx_Pairs_Wgts should be set to the pairs that are offered by your brok... sorry, criminal (when in Rome ). The parameter file can have these set up automatically by running the Build Strength Preset File.MQ4 script (see previous link).

I don't mind contributing from a programming standpoint but one reason I don't want to get involved too much to the "strategy" part the robot is that I have my own strategy for using RS (which I've explained many times, elsewhere), and I don't want the robot to become too exclusively a "hanover" creation. Instead, I'd like others to benefit by having their strategies improved by having a strength component added. For example, I tend to trade long term trends, while others might trade intraday ranges. I will write my own robot when I have managed to refine the discretionary elements in my approach down to some codeable rules.

David
 
 
  • Post #40
  • Quote
  • Oct 15, 2011 9:37pm Oct 15, 2011 9:37pm
  •  astral77
  • | Joined Nov 2009 | Status: Member | 1,196 Posts
Thanks very much. Very kind of you. It has been such a long time since I read all of your RS thread that i have forgotten most of it. Have to do a full refresher revision.
Kind regards
 
 
  • Commercial Content
  • /
  • Hanover: an auto-trader using Recent Strength
  • Reply to Thread
    • 1 Page 23456 17
    • 1 Page 234 17
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023