Metatrader Forum | Forex Expert-Advisor | Broker & Forex Tools
Zurück   Metatrader Forum | Forex Expert-Advisor | Broker & Forex Tools > Metatrader 5 > Indikatoren

Indikatoren Indikatoren für Metatrader 5.

Login
Benutzername:
Kennwort:


Statistik
Themen: 4776
Beiträge: 42468
Benutzer: 7.141
Aktive Benutzer: 136
Links: 83
Wir begrüßen unseren neuesten Benutzer: elfriede
Mit 2.475 Benutzern waren die meisten Benutzer gleichzeitig online (16.01.20 um 22:38).
Neue Benutzer:
vor 4 Stunden
- elfriede
vor 4 Tagen
- renkotrade
vor 2 Wochen
- Evimeri
vor 2 Wochen
- T.Rader
vor 2 Wochen
- qdjack

Onlineuser
'Wer ist online' anzeigen Benutzer: 0
Gäste: 41
Gesamt: 41
Team: 0
Team:  
Benutzer:  
Freunde anzeigen

Empfehlungen

Antwort
 
Themen-Optionen Thema durchsuchen Ansicht
  #1 (permalink)  
Alt 15.09.21
Mitglied
 
Registriert seit: Sep 2018
Beiträge: 238
Max2018 befindet sich auf einem aufstrebenden Ast
Standard Macd

Hallo,
wenn ich im MT5 den MACD lade (ich glaub beim MT4 ist das auch so)
dann sehe ich nicht die Signallinie..wie z.B. bei Tradingview


Wo bekomme ich diesen klassischen MACD Indikator her wie bei Tradingview und WICHTIG: Wie spreche ich diesen dann über mql5 an ?

DANKE

Mit Zitat antworten
  #2 (permalink)  
Alt 15.09.21
Benutzerbild von Indikator-Trading
Mitglied
 
Registriert seit: May 2020
Ort: Bielefeld
Beiträge: 280
Indikator-Trading befindet sich auf einem aufstrebenden Ast
Standard

Hallo,

die beiden Indikatoren liefern dir schon die selben Signale, zumindest wenn du das Crossing der beiden Linien meinst.
In diesem MT5 MACD ist die zweite Linie nur durch Balken dargestellt, die Aussage ist aber bei beiden Gleich.
Die Balken im TradingView MACD sind wiederum nur die Differenz von dem schnellen MACD MovingAverage zu dem langsameren MACD MovingAverage.

Du kannst die Anzeigeart aber auch im Code vom Indikator von Balken eine Linie umstellen, dann kommst das dem TradingView Indikator zumindest etwas näher.

Eine gute Quelle für alle möglichen Indikatoren für MT4 und MT5 kannst du hier finden:
https://www.mql5.com/de/code

Eine einfache Googlesuche wird dir aber auch noch zig andere mögliche Quellen liefern.
Mit Zitat antworten
  #3 (permalink)  
Alt 16.09.21
Mitglied
 
Registriert seit: Sep 2018
Beiträge: 238
Max2018 befindet sich auf einem aufstrebenden Ast
Standard

Danke ++++
Mit Zitat antworten
  #4 (permalink)  
Alt 20.10.21
Mitglied
 
Registriert seit: Feb 2014
Ort: Berlin
Beiträge: 32
Sirocool befindet sich auf einem aufstrebenden Ast
Standard Macd

Code:
#property copyright     "©2007-2021 SHARK_MACD_CLASSIC_V.21. Alle Rechte vorbehalten "
//#property strict
#property description   "*~~* SHARK_MACD_CLASSIC_V.21 *~~*"
#property description   "                                 "
#property description   "  The MACD Indicator With Alert  "
#property description   "                                 "
#property description   "WARNING : You use this software at your own risk."
#property description   "The creator of these plugins cannot be held responsible for damage or loss."
#property description   "                                 "

//#property icon          "\\Files\\Shark.ico"



#include <stdlib.mqh>
#include <stderror.mqh>




#property indicator_separate_window
#property indicator_buffers  5
#property indicator_color1   C'64,121,246'    // Dunkelblau
#property indicator_color2   C'248,86,13'    //  Orange
#property indicator_color3   clrSnow
#property indicator_color4   clrFireBrick
#property indicator_color5   clrForestGreen //     Grün


#property indicator_level1  0;

#property indicator_levelcolor clrLightSlateGray
#property indicator_levelstyle DRAW_ZIGZAG


//+------------------------------------------------------------------+
//| SIGNALMENÜ                                                       |
//+------------------------------------------------------------------+
enum ENUM_MACD_ALERT
  {
   OFF = 0,
   ON =  1,
  };




bool initFinished=false;

extern string  aSHARK_Administration ="~~* MACD_Administration *~~";

extern int    FAST_EMA = 12;
extern int    SLOW_EMA = 26;
extern int    MACD_SMA  = 9;

extern ENUM_APPLIED_PRICE USE_ON = PRICE_CLOSE;

//extern ENUM_MA_METHOD MA_Method = MODE_SMA; // MA Method
//extern ENUM_STO_PRICE Price_Field = 0; // Price Field 0 = Low/High or 1 = Close/Close)


extern string  bSHARK_Administration ="~~* MACD_Arrows *~~"; //RSI_Settings

extern ENUM_MACD_ALERT PopupAlerts   = true;


extern ENUM_MACD_ALERT   PushNotificationAlerts = false;
extern ENUM_MACD_ALERT   SoundAlerts            = false;
//extern string SoundFileLong          = "alert.wav";
//extern string SoundFileShort         = "alert2.wav";
//extern bool   EmailAlerts            = false;







datetime time_alert; //used when sending alert


double SHARK_BUFFER_M[],SHARK_BUFFER_S[],SHARK_BUFFER_T[],SHARK_BUFFER_DN[],SHARK_BUFFER_UP[];





//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int init()
  {
   IndicatorBuffers(5);
   IndicatorDigits(Digits+1);//max. 2

   SetIndexBuffer(0,SHARK_BUFFER_M,INDICATOR_DATA);
   SetIndexStyle(0,DRAW_LINE,EMPTY,1);
   SetIndexDrawBegin(0,FAST_EMA+SLOW_EMA);
   SetIndexLabel(0,"MAIN");

   SetIndexBuffer(1,SHARK_BUFFER_S,INDICATOR_DATA);
   SetIndexStyle(1,DRAW_LINE,EMPTY,1);
//SetIndexDrawBegin(1,MACD_SMA);
   SetIndexLabel(1,"SIGNAL");

   SetIndexBuffer(2,SHARK_BUFFER_T,INDICATOR_DATA);
   SetIndexStyle(2,DRAW_HISTOGRAM,EMPTY_VALUE,3);
   SetIndexLabel(2,NULL);

   SetIndexBuffer(3,SHARK_BUFFER_DN,INDICATOR_DATA);
   SetIndexStyle(3,DRAW_HISTOGRAM,EMPTY,3);
   SetIndexLabel(3,NULL);

   SetIndexBuffer(4,SHARK_BUFFER_UP,INDICATOR_DATA);
   SetIndexStyle(4,DRAW_HISTOGRAM,EMPTY,3);
   SetIndexLabel(4,NULL);

   IndicatorShortName("SHARK_MACD_CLASSIC_V.21"+"("+FAST_EMA+","+SLOW_EMA+","+MACD_SMA+","+PriceTypeToString(USE_ON)+","+_Periods_of_Time(IntegerToString(Period()))+")");
   if(FAST_EMA < 0)
     {
      Print("Incorrect value for input variable InpPeriod = ",FAST_EMA);
      return(INIT_FAILED);
     }
   return(0);
  }


//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int deinit()
  {
   ObjectsDeleteAll();
//deleteArrows();
   return(0);
  }

//+------------------------------------------------------------------+
int start()
  {
//_OVERLINIEN();

   int counted_bars=IndicatorCounted(),limit,i;

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

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

   for(i = limit; i >= 0 && !IsStopped(); i--)
     {
      //+------------------------------------------------------------------+

      SHARK_BUFFER_M[i] = iMA(Symbol(),Period(),12,0,MODE_EMA,PRICE_CLOSE,i)- iMA(Symbol(),Period(),26,0,MODE_EMA,PRICE_CLOSE,i);
      SHARK_BUFFER_S[i] = iMAOnArray(SHARK_BUFFER_M,0,9,0,MODE_SMA,i);
      SHARK_BUFFER_T[i] = (SHARK_BUFFER_M[i] - SHARK_BUFFER_S[i]);

      //+------------------------------------------------------------------+
      //| TRENDBESTIMMUNG                                                  |
      //+------------------------------------------------------------------+
      if((SHARK_BUFFER_T[i+2] < 0 && SHARK_BUFFER_T[i] > 0))
        {SHARK_BUFFER_UP[i+1] = SHARK_BUFFER_T[i+1];}

      if((SHARK_BUFFER_T[i+2]> 0 && SHARK_BUFFER_T[i] < 0 ))
        {SHARK_BUFFER_DN[i+1] = SHARK_BUFFER_T[i+1];}

      //+------------------------------------------------------------------+
      //| ALERTSIGNALE                                                     |
      //+------------------------------------------------------------------+
      if((SHARK_BUFFER_T[i+2] < 0 && SHARK_BUFFER_T[i] > 0))
        {
         if(i == 0 && Time[0] != time_alert)
           {
            myAlert("Indicator", "LONG");
            time_alert = Time[0];
           }
        }

      if((SHARK_BUFFER_T[i+2]> 0 && SHARK_BUFFER_T[i] < 0 ))
        {
         if(i == 0 && Time[0] != time_alert)
           {
            myAlert("indicator", "SHORT");
            time_alert = Time[0];
           }
        }



     }

   return(0);
  }
//+------------------------------------------------------------------+

//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
string PriceTypeToString(int pt)
  {
   string answer;
   switch(pt)
     {
      case 0:
         answer = "Close"    ;
         break;
      case 1:
         answer = "Open"     ;
         break;
      case 2:
         answer = "High"     ;
         break;
      case 3:
         answer = "Low"      ;
         break;
      case 4:
         answer = "Median"   ;
         break;
      case 5:
         answer = "Typical"  ;
         break;
      case 6:
         answer = "Wighted"  ;
         break;
      default:
         answer = "Invalid price field requested";
         Alert(answer);
     }
   return(answer);
  }

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

//+------------------------------------------------------------------+
//|  Time_Periods                                                    |
//+------------------------------------------------------------------+
string _Periods_of_Time(int pot)
  {
   string Timetemp;
   switch(pot)
     {
      case 1 :
         Timetemp = "M1";
         break;

      case 5 :
         Timetemp = "M5";
         break;

      case 15 :
         Timetemp = "M15";
         break;

      case 30 :
         Timetemp = "M30";
         break;

      case 60 :
         Timetemp = "H1";
         break;

      case 240 :
         Timetemp = "H4";
         break;

      case 1440 :
         Timetemp = "D1";
         break;

      case 10080 :
         Timetemp = "W1";
         break;

      case 43200 :
         Timetemp = "MN";
         break;

      default:
         Timetemp = "Invalid time field requested";
         Alert(Timetemp);

     }
   return(Timetemp);
  }







//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void myAlert(string type, string message)
  {
   string Temp_Message = type+" | SHARK_MACD_CLASSIC_V.21"+" | Timechart.: "+_Periods_of_Time(IntegerToString(Period()))+" | Symbol.: "+Symbol()+" | Signal.: "+ message;
   if(type == "print")
      Print(message);
   else
      if(type == "error")
        {
         Print(type+" | MACD @ "+Symbol()+","+IntegerToString(Period())+" | "+message);
        }
      else
         if(type == "Indicator")
           {
            if(PopupAlerts)
               Alert(Temp_Message);                                   //type+" |SHARK_MACD_CLASSIC_V.21 @ "+Symbol()+","+_Periods_of_Time(IntegerToString(Period()))+" | "+message);
            //if(EmailAlerts) SendMail("SHARK_MACD_CLASSIC_V.21"+AccountNumber()+", "+WindowExpertName()+" - Alert on "+Symbol()+", period ","SHARK_MACD_CLASSIC_V.21"+Symbol()+", period ");
            if(SoundAlerts)
               PlaySound("alert.wav");
            if(PushNotificationAlerts)
               SendNotification(Temp_Message);//"SHARK_MACD_CLASSIC_V.21"+AccountNumber()+", "+WindowExpertName()+message);
           }
  }
Mit Zitat antworten
  #5 (permalink)  
Alt 20.10.21
Mitglied
 
Registriert seit: Sep 2018
Beiträge: 238
Max2018 befindet sich auf einem aufstrebenden Ast
Standard

DANKE

ich bekomme aber 99 Fehlermeldungen

Code:
'MACD_CLASSIC.mq5'	MACD_CLASSIC.mq5	1	1
can't open "C:\Users\j\AppData\Roaming\MetaQuotes\Terminal\686BFB0D09E13CF3DD536BE5421E01AC\MQL5\Include\stdlib.mqh" include file	MACD_CLASSIC.mq5	15	11
can't open "C:\Users\j\AppData\Roaming\MetaQuotes\Terminal\686BFB0D09E13CF3DD536BE5421E01AC\MQL5\Include\stderror.mqh" include file	MACD_CLASSIC.mq5	16	11
OnCalculate function not found in custom indicator		1	1
'IndicatorBuffers' - undeclared identifier	MACD_CLASSIC.mq5	93	4
'5' - some operator expected	MACD_CLASSIC.mq5	93	21
'IndicatorDigits' - undeclared identifier	MACD_CLASSIC.mq5	94	4
'+' - open parenthesis expected	MACD_CLASSIC.mq5	94	26
'+' - some operator expected	MACD_CLASSIC.mq5	94	26
'SetIndexStyle' - undeclared identifier	MACD_CLASSIC.mq5	97	4
',' - unexpected token	MACD_CLASSIC.mq5	97	19
'0' - some operator expected	MACD_CLASSIC.mq5	97	18
',' - unexpected token	MACD_CLASSIC.mq5	97	29
'EMPTY' - undeclared identifier	MACD_CLASSIC.mq5	97	30
',' - unexpected token	MACD_CLASSIC.mq5	97	35
')' - unexpected token	MACD_CLASSIC.mq5	97	37
expression has no effect	MACD_CLASSIC.mq5	97	36
'SetIndexDrawBegin' - undeclared identifier	MACD_CLASSIC.mq5	98	4
',' - unexpected token	MACD_CLASSIC.mq5	98	23
'0' - some operator expected	MACD_CLASSIC.mq5	98	22
')' - unexpected token	MACD_CLASSIC.mq5	98	41
expression has no effect	MACD_CLASSIC.mq5	98	33
'SetIndexLabel' - undeclared identifier	MACD_CLASSIC.mq5	99	4
',' - unexpected token	MACD_CLASSIC.mq5	99	19
'0' - some operator expected	MACD_CLASSIC.mq5	99	18
')' - unexpected token	MACD_CLASSIC.mq5	99	26
'SetIndexStyle' - undeclared identifier	MACD_CLASSIC.mq5	102	4
',' - unexpected token	MACD_CLASSIC.mq5	102	19
'1' - some operator expected	MACD_CLASSIC.mq5	102	18
',' - unexpected token	MACD_CLASSIC.mq5	102	29
'EMPTY' - undeclared identifier	MACD_CLASSIC.mq5	102	30
',' - unexpected token	MACD_CLASSIC.mq5	102	35
')' - unexpected token	MACD_CLASSIC.mq5	102	37
expression has no effect	MACD_CLASSIC.mq5	102	36
'SetIndexLabel' - undeclared identifier	MACD_CLASSIC.mq5	104	4
',' - unexpected token	MACD_CLASSIC.mq5	104	19
'1' - some operator expected	MACD_CLASSIC.mq5	104	18
')' - unexpected token	MACD_CLASSIC.mq5	104	28
'SetIndexStyle' - undeclared identifier	MACD_CLASSIC.mq5	107	4
',' - unexpected token	MACD_CLASSIC.mq5	107	19
'2' - some operator expected	MACD_CLASSIC.mq5	107	18
',' - unexpected token	MACD_CLASSIC.mq5	107	34
',' - unexpected token	MACD_CLASSIC.mq5	107	46
expression has no effect	MACD_CLASSIC.mq5	107	35
')' - unexpected token	MACD_CLASSIC.mq5	107	48
expression has no effect	MACD_CLASSIC.mq5	107	47
'SetIndexLabel' - undeclared identifier	MACD_CLASSIC.mq5	108	4
',' - unexpected token	MACD_CLASSIC.mq5	108	19
'2' - some operator expected	MACD_CLASSIC.mq5	108	18
')' - unexpected token	MACD_CLASSIC.mq5	108	24
'SetIndexStyle' - undeclared identifier	MACD_CLASSIC.mq5	111	4
',' - unexpected token	MACD_CLASSIC.mq5	111	19
'3' - some operator expected	MACD_CLASSIC.mq5	111	18
',' - unexpected token	MACD_CLASSIC.mq5	111	34
'EMPTY' - undeclared identifier	MACD_CLASSIC.mq5	111	35
',' - unexpected token	MACD_CLASSIC.mq5	111	40
')' - unexpected token	MACD_CLASSIC.mq5	111	42
expression has no effect	MACD_CLASSIC.mq5	111	41
'SetIndexLabel' - undeclared identifier	MACD_CLASSIC.mq5	112	4
',' - unexpected token	MACD_CLASSIC.mq5	112	19
'3' - some operator expected	MACD_CLASSIC.mq5	112	18
')' - unexpected token	MACD_CLASSIC.mq5	112	24
'SetIndexStyle' - undeclared identifier	MACD_CLASSIC.mq5	115	4
',' - unexpected token	MACD_CLASSIC.mq5	115	19
'4' - some operator expected	MACD_CLASSIC.mq5	115	18
',' - unexpected token	MACD_CLASSIC.mq5	115	34
'EMPTY' - undeclared identifier	MACD_CLASSIC.mq5	115	35
',' - unexpected token	MACD_CLASSIC.mq5	115	40
')' - unexpected token	MACD_CLASSIC.mq5	115	42
expression has no effect	MACD_CLASSIC.mq5	115	41
'SetIndexLabel' - undeclared identifier	MACD_CLASSIC.mq5	116	4
',' - unexpected token	MACD_CLASSIC.mq5	116	19
'4' - some operator expected	MACD_CLASSIC.mq5	116	18
')' - unexpected token	MACD_CLASSIC.mq5	116	24
'IndicatorShortName' - undeclared identifier	MACD_CLASSIC.mq5	118	4
implicit conversion from 'number' to 'string'	MACD_CLASSIC.mq5	118	53
implicit conversion from 'number' to 'string'	MACD_CLASSIC.mq5	118	66
implicit conversion from 'number' to 'string'	MACD_CLASSIC.mq5	118	79
implicit conversion from 'string' to 'number'	MACD_CLASSIC.mq5	118	139
'+' - some operator expected	MACD_CLASSIC.mq5	118	165
'ObjectsDeleteAll' - no one of the overloads can be applied to the function call	MACD_CLASSIC.mq5	133	4
could be one of 2 function(s)	MACD_CLASSIC.mq5	133	4
   built-in: int ObjectsDeleteAll(long,int,int)	MACD_CLASSIC.mq5	133	4
   built-in: int ObjectsDeleteAll(long,const string,int,int)	MACD_CLASSIC.mq5	133	4
'IndicatorCounted' - undeclared identifier	MACD_CLASSIC.mq5	143	21
')' - expression expected	MACD_CLASSIC.mq5	143	38
'-' - open parenthesis expected	MACD_CLASSIC.mq5	150	22
'-' - open parenthesis expected	MACD_CLASSIC.mq5	150	40
'iMA' - wrong parameters count	MACD_CLASSIC.mq5	156	27
'iMA' - wrong parameters count	MACD_CLASSIC.mq5	156	79
'iMAOnArray' - undeclared identifier	MACD_CLASSIC.mq5	157	27
',' - unexpected token	MACD_CLASSIC.mq5	157	52
'SHARK_BUFFER_M' - some operator expected	MACD_CLASSIC.mq5	157	38
',' - unexpected token	MACD_CLASSIC.mq5	157	54
',' - unexpected token	MACD_CLASSIC.mq5	157	56
expression has no effect	MACD_CLASSIC.mq5	157	55
',' - unexpected token	MACD_CLASSIC.mq5	157	58
expression has no effect	MACD_CLASSIC.mq5	157	57
',' - unexpected token	MACD_CLASSIC.mq5	157	67
expression has no effect	MACD_CLASSIC.mq5	157	59
')' - unexpected token	MACD_CLASSIC.mq5	157	69
expression has no effect	MACD_CLASSIC.mq5	157	68
'Time' - undeclared identifier	MACD_CLASSIC.mq5	174	23
'0' - some operator expected	MACD_CLASSIC.mq5	174	28
'(' - unbalanced left parenthesis	MACD_CLASSIC.mq5	174	12
']' - unexpected token	MACD_CLASSIC.mq5	174	29
'!=' - operand expected	MACD_CLASSIC.mq5	174	31
')' - unexpected token	MACD_CLASSIC.mq5	174	44
expression has no effect	MACD_CLASSIC.mq5	174	34
'Time' - undeclared identifier	MACD_CLASSIC.mq5	177	26
'0' - some operator expected	MACD_CLASSIC.mq5	177	31
'Time' - undeclared identifier	MACD_CLASSIC.mq5	183	23
'0' - some operator expected	MACD_CLASSIC.mq5	183	28
'(' - unbalanced left parenthesis	MACD_CLASSIC.mq5	183	12
']' - unexpected token	MACD_CLASSIC.mq5	183	29
'!=' - operand expected	MACD_CLASSIC.mq5	183	31
')' - unexpected token	MACD_CLASSIC.mq5	183	44
expression has no effect	MACD_CLASSIC.mq5	183	34
'Time' - undeclared identifier	MACD_CLASSIC.mq5	186	26
'0' - some operator expected	MACD_CLASSIC.mq5	186	31
implicit conversion from 'string' to 'number'	MACD_CLASSIC.mq5	299	95
Mit Zitat antworten
  #6 (permalink)  
Alt 21.10.21
Benutzerbild von Indikator-Trading
Mitglied
 
Registriert seit: May 2020
Ort: Bielefeld
Beiträge: 280
Indikator-Trading befindet sich auf einem aufstrebenden Ast
Standard

Der Indikator ist für den MT4, daher läuft der nicht auf dem MT5, welchen du nutzt
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
macd

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus




Alle Zeitangaben in WEZ +1. Es ist jetzt 21:00 Uhr.





Die Suchmaschine - Der Wavesnode - Facebook Forum - Spam Firewall
-----------------------------------------------------------------------------------------------------------------------------
Powered by vBulletin® Version 3.8.5 (Deutsch)
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Powered by vBCMS® 2.7.0 ©2002 - 2021 vbdesigns.de
SEO by vBSEO 3.6.1
Copyright ©2009 - 2020 by Expert-Advisor.com - Das Metatrader Forum
MetaTrader bzw. MetaTrader 4 und MetaTrader 5 sind eingetragene Marken der MetaQuotes Software Corp.
-----------------------------------------------------------------------------------------------------------------------------