View Single Post
  #41 (permalink)  
Old 03-14-2006, 06:04 PM
keris2112's Avatar
keris2112 keris2112 is offline
Senior Member
 
Join Date: Dec 2005
Location: California, US
Posts: 129
keris2112 is on a distinguished road
Quote:
Originally Posted by sailor
Any know where to change in the code so it can be posible use this function on a movingaverage ------ extern string Currency = "NULL";-------- ..

I have tryed to figure where to write rest of code but couldnt.. Newdigital di it somewhile ago with macd.. http://www.forex-tsd.com/attachments...f?d=1135891592 ...

It is my idea to use keris MTF movingaverage for correlation analysis im just wondering how it will look like

sailor
sailor,
Try this: #MTF_MovingAverage Correlation

It will plot 2 moving averages, 1 for the current symbol and 1 for whatever symbol you enter. You can still set TimeFrame for whatever you want.

There are 2 new Inputs:
  1. Currency (You must use ALL CAPS when you enter a currency for comparison.) - Default is empty, so all you'll see is 1 moving average until you enter a value for this input.)
  2. CorrBars (How many bars back you want the correlation to start.) - Default=100
The MA value for the correlated currency is, by necessity, not correct. (The price for the correlated currency is usually too different than the base currency. You wouldn't be able to see it on the chart, so it is "normalized" to fit.) But, the "look" of the MA is correct, so you should be able to make a good correlation comparison.

I hope this is what you want. Let me know if you find anything wrong with it or you'd like something else.

I've attached 2 pics to show what it looks like. The pics show the following:
EURUSD H4 Chart
SMA(13) - D1 TimeFrame
SMA(13) - D1 TimeFrame for USDCHF

EURUSD H4 Chart
SMA(5) - D1 TimeFrame
SMA(5) - D1 TimeFrame for GBPUSD

Keris
Attached Images
File Type: gif mtf ma correlation.gif (18.3 KB, 3317 views)
File Type: gif mtf ma correlation 2.gif (14.6 KB, 2960 views)
Attached Files
File Type: mq4 #MTF_MovingAverage Correlation.mq4 (4.9 KB, 992 views)

Last edited by keris2112; 03-14-2006 at 08:56 PM.
Reply With Quote