Multiple timeframes - page 2

To add comments, please log in or register
Sergey Golubev
Moderator
117065
Sergey Golubev  
sailor:
Yes :-) know i startet to be quite fancy to se how other indicators look on intraday chart but with the bigger pigture . Is it posible to do the same with a moving average ? sailor

Say again.

(did not understand).

sailor
492
sailor  

lol my english.. what i mean is this its posible to change macd in the indicator window to look at daily chart while on intraday picture what i mean with the moving average is it posible to do the same ?

sailor

sailor
492
sailor  

Im in litle doubt did u understand what i mean ( movingaverage) ?

Sailor

Sergey Golubev
Moderator
117065
Sergey Golubev  
sailor:
Im in litle doubt did u understand what i mean ( movingaverage) ? Sailor

Yes I understand what you mean. But I could not make it.

I tried but could not. Sorry.

sailor
492
sailor  

Roger thanks for the help..

Sailor

sailor
492
sailor  
lowphat
466
lowphat  

here is a possible way of doing it unless i am misunderstanding

//+------------------------------------------------------------------+

//| PhatMultiMA

//| Lowphat © 2006

//+------------------------------------------------------------------+

#property copyright "Lowphat © 2006"

#property link "https://www.forex-tsd.com/ "

#property indicator_separate_window

#property indicator_buffers 2

#property indicator_color1 Blue

#property indicator_color2 Yellow

extern double Chart1=15;

extern double Chart2=30;

extern double Per1=15;

extern double Per2=15;

double ExtMapBuffer1[];

double ExtMapBuffer2[];

int init()

{

SetIndexStyle(0,DRAW_LINE);

SetIndexBuffer(0,ExtMapBuffer1);

SetIndexStyle(1,DRAW_LINE);

SetIndexBuffer(1,ExtMapBuffer2);

return(0);

}

int deinit()

{

return(0);

}

int start()

{

int i,limit;

int counted_bars=IndicatorCounted();

if(counted_bars>0) counted_bars--;

limit=Bars-counted_bars;

for(i=0; i<limit; i++)

ExtMapBuffer1=iMA(NULL,Chart1,Per1,0,MODE_EMA,PRICE_CLOSE,i);

for(i=0; i<limit; i++)

ExtMapBuffer2=iMA(NULL,Chart2,Per2,0,MODE_EMA,PRICE_CLOSE,i);

return(0);

}

sailor
492
sailor  

thanks.. looks like it is working

sailor

Anthony
256
Anthony  

MTF Indicators

Hi all,

I just wanted to let you know that I started a new thread for Multi TimeFrame indicators. (Wasn't paying attention when I came to the site today. Probably could have just posted them here.) Anyway, I've posted 5 MTF indicators and you can use the code as a template to create any other MTF indicators you may want.

Multi-TimeFrame set 1 contains:

#MTF_MovingAverage.mq4

#MTF_PSar.mq4

#MTF_RSI.mq4

#MTF_MACD.mq4

#MTF_CCI.mq4

https://www.mql5.com/en/forum/173574

Keris

sailor
492
sailor  

hey keris i did see great :-) i will join u

sailor

12
To add comments, please log in or register