Altarius RSI 스토캐스틱: 메타트레이더 5 최고의 EA

Mike 2017.03.02 18:51 57 0 0
첨부파일

이 EA는 두 개의 iStochastic (스토캐스틱 오실레이터) 지표와 하나의 iRSI (상대강도지수)를 사용합니다.

아이디어 제공자cxa, MQL5 코드 작성자barabashkakvn.

닫힌 거래 분석을 기반으로 로트 크기를 계산합니다:

//+------------------------------------------------------------------+
//| 최적 로트 크기 계산                                  |
//+------------------------------------------------------------------+
double LotsOptimized()
  {
   double lot=Lots;
   int    losses=0;                  // 손실 거래 수
//--- 로트 크기 선택
   lot=NormalizeDouble(m_account.FreeMargin()*MaximumRisk/1000.0,2);
//--- 손실 거래 수 계산
   if(DecreaseFactor>0)
     {
      //--- 거래 기록 요청
      HistorySelect(TimeCurrent()-86400,TimeCurrent()+86400);
      //---
      uint     total=HistoryDealsTotal();
      //--- 모든 거래에 대해
      for(uint i=0;i<total;i++)
        {
         if(!m_deal.SelectByIndex(i))
           {
            Print("기록에서 오류 발생!");
            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);
     }
//--- 로트 크기 반환
   if(lot<0.1)
      lot=0.1;
   return(lot);
  }

EURUSD와 USDJPY에 대한 백테스트 결과:

Altarius RSI Stohastic USDJPY, H1 

Altarius RSI Stohastic EURUSD,H1 

Altarius RSI Stohastic USDJPY,M15 

Altarius RSI Stohastic EURUSD,M15 

목록
댓글 0