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

Problème avec la nouvelle version MT4 -installation en ex4

  • samarcel

    bonjour

    ma plate forme MT4 ne prend pas en compte mon indic en ex4
    avec la nouvelle version MT4 version 4 build 610
    pouvez vous m aider pour a intaller macd osma alarm

    est ce que cela vient de mon ordi
    qui pourrais me le reconfigurer pour qu il fonctionne

    merci

    Sam
  • samarcel — en réponse à samarcel dans son message #92167

    voici le code

    Code
    */ #property copyright "Copyright © 2009, S-P-LOG" #property link "http://www.s-p-log.com" #property indicator_separate_window #property indicator_buffers 5 #property indicator_color1 Silver #property indicator_color2 Red #property indicator_color3 Silver #property indicator_color4 Aqua #property indicator_color5 Yellow extern int FastEMA = 12; extern int SlowEMA = 26; extern int SignalSMA = 9; extern bool ShowArrows = TRUE; extern bool VisualAlarm = FALSE; extern bool SoundAlarm = FALSE; double g_ibuf_100[]; double g_ibuf_104[]; double g_ibuf_108[]; double g_ibuf_112[]; double g_ibuf_116[]; int g_time_120 = 0; int init() { SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 1); SetIndexStyle(1, DRAW_LINE, STYLE_SOLID, 1); SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID, 1); SetIndexDrawBegin(1, SignalSMA); IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS) + 1.0); SetIndexBuffer(0, g_ibuf_100); SetIndexBuffer(1, g_ibuf_104); SetIndexBuffer(2, g_ibuf_108); IndicatorShortName("MACD(" + FastEMA + "," + SlowEMA + "," + SignalSMA + ")"); SetIndexLabel(0, "MACD"); SetIndexLabel(1, "Signal"); SetIndexLabel(2, "OSMA"); SetIndexStyle(3, DRAW_ARROW, STYLE_SOLID, 1); SetIndexArrow(3, SYMBOL_ARROWUP); SetIndexStyle(4, DRAW_ARROW, STYLE_SOLID, 1); SetIndexArrow(4, SYMBOL_ARROWDOWN); SetIndexBuffer(3, g_ibuf_112); SetIndexBuffer(4, g_ibuf_116); SetIndexLabel(3, "Up"); SetIndexLabel(4, "Down"); return (0); } int start() { int li_0 = IndicatorCounted(); if (li_0 < 0) return (-1); if (li_0 > 0) li_0--; int li_4 = Bars - li_0; for (int li_8 = 0; li_8 < li_4; li_8++) g_ibuf_100[li_8] = iMA(NULL, 0, FastEMA, 0, MODE_EMA, PRICE_CLOSE, li_8) - iMA(NULL, 0, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, li_8); for (li_8 = 0; li_8 < li_4; li_8++) g_ibuf_104[li_8] = iMAOnArray(g_ibuf_100, Bars, SignalSMA, 0, MODE_SMA, li_8); for (li_8 = 0; li_8 < li_4; li_8++) g_ibuf_108[li_8] = iOsMA(NULL, 0, FastEMA, SlowEMA, SignalSMA, PRICE_CLOSE, li_8); if (ShowArrows) { for (li_8 = 0; li_8 < li_4; li_8++) { if (g_ibuf_108[li_8] >= 0.0 && g_ibuf_108[li_8 + 1] < 0.0) g_ibuf_112[li_8] = g_ibuf_100[li_8]; if (g_ibuf_108[li_8] <= 0.0 && g_ibuf_108[li_8 + 1] > 0.0) g_ibuf_116[li_8] = g_ibuf_100[li_8]; } } if (VisualAlarm || SoundAlarm) { if (g_ibuf_108[0] >= 0.0 && g_ibuf_108[1] < 0.0 && g_time_120 != Time[0]) { if (SoundAlarm) PlaySound("alert.wav"); if (VisualAlarm) Alert("MACD crosses signal up on ", Symbol(), " ", Period()); g_time_120 = Time[0]; } if (g_ibuf_108[0] <= 0.0 && g_ibuf_108[1] > 0.0 && g_time_120 != Time[0]) { if (SoundAlarm) PlaySound("alert.wav"); if (VisualAlarm) Alert("MACD crosses signal down on ", Symbol(), " ", Period()); g_time_120 = Time[0]; } } return (0); }
    Modifié le 2014-03-06 12:29:00 par AliX