Forex Factory (https://www.forexfactory.com/forum.php)
-   Platform Tech (https://www.forexfactory.com/forumdisplay.php?f=69)
-   -   Currency Strength Indicator (https://www.forexfactory.com/showthread.php?t=300750)

flotsom Jun 24, 2011 10:30am | Post# 1

Currency Strength Indicator
 
1 Attachment(s)
I am hoping I can improve the use of currency strength indicators, but before I proceed I would like to know if what I'm proposing is even possible and if so, how practical/easy to implement.

The typical strength indicators will give some representation of how much a currency has moved compared to all other currencies it's matched with, and of course this let's you see if typically the USD is strong when compared to other currencies. These indicators will let you identify a strong currency and a weak one, and then you can select the corresponding pair to trade with a slightly better edge. I'm not saying anything new here.

However I don't think they give the whole picture and I would definitely like to easily extract more information from them. For me, knowing which currency has been strongest and which has been weakest is not the best information. In the image below during point "0", you can see that the currency represented by the orange line is the strongest and the green line is the weakest. Regular use of such an indicator would suggest you trade the pair which contains those 2 currencies and trade in the direction of strong against weak. But my experience says that just because one is strong and the other weak (in the past) doesn't mean the pair is more likely to carry on moving in that direction. The pair at this stage could in fact be completely range bound with no obvious direction. So trading the strongest against the weakest in this sense is not providing any real edge.

What I do find does provide an edge is trading the most rapidly strengthening currency against the most rapidly weakening currency. From point "A" you can see two currencies starting to diverge away from each other, and these moments do genuinely offer an edge (from my own personal experience at least). Now in the case of point "A" it is very easy to see the divergence, the rapidly strengthening currency is above the rapidly weakening and they are moving in opposite directions, so the corresponding pair is easy to trade.

But.....at point "B" you have 2 currencies which begin rapidly strengthening and weakening. The moves are far more dramatic than anything else on the chart and trading this pair would be great. The problem is the rapidly weakening currency (orange) is still "stronger" according to the chart than the rapidly strengthening currency (blue). By the time the two lines have crossed and point "C" and their "strength" values have flipped as to which is stronger or weaker than the other, we may have missed most of the move.

What I would like to do is identify which currency is strengthening or weakening most rapidly, regardless of what it's actual "strength" value may be. So in the chart image I've posted, at point "B" the green line is still the weakest on the chart, and the orange line is the strongest. But orange is weakening the most rapidly and green is strengthening most rapidly, and this can give some excellent moves to catch. I'm far more interested in which currencies are gaining or losing strength the fastest as opposed to what their strength value is.

And so with a long explanation out of the way, is it possible to grab the data on a tick by tick basis from metatrader for example, and feed it directly in to an Excel spread sheet or indicator of some description, which would then print out a bar chart or arrow or similar, identifying which currency is moving the fastest and in which direction?

There is a commercial indicator on the market which does something similar to what I am after, but it requires you to manually input values in to a spread sheet. I would want the spread sheet or indicator updated automatically directly from the metatrader charts. I am not looking for someone to build this for me, only want to know if what I am proposing is technically possible.

I am very grateful to any technically skilled person who can understand the explanation I have given here, and answer me as to what can be achieved.
Name:  forexStrength.jpg
Views: 171131
Size:  26 KB

futurespec Jun 24, 2011 11:04am | Post# 2

That sounds relatively easy once you have the original indicator. A good coder should have no problem.

Not sure that my coding is up to that but may be tempted to look later.

bug Jun 24, 2011 12:20pm | Post# 3

2 Attachment(s)
There are several versions of the CCFp indicator that have a ROC display slaved to the left corner of the indicator window. The original CCFp didn't have that display, but it was added after several members asked for it on this thread. The display shows you the difference between the last two CLOSED candles. It doesn't take the open candle into consideration. If you have any doubts about the validity of the figures on the display, simply open the Data Window and cross-confirm with the indicator values using the previous two bars (you will notice the display figures have been multiplied by some factor of 10 but that was intentionally done to ease the interpretation of said figures).

This is the easy way of doing it. If you want someone to program something for you or do it via Excel then I'm not very handy, I'm afraid.

PS. The green lines = London open
Click to Enlarge

Name: example ccfp.gif
Size: 29 KB
CCFp_v1.0.2cvert.mq4

bug Jun 24, 2011 12:28pm | Post# 4

2 Attachment(s)
flotsom
With your initial post you have summed up the problem that every relative strength trader faces. I hope the indicator I provided above will help you. I have attached a chart below of what I think it is that you're after. If the dark chart captures that, then I think the indicator should be just fine.

Another thing you can do is to look at what your green and orange currencies did before they crossed each other. This is something I discovered while working with CCFp. Note that events (1) and (2) precede event (3) (see light chart below). Knowing, or should I rather say, noticing this is important and can give you some extra room for maneuvering. It could be the difference between a profit or a loss. It took me days of researching to discover this and a few other crucial things (I literally worked from early morning until sundown for two weeks while doing this) and I can tell you that once you begin researching and thinking about this in depth you will start seeing many more ways of practical application (I did).
Name:  reverse.png
Views: 183124
Size:  16 KB
Click to Enlarge

Name: CCFp.png
Size: 86 KB

flotsom Jun 25, 2011 6:28am | Post# 5

Thank you bug, the image you've posted above is exactly the kind of thing I am hoping to identity more easily. Identifying the currencies with the most rapid rate of change is more important to me than identifying the currencies which have remained most consistently strong or weak.

I still intend to get my own custom indicator built. I would rather have something that is not actually attached to MT4 charts as a traditional indicator. I am after a spread sheet style layout which displays a range of information in real time based on a tick by tick basis rather than on closed candles. For instance I want a bar graph showing the strength of a currency in the normal manner with a numerical value assigned to it. Another bar graph showing the rate of change for a currency and in which direction. And another bar graph showing the most favourable pair combination for which pairs have the currencies showing the greatest rate of change in opposite directions.

As I've said, there is a commercial indicator similar to this (I don't want to mention the name) but it requires you to input the data manually to a spread sheet and I would want it to extract the information automatically from the MT4 data feed. Do you or anyone else here know if it is possible to collect data automatically from a feed directly in to a spread sheet or similar tool for the kind of thing I am hoping to do?

Thanks for your help once again.

futurespec Jun 25, 2011 6:36am | Post# 6

Easy to get the data to Excel ...

(eg ='MT4'|BID!GBPUSD in an XL cell) to get real prices into the XL (enable DDE in MT4)

The problem then is to use Vb code to populate the spreadsheet... not too difficult but I would think somewhat processor hungry.

flotsom Jun 25, 2011 6:55am | Post# 7

Hmmm, I was hoping to keep the processor usage to a minimum. One of the things I find with these indicators in MT4 to begin with is they use up a lot of CPU and slow or even stalls things for me. That's one of the reasons I use a separate strength indicator which takes its data feed from somewhere else.

I'm assuming from what you say about importing data from MT4 to Excel that I should technically be able to do the same with a different data source? So if I paid for a better data feed, in theory I should be able to achieve my desired results? Or would the CPU usage still be high with this kind of idea?

What about the idea of hosting my spread sheet print out on a different server online. For instance get my data feed going to a website domain that I buy, and then getting my indicator to "print" the results display on the webpage therefore not using any CPU from my own computer? I have no idea how I would achieve this, but if it is possible I could easily find someone to design it for me.

futurespec Jun 25, 2011 7:13am | Post# 8

Starting to get out of my depth now... (I responded to your Q about whether it could be done).

Really do not see what you hope to gain over one of the indi's posted above. They can be adapted to what you need I think.

Do not look for a sledge hammer to crack this nut!

Anyway off to watch F1 now.

GL.

ForexJack Jun 25, 2011 10:44am | Post# 9

I am hoping I can improve the use of currency strength indicators, but before I proceed I would like to know if what I'm proposing is even possible and if so, how practical/easy to implement.

The typical strength indicators will give some representation of how much a currency has moved compared to all other currencies it's matched with, and of course this let's you see if typically the USD is strong when compared to other currencies. These indicators will let you identify a strong currency and a weak one, and then you can select the corresponding...
I have been toying with ideas like this for a long time. Depending on the details I'd like to do something with you. Do you have the spread sheet that we can use as a starting place?

Cypr3ss Jun 25, 2011 2:17pm | Post# 10

1 Attachment(s)
Attached is an excel sheet that you can use. I got this on FF and adapted for my use. The creator of the excel sheet eventually released a commercial strength meter as stand alone program.
StrengthMetermLive.xls

ForexJack Jun 25, 2011 7:48pm | Post# 11

Doing an indicator to match the math in the spread sheet would not be bad.

What would you say the trading signals would be once the indicator is done?

flotsom Jun 26, 2011 4:44am | Post# 12

Thank you all for your help. Now that I know that what I am proposing is possible and I have an idea for how it will work, I will find a coder to help me put the whole thing together. If it works the way I hope, and it doesn't bring the average computer to a grinding halt from using too much memory, I will be happy to post the final indicator in this forum for others to use.

Thanks again for the assistance and answering my questions.

ForexJack Jun 26, 2011 12:34pm | Post# 13

Your welcome. If I can do anymore let me know.

FYI: I am a coder.

ForexJack Jun 26, 2011 12:56pm | Post# 14

A thought I have about the indicator. The excel sheet uses the daily high and low, maybe because that is what the originator wanted or because it is because that is only what Mt4 provides with DDE, I don't know. But I think it would be wise to look back a configurable amount of bars to determine high and low instead of the abritary daily high and low.

flotsom Jun 26, 2011 1:53pm | Post# 15

1 Attachment(s)
I think the easy option will be to get this indicator to print out in metatrader to begin with rather than exporting to a spread sheet.I've seen some examples on other threads of the type of thing I am after, but not quite based on the same "strength" factors as I want. Below is an image of the type of thing I hope to build.

You can see there are 3 print outs in the indicator.

1. Shows a plain and simple currency strength reading. There are plenty of indicators that show this in a traditionally squiggly line format. I want it shown as bars.

2. Shows the rate at which a currency is gaining or losing strength. i.e. which is getting stronger or weaker the quickest. This is what I'm most interested in knowing as quickly and easily as possible.

3. Shows the corresponding currency pair which contains the 2 currencies which are moving away from each other in strength most rapidly.

So from the image below, you can see that in pure strength readings, the strongest pairs are the EUR and GBP, whilst the weakest is the USD. Many advocates of strength meters would suggest you pair the strong against the weak and trade the EUR/USD long and the GBP/USD long. However on the rate of change chart, you can see that the EUR is in fact barely moving, The USD is actually gaining strength most rapidly, while the GBP and CHF are weakening most rapidly. So for me the best pairs to trade are the ones whose 2 currencies are moving away from each other the greatest (more divergence). Therefore the indicator tells us the best trades could be to short the GBP/USD and go long the USD/CHF.

Now all this information can be derived from any one of the excellent strength indicators on this forum, but I would like to create something visually easier to interpret as per my image below. So I am going to pay to have a coder create this for me. Of course to have a coder create this, I need to be very exact in my instructions, and to that end I am going to need to explain a precise mathematical formula for determining strength and rate of change. Unfortunately for me I have no idea how these indicators calculate these things.

Soooooo............if there is anyone willing to help me with what calculations are measured to determine strength and rate of change I would be very VERY grateful. Are they measured on the number of pips a currency moves, or the percentage range of movement (percentage of what....the daily average??), a combination, or something completely different?

As always, any help or suggestions are appreciated.
Click to Enlarge

Name: CYX.jpg
Size: 47 KB

Cypr3ss Jun 26, 2011 1:59pm | Post# 16

1 Attachment(s)
As far as i can tell, the attached indicator was based on the the EXCEL sheet. I am sure it can be adapted from using the daily high/low to use something like iHigh(NULL,Symbol(),(iHighest(NULL,0,MODE_HIGH,20,0)));

where the 20 represents the number of bars back that you want to search for the high.


Note, that in the present form you have over all sentiment for the dar(because of the daily bar), once you start using the bars option, you no have to decide what time frame you want to use it on.
xMeter Indicator2.mq4

bug Jun 26, 2011 2:02pm | Post# 17

flotsom
Have you tried using the CCFp-Diff indicator posted by FerruFX on this thread? It has everything you need (example below). I don't understand why you would need to program something new. There are numerous version of the CCFp-Diff indicator which and you edit them to suit your needs (you can edit the moving average settings or use bars only, you can choose to use current bars or only closed bars etc.). Have a thorough look at the thread (it's the same thread I linked to before).

http://www.forexfactory.com/attachme...1&d=1224058623

flotsom Jun 26, 2011 2:09pm | Post# 18

Hi Bug, I've been reading the thread which contains that indicator from ferrufx which is what has given me the idea for what I want. Having read the thread (granted not all 134 pages yet) I get the impression it bases it's values for strength on moving averages, and then only for the previous 2 closed bars/candles. If I am correct in my assumption, I'm not sure I am confident in the genuine strength reading this gives. This is just me being fussy I know. My problem is I really have to know and have full confidence I know what is being calculated in an indicator before I would even begin to trust it or use it to aid my trading. That's why I'm inclined to start from scratch getting my own coded exactly as I desire.

Of course I may be completely wrong about the CCfp-Diff indicator so I will continue to learn more about it. My gut feeling is I would rather use something like Hanovers recent strength indicator in terms of how strength is calculated, and then go from there developing my own graphical representation.

bug Jun 26, 2011 2:41pm | Post# 19

flotsom
If I may be frank with you, I think you're being too cautious, too afraid to fail, maybe a perfectionist even. I recognize this because I catch myself being too cautious at times as well and it helps to remind myself to take on some risks at times (I think my signature says it all). You didn't mention whether you had tested the CCFp-Diff indicator but from what you wrote I am making the assumption that you did not. I highly recommend you ahead with the testing and only then start judging the indicator. It might look to you as if there is too much lag or it can't be used because you don't know for sure what's inside there, but please go ahead and test it for at least 50 hours using different currency pairs, timeframes and indicator settings. The indicators I have provided links to and others that are available on Onix (see link below), TSD (you would need to Google that) and FF are more than enough for your purposes as you described them in above posts. Give 'em a chance! Give yourself a chance.

If you have doubts about what was done to arrive at the readings given off by CCFp-Diff (which is based on CCFp) or the CCFp or even CFP, CCP or other indicators belonging to the same family you should really read these two articles again and again:
http://articles.mql4.com/422
http://articles.mql4.com/484

If you have any further questions or doubts, there is some additional info provided on a russian forum that you can read via Google Translate: http://www.onix-trade.net/forum/index.php?showtopic=107

I get the impression it bases it's values for strength on moving averages, and then only for the previous 2 closed bars/candles. If I am correct in my assumption, I'm not sure I am confident in the genuine strength reading this gives.
First of all, there needs to be some lag introduced so that your lines aren't jumping all over the place so I don't quite understand what you're worried about. If you don't want the lag, you can change the moving average setting to 1 and 2 (I'm not sure 1 and 1 would even work).

The other issue is a bit more difficult but there are two potential solutions:
(1) go to a higher timeframe
(2) find a coder. Basically you would have to have the coder extract the value of a bar N periods back in time and have it compared to the current closed bar. I think this solution is a bit of an overkill. Any marked change will be visible on the chart and on a higher timeframe CCfp and CCFp-Diff reading.

bug Jun 26, 2011 2:43pm | Post# 20

Of course I may be completely wrong about the CCfp-Diff indicator so I will continue to learn more about it. My gut feeling is I would rather use something like Hanovers recent strength indicator in terms of how strength is calculated, and then go from there developing my own graphical representation.
Seriously man, you don't need to reinvent the wheel.


© Forex Factory