거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

FT CCI MA - MetaTrader 5용 expert

게시자:
Vladimir Karputov
조회수:
4508
평가:
(19)
게시됨:
2018.11.20 12:46
FT CCI MA.mq5 (45.05 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Author of the idea - Vasiliy

mq5 code author - barabashkakvn

The EA uses iCCI (Commodity Channel Index, CCI) and iMA (Moving Average, MA) indicators.

When MA shows growth, iCCI indicator is running: -100 to buy and 200 to sell!

When MA shows falling, iCCI indicator is running: 100 to buy and -200 to sell!

Thus, during strong movements, "incorrect" trades are decreased. The EA then tries to capture the remaining movement!

You can include a time interval for trading (Use Time interval parameter enables/disables using the time interval). The time interval is set from Start hour to End hour. You can define the time interval both inside the day and with a transition through day. The example is provided in the time interval definition function:

//+------------------------------------------------------------------+
//| TimeControl                                                      |
//+------------------------------------------------------------------+
bool TimeControl(void)
  {
   MqlDateTime STimeCurrent;
   datetime time_current=TimeCurrent();
   if(time_current==D'1970.01.01 00:00')
      return(false);
   TimeToStruct(time_current,STimeCurrent);
   if(InpStartHour<InpEndHour) // intraday time interval
     {
/*
Example:
input uchar    InpStartHour      = 5;        // Start hour
input uchar    InpEndHour        = 10;       // End hour
0  1  2  3  4  5  6  7  8  9  10 11 12 13 14 15 16 17 18 19 20 21 22 23 0  1  2  3  4  5  6  7  8  9  10 11 12 13 14 15
_  _  _  _  _  +  +  +  +  +  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  +  +  +  +  +  _  _  _  _  _  _
*/
      if(STimeCurrent.hour>=InpStartHour && STimeCurrent.hour<InpEndHour)
         return(true);
     }
   else if(InpStartHour>InpEndHour) // time interval with the transition in a day
     {
/*
Example:
input uchar    InpStartHour      = 10;       // Start hour
input uchar    InpEndHour        = 5;        // End hour
0  1  2  3  4  5  6  7  8  9  10 11 12 13 14 15 16 17 18 19 20 21 22 23 0  1  2  3  4  5  6  7  8  9  10 11 12 13 14 15
_  _  _  _  _  _  _  _  _  _  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  _  _  _  _  _  +  +  +  +  +  +
*/
      if(STimeCurrent.hour>=InpStartHour || STimeCurrent.hour<InpEndHour)
         return(true);
     }
   else
      return(false);
//---
   return(false);
  }



MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/23061

DayImpuls DayImpuls

Impulse detector. The indicator applies MovingAverages.mqh

Bronze Warrioir Bronze Warrioir

The Expert Asvisor uses iCCI (Commodity Channel Index, CCI) and iWPR (Williams’ Percent Range, %R) indicators, as well as custom DayImpuls indicator.

Simple EA MA plus MACD Simple EA MA plus MACD

Brief description

Parabolic SAR EA Parabolic SAR EA

The Expert Advisor follows iSAR (Parabolic SAR) indicator.