Affichage des articles dont le libellé est mt4. Afficher tous les articles
Affichage des articles dont le libellé est mt4. Afficher tous les articles

mercredi 9 mars 2011

La fourche d' Andrew ( Andrews' Pitchfork )

La fourche d' Andrew encadre un cours dans un canal haussier ou baissier. Il permet de définir une résistance et un support dans une tendance.


Pour la tracer, on détermine 3 points. Le premier est situé à la base du mouvement, le second et le troisième au plus haut et au plus bas du début de la tendance.

samedi 5 mars 2011

Market Facilitation Index ( BW MFI ) - Indicateur Forex

Market Facilitation Index est un indicateur technique forex dont le rôle est de prévoir les retournements de tendance.


Représentation :

( Cliquez sur l' image pour agrandir )


Utilisation :
L' indicateur détermine selon les volumes et la volatilité d' une période si un retournement de tendance est probable ou non.
Un bâton vert = un mouvement haussier déjà engagé.
Un bâton marron = une stabilité qui risque de se transformer rapidement en nouvelle tendance.
Un bâton bleu = mouvement ne répondant pas à une logique de tendance, imprévisible.
Un bâton rose = possibilité de très fort retournent de tendance rapide.

Ces interprétations ne sont possibles que sur le long terme, car les bâtons changent de couleur presque à chaque période.


Calcul :
BW MFI = (haut – bas)/volume

---> Liste des indicateurs techniques

lundi 14 février 2011

Télécharger Metatrader

Rendez-vous sur le site d' un broker pour télécharger la plateforme de trading Metatrader.
La version 4 est largement recommandée ( plus fiable, plus professionnelle ).

Metatrader 4 ( MT4 )
YoutradeFX, AskoBid, InstaForex, Bforex, AvaFX

Metatrader 5 ( MT5)
InstaForex

mardi 1 février 2011

Connecter un EA avec un indicateur technique

Une des grandes forces du MQL4 est la possibilité de relier les actions d' un Expert Advisor avec les données fournies par un indicateur technique. Les indicateurs les plus connus disposent de leur propre fonction d' appel.


Exemple avec l' indicateur Awesome Oscillator :
La fonction de cet indicateur est iAO.
double iAO(string symbol, int timeframe, int shift)
Cet fonction d' appel comprend 3 paramètres :

    - symbol : est le symbole de la paire traitée. ( EURUSD, CADJPY, ... ). On le remplace souvent par Symbol() qui renvoie directement le nom de la paire sur laquelle est installée l' Expert Advisor.

   - timeframe : est l' échelle du graphique, ce qui influe directement sur la longueur des périodes. Son unité est la minute. Laisser 0 pour que l' Expert Advisor la détecte automatiquement.

   - shift : valeur pour la énième période.


Utilisation :
double valeur = iAO(Symbol(), 0, 0);
La variable valeur est égale au dernier bâton de l' Awesome Oscillator.
double valeur2 = iAO(Symbol(), 0, 10);
La variable valeur2 est cette fois égale au bâton de la 11ème dernière période.


Un Expert Advisor AO :
Le programme suivant va afficher des alertes lorsque l' indicateur passera d' une valeur négative à une valeur positive.
int start()
  {
   double valeur1 = iAO(Symbol(), 0, 0);
   double valeur2 = iAO(Symbol(), 0, 1);
   if (valeur1 < 0 && valeur2 > 0)
    {
     Alert("Signal d achat !");
    }
  return;
  }

Voir la liste de toutes les fonctions d' appel des indicateurs.

---> Leçon suivante

lundi 31 janvier 2011

Bonus sans dépôt - RoboForex

Exclusif !

RoboForex ( broker spécialisé dans les Expert Advisor et le trading automatique ) offre un bonus sans dépôt de 5$ ouvert à tous.
Pour l' obtenir, il suffit de se rendre sur le site du broker, de télécharger sa plateforme Metatrader, puis de cliquer sur le script de vérification ( voir ).
N' oubliez pas ensuite d' ouvrir un compte fix ou pro pour recevoir le bonus ( instantané ).

Commodity Channel Index ( CCI ) - Indicateur Forex

Le Commodity Channel Index a été conçu pour anticiper les nouvelles tendances du forex.


Comment ça marche ?
Voici une capture d' écran de l' indicateur sur le cours EUR/USD ( Metatrader ).

 On voit une courbe qui oscille assez fortement et dépasse la ligne 100 et -100 régulièrement.


Principes d' utilisation :
Une tendance débute chaque fois que la courbe du CCI dépasse la ligne 100 ou -100. Il faut donc acheter si la courbe est au-dessus de 100, garder la position jusqu' à ce que le CCI redescende en dessous de -100, et cette fois clore la position puis prendre une nouvelle position à la vente, et ainsi de suite...


Calcul :
Cet indicateur étant basé sur les cycles, la période d' observation modifiable doit être égale à un tiers de la longueur de ce même cycle.
M = (H + L + c) / 3
CCI = (M - MM) / (0.015 * D)

MM - moyenne mobile de M à n jours;
H - plus haut cours de la période;
L - plus bas cours de la période;
C - prix de clôture de la période;
D - écart-type par rapport à la moyenne.

mardi 28 avril 2009

MT4 EA: Stupid Programming Mistakes

Well, I spent last evening tracking down some problems in my next foray into programming expert advisers.It turns our that a simple logical test was using an '&' instead of an '&&' between two terms.This little horseshoe nail caused some position closing attempts to fail with an error 138 -- meaning that the price being used to close the position was too far away from the market price.I also ran

dimanche 26 avril 2009

MT4 EA: Moving Towards Sustainability

Yesterday's experiments with creating an expert advisor to scalp the 5 minute chart show great profits and great risk.I've been working to reduce the level of risk without taking away the reasonable chance of making reasonable profits.Here is the most recent chart:This is running from 01-Feb-2009 to 25-Apr-2009 and obviously surviving any ups and downs during that period.I'm still not happy with

samedi 25 avril 2009

MT4 EA: Aggresive 5 Minute Scalper

Well, it's the weekend, what else is a grown man to do?I had an inspiration for an (overly) aggressive expert advisor today. Basically, it's a simple buy low and sell high machine using oscillators.Scope out the chart. It does fairly well for a period of time and then when the market finds it's achilles heel it is undone.All is not lost. I have some ideas for improving the aggression factor as

samedi 7 mars 2009

Sample MQ4 Code

Here is a bit of code that demonstrates what I've been blogging about. It's a simple way to manage pending position requests. The idea is that a signal his been raised but that this code will let you wait for an improvement in the price before actually opening a position.// *******************************************************************// Name: AMS_PEND.MQ4// Date: 01-Mar-2009// Prog: Rookie

vendredi 6 mars 2009

Expert Adviser Weekend

Finally, the weekend is almost here. I've been stealing a few moments here and there during the week but it's not that productive.Basically, I've limited myself to testing various "opening" strategies. What I've found is that I can increase earnings across the test set -- but generally at the expense of a bigger draw down. I'd like to come up with a system that tests out a tripling of the

mardi 3 mars 2009

EA Development by Component

Okay, I've got a few EA components under my belt now.First, I've made myself a trivial system to determine potential entry points. Basically, this system raises a signal when the price is above or below a moving average for some period of time and then crosses over. Remember, I'm only concerned about making an easy to manage framework at this point.Second, signals raised above are tossed into a

lundi 2 mars 2009

EA Development

I was able to put some serious effort into developing an expert adviser over the weekend. At this stage I believe I can build something that will be both relatively safe and profitable. This is not an easy task!Anyway, I do want to assure you that I have no intention of ever selling an EA. If it works I'll use it for myself. If it doesn't work, then I'd have nothing worth selling in any case.

jeudi 26 février 2009

Programming An EA

I'm finding it takes a lot more time to program an EA than I would expect. Alternately, perhaps I am dumb enough to think that I could just throw together some ideas and have a profit machine?Anyway, after another night of testing I have some new software that is able to detect or indicate various conditions.I'm hoping that doing enough visual testing will clue me in enough, personally, to the

mercredi 25 février 2009

MT4 - Moving Average Crossover

Believe it or not I think I'm going to use a simple moving average crossover as a signal for my automated trading system.Obviously, and testing verifies this, there are two issues to manage:1) Getting whipsawed.2) Entering the trend too late.I believe that I can at least alleviate these issues somewhat. Technical indicators can provide clues about whether or not the market is currently trending

mardi 24 février 2009

Ongoing MT4 Development

As I develop and test more expert advisers I see just how tricky it is to translate common sense into a series of hard and fast rules.In short, my adviser does stupid things!When I trade Forex on my own I'll combine a "feel" for the current situation along with some technical indicators. For example, in recent times, if something funny is going on, then the market I'm trading almost always takes

lundi 23 février 2009

MT4 Programming

I love the fact that I can program the MT4 system. However, wouldn't it be nice if there was documentation in English? Well, yes, there is some, but it obviously wasn't written by somebody who speaks it fluently.Anyway, I spent much of the weekend fooling around with some custom expert advisers. One or two had promise, but obviously if it was easy to do then everyone would be doing it. It

jeudi 19 février 2009

Automated Forex Trading Robot

I've signed up for a second account. This one is at a broker that uses a dealing desk and an MT4 based trading platform.Why?Because I write software for a living. Because I sometimes have a decided lack of discipline. Because my life is stressful and I don't need to be glued to my screen worrying about charts, margins and limits.No, really, it's because I'd like to think that I can create a