euro has 1.2000 and usdjpy 117.50 ( look after decimal )
I was going to post about that and I forgot. As it is, it doesn't work with some of the pairs because of what you described above. I'm going to have to try to wrap my head around the math to come up with a general multi-purpose formula that will normalize all of them. I think I'll ask Code Guru or Igor for help with that.
I threw that together pretty quickly while on a break at work, so let me work on it tonight and I'll see if I can't get all the bugs worked out.
Also, I updated the indicator so that CorrBarrs defaults to 50 instead of 100. Doesn't really matter what it is, but on the higher timeframes (D1), sometimes the prices seperate so much over say 100 days, that you don't see both MAs on the screen.
I have tryed to figure where to write rest of code but couldnt.. Newdigital di it somewhile ago with macd.. https://c.mql5.com/forextsd/forum/2/macd_gbp_on_jpy_h1.gif ...
It is my idea to use keris MTF movingaverage for correlation analysis im just wondering how it will look like
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:
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
SMA(5) - D1 TimeFrame
SMA(5) - D1 TimeFrame for GBPUSD
I remmember i had the same problem with the gridbuilder before i posted it a programmer helped me and it should be sommething with divisor i wraped out som of the code from gridbuilder
double Divisor = 0.1/Point;
HighPrice = MathRound(High * Divisor);
//SL = High;
LowPrice = MathRound(Low[Lowest(NULL,0,MODE_LOW, Bars - 1, 2)] * Divisor);
GridS = GridSpace / 10;
Multi Timeframe Indicators
Hello, Dear Keris:
Would you please help to convert this MACD-2 to Multi timeframe?
Thankd a lot
//| macd-2.mq4 |
//| Copyright ?2004, MetaQuotes Software Corp. |
//| http://www.metaquotes.net/ |
#property copyright "Copyright ?2004, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net/"
//---- indicator settings
#property indicator_buffers 4
#property indicator_color1 Magenta
#property indicator_color2 Yellow
#property indicator_color3 White
#property indicator_color4 Yellow
//---- indicator parameters
extern int FastEMA=12;
extern int SlowEMA=26;
extern int SignalEMA=8;
//---- indicator buffers
//| Custom indicator initialization function |
//---- 2 additional buffers are used for counting.
//---- drawing settings
//---- 4 indicator buffers mapping
Print("cannot set indicators\' buffers!");
//---- name for DataWindow and indicator subwindow label
//---- initialization done
//| Oscillator |
//---- check for possible errors
//---- last counted bar will be recounted
//---- macd counted in the 1-st additional buffer
for(int i=0; i<limit; i++)
//---- signal line counted in the 2-nd additional buffer
for(i=0; i<limit; i++)
//---- dispatch values between 2 buffers
for(i=limit-1; i>=0; i--)
Here's the MTF version of MACD-2. Remember, you need both the original macd-2.mq4 and the new #MTF_MACD-2.mq4 for it to work.
Thanks so much for the help, Keris. It really solved my big problem.
Kerrie or other do u know if it is posible to have like and cloned moving average pips above/ below existing movingaverage?
ups just forget my last post but if any1 was thinking of the same. use in the indicator property window level add. But kerry do u know why we cant do that on the MTF movingaverage
Custom indicators don't support levels. I've modified #MTF_MovingAverage.mq4 so that you can add levels (simulated). Use the inputs tab. If you want levels, change UseLevels to True. Then, you can set Levels 0-5 to whatever you want.
See pics. Let me know if it works ok for you.
i used your MTF_moving average on my charts it is very very good i downloaded before i dont know if this one is different but your work is just marvelous
Please enable the necessary setting in your browser, otherwise you will not be able to log in.