Download MetaTrader 5

Experts: exp_Amstell

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
182666
MetaQuotes Software Corp.  

exp_Amstell:

exp_Amstell

Author: IURII TOKMAN

MQL4 Comments
16319
MQL4 Comments  

thanks for your time and efford, I would like to ask what criteria makes the decision for buying and selling.. first of all I cant understand your language but trying to understand the logic from the results. When bactesting it buys and sells but forward testing so far had a 20 trades buys but no sell.. I wonder if how logical to place a stop loss and trail stop to a code? This is kind of martingale method, instead limiting the trades by the number of lots may increase the positive result in total...

MQL4 Comments
16319
MQL4 Comments  

This is a very interesting EA indeed. It works great, its just a pity you'll need a big startup to use this EA for real.

proscalping
30
proscalping  

the code is short and easy to follow:

here is a chart of the Gbp/usd in the time of Back Testing.

The trend went up and down, so Its not just a martingale playing in the direction of the trend

agonzalez
3
agonzalez  
//+----------------------------------------------- -------------------+
/ / | Exp_Amstell.mq4 |
/ / | Copyright © 2009, Yuriy Tokman |
/ / | Yuriytokman@gmail.com |
//+----------------------------------------------- -------------------+
# derecho de autor de propiedad "Copyright © 2009, Yuriy Tokman"
# enlace de propiedad"yuriytokman@gmail.com"
 
 
 
extern intTakeProfit = 30;            / / Ðàçìåð òåéêà â ïóíêòàõ
extern intStoploss = 20;
extern doble Lotes = 0,01;          / / Ðàçìåð ëîòà
extern int Magic=999;
 
//+----------------------------------------------- -------------------+
/ / | Función de inicialización de expertos |
//+----------------------------------------------- -------------------+
int init()
  (
//----
   
//----
   volver(0);
  )
//+----------------------------------------------- -------------------+
/ / | Función de deinicialización de expertos |
//+----------------------------------------------- -------------------+
int deinit()
  (
//----
   
//----
   volver(0);
  )
//+----------------------------------------------- -------------------+
/ / | Función de inicio de expertos |
//+----------------------------------------------- -------------------+
int iniciar()
  (
 
 
Lotes = MathMax(MarketInfo(Símbolo(),MODE_MINLOT), Lotes);
  
  
para(int CNT=0;CNT<OrdersTotal();CNT++)/ / Ïåðåáèðàåì âñå îðäåðà
     (
      OrderSelect(CNT, SELECT_BY_POS, MODE_TRADES);/ / îðäåð âûáèðàåòñÿ ñðåäè îòêðûòûõ è îòëîæåííûõ îðäåðîâ
      si( OrderSymbol()==Símbolo() && OrderMagicNumber()==Magic)/ / Ñîâïàäàåò ëè ñèìâîë îðäåðà (Çäåñü ïî íàäîáíîñòè äù ¸ ìàãèê ìîæíî ïðîâåðèòü)
        (
         si(OrderType()==OP_BUY)/ / Îòáèðàåì ïîçèöèþ éáÇç
           (
            si(Oferta--OrderOpenPrice()>TakeProfit*Punto)/ /
              (
               OrderClose(OrderTicket(),OrderLots(),Oferta,3,Violeta); / / çàêðûâàåì îðäåð
               volver(0); / / Âûõîäèì
              )
           )
          si(OrderType()==OP_SELL)/ / Îòáèðàåì ïîçèöèþ ñåëë
           (
            si(OrderOpenPrice()--Preguntar>TakeProfit*Punto)/ /
              (
               OrderClose(OrderTicket(),OrderLots(),Preguntar,3,Violeta); / / çàêðûâàåì îðäåð
               volver(0); / / Âûõîäèì
              )
           )
         )
      )
//----
int comprar = 0, vender = 0;
//----
   si(!ExistPositions(NULL,OP_BUY))comprar=1;
   algo más si(PriceOpenLastPos(NULL,OP_BUY)--Preguntar>10*Punto)comprar=1; 
   
   si(!ExistPositions(NULL,OP_SELL))<span style="FONT-FAMILY: Courier; COLOR: #6263
To add comments, please log in or register