Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Experts

Lucky - expert pour MetaTrader 5

Publié par:
Vladimir Karputov
Vues:
3137
Note:
(23)
Publié:
2017.03.02 09:56
Lucky.mq5 (13.59 KB) afficher
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

A tick Expert Advisor. Comparing the price on the previous tick and the current price.

Attention! Tests only in the "Every tick based on real ticks" mode. 

Author of the idea is Sergey Artukhauthor of the MQL5 code is barabashkakvn.   

Algorithm: two static variables: 

   static double prev_ask=0.0; // a static variable for storing the ask price on the previous tick
   static double prev_bid=0.0; // a static variable for storing the bid price on the previous tick

The static variable retains its value after leaving the function.

Input Parameters:

  • the difference between the price on the previous tick and the current one
  • loss of points
  • reverse of signals
The most interesting parameter is the "reverse of signals". Depending on the value (true or false) open at a signal either Buy or Sell.

 

Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/17277

SimpleTrade SimpleTrade

Comparing open prices of the zero and third bar.

NRTR GATOR NRTR GATOR

Derived from the NRTR indicator, provided with a new visual display.

21hour 21hour

The Expert Advisor places two pending orders at a certain time.

Money Fixed Margin Money Fixed Margin

An example for calculating the lot value with a fixed margin level. That is, if you specify 10%, a position with the margin equal to 10% of free margin will be opened.