Annonce
Réduire
Aucune annonce.
Ads
Réduire
Mogalef et CDUR pour MT4
Réduire
X
 
  • Filtre
  • Heure
  • Afficher
Tout nettoyer
nouveaux messages

  • Mogalef et CDUR pour MT4

    Bonjour à tous,

    Fasciné par la pertinence des indicateurs Mogalef (Eric Lefort) et CDUR (Gilles Leclerc) je suis à la recherche de ces codes pour MT4.
    J'ai pu remarqué que les codes de ces indicateurs ciculaient pour PRT mais pas MT4.
    Est ce que quelqu'un les aurait? une solution pour "convertir" ces codes en MT4?

    Merci par avance aux contributeurs

  • #2
    Personne?

    Commentaire


    • #3
      Bonjour,
      dans la rubrique google est ton ami:
      http://www.forex-tsd.com/indicators-metatrader-4/3...

      Je ne sais pas ce que vaut le code, je ne l'ai jamais utilisé et n'ai pas non plus utilisé les bandes.

      +2p
      -2n

      Commentaire


      • #4
        Bonjour,

        Comme pas mal de persones, il semble, je cherche moi aussi a utiliser le CDUR de JL sur MT4.

        J'ai bien compris qu'il s'agit du RSI 8 applique a la MACD 9-19-6, mais je n'arrive pas a appliquer un indicateur sur un calcul, juste sur le prix.




        Si quelqu'un peut apporter un conseil pour le faire, ou a deja programe cet indicateur sur cette plateforme, et bien ca fera au moins un heureux

        Commentaire


        • #5
          Ca en fera plus d'un! Je suis dans le me'e,probleme que toi....

          Commentaire


          • #6
            Bonjour, je voulais savoir si quelqu'un avait pu se procurer les codes mt4 du CDUR et des Mogalef? Difficile à trouver!

            Commentaire


            • #7
              Bonjour tiboud
              Je n'ai pas MT4 mais ils parlent des Mogalef ici
              A tester et surtout vérifier

              Commentaire


              • #8
                Bonsoir,

                Pour les bandes de Mogalef, fichier dispo en MP :

                //+------------------------------------------------------------------+
                //|Bernard Chamblain, Allias Stargate |
                //|Le 13/08/2012 |
                //|Version 1.02 |
                //|Fichier : MogalefBanddsBC102 | |
                //+------------------------------------------------------------------+
                //
                //+------------------------------------------------------------------+
                //| Mogalef Bands.mq4 |
                //| Copyright © 2011, MetaQuotes Software Corp. |
                //| http://www.metaquotes.net |
                //+------------------------------------------------------------------+
                #property copyright "Copyright © 2011, MetaQuotes Software Corp."
                #property link "http://www.metaquotes.net"

                #property indicator_chart_window
                #property indicator_buffers 3
                #property indicator_color1 Red
                #property indicator_color2 Green
                #property indicator_color3 Blue

                extern int lp = 25;
                extern int sp = 30;

                double hiband[];
                double median[];
                double loband[];
                double LinReg[];
                double StdDev[];

                //+------------------------------------------------------------------+
                //| Custom indicator initialization function |
                //+------------------------------------------------------------------+
                int init()
                {
                string short_name;
                short_name="Mogalef Bands";
                IndicatorShortName(short_name);
                //---- indicators
                IndicatorBuffers(5);
                //---- indicators
                SetIndexStyle(0, DRAW_LINE, STYLE_DOT);
                SetIndexBuffer(0, hiband);
                SetIndexStyle(1, DRAW_LINE, STYLE_DOT);
                SetIndexBuffer(1, loband);
                SetIndexStyle(2, DRAW_LINE, STYLE_DOT);
                SetIndexBuffer(2, median);
                SetIndexBuffer(3, LinReg);
                SetIndexBuffer(4, StdDev);
                //SetIndexStyle(3, DRAW_LINE);
                //SetIndexBuffer(3, E);
                //----
                //SetIndexDrawBegin(0, 0);
                //SetIndexDrawBegin(1, 0);
                //SetIndexDrawBegin(2, 0);
                //SetIndexDrawBegin(3, 0);

                return(0);
                }
                //+------------------------------------------------------------------+
                //| Custom indicator deinitialization function |
                //+------------------------------------------------------------------+
                int deinit()
                {
                //----

                //----
                return(0);
                }
                //+------------------------------------------------------------------+
                //| Custom indicator iteration function |
                //+------------------------------------------------------------------+
                int start()
                {
                int index,limit,counted_bars=IndicatorCounted();
                if(counted_bars<0) return(-1);
                if(counted_bars>0) counted_bars--;
                limit = MathMin(Bars-counted_bars,Bars-1);

                CalcValues(limit);

                limit = MathMin(Bars - sp, limit);

                for (index = limit; index >=0; index--)
                {
                // band values
                if (index>(Bars-sp-lp)) StdDev[index]=0;
                hiband[index] = LinReg[index] + StdDev[index]*2;
                loband[index] = LinReg[index] - StdDev[index]*2;
                /**/

                if (LinReg[index] < hiband[index + 1] && LinReg[index] > loband[index+1])
                {
                // StdDev[index] = StdDev[index+1];
                hiband[index] = hiband[index+1];
                loband[index] = loband[index+1];
                }

                median[index] = (hiband[index] + loband[index]) / 2;
                /* */
                }
                return(0);
                }
                //+------------------------------------------------------------------+

                void CalcValues(int limit)
                {
                int counted_bars=IndicatorCounted();

                if(counted_bars<0) counted_bars=0;
                if(counted_bars>0) counted_bars--;
                int index = 0;

                LinReg[0] = LinReg[1];
                StdDev[0] = StdDev[1];
                hiband[0] = hiband[1];
                loband[0] = loband[1];
                median[0] = median[1];


                for(int shift=limit; shift>=0; shift--)
                {
                //double CP = (Open[shift] + High[shift] + Low[shift] + 2 * Close[shift]) / 5;

                double sumx=0, sumy=0, sumxy=0, sumx2=0, sumy2=0;
                double m=0, yint=0, r=0;
                int n;

                // Linear Regression
                sumx = 0;
                sumy = 0;
                sumxy = 0;
                sumx2 = 0;
                sumy2 = 0;
                for(n = 0; n <= lp-1; n++)
                {
                sumx = sumx + n;
                sumy = sumy + Close[shift + n];
                sumxy = sumxy + n * Close[shift + n];
                sumx2 = sumx2 + n * n;
                sumy2 = sumy2 + Close[shift + n] * Close[shift + n];
                }
                if(lp*sumx2-sumx*sumx==0)
                {m=(lp*sumxy-sumx*sumy)/(0.00000001);}
                else
                {m=(lp*sumxy-sumx*sumy)/(lp*sumx2-sumx*sumx);}
                yint=(sumy+m*sumx)/lp;
                if(MathSqrt((lp*sumx2-sumx*sumx)*(lp*sumy2-sumy*sumy))==0)
                {r=(lp*sumxy-sumx*sumy)/(0.00000001);}
                else
                {r=(lp*sumxy-sumx*sumy)/MathSqrt((lp*sumx2-sumx*sumx)*(lp*sumy2-sumy*sumy));}

                LinReg[shift] = (yint-m*lp);
                }

                for (index = 0; index < limit; index++)
                {
                StdDev[index] = iStdDevOnArray(LinReg, 0, sp, 0, MODE_SMA, index);
                }
                }



                Bonne soirée

                Commentaire


                • #9
                  Merci Bambi et Stargate pour les bandes Mogalef
                  Je regarde pour les installer
                  Je suis toujours preneur pour le CDUR au cas ou.
                  Bon trades et bonne journée

                  Commentaire


                  • #10
                    Up de la file pour Yoff

                    Commentaire


                    • #11
                      Envoyé par Stargate Voir le message
                      Bonsoir,

                      Pour les bandes de Mogalef, fichier dispo en MP :

                      //+------------------------------------------------------------------+
                      //|Bernard Chamblain, Allias Stargate |
                      //|Le 13/08/2012 |
                      //|Version 1.02 |
                      //|Fichier : MogalefBanddsBC102 | |
                      //+------------------------------------------------------------------+
                      //
                      //+------------------------------------------------------------------+
                      //| Mogalef Bands.mq4 |
                      //| Copyright © 2011, MetaQuotes Software Corp. |
                      //| http://www.metaquotes.net |
                      //+------------------------------------------------------------------+
                      #property copyright "Copyright © 2011, MetaQuotes Software Corp."
                      #property link "http://www.metaquotes.net"

                      #property indicator_chart_window
                      #property indicator_buffers 3
                      #property indicator_color1 Red
                      #property indicator_color2 Green
                      #property indicator_color3 Blue

                      extern int lp = 25;
                      extern int sp = 30;

                      double hiband[];
                      double median[];
                      double loband[];
                      double LinReg[];
                      double StdDev[];

                      //+------------------------------------------------------------------+
                      //| Custom indicator initialization function |
                      //+------------------------------------------------------------------+
                      int init()
                      {
                      string short_name;
                      short_name="Mogalef Bands";
                      IndicatorShortName(short_name);
                      //---- indicators
                      IndicatorBuffers(5);
                      //---- indicators
                      SetIndexStyle(0, DRAW_LINE, STYLE_DOT);
                      SetIndexBuffer(0, hiband);
                      SetIndexStyle(1, DRAW_LINE, STYLE_DOT);
                      SetIndexBuffer(1, loband);
                      SetIndexStyle(2, DRAW_LINE, STYLE_DOT);
                      SetIndexBuffer(2, median);
                      SetIndexBuffer(3, LinReg);
                      SetIndexBuffer(4, StdDev);
                      //SetIndexStyle(3, DRAW_LINE);
                      //SetIndexBuffer(3, E);
                      //----
                      //SetIndexDrawBegin(0, 0);
                      //SetIndexDrawBegin(1, 0);
                      //SetIndexDrawBegin(2, 0);
                      //SetIndexDrawBegin(3, 0);

                      return(0);
                      }
                      //+------------------------------------------------------------------+
                      //| Custom indicator deinitialization function |
                      //+------------------------------------------------------------------+
                      int deinit()
                      {
                      //----

                      //----
                      return(0);
                      }
                      //+------------------------------------------------------------------+
                      //| Custom indicator iteration function |
                      //+------------------------------------------------------------------+
                      int start()
                      {
                      int index,limit,counted_bars=IndicatorCounted();
                      if(counted_bars<0) return(-1);
                      if(counted_bars>0) counted_bars--;
                      limit = MathMin(Bars-counted_bars,Bars-1);

                      CalcValues(limit);

                      limit = MathMin(Bars - sp, limit);

                      for (index = limit; index >=0; index--)
                      {
                      // band values
                      if (index>(Bars-sp-lp)) StdDev[index]=0;
                      hiband[index] = LinReg[index] + StdDev[index]*2;
                      loband[index] = LinReg[index] - StdDev[index]*2;
                      /**/

                      if (LinReg[index] < hiband[index + 1] && LinReg[index] > loband[index+1])
                      {
                      // StdDev[index] = StdDev[index+1];
                      hiband[index] = hiband[index+1];
                      loband[index] = loband[index+1];
                      }

                      median[index] = (hiband[index] + loband[index]) / 2;
                      /* */
                      }
                      return(0);
                      }
                      //+------------------------------------------------------------------+

                      void CalcValues(int limit)
                      {
                      int counted_bars=IndicatorCounted();

                      if(counted_bars<0) counted_bars=0;
                      if(counted_bars>0) counted_bars--;
                      int index = 0;

                      LinReg[0] = LinReg[1];
                      StdDev[0] = StdDev[1];
                      hiband[0] = hiband[1];
                      loband[0] = loband[1];
                      median[0] = median[1];


                      for(int shift=limit; shift>=0; shift--)
                      {
                      //double CP = (Open[shift] + High[shift] + Low[shift] + 2 * Close[shift]) / 5;

                      double sumx=0, sumy=0, sumxy=0, sumx2=0, sumy2=0;
                      double m=0, yint=0, r=0;
                      int n;

                      // Linear Regression
                      sumx = 0;
                      sumy = 0;
                      sumxy = 0;
                      sumx2 = 0;
                      sumy2 = 0;
                      for(n = 0; n <= lp-1; n++)
                      {
                      sumx = sumx + n;
                      sumy = sumy + Close[shift + n];
                      sumxy = sumxy + n * Close[shift + n];
                      sumx2 = sumx2 + n * n;
                      sumy2 = sumy2 + Close[shift + n] * Close[shift + n];
                      }
                      if(lp*sumx2-sumx*sumx==0)
                      {m=(lp*sumxy-sumx*sumy)/(0.00000001);}
                      else
                      {m=(lp*sumxy-sumx*sumy)/(lp*sumx2-sumx*sumx);}
                      yint=(sumy+m*sumx)/lp;
                      if(MathSqrt((lp*sumx2-sumx*sumx)*(lp*sumy2-sumy*sumy))==0)
                      {r=(lp*sumxy-sumx*sumy)/(0.00000001);}
                      else
                      {r=(lp*sumxy-sumx*sumy)/MathSqrt((lp*sumx2-sumx*sumx)*(lp*sumy2-sumy*sumy));}

                      LinReg[shift] = (yint-m*lp);
                      }

                      for (index = 0; index < limit; index++)
                      {
                      StdDev[index] = iStdDevOnArray(LinReg, 0, sp, 0, MODE_SMA, index);
                      }
                      }



                      Bonne soirée
                      variables: var0(0), var1(0), BandeHaute(0), BandeBasse(0), Mediane(0);


                      var0 = LinearRegValue((Open+High+Low+(2*Close))/5,3,0);
                      var1 = StandardDev(var0,7,1);

                      if currentbar=8 then
                      begin
                      BandeHaute = var0 + 2*var1;
                      BandeBasse = var0 - 2*var1;
                      Mediane = var0;
                      end
                      else
                      if var0 < BandeBasse or var0 > BandeHaute then
                      begin
                      BandeHaute = var0 + 2*var1;
                      BandeBasse = var0 - 2*var1;
                      Mediane = var0;
                      end;

                      Plot1(BandeHaute,"BandeHaute");
                      Plot2(BandeBasse,"BandeBasse");
                      Plot3(Mediane,"Mediane");
                      SetPlotColor(1,magenta);
                      SetPlotColor(2,green);
                      SetPlotColor(3,lightgray);

                      le code pour MC...bande de mog eric lefort

                      on voit que l easylanguage est plus concis..beaucoup plus concis

                      IMF

                      Commentaire


                      • #12
                        bonjour
                        je recherche toujours le CDUR pour MT4 toutes les pages de liens renvois vers des liens mort !
                        j'ai demandé a Gilles mais il ne l'ai a pas ...
                        si qq trade sous MT4 avec le CDUR se serait sympa
                        merci
                        si vous en avez d'autre de Gilles sous MT4 je suis preneur cool

                        Commentaire

                        Chargement...
                        X