Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Twitter üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Uzman Danışmanlar

Altarius RSI Stohastic - MetaTrader 5 için Uzman Danışman

Yayınlayan:
Vladimir Karputov
Görüntülemeler:
3567
Derecelendirme:
(16)
Yayınlandı:
2017.03.02 09:51
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

The EA uses two iStochastic (Stochastic Oscillator) indicators and one iRSI (RSI, Relative Strength Index).

Author of the idea — cxaauthor of the MQL5 code — barabashkakvn.  

Calculates the lot size based on the analysis of closed trades:

//+------------------------------------------------------------------+
//| Calculating optimal lot size                                  |
//+------------------------------------------------------------------+
double LotsOptimized()
  {
   double lot=Lots;
   int    losses=0;                  // number of losses deals without a break
//--- select lot size
   lot=NormalizeDouble(m_account.FreeMargin()*MaximumRisk/1000.0,2);
//--- calcuulate number of losses orders without a break
   if(DecreaseFactor>0)
     {
      //--- request trade history
      HistorySelect(TimeCurrent()-86400,TimeCurrent()+86400);
      //---
      uint     total=HistoryDealsTotal();
      //--- for all deals
      for(uint i=0;i<total;i++)
        {
         if(!m_deal.SelectByIndex(i))
           {
            Print("Error in history!");
            break;
           }
         if(m_deal.Symbol()!=Symbol() || m_deal.Entry()!=DEAL_ENTRY_OUT)
            continue;
         //---
         if(m_deal.Profit()>0)
            break;
         if(m_deal.Profit()<0)
            losses++;
        }
      if(losses>1)
         lot=NormalizeDouble(lot-lot*losses/DecreaseFactor,1);
     }
//--- return lot size
   if(lot<0.1)
      lot=0.1;
   return(lot);
  }

Results of Backtests on EURUSD and USDJPY:

Altarius RSI Stohastic USDJPY, H1 

Altarius RSI Stohastic EURUSD,H1 

Altarius RSI Stohastic USDJPY,M15 

Altarius RSI Stohastic EURUSD,M15 

MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/17236

gazonkos gazonkos

The Expert Advisor searches for the momentum: iClose(t2)-iClose(t1).

SendClose SendClose

The Expert Advisor opens or closes positions at the intersection of lines.

2MA_4Level 2MA_4Level

The Expert Advisor uses the values of two iMA (Moving Average, MA) indicators.

Autotrade Autotrade

The Expert Advisor places two pending orders (BuyStop and SellStop) with the specified expiration.