Indicateurs multitemporels - page 1022

 
stonehome:
Salut mntiwana,

aimerait une autre MA ; pas la LWMA mais la MA Hull (HMA)

si cela pouvait se faire, ce qui était vraiment bien

stonehome

Salut stonehome

comme solution alternative voici hull ribbon,beaucoup d'ajustements avec lesquels tu peux jouer,mais si seulement celui de ton indicateur est nécessaire alors boss pourra mieux te guider.merci.

Variation du ruban de coque mtf nmc.mq4

 

Non, non non, ce n'est pas la solution

Je voudrais t_ma dans la version HMA

S'il vous plaît, aidez-moi

merci stonhome

 
stonehome:
Voici le 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 (bleu ciel profond)

#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//---- tampons

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 ;

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

//| Fonction d'initialisation de l'indicateur personnalisé |

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

int init()

{

//---- indicateurs

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) ;

}

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

//| Fonction personnalisée de désinitialisation de l'indicateur |

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

int deinit()

{

//----

//----

return(0) ;

}

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

//| Fonction d'itération de l'indicateur personnalisée |

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

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) ;

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

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

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

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

si (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=limite;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) ;

}

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

maison en pierre

Ce n'est pas la moyenne de la coque. C'est un lwma quelque peu lissé avec un certain décalage effectué dessus.

 

Mladen c'est bon,

mais je voulais juste écrire, si vous pouvez me donner le changement de cet indicateur (t_ma) ! !!!!

dans une HMA (Hull Moving Average) - Version

le fait ou ne le fera pas

Merci en tout cas pour vos efforts

stonehome

 

Est-ce que cela peut être fait en plusieurs fois, s'il vous plaît.

Dossiers :
 

Mise à jour Super tendance volty like : SuperTrend volty like 2 nmc.mq4

A l'origine, il a été posté ici : https://www.mql5.com/en/forum/173574/page333

 
stonehome:
ici le 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 (bleu ciel profond)

#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//---- tampons

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 ;

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

//| Fonction d'initialisation de l'indicateur personnalisé |

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

int init()

{

//---- indicateurs

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) ;

}

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

//| Fonction personnalisée de désinitialisation de l'indicateur |

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

int deinit()

{

//----

//----

return(0) ;

}

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

//| Fonction d'itération de l'indicateur personnalisée |

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

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) ;

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

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

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

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

si (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=limite;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, a fait une version Hma.

t_hma.mq4

Dossiers :
t_hma.mq4  4 kb
t_hma.png  73 kb
 

fantastique

Merci beaucoup à M. mrtools.

Jack

 
mwambaFX:
Bonjour Mladen ... veuillez vérifier cet indicateur ... la fonction MTF ne fonctionne pas ... merci.

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

PS. Je pense que mes messages ont été supprimés.

Bonjour Mrtools et Mladen peuvent-ils m'aider ? La fonction MTF est tellement boguée. Merci beaucoup

 
mwambaFX:
Salut Mladen ... s'il vous plaît vérifiez cet indicateur ... la fonction MTF ne fonctionne pas ... merci.

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

PS. Je pense que mes messages ont été supprimés.

MwambaFX, a fait cette version et le mtf fonctionne, pour le texte l'emplacement est contrôlé par valueLoc.

keltner_channels_alerts__text_mtf.mq4