Multi Timeframe Indicators - page 1025

Michael Hand
173
Michael Hand  

Can this be made multi time frame please.

William Snyder
9493
William Snyder  
stonehome:
here the Code :

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

//| t_ma.mq4 |

//| |

//| |

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

#property copyright ""

#property link ""

#property indicator_chart_window

#property indicator_buffers 7

#property indicator_color1 MediumBlue

#property indicator_color2 Blue

#property indicator_color3 DodgerBlue

#property indicator_color4 DeepSkyBlue

#property indicator_color5 SkyBlue

#property indicator_color6 Aqua

#property indicator_color7 Aquamarine

#property indicator_width1 1

#property indicator_width2 1

#property indicator_width3 1

#property indicator_width4 1

#property indicator_width5 1

#property indicator_width6 1

#property indicator_width7 1//---- buffers

double ExtMapBuffer1[];

double ExtMapBuffer2[];double ExtMapBuffer3[];

double ExtMapBuffer4[];double ExtMapBuffer5[];

double ExtMapBuffer6[];double ExtMapBuffer7[];

extern int MA_Period=100;

extern int ad1 = 2;

extern int ad2 = 4;

extern int ad3 = 6;

extern int ad4 = 8;

extern int ad5 = 10;

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

//| Custom indicator initialization function |

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

int init()

{

//---- indicators

SetIndexStyle(0,DRAW_LINE);

SetIndexBuffer(0,ExtMapBuffer1);

SetIndexStyle(1,DRAW_LINE);

SetIndexBuffer(1,ExtMapBuffer2);

SetIndexStyle(2,DRAW_LINE);

SetIndexBuffer(2,ExtMapBuffer3);

SetIndexStyle(3,DRAW_LINE);

SetIndexBuffer(3,ExtMapBuffer4);

SetIndexStyle(4,DRAW_LINE);

SetIndexBuffer(4,ExtMapBuffer5);

SetIndexStyle(5,DRAW_LINE);

SetIndexBuffer(5,ExtMapBuffer6);

SetIndexStyle(6,DRAW_LINE);

SetIndexBuffer(6,ExtMapBuffer7);

//----

return(0);

}

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

//| Custom indicator deinitialization function |

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

int deinit()

{

//----

//----

return(0);

}

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

//| Custom indicator iteration function |

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

int start()

{

int counted_bars=IndicatorCounted();

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;

int limit = MathMin(Bars-counted_bars,Bars-1);

if (ad1<0) limit=MathMax(limit,-ad1);

if (ad2<0) limit=MathMax(limit,-ad2);

if (ad3<0) limit=MathMax(limit,-ad3);

if (ad4<0) limit=MathMax(limit,-ad4);

if (ad5<0) limit=MathMax(limit,-ad5);

for(int i=limit;i>=0;i--)

{

ExtMapBuffer1=iMA(NULL,0,MA_Period,0,MODE_LWMA,PRICE_OPEN,i);

ExtMapBuffer2=(ExtMapBuffer1+ExtMapBuffer1+ExtMapBuffer1+ExtMapBuffer1+ExtMapBuffer1+ExtMapBuffer1)/6.0;

}

for( i=limit;i>=0;i--)

{

ExtMapBuffer3= ExtMapBuffer2; if (ExtMapBuffer3==0) ExtMapBuffer3=EMPTY_VALUE;

ExtMapBuffer4= ExtMapBuffer2; if (ExtMapBuffer4==0) ExtMapBuffer4=EMPTY_VALUE;

ExtMapBuffer5= ExtMapBuffer2; if (ExtMapBuffer5==0) ExtMapBuffer5=EMPTY_VALUE;

ExtMapBuffer6= ExtMapBuffer2; if (ExtMapBuffer6==0) ExtMapBuffer6=EMPTY_VALUE;

ExtMapBuffer7= ExtMapBuffer2; if (ExtMapBuffer7==0) ExtMapBuffer7=EMPTY_VALUE;

}

//----

return(0);

}

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

Stonehome, made a Hma version.

t_hma.mq4

Files:
t_hma.mq4 4 kb
t_hma.png 73 kb
Rita Gradwohl
12
Rita Gradwohl  

fantastic

Many many thanks mr mrtools

Jack

Osiris
1876
Osiris  
mwambaFX:
Hi Mladen ... please check this indicator.. the MTF function is not working... thank you

rk-kcv8-wmtf-txt-zo-trend_arrows.mq4

PS. I think my posts have been deleted.

Hi Mrtools and Mladen able to help me with this? MTF function is so buggy. Many thanks

William Snyder
9493
William Snyder  
mwambaFX:
Hi Mladen ... please check this indicator.. the MTF function is not working... thank you

rk-kcv8-wmtf-txt-zo-trend_arrows.mq4

PS. I think my posts have been deleted.

MwambaFX, made this version and the mtf is working, for the text it location is controlled by valueLoc.

keltner_channels_alerts__text_mtf.mq4

Osiris
1876
Osiris  
mrtools:

MwambaFX, made this version and the mtf is working, for the text it location is controlled by valueLoc.

keltner_channels_alerts__text_mtf.mq4

God bless you my brother. I deeply mean it.

mikocairo
52
mikocairo  

Dear MR malden and all devloper i need PZLopezTrend indi to be mtf

you can read data from the indicator using the iCustom() function as exemplifiedin https://www.mql5.com/en/docs/indicators/icustom

i attach the indi wait your help thank

Files:
William Snyder
9493
William Snyder  
mikocairo55:
Dear MR malden and all devloper i need PZLopezTrend indi to be mtf

you can read data from the indicator using the iCustom() function as exemplifiedin https://www.mql5.com/en/docs/indicators/icustom

i attach the indi wait your help thank

Mikocairo55, not able to do anything with an ex4 file.

mikocairo
52
mikocairo  

is not it possible to turn it to mq4 if not all you need it to be mq4

Mladen Rakic
153781
Mladen Rakic  
mikocairo55:
is not it possible to turn it to mq4 if not all you need it to be mq4

mikocairo55

There is no problem at all to make a multi time frame indicator using (and having) just another ex4 file

But :

1. I hate having 2 instead of 1 file just in order to have a multi time frame version

2. That indicator is, as far as I know, a commercial indicator. And not just that : it is a renamed half trend that was, in that form, made at this forum (even a multi time frame version). So why making something (and helping some "commercial" same old story) that is a usual story of taking a free indicator and then pushing it as a commercial indicator, when all that is needed is already posted at this same forum?