Metatrader Forum | Forex Expert-Advisor | Broker & Forex Tools

Metatrader Forum | Forex Expert-Advisor | Broker & Forex Tools (http://www.expert-advisor.com/forum/index.php)
-   Indikatoren (http://www.expert-advisor.com/forum/forumdisplay.php?f=24)
-   -   TEMA - Indikator verwendet ihn jemand (http://www.expert-advisor.com/forum/showthread.php?t=3162)

dave_hofmann 19.08.13 21:14

TEMA - Indikator verwendet ihn jemand
 
Ich wollte kurz einen, meiner Meinung nach, interessanten Indikator vorstellen.
Den TEMA (Triple exponential moving average). Er gehört zu den gleitenden Durchschnitten und liegt bedeutend "näher" am Kurs als der MA oder EMA.
Berechnungsformel:
TEMA = (3 x EMA) - (3 x EMA von EMA) + (EMA von EMA von EMA)


Schönen Gruß

Dave

FXClicks 20.08.13 09:51

Hallo Dave
Also ich kenne den Indikator jetzt nicht.
Warum hängst du den nicht gleich mit an?

dave_hofmann 20.08.13 14:33

Hallo,
bin gerade nicht am PC. Sobald ich kann, werde ich den Indikator hochladen.

Guten Tag

Dave

dave_hofmann 20.08.13 17:41

Liste der Anhänge anzeigen (Anzahl: 1)
Hallo,

wie versprochen, hier der Indikator. Bitte mal ausprobieren und eure Meinung kund tun.

Schönen Abend

Dave

dave_hofmann 20.08.13 18:07

Hallo,

was ich vergessen hatte. Der Code selbst stammt von Metaquotes. Ich habe ihn noch insofern angepasst, dass auch der Shift verwendet werden kann.
Code:


//+------------------------------------------------------------------+
//|                                                        TEMA.mq4 |
//|                      Copyright © 2007, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.ru/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.ru/"
 
#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 DarkBlue
#property  indicator_width1  2
//---- input parameters
extern int      EMA_period=14;
extern int      Shift = 0;
//---- buffers
double TemaBuffer[];
double Ema[];
double EmaOfEma[];
double EmaOfEmaOfEma[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                        |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
  IndicatorBuffers(4);
  SetIndexStyle(0,DRAW_LINE);
  SetIndexBuffer(0,TemaBuffer);
  SetIndexBuffer(1,Ema);
  SetIndexBuffer(2,EmaOfEma);
  SetIndexBuffer(3,EmaOfEmaOfEma);
 
  IndicatorShortName("TEMA("+EMA_period+")");
 
//----
  return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                      |
//+------------------------------------------------------------------+
int deinit()
  {
//----
 
//----
  return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
  int i,limit,limit2,limit3,counted_bars=IndicatorCounted();
//----
  if (counted_bars==0)
      {
      limit=Bars-1;
      limit2=limit-EMA_period;
      limit3=limit2-EMA_period;
      }
  if (counted_bars>0)
      {
      limit=Bars-counted_bars-1;
      limit2=limit;
      limit3=limit2;
      }
  for (i=limit;i>=0;i--) Ema[i]=iMA(NULL,0,EMA_period,Shift,MODE_EMA,PRICE_CLOSE,i);
  for (i=limit2;i>=0;i--) EmaOfEma[i]=iMAOnArray(Ema,0,EMA_period,0,MODE_EMA,i);
  for (i=limit3;i>=0;i--) EmaOfEmaOfEma[i]=iMAOnArray(EmaOfEma,0,EMA_period,0,MODE_EMA,i);
  for (i=limit3;i>=0;i--) TemaBuffer[i]=3*Ema[i]-3*EmaOfEma[i]+EmaOfEmaOfEma[i];
//----
  return(0);
  }
//+------------------------------------------------------------------+

Schönen Abend,

Dave

dave_hofmann 21.08.13 13:09

Hallo,

hat ihn schon jemand ausprobiert?
Ich lechtze nach Kommentaren.

Guten Tag

Dave

FXClicks 21.08.13 20:57

Ich habe den mir mal in ein Chart gehauen.Ist nicht so mein Ding.


Alle Zeitangaben in WEZ +2. Es ist jetzt 10:52 Uhr.

Powered by vBulletin® Version 3.8.5 (Deutsch)
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.1
Powered by vBCMS® 2.7.0 ©2002 - 2024 vbdesigns.de
Copyright ©2009 - 2023 by Expert-Advisor.com - Das Metatrader Forum