Rejoindre la communauté
banner_forum
Devenez membre de la plus grande
communauté francophone sur le Forex
Partagez, échangez et apprenez en gagnant des crédits sur votre compte de trading

Création d'un EA à partir MT4 pour MT5

  • chris8469

    bonjour a tous je recherche un programateur qui pourrai me créer un EA pour MT5 a partir d'un indicateur MT4 je travaille sur MT5 car la devise que je travaille GPB/JPY n'a que 1.2 de spread contre sur MT4 l'indicateur donne d'excellent résultat et je voudrai l'automatiser si quelqu'un est intéressé afin que je lui fasse parvenir l'indic taux de réussit supérieur a 85 %
  • chris8469

    voici le code de l'indicateur

    Code
    #property copyright "Copyright © 2013,MEGAFXPROFIT ALL RIGHTS RESERVED" #property link " http://www.megafxprofit.com " #property indicator_separate_window #property indicator_buffers 6 #property indicator_color1 Black #property indicator_color2 Lime #property indicator_color3 Red #property indicator_color4 Yellow #property indicator_color5 Aqua #property indicator_color6 Aqua extern bool ALERTS = TRUE; extern bool SoundAlerts = TRUE; extern string SoundAlertFile = "alert.wave"; extern bool eMailAlerts = TRUE; int Gi_96; int Gi_100 = 21; double Gda_104[]; double Gda_108[]; double Gda_112[]; double Gda_116[]; double Gda_120[]; double Gda_124[]; // E37F0136AA3FFAF149B351F6A4C948E9 int init() { SetIndexStyle(0, DRAW_NONE); SetIndexStyle(1, DRAW_LINE, EMPTY, 3); SetIndexStyle(2, DRAW_LINE, EMPTY, 3); SetIndexStyle(3, DRAW_LINE, EMPTY, 3); SetIndexStyle(4, DRAW_ARROW, EMPTY, 2); SetIndexArrow(4, 225); SetIndexStyle(5, DRAW_ARROW, EMPTY, 2); SetIndexArrow(5, 226); IndicatorDigits(Digits + 0); SetIndexBuffer(0, Gda_104); SetIndexBuffer(1, Gda_108); SetIndexBuffer(2, Gda_112); SetIndexBuffer(3, Gda_116); SetIndexBuffer(4, Gda_120); SetIndexBuffer(5, Gda_124); IndicatorShortName("MEGAFXPROFIT © www.megafxprofit.com"); SetIndexLabel(0, NULL); SetIndexLabel(1, NULL); SetIndexLabel(2, NULL); SetIndexLabel(3, NULL); SetIndexLabel(4, NULL); return (0); } // EA2B2676C28C0DB26D39331A336C6B92 int start() { double Ld_0; double Ld_8; double Ld_16; string Ls_104; string Ls_112; string Ls_120; int Li_24 = IndicatorCounted(); double Ld_28 = 0; double Ld_36 = 0; double Ld_44 = 0; double Ld_52 = 0; double Ld_60 = 0; double Ld_68 = 0; double Ld_76 = 0; double Ld_84 = 0; if (Li_24 > 0) Li_24--; int Li_92 = Bars - Li_24; for (int Li_96 = 0; Li_96 < Li_92; Li_96++) { Ld_84 = High[iHighest(NULL, 0, MODE_HIGH, Gi_100, Li_96)]; Ld_76 = Low[iLowest(NULL, 0, MODE_LOW, Gi_100, Li_96)]; Ld_16 = (High[Li_96] + Low[Li_96]) / 2.0; Ld_28 = 0.66 * ((Ld_16 - Ld_76) / (Ld_84 - Ld_76) - 0.5) + 0.67 * Ld_36; Ld_28 = MathMin(MathMax(Ld_28, -0.999), 0.999); Gda_104[Li_96] = MathLog((Ld_28 + 1.0) / (1 - Ld_28)) / 2.0 + Ld_60 / 2.0; Ld_36 = Ld_28; Ld_60 = Gda_104[Li_96]; } bool Li_100 = TRUE; for (Li_96 = Li_92 - 2; Li_96 >= 0; Li_96--) { Gda_116[Li_96] = 0; Ld_8 = Gda_104[Li_96 + 1]; Ld_0 = Gda_104[Li_96 + 2]; if ((Ld_8 < 0.0 && Ld_0 > 0.0) || Ld_8 < 0.0) { Li_100 = FALSE; if (Ld_8 < 0.0 && Ld_0 > 0.0) { Ls_104 = Symbol() + ", TF:" + f0_0(Period()); Ls_112 = Ls_104 + ", MEGAFXPROFIT SELL SIGNAL for Level: " + Ld_8; Ls_120 = Ls_112 + " @ " + TimeToStr(TimeLocal(), TIME_SECONDS); if (Bars > Gi_96) { Gi_96 = Bars; f0_1(Ls_120, Ls_112); } } } if ((Ld_8 > 0.0 && Ld_0 < 0.0) || Ld_8 > 0.0) { Li_100 = TRUE; if (Ld_8 > 0.0 && Ld_0 < 0.0) { Ls_104 = Symbol() + ", TF:" + f0_0(Period()); Ls_112 = Ls_104 + ", MEGAFXPROFIT BUY SIGNAL for Level: " + Ld_8; Ls_120 = Ls_112 + " @ " + TimeToStr(TimeLocal(), TIME_SECONDS); if (Bars > Gi_96) { Gi_96 = Bars; f0_1(Ls_120, Ls_112); } } } if (!Li_100) { Gda_112[Li_96] = Ld_8; Gda_108[Li_96] = 0.0; } else { Gda_108[Li_96] = Ld_8; Gda_112[Li_96] = 0.0; } } for (Li_96 = 0; Li_96 < Li_92; Li_96++) { if (Gda_108[Li_96] > 0.0 && Gda_108[Li_96 + 1] == 0.0) Gda_120[Li_96] = Gda_108[Li_96]; if (Gda_112[Li_96] < 0.0 && Gda_112[Li_96 + 1] == 0.0) Gda_124[Li_96] = Gda_112[Li_96]; } return (0); } // FF3DED0DF4360E36577F1A7C4D36796A void f0_1(string As_0, string As_8) { if (ALERTS) Alert(As_0); if (SoundAlerts) PlaySound(SoundAlertFile); if (eMailAlerts) SendMail(As_8, As_0); } // A9BA851E539886467D4ECFDDCA93F414 string f0_0(int Ai_0) { switch (Ai_0) { case 1: return ("M1"); case 5: return ("M5"); case 15: return ("M15"); case 30: return ("M30"); case 60: return ("H1"); case 240: return ("H4"); case 1440: return ("D1"); case 10080: return ("W1"); case 43200: return ("MN1"); } WindowRedraw(); return (Period()); }
    Modifié le 2014-03-11 11:59:42 par AliX
  • chris8469

    éventuellement le créer pour MT4
  • chris8469

    aperçu de 3h de trade en suivant l'indicateur et appliquant une martingale manuelle de x1.5 sur opération négatives
    file:///C:/Users/chris/Downloads/ReportHistory-20096809.html
  • chris8469

    Temps Opération Symbole Type Direction Volume Prix Ordre Commission Swap Bénéfice Balance Commentaire
    12/03/2014 10:22:42 30338676 GBPJPY vendre dans 0,05 170,984 50553477 0.00 0.00 0.00 566.13
    12/03/2014 10:49:07 30340184 GBPJPY acheter in / out 0,50 170,888 50555031 0.00 0.00 3.37 569.50
    12/03/2014 10:57:02 30340505 GBPJPY vendre in / out 1,25 170,857 50555364 0.00 0.00 -9,79 559,71
    12/03/2014 11:32:59 30342522 GBPJPY acheter dehors 0,80 170.700 50557568 0.00 0.00 88.22 647,93
    12/03/2014 11:33:01 30342524 GBPJPY acheter dans 0,70 170,698 50557570 0.00 0.00 0.00 647,93
    12/03/2014 11:50:06 30344490 GBPJPY vendre dehors 0,70 170,716 50559640 0.00 0.00 8.85 656,78
    12/03/2014 11:50:08 30344500 GBPJPY vendre dans 0,70 170,718 50559650 0.00 0.00 0.00 656,78
    12/03/2014 12:00:03 30345967 GBPJPY acheter in / out 1,75 170,799 50561151 0.00 0.00 -39,81 616,97
    12/03/2014 12:08:03 30346192 GBPJPY vendre in / out 2.55 170,742 50561373 0.00 0.00 -42,04 574,93
    12/03/2014 12:14:17 30346355 GBPJPY acheter in / out 3,75 170,760 50561557 0.00 0.00 -18,96 555,97
    12/03/2014 12:15:02 30346387 GBPJPY vendre in / out 4,25 170,740 50561590 0.00 0.00 -31,60 524,37
    12/03/2014 13:04:02 30349299 GBPJPY acheter dehors 2.00 170,325 50564509 0.00 0.00 582,89 1 107.26
    12/03/2014 13:04:04 30349302 GBPJPY acheter dans 0,50 170,326 50564512 0.00 0.00 0.00 1 107.26
    12/03/2014 13:10:50 30349660 GBPJPY vendre in / out 0,75 170,260 50564898 0.00 0.00 -23,18 1 084,08
    12/03/2014 13:17:44 30349996 GBPJPY acheter in / out 1.30 170,333 50565232 0.00 0.00 -12,81 1 071,27
    12/03/2014 14:04:02 30352261 GBPJPY vendre dehors 1,05 170,491 50567634 0.00 0.00 116.36 1 187,63
    12/03/2014 14:04:03 30352262 GBPJPY vendre dans 0,50 170,488 50567635 0.00 0.00 0.00 1 187,63
    12/03/2014 14:14:10 30352475 GBPJPY acheter in / out 1,25 170,521 50567867 0.00 0.00 -11,57 1 176.06
    12/03/2014 14:15:28 30352498 GBPJPY vendre in / out 1.80 170,479 50567894 0.00 0.00 -22,10 1 153.96
    12/03/2014 14:16:55 30352529 GBPJPY acheter dehors 1,05 170,508 50567931 0.00 0.00 -21,36 1 132.60
    0.00 0.00 566,47 1 132.60
    Solde: 1132,60 Marge libre: 1132,60
    Installations de crédit: 0.00 Marge: 0.00
    P / L flottant: 0.00 Niveau de la marge: 0,00%
    Action: 1132,60
    Graphique
    RESULTATS
    Bénéfice net total: 566,47 Bénéfice brut: 799,69 Perte brut: -233,22
    Facteur de profit: 3.43 Remboursement Attendu: 37.76
    Facteur de recovery: 4.28 Ratio de Sharpe: 0,25
    Renouvlement de la Balance:
    Solde Absolue Tirage: 41.76 Solde drawdown maximum admissible: 132.41 (20.16%) Prélevement de la balance relative: 20,16% (132,41)
    Opérations de commerce au total: 15 Opérations courtes commerciaux DE (gagné en%): 8 (37,50%) Opérations longues commerciales (DE gagné en%): 7 (28,57%)
    Bénéfice d'opération de commerce (% au total): 5 (33,33%) Opérations commerciales perdues DE (% au total): 10 (66,67%)
    Plus grand profit d'opération de commerce: 582,89 Plus vaste opération de commerce perdue: -42,04
    Moyenne profit d'opération de commerce: 159.94 Moyenne Opération de commerce perdue: -23,32
    Réalisations consécutives maximum ($): 2 (97.07) Pertes maximales consécutives ($): 4 (-132,41)
    Consécutif de profit maximal (de Nombre de Victoires de): 582,89 (1) Pertes maximales consécutives (de Nombre de Pertes): -132,41 (4)
    Consécutives Moyenne Réalisations: 1 Moyenne Pertes consécutives: 3
  • chris8469

    signal de 15h 240 pip de baisse
    chris8469 a joint une image
    creation-d-un-ea-a-partir-mt4-pour-mt5-8729