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:
- 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.)
- 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