거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
게시자:
Vladimir Karputov
조회수:
3707
평가:
(18)
게시됨:
2017.11.03 11:47
업데이트됨:
2018.02.27 13:42
iCCI iMA.mq5 (34.88 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Author of the idea is Andrey, the author of the MQL5 code is barabashkakvn.

Calculating Moving Average using Commodity Channel Index data:

//--- create handle of the indicator iMA
   handle_iMA=iMA(m_symbol.Name(),Period(),15,0,MODE_EMA,handle_iCCI);
//--- if the handle is not created 
   if(handle_iMA==INVALID_HANDLE)
     {
      //--- tell about the failure and output the error code 
      PrintFormat("Failed to create handle of the iMA indicator for the symbol %s/%s, error code %d",
                  m_symbol.Name(),
                  EnumToString(Period()),
                  GetLastError());
      //--- the indicator is stopped early 
      return(INIT_FAILED);
     }

It is similar to launching in the terminal the Moving Average indicator in the Commodity Channel Index window with "Previous Indicator's Data" selected in its parameters (apply indicator to other indicator's data).

Position opening and closing principles:

  • If Moving Average calculated based on Commodity Channel Index crosses the common Commodity Channel Index downwards, a BUY position is opened.
  • If Moving Average calculated based on Commodity Channel Index crosses the common Commodity Channel Index upwards, a SELL position is opened.
  • If Moving Average calculated based on Commodity Channel Index crosses the common Commodity Channel Index upwards, a BUY position is closed.
  • If Moving Average calculated based on Commodity Channel Index crosses the common Commodity Channel Index downwards, a SELL position is closed.

Testing on EURUSD,H1:

iCCI iMA test

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

ColorFisher_m11 ColorFisher_m11

Oscillator using inverse Fisher Transform.

Stop Loss Take Profit Stop Loss Take Profit

If a trade is closed by Stop loss, the volume is doubled; if by Take profit the minimum volume is used. OnTradeTransaction is used to determine whether a trade was performed after the activation of Stop loss or Take profit.

Exp_AFStar Exp_AFStar

A trading system based on the AFStar indicator signals.

ColorFisher_m11_HTF ColorFisher_m11_HTF

The ColorFisher_m11 indicator with the timeframe selection option available in input parameters.